The distance from the object to the monocular camera is roughly estimated by opencv.
- OpenCV
- Numpy
-
A priori image is acquired through this camera.
-
config.txt
KNOWN_DISTANCE : The actual distance from the object of the prior image to the camera
KNOWN_WIDTH : The actual width of the object in the prior image
image_path : Path to a priori image
Classifier_path : Path to a detector -
python odometry.py
This example is based on opencv for face detection.The distance from the camera of the laptop to the face is measured.