Patent ID: 11935260
Assignee: CONTEMPORARY AMPEREX TECHNOLOGY CO., LIMITED
Field: Measurement (Instruments)
Classification: CPC G | IPC G

Claim 12:
13. A non-transitory computer-readable storage medium storing a computer program thereon for execution by a processor of a computer, wherein when executed, the computer program causes the computer to perform operations that comprise:
obtaining a first image and a second image of a to-be-measured workpiece, wherein the first image and the second image are images captured by a first camera and a second camera at different positions, respectively;
extracting a first corner set of the to-be-measured workpiece from the first image and a second corner set of the to-be-measured workpiece from the second image, respectively;
rectifying position coordinates of the first corner set and position coordinates of the second corner set, to obtain a position coordinate value of the first corner set and a position coordinate value of the second corner set in a same coordinate system; and
obtaining dimensions of the to-be-measured workpiece based on the position coordinate value of the first corner set and the position coordinate value of the second corner set;, wherein rectifying position coordinates of the first corner set and position coordinates of the second corner set comprises:
obtaining rectification parameters of the first camera and the second camera using a calibration target; and
rectifying the position coordinates of the first corner set and the position coordinates of the second corner set separately based on the rectification parameters, to obtain the position coordinate value of the first corner set and the position coordinate value of the second corner set in the same coordinate system;, wherein the calibration target comprises a solid circle array pattern, and a first parameter of the solid circle array pattern is varied depending on the dimensions of the to-be-measured workpiece; and, wherein the first parameter comprises at least one of a diameter of a solid circle, a center distance between adjacent solid circles, or a number of solid circles.