create opencv camera matrix for iPhone 5 solvepnp

后端 未结 5 1175
春和景丽
春和景丽 2021-01-31 12:35

I am developing an application for the iPhone using opencv. I have to use the method solvePnPRansac:

http://opencv.willowgarage.com/documentation/cpp/camera_calibration_

5条回答
  •  感动是毒
    2021-01-31 13:17

    Old thread, present problem.

    As Milo and Isaac mentioned after Milo's answer, there seems to be no "common" params available for, say, the iPhone 5.

    For what it is worth, here is the result of a run with the MRPT calibration tool, with a good old iPhone 5:

    [CAMERA_PARAMS]
    resolution=[3264 2448]
    cx=1668.87585
    cy=1226.19712
    fx=3288.47697
    fy=3078.59787
    dist=[-7.416752e-02 1.562157e+00 1.236471e-03 1.237955e-03 -5.378571e+00]
    
    Average err. of reprojection: 1.06726 pixels (OpenCV error=1.06726)
    

    Note that dist means distortion here.

    I am conducting experiments on a toy project, with these parameters---kind of ok. If you do use them on your own project, please keep in mind that they may be hardly good enough to get started. The best will be to follow Milo's recommendation with your own data. The MRPT tool is quite easy to use, with the checkerboard they provide. Hope this does help getting started !

提交回复
热议问题