how is camera measured length in mendix native

first, I have to open the camera then I have to measure the distance between two boxes if the distance will be 2 inches so we can capture the pictures but suppose the distance will be more than 2 inches so we can not capture the picture  how  we can perform this functionality in native plz help me 
1 answers

hii Omkar 

this is via python but if you able to make its api it also can be used with mendix.

i really don’t know python. 

Hand Distance Measurement with Normal Webcam + Game | OpenCV Python - YouTube


according to below article Open CV also spport in Java desktop development. 

OpenCV: Introduction to Java Development


with native.

How to Use React Native & OpenCV for Image Processing (


may this help you.