简体   繁体   中英

How to calculate Focal length in OpenCV?

在其上选择图像像素和直线(从像素[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

http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_calib3d/py_calibration/py_calibration.html

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM