A method (200, 300) for measuring dimensions, comprising: obtaining (201, 301) a first image and a second image of a to-be-measured workpiece (102 400), 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 (102, 400) from the first image and a second corner set of the to-be-measured workpiece (102, 400) from the second image separately; 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 (102, 400) based on the position coordinate value of the first corner set and the position coordinate value of the second corner set, the method (200, 300) further comprising: the 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 based on a first calibration target image, a second calibration target image, and calibration target parameters, wherein the first calibration target image is an image captured by the first camera by photographing a calibration target that comprises a calibration pattern, and the second calibration target image is an image captured by the second camera by photographing the calibration target that comprises the calibration pattern; 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, characterized in that the calibration pattern is a solid circle array pattern, wherein the calibration target is a calibration target obtained by changing a first parameter of the solid circle array pattern based on the dimensions of the to-be-measured workpiece (102, 400), and 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. obtaining (201, 301) a first image and a second image of a to-be-measured workpiece (102 400), 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 (102, 400) from the first image and a second corner set of the to-be-measured workpiece (102, 400) from the second image separately; 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 (102, 400) based on the position coordinate value of the first corner set and the position coordinate value of the second corner set, the method (200, 300) further comprising: the 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 based on a first calibration target image, a second calibration target image, and calibration target parameters, wherein the first calibration target image is an image captured by the first camera by photographing a calibration target that comprises a calibration pattern, and the second calibration target image is an image captured by the second camera by photographing the calibration target that comprises the calibration pattern; 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, characterized in that the calibration pattern is a solid circle array pattern, wherein the calibration target is a calibration target obtained by changing a first parameter of the solid circle array pattern based on the dimensions of the to-be-measured workpiece (102, 400), and 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. obtaining rectification parameters of the first camera and the second camera based on a first calibration target image, a second calibration target image, and calibration target parameters, wherein the first calibration target image is an image captured by the first camera by photographing a calibration target that comprises a calibration pattern, and the second calibration target image is an image captured by the second camera by photographing the calibration target that comprises the calibration pattern; 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, characterized in that the calibration pattern is a solid circle array pattern, wherein the calibration target is a calibration target obtained by changing a first parameter of the solid circle array pattern based on the dimensions of the to-be-measured workpiece (102, 400), and 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.