| CPC G06T 7/80 (2017.01) [G06T 3/60 (2013.01); G06T 7/73 (2017.01); H04N 17/002 (2013.01); G06T 2207/10032 (2013.01); G06T 2207/30244 (2013.01)] | 8 Claims |

|
1. A camera calibration method, applicable to electronic device, and comprising:
obtaining a calibration image acquired by a camera on a calibration object, wherein the calibration object comprises at least two basic units, and each basic unit has a different pattern;
extracting feature points from the basic units of the calibration image, and obtaining pixel coordinates of the feature points;
obtaining world coordinates of the feature points;
performing camera calibration according to the pixel coordinates and the world coordinates of the feature points
displaying the calibration object on a display screen of the electronic device;
displaying an image acquisition position on the calibration object,
wherein
the image acquisition position is configured to guide the camera to acquire the calibration image;
the obtaining a calibration image acquired by a camera on a calibration object includes obtaining the calibration image acquired by the camera according to the image acquisition position,
wherein
the obtaining the calibration image acquired by the camera according to the image acquisition position includes obtaining a position of an intersection of an optical axis of the camera and a plane in which the display screen is located, and
obtaining an image acquired by the camera when the position of the intersection matches the image acquisition position as the calibration image of the image acquisition position; and
the displaying an image acquisition position on the calibration object includes displaying the image acquisition position on the calibration object, and sequentially displaying a next image acquisition position after the electronic device obtains the calibration image of the image acquisition position.
|