# Automatic measurement under the microscope

**URL:** <https://forum.opencv.org/t/automatic-measurement-under-the-microscope/11305>\
**Category:** Uncategorized\
**Created:** [December 13, 2022, 3:56pm UTC](https://forum.opencv.org/t/automatic-measurement-under-the-microscope/11305 "2022-12-13T15:56:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodion\_Khalikov](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/rodion_khalikov/32/6727_2.png) [@Rodion\_Khalikov](https://forum.opencv.org/u/Rodion_Khalikov)\
**Post date:** [December 13, 2022, 3:56pm UTC](https://forum.opencv.org/t/automatic-measurement-under-the-microscope/11305/1 "2022-12-13T15:56:13Z")

</div>

Hello, help with the program. We need an .exe program that will automatically measure a part under a microscope using opencv (i.e.) arithmetic operations with pixels, then display info on the screen  
Measurement parameters:

Length, if (long) \<3.9mm or \>4.1mm print “Marriage is long”

Cone height, if (cone) \<0.50mm or \>0.55mm print “Cone defect”

Cone angle, if (angle) \<50⁰ or \> 55⁰ print “Corner Defect”

P.s there is an approximate python code in the construction of contour seams and measurements, but I can’t figure it out

 ![IMG_20221213_185507](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/b/bc649626136f30150fffc4039c0d0de7e5cc322d.jpeg)
