在其上选择图像像素和直线(从像素[x_1, y_1]
到像素[x_2, y_2]
),如何在OpenCV中获得焦距(Python或C ++; 2.4或3.x)?
If you are need the
focal length
of camera,I think you should make calibration and you will get a the
camera matrix
which contains the focal length.
here is a good documentation to camera calibration
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.