WO2021179772A1 - 标定方法、位置确定方法、装置、电子设备及存储介质 - Google Patents
标定方法、位置确定方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2021179772A1 WO2021179772A1 PCT/CN2020/142509 CN2020142509W WO2021179772A1 WO 2021179772 A1 WO2021179772 A1 WO 2021179772A1 CN 2020142509 W CN2020142509 W CN 2020142509W WO 2021179772 A1 WO2021179772 A1 WO 2021179772A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- pixel coordinates
- image
- coordinate system
- sample reference
- reference object
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 99
- 239000011159 matrix material Substances 0.000 claims abstract description 91
- 238000012360 testing method Methods 0.000 claims description 94
- 238000012937 correction Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 description 14
- 239000000243 solution Substances 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 230000000007 visual effect Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 238000006243 chemical reaction Methods 0.000 description 6
- 238000005259 measurement Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 239000012482 calibration solution Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C25/00—Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C3/00—Measuring distances in line of sight; Optical rangefinders
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/002—Measuring arrangements characterised by the use of optical techniques for measuring two or more coordinates
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/02—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
- G01B11/03—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by measuring coordinates of points
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C11/00—Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
- G01C11/04—Interpretation of pictures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30204—Marker
- G06T2207/30208—Marker matrix
Definitions
- the present disclosure relates to the field of computer vision technology, and in particular, to a calibration method, a position determination method, a device, an electronic device, and a storage medium.
- the combination of traditional industry and information technology has brought convenience to people’s lives.
- the combination of the automotive industry and information technology can produce smart cars that can drive autonomously. Ranging is a very important link.
- visual sensors can obtain richer road structure environmental information, and the price is relatively low.
- monocular visual ranging technology In visual ranging, monocular visual ranging technology has the characteristics of low cost, simple system installation, and good stability compared with multi-eye visual ranging technology, so it is widely used.
- monocular vision ranging a homography matrix is needed. Based on the pixel coordinates of the photographed target in the image coordinate system and the homography matrix, the target in the world coordinate system can be obtained Based on the world coordinates of, the distance information between the target object and the preset location point can be obtained based on the world coordinates. Therefore, the accuracy of the homography matrix directly affects the accuracy of the ranging result.
- the homography matrix is obtained by pre-calibration.
- the world coordinates of the reference object in the world coordinate system are known, and the reference object needs to be selected from the image containing the reference object taken by the image acquisition device. To get its pixel coordinates in the image coordinate system.
- manual selection is required. Due to visual errors, the selection result in the image is not accurate, which leads to inaccurate calibration results.
- the present disclosure provides at least one calibration solution to improve the accuracy of the calibration of the image acquisition device.
- an embodiment of the present disclosure provides a calibration method, including:
- a straight line fitting is performed on the sample reference objects located on the same straight line, and the initial pixel coordinates participating in the fitting are performed based on the fitted straight line Correct to get the corrected pixel coordinates;
- the homography matrix of the image acquisition device is determined.
- the initial pixel coordinates of the sample reference object in the captured sample image in the image coordinate system can be corrected to obtain each sample.
- the more accurate corrected pixel coordinates of the reference object in the image coordinate system so that the image acquisition device is calibrated based on the corrected pixel coordinates, and an accurate homography matrix can be obtained, that is, the accuracy of the calibration of the image acquisition device is improved.
- a straight line fitting is performed on the sample reference objects located on the same straight line, and based on the fitted The straight line corrects the initial pixel coordinates participating in the fitting to obtain the corrected pixel coordinates, including:
- the initial pixel coordinates of each sample reference object in the image coordinate system are corrected to obtain the intermediate pixel coordinates; and based on the intermediate pixel coordinates of each sample reference object, the alignment is located in the second direction
- the sample reference objects on the straight line of are respectively fitted with a straight line to obtain a plurality of second straight lines, wherein the straight line along the first direction intersects the straight line along the second direction;
- the corrected pixel coordinates are obtained.
- the initial pixel coordinates of the sample reference object can be corrected based on the different straight lines to which the sample reference object belongs, such as selecting two different directions
- the straight line gradually corrects the initial pixel coordinates of multiple sample reference objects to obtain more accurate corrected pixel coordinates.
- the initial pixel coordinates include an initial first coordinate value and an initial second coordinate value, and the first coordinate axis corresponding to the initial first coordinate value and the first coordinate axis corresponding to the initial second coordinate value
- the two coordinate axes are perpendicular to each other;
- the initial pixel coordinates of each sample reference object in the image coordinate system are corrected to obtain the intermediate pixel coordinates, including:
- linear fitting is performed on the sample reference objects located on the straight line along the second direction to obtain multiple second straight lines, including:
- a straight line fitting is performed on the sample reference object located on a straight line along the second direction to obtain a plurality of second straight lines .
- the obtaining the corrected pixel coordinates based on a plurality of the first straight lines and a plurality of the second straight lines includes:
- the pixel coordinates corresponding to the intersections of the plurality of first straight lines and the plurality of second straight lines are used as the corrected pixel coordinates.
- the embodiment of the present disclosure proposes a process of how to specifically correct the initial pixel coordinates of multiple sample reference objects, that is, first correct one of the initial pixel coordinates, and then perform the other coordinate value. Correction, and gradually get corrected coordinates with higher accuracy.
- the first coordinate axis is an abscissa axis in an image coordinate system
- the second coordinate axis is an ordinate axis in an image coordinate system
- the first coordinate axis is an image
- the second coordinate axis is the abscissa axis in the image coordinate system.
- the method further includes:
- test image For each test image, determine the test pixel coordinates of each test reference object in the test image in the image coordinate system;
- the accuracy of the homography matrix is determined based on the real world coordinates of the test reference object and the test world coordinates in the plurality of test images.
- the homography matrix can be corrected in time, for example, a new sample reference object can be selected for recalibration.
- the embodiments of the present disclosure provide a location determination method, including:
- the homography matrix of the image acquisition device Based on the pixel coordinates and the homography matrix of the image acquisition device, the world coordinates of the target object in the world coordinate system are determined, and the homography matrix of the image acquisition device adopts the calibration method described in the first aspect Sure.
- the homography matrix can be used to accurately determine the world coordinates of the target in the world coordinate system.
- the method further includes:
- the distance between the target object and the preset position point is determined.
- the homography matrix can be used to accurately determine the world coordinates of the target in the world coordinate system, and then determine the preset position point and The distance between the targets.
- a calibration device including:
- the image acquisition module is used to acquire the sample image taken by the image acquisition device
- a first determining module configured to determine the initial pixel coordinates of a plurality of sample reference objects in the sample image in the image coordinate system based on the sample image;
- the coordinate correction module is used to perform a straight-line fitting on the sample reference objects located on the same straight line based on the determined initial pixel coordinates of each sample reference object in the image coordinate system, and to perform a straight-line fitting for the sample reference objects on the
- the combined initial pixel coordinates are corrected to obtain the corrected pixel coordinates
- the second determining module is configured to determine the homography matrix of the image acquisition device based on the world coordinates of each sample reference object in the sample image in the world coordinate system and the obtained corrected pixel coordinates.
- the coordinate correction module is used for:
- the initial pixel coordinates of each sample reference object in the image coordinate system are corrected to obtain the intermediate pixel coordinates; and based on the intermediate pixel coordinates of each sample reference object, the alignment is located in the second direction
- the sample reference objects on the straight line of are respectively fitted with a straight line to obtain a plurality of second straight lines, wherein the straight line along the first direction intersects the straight line along the second direction;
- the corrected pixel coordinates are obtained.
- the initial pixel coordinates include an initial first coordinate value and an initial second coordinate value, and the first coordinate axis corresponding to the initial first coordinate value and the first coordinate axis corresponding to the initial second coordinate value
- the two coordinate axes are perpendicular to each other;
- the coordinate correction module When the coordinate correction module is used to correct the initial pixel coordinates of each sample reference object in the image coordinate system based on a plurality of first straight lines to obtain intermediate pixel coordinates, it includes:
- the coordinate correction module When the coordinate correction module is used to perform straight line fitting on the sample reference objects located on the straight line along the second direction based on the intermediate pixel coordinates of each sample reference object to obtain a plurality of second straight lines, it includes
- a first straight line fitting is performed on the sample reference object located on a straight line along the second direction to obtain a plurality of second straight line.
- the method when the coordinate correction module is used to obtain the corrected pixel coordinates based on a plurality of the first straight lines and a plurality of the second straight lines, the method includes:
- the pixel coordinates corresponding to the intersections of the plurality of first straight lines and the plurality of second straight lines are used as the corrected pixel coordinates.
- the first coordinate axis is an abscissa axis in an image coordinate system
- the second coordinate axis is an ordinate axis in an image coordinate system
- the first coordinate axis is an image
- the second coordinate axis is the abscissa axis in the image coordinate system.
- the second determining module is further configured to:
- test image For each test image, determine the test pixel coordinates of each test reference object in the test image in the image coordinate system;
- the accuracy of the homography matrix is determined.
- embodiments of the present disclosure provide a location determining device, including:
- the image acquisition module is used to acquire the target image obtained after the image acquisition device shoots the target object;
- the first determining module is configured to determine the pixel coordinates of the target object in the image coordinate system based on the target image
- the second determining module is configured to determine the world coordinates of the target in the world coordinate system based on the pixel coordinates and the homography matrix of the image acquisition device, and the homography matrix of the image acquisition device adopts the original Any calibration method provided in the disclosed embodiment is determined.
- the second determining module is further configured to:
- the distance between the target object and the preset position point is determined.
- the present disclosure provides an electronic device, including a processor, a storage medium, and a bus.
- the storage medium stores machine-readable instructions executable by the processor.
- the processing The processor communicates with the storage medium through a bus, and the processor executes the machine-readable instructions to execute the steps of the calibration method described in the first aspect or the position determination method described in the second aspect.
- the present disclosure provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is run by a processor, it executes the calibration method or the second The steps of the position determination method described in the second aspect.
- the present disclosure provides a computer program product, which includes program instructions that, when executed by a processor, cause the processor to execute the calibration method described in the first aspect or the second The steps of the position determination method described in the aspect.
- Fig. 1 shows a flow chart of a calibration method provided by an embodiment of the present disclosure
- FIG. 2 shows a schematic diagram of a sample reference object array provided by an embodiment of the present disclosure in a world coordinate system
- Fig. 3 shows a sample image corresponding to a sample reference object array provided by an embodiment of the present disclosure
- FIG. 4 shows a flowchart of a method for correcting the initial pixel coordinates of a sample reference object provided by an embodiment of the present disclosure
- FIG. 5 shows a flow chart of a method for testing the accuracy of a homography matrix provided by an embodiment of the present disclosure
- Fig. 6 shows a flow chart of a method for determining a position provided by an embodiment of the present disclosure
- FIG. 7 shows a schematic structural diagram of a calibration device provided by an embodiment of the present disclosure
- FIG. 8 shows a schematic structural diagram of a position determining device provided by an embodiment of the present disclosure
- FIG. 9 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- FIG. 10 shows a schematic structural diagram of another electronic device provided by an embodiment of the present disclosure.
- the principle of relying on image acquisition equipment for visual ranging is to determine the pixel coordinates of the target captured by the image acquisition device in the image coordinate system, and then Based on the homography matrix of the image acquisition device, determine the world coordinates of the target in the world coordinate system, and then determine the distance between the preset location point and the target according to the world coordinates of the preset location point and the world coordinates of the target object.
- the preset position point here can be the origin of the set world coordinate system. Therefore, the accuracy of the homography matrix directly affects the accuracy of the ranging result.
- the homography matrix is obtained by pre-calibration.
- the world coordinates of the reference object in the world coordinate system are known, and the reference object needs to be selected from the image containing the reference object taken by the image acquisition device.
- the reference object needs to be selected from the image containing the reference object taken by the image acquisition device.
- To get its pixel coordinates in the image coordinate system When selecting the reference object in the image, it is usually selected manually. Due to the visual error, the selection result in the image is not accurate, which will cause the calibration result to be inaccurate.
- the following embodiments of the present disclosure provide a method for correcting the pixel coordinates of a selected reference object.
- the present disclosure provides a calibration method. After acquiring the sample image obtained by the image acquisition device shooting the sample reference object, first determine the initial pixel coordinates of the multiple sample reference objects in the image coordinate system, and then based on each The initial pixel coordinates of the sample reference object in the image coordinate system, a straight line fit is performed on the sample reference object located on a uniform straight line in the sample image, and the initial pixel coordinates participating in the fitting are corrected based on the fitted straight line to obtain the participation The corrected pixel coordinates of the fitted sample reference object in the image coordinate system.
- the sample reference objects can be placed in advance, for example, the sample reference objects can be arranged in an array, so that the sample reference objects belonging to the same row or the sample reference objects belonging to the same column are located on a straight line in the world coordinate system , And then by fitting a straight line to the initial pixel coordinates of the sample reference object in the image coordinate system, that is, the initial pixel coordinates of each sample reference object in the image coordinate system can be corrected, and each sample reference object can be obtained in the image coordinate system.
- the more accurate corrected pixel coordinates in the sample reference object the world coordinates of each sample reference object in the world coordinate system and the corrected pixel coordinates of each sample reference object in the image coordinate system are used to obtain accurate image acquisition equipment.
- the homography matrix improves the accuracy of the calibration of image acquisition equipment.
- the execution subject of the calibration method provided in the embodiment of the present disclosure is generally a computer device with data processing capability.
- FIG. 1 is a schematic flowchart of a calibration method provided by an embodiment of the present disclosure, including the following steps S101 to S104:
- S101 Acquire a sample image taken by an image acquisition device
- S104 Determine the homography matrix of the image acquisition device based on the world coordinates of each sample reference object in the sample image in the world coordinate system and the obtained corrected pixel coordinates.
- the sample image captured by the image acquisition device may be the sample image obtained after the sample reference object array is captured.
- the image collection environment and the world coordinate system where the sample reference object is located can be set in advance, such as drawing multiple images on the ground. Or look for a place with multiple lane lines to form multiple straight lines L, and place multiple sample reference objects with the same shape on each straight line L.
- the sample reference object here can be a cone reference object.
- a sample reference object can be divided into multiple groups, and each group is located on the same straight line L.
- multiple straight lines H need to be drawn so that each straight line H and each straight line L intersect, and the sample reference object is placed on the straight line L and the straight line.
- a sample reference object array is obtained.
- the sample reference object array includes sample reference objects that are collinear on multiple straight lines L, and at the same time, these sample reference objects are also collinear on multiple straight lines H.
- the embodiment of the present disclosure proposes to establish a world coordinate system with the center point of the front axle of the vehicle or the mapping point of the center of the vehicle body on the ground as the origin, where the origin is the set position point, and the image acquisition device is located at the set position of the vehicle,
- the world coordinate system as shown in Figure 2 is obtained.
- each straight line L is parallel to the Y axis in the world coordinate system
- each straight line H is parallel to the X axis in the world coordinate system.
- the camera of the image acquisition device on the vehicle is adjusted to be parallel to the ground.
- the image acquisition device shoots the sample reference object array in the Y-axis direction, the sample image as shown in FIG. 3 can be obtained.
- the sample image can be placed in the image coordinate system, and the position of the vertebral reference object manually selected by the user in the image coordinate system tangent to the ground is determined.
- the initial pixel coordinates of the sample reference object in the image coordinate system; or, the sample image can also be input into a pixel coordinate determination model trained in advance to determine the initial pixel coordinates of each sample reference object.
- the pixel coordinate determination model can first perform image recognition based on the sample image, determine the position of the vertebral body reference object tangent to the ground, and then determine the position of each sample reference object in the image based on the determined position of the sample reference object in the image.
- the initial pixel coordinates in the coordinate system can be performed.
- the line segment between the sample reference objects in each first straight line does not intersect with the line segments between the sample reference objects in the other first straight lines.
- multiple first straight lines may be parallel to each other, or , Multiple first straight lines intersect along the distance, but do not intersect at the position where the sample reference object is located.
- the initial pixel coordinates obtained above are inaccurate due to human eye error or the error of the pixel coordinate determination model.
- the initial pixel coordinates that should be on the same straight line may not be on the same straight line, so here you can First, perform straight line fitting on these initial pixel coordinates to obtain multiple first straight lines.
- the line segments between the sample reference objects in the obtained multiple first straight lines are compared with the other first straight lines located in each sample.
- the line segments between the reference objects do not intersect.
- multiple first straight lines corresponding to the straight line L in Fig. 3 can be obtained, or the line corresponding to the straight line H in Fig. 3 can be obtained The multiple first straight lines.
- the sample reference objects in the sample image can be grouped first to obtain multiple sets of sample reference objects, and each group of sample reference objects is in the world.
- the coordinate system belongs to the same straight line.
- the embodiment of the present disclosure divides the sample reference objects that belong to the same straight line L in the world coordinate system into a group, for example, the sample as shown in FIG. 3
- the sample reference objects in the sample reference object array are divided into 4 groups, and the initial pixel coordinates corresponding to the 4 groups of sample reference objects are respectively fitted with straight lines to obtain 4 first straight lines.
- a straight line can be fitted according to the least squares method. Specifically, the following formula (1), formula (2) and formula (3) can be used to obtain multiple first straight line corresponding The first straight line equation:
- (x i , y i ) represents the initial pixel coordinates of the i-th sample reference object belonging to the same group of sample reference objects; n represents the sample reference object belonging to the same group includes n; x represents the corresponding reference object belonging to the same group of sample reference objects
- the average value of the initial abscissa value Represents the average value of the initial ordinate values corresponding to the same group of sample reference objects; b, b 0 and b 1 represent the unknown parameters in the first straight line equation.
- the unknown parameters b 0 and b 1 in the first straight line equation corresponding to the initial pixel coordinates of each set of parameters are obtained, namely
- the straight line along the first direction intersects the straight line along the second direction.
- the initial pixel coordinates include an initial first coordinate value and an initial second coordinate value, wherein the first coordinate axis corresponding to the initial first coordinate value and the second coordinate axis corresponding to the initial second coordinate value are perpendicular to each other.
- the intermediate pixel coordinates when correcting the initial pixel coordinates of each sample reference object in the image coordinate system based on the multiple first straight lines to obtain the intermediate pixel coordinates, it may include:
- the intermediate pixel coordinates of one of the sample reference objects include the initial first coordinate value and the intermediate second coordinate value of the sample reference object, that is, the initial correction of the initial pixel coordinates to obtain the intermediate pixel coordinates is actually the process of the sample reference object The process of correcting the initial second coordinate value.
- the first coordinate axis may be the abscissa axis or the ordinate axis, and when the first coordinate axis is the abscissa axis in the image coordinate system, the second coordinate axis is the ordinate axis in the image coordinate system. Axis; or, when the first coordinate axis is the ordinate axis in the image coordinate system, the second coordinate axis is the abscissa axis in the image coordinate system.
- the sample image in Figure 3 above includes a total of 20 sample reference objects.
- the initial pixel coordinates of these 20 sample reference objects are (x 1 , y 1 ) ⁇ (x 20 , y 20 ), where each sample reference
- the initial first coordinate value of the object can be x 1 ⁇ x 20
- the initial second coordinate value can be y 1 ⁇ y 20
- the first coordinate axis corresponding to the initial first coordinate value can be the abscissa axis in the image coordinate system
- the second coordinate axis corresponding to the initial second coordinate value may be the ordinate axis in the image coordinate system
- the initial first coordinate value of each sample reference object may be y 1 to y 20
- the initial second coordinate value may be Is x 1 ⁇ x 20 , where the first coordinate axis corresponding to the initial first coordinate value can be the ordinate axis in the image coordinate system, and the second coordinate axis corresponding to the initial second coordinate value can be the abscissa in the image coordinate system
- the initial first coordinate value substituted into the linear equation of the first straight line can be the initial abscissa value corresponding to the abscissa axis, or the initial ordinate value corresponding to the ordinate axis.
- the accuracy of the horizontal coordinate value in the determined initial pixel coordinate is greater than that of the vertical coordinate value. Therefore, the embodiment of the present disclosure can first correct the ordinate value with lower accuracy, that is, substitute the initial abscissa value in the initial pixel coordinates of each sample reference object into the first straight line where the sample reference object is located.
- the linear equation of obtains the intermediate second coordinate value, where the intermediate second coordinate value is the first corrected ordinate value corresponding to the initial ordinate value of the initial pixel coordinate of the sample reference object.
- the initial first coordinate value and the intermediate second coordinate value of each sample reference object constitute the intermediate pixel coordinates.
- the initial pixel coordinates for the above 20 sample reference objects are: (x 1 ,y 1 ) ⁇ (x 20 ,y 20 ).
- the intermediate pixel coordinates of the corresponding 20 sample reference objects are obtained: (x 1 , y 1 ′) ⁇ (x 20 , y 20 ′).
- a straight line fitting is performed on the sample reference object located on a straight line along the second direction to obtain a plurality of second straight lines.
- each second straight line does not intersect with the line segment between each sample reference object in other second straight lines, and each second straight line is located between each sample reference object The line segment of intersects with the line segment located between the reference objects of each sample among the first straight lines.
- the line segments between the sample reference objects in the obtained multiple second straight lines are compared with other first straight lines.
- the line segments between the sample reference objects in the two straight lines do not intersect. For example, if the sample reference object is fitted with a straight line, multiple first straight line fittings are obtained corresponding to the straight line L in Fig. 3.
- Straight line the sample reference object is fitted with a straight line, and the obtained multiple second straight lines corresponding to the straight line H in Fig. 3;
- a straight line fitting is performed on the sample reference object, and multiple second straight lines corresponding to the straight line L in FIG. 3 are obtained.
- the sample reference objects in the sample reference object array can be grouped according to the order to obtain multiple sets of sample reference objects, and each group of sample reference objects is in the world coordinate
- the system belongs to the same straight line.
- the grouping method of the sample reference objects is based on whether they belong to the same straight line H in the world coordinate system; on the contrary, if the first straight line fitting is performed, the grouping method of the sample reference objects is based on the world coordinate system. Whether they belong to the same straight line H in the coordinate system for grouping, when performing the second straight line fitting, the grouping method of the sample reference objects is grouped according to whether they belong to the same straight line L in the world coordinate system.
- the sample reference objects when multiple first straight lines are obtained, the sample reference objects are grouped according to whether they belong to the same straight line L in the world coordinate system.
- the sample reference objects are grouped.
- the grouping method of is based on whether they belong to the same straight line H in the world coordinate system, that is, the sample reference objects that belong to the same straight line H in the world coordinate system are divided into a group, for example, for the sample image shown in Figure 3
- the sample reference objects are divided into 5 groups, and the straight line fitting is performed for each group of sample reference objects to obtain 5 straight lines.
- the second straight line fitting can be performed according to the least squares method. Specifically, multiple straight lines can be obtained according to the following formula (4), formula (5) and formula (6) The corresponding second straight line equation:
- (x i , y i ') represents the intermediate pixel coordinates of the i-th sample reference object belonging to the same group of sample reference objects, and the intermediate pixel coordinates are composed of the initial abscissa value and the intermediate ordinate value; n represents belonging to the same group
- the sample reference objects include n; x represents the average value of the initial abscissa values corresponding to the same group of sample reference objects; y'represents the average value of the intermediate ordinate values corresponding to the same group of sample reference objects, and the intermediate ordinate value is In order to perform the first straight line fitting to the sample reference object, the initial ordinate value is corrected to obtain the intermediate ordinate value; b, b 2 and b 3 represent the unknown parameters in the first straight line equation.
- S403 Obtain corrected pixel coordinates based on the multiple first straight lines and the multiple second straight lines.
- the pixel coordinates corresponding to the intersections of the multiple first straight lines and the multiple second straight lines may be used as the corrected pixel coordinates.
- the corrected pixel coordinates of each sample reference object in the sample reference object array are obtained.
- the intermediate pixel coordinates of the above 20 sample reference objects are: ( x 1 ,y 1 ') ⁇ (x 20 ,y 20 ')
- the corrected pixel coordinates of the corresponding 20 sample reference objects are obtained: (x 1 ”, y 1 ”) ⁇ (x 20 ” ,y 20 ”).
- the initial pixel coordinates of the sample reference object can be corrected based on the different straight lines to which the sample reference object belongs, such as selecting Two straight lines in different directions gradually correct the initial pixel coordinates of multiple sample reference objects to obtain more accurate corrected pixel coordinates. Specifically, it can be used in the process of correcting the initial pixel coordinates of multiple sample reference objects. In the initial pixel coordinates, one of the coordinate values can be corrected first, and then the other coordinate value can be corrected, so as to gradually obtain a corrected coordinate with higher accuracy.
- step S104 after the corrected pixel coordinates of each sample reference object in the image coordinate system are obtained, it can be based on the world coordinates of each sample reference object in the world coordinate system and the image coordinate system of each sample reference object.
- the world coordinates of each sample reference object in the array of recorded sample reference objects in the world coordinate system are: (X 1 , Y 1 ) ⁇ (X n , Y n ), and the world coordinate matrix is recorded as A, pixel coordinates
- the matrix is C, and the homography matrix is B, which is expressed as follows:
- the embodiments of the present disclosure can correct the initial pixel coordinates of each sample reference object in the image coordinate system, and obtain the more accurate corrected pixel coordinates of each sample reference object in the image coordinate system, so as to obtain the more accurate corrected pixel coordinates of each sample reference object in the image coordinate system.
- the world coordinates of each sample reference object in the world coordinate system and the corrected pixel coordinates of each sample reference object in the image coordinate system to obtain an accurate homography matrix of the image acquisition device, which improves the accuracy of the calibration of the image acquisition device sex.
- the accuracy of the determined homography matrix can also be tested. During the test, the following steps S501 to S504 can be performed:
- S501 Acquire multiple test images taken by an image acquisition device.
- the image acquisition device here is the same type of image acquisition device as the above-mentioned image acquisition device, and the shooting angle when shooting multiple test reference object arrays is the same as the above angle when acquiring the sample reference object array.
- test reference object here is similar to that of the sample reference object, and will not be repeated here. Multiple different test reference object arrays can be set, so that the image acquisition device can shoot for each test reference object array to obtain multiple test images. .
- the method of determining the test pixel coordinates of each test reference object in the test image in the image coordinate system is the same as the method described above for determining the corrected pixel coordinates of each sample reference object in the sample image in the image coordinate system. This will not be repeated here.
- S503 Determine the test world coordinates of the test reference object in the world coordinate system based on the test pixel coordinates and the homography matrix.
- test pixel coordinate matrix is formed based on the abscissa and ordinate values obtained from the test pixel coordinates, and the test pixel coordinate matrix and the homography matrix are input to the image acquisition device
- the conversion equation between pixel coordinates and world coordinates is used to obtain the test world coordinates of each test reference object in the test image in the world coordinate system.
- S504 Determine the accuracy of the homography matrix based on the real world coordinates and the test world coordinates of the test reference object in the multiple test images.
- the embodiment of the present disclosure verifies the accuracy of the homography matrix to determine whether the accuracy of the obtained homography matrix satisfies the set conditions, so that when the accuracy of the homography matrix does not meet the set conditions, the accuracy of the homography matrix can be checked in time.
- the homography matrix is corrected, for example, the calibration process for the image acquisition device is performed again, that is, the process of steps S101 to S104 is performed, so as to obtain a homography matrix with higher accuracy, and then to ensure that the distance measurement is performed based on the image acquisition device.
- carry out accurate ranging When, carry out accurate ranging.
- FIG. 6 is a flowchart of a method for determining a position according to an embodiment of the present disclosure. , Specifically includes the following steps S601 to S604:
- S601 Acquire a target image obtained after the image acquisition device photographs the target object.
- S602 Based on the target image, determine the pixel coordinates of the target object in the image coordinate system.
- S603 Determine the world coordinates of the target object in the world coordinate system based on the pixel coordinates and the homography matrix of the image acquisition device.
- S604 Determine the distance between the target object and the preset position point based on the world coordinates of the target object in the world coordinate system and the coordinates of the preset position point in the world coordinate system.
- the preset position here can be the projection of the center of the front axle on the ground, or the projection of the center of the car body on the ground.
- the origin is in the world coordinate system.
- the coordinates in are known, and the preset position point can be used as the corresponding vehicle distance measurement point when measuring the distance between the target object and the vehicle.
- the entire process of S601 to S604 refers to the process of distance measurement through the homography matrix after obtaining the homography matrix of the image acquisition device, because the target object in the target image has an area size, and the target object is obtained after obtaining the homography matrix.
- the distance measurement point of the target object is determined according to the target object image, and then the distance between the target object and the vehicle is determined based on the world coordinates of the distance measurement point and the preset position point in the world coordinate system.
- the label frame where the target object is located is obtained, because in the calibration process of the image acquisition device, the selected vertebral reference object is used as the tangent position to the ground.
- the homography matrix of the image acquisition device determined by the reference object.
- the center position point is used as the ranging point, and then the pixel coordinates of the ranging point are used as the pixel coordinates of the target in the image coordinate system.
- the target After obtaining the pixel coordinates of the target in the image coordinate system, input the pixel coordinates and homography matrix of the target in the image coordinate system into the conversion equation between the pixel coordinates of the image acquisition device and the world coordinates, and then the target can be obtained.
- the world coordinates in the world coordinate system, and then the Euclidean distance between the two are calculated according to the world coordinates of the target in the world coordinate system and the world coordinates of the preset position point to determine the distance between the target and the vehicle.
- the homography matrix can be used to accurately determine the world coordinates of the target in the world coordinate system, and then determine the distance to the target.
- the calibration method obtains the sample image obtained by the image acquisition device shooting the sample reference object, first determines the initial pixel coordinates of each sample reference object in the image coordinate system, and then determines the initial pixel coordinates of each sample reference object based on each sample reference
- the initial pixel coordinates of the object in the image coordinate system are fitted with a straight line to the sample reference object array in the sample image, and the initial pixel coordinates are corrected based on the fitted straight line to obtain the position of each sample reference object in the image coordinate system. Correct the pixel coordinates.
- the sample reference objects can be placed in advance, for example, the sample reference objects can be arranged in an array, so that the sample reference objects belonging to the same row or the sample reference objects belonging to the same column are located on a straight line in the world coordinate system , And then by fitting a straight line to the initial pixel coordinates of the sample reference object in the image coordinate system, that is, the initial pixel coordinates of each sample reference object in the image coordinate system can be corrected, and each sample reference object can be obtained in the image coordinate system.
- the more accurate corrected pixel coordinates in the sample reference object the world coordinates of each sample reference object in the world coordinate system and the corrected pixel coordinates of each sample reference object in the image coordinate system are used to obtain accurate image acquisition equipment.
- the homography matrix improves the accuracy of the calibration of image acquisition equipment.
- the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
- the specific execution order of each step should be based on its function and possibility.
- the inner logic is determined.
- the embodiment of the present disclosure also provides a calibration device corresponding to the calibration method. Since the principle of the device in the embodiment of the disclosure to solve the problem is similar to the above-mentioned calibration method of the embodiment of the disclosure, the implementation of the device can be referred to the method The implementation of the repetition will not be repeated.
- FIG. 7 it is a schematic structural diagram of a calibration device 700 provided by an embodiment of the present disclosure, including:
- the image acquisition module 701 is used to acquire a sample image taken by an image acquisition device
- the first determining module 702 is configured to determine the initial pixel coordinates of the multiple sample reference objects in the sample image in the image coordinate system based on the sample image;
- the coordinate correction module 703 is used to perform a straight line fitting to the sample reference objects located on the same straight line based on the determined initial pixel coordinates of each sample reference object in the image coordinate system, and to perform fitting fitting based on the fitted straight line Correct the initial pixel coordinates of to obtain the corrected pixel coordinates;
- the second determination module 704 is configured to determine the homography matrix of the image acquisition device based on the world coordinates of each sample reference object in the sample image in the world coordinate system and the obtained corrected pixel coordinates.
- the coordinate correction module 703 is used for:
- the initial pixel coordinates of each sample reference object in the image coordinate system are corrected to obtain the intermediate pixel coordinates; and based on the intermediate pixel coordinates of each sample reference object, the alignment is located in the second direction
- the sample reference objects on the straight line of are respectively fitted with a straight line to obtain a plurality of second straight lines, wherein the straight line along the first direction intersects the straight line along the second direction;
- the corrected pixel coordinates are obtained.
- the initial pixel coordinates include an initial first coordinate value and an initial second coordinate value, and the first coordinate axis corresponding to the initial first coordinate value and the second coordinate axis corresponding to the initial second coordinate value are perpendicular to each other;
- the coordinate correction module 703 When the coordinate correction module 703 is used to correct the initial pixel coordinates of each sample reference object in the image coordinate system based on the multiple first straight lines to obtain the intermediate pixel coordinates, it includes:
- the intermediate pixel coordinates of a sample reference object include the The initial first coordinate value and the middle second coordinate value of the sample reference object;
- the coordinate correction module 703 When the coordinate correction module 703 is used to perform straight line fitting on the sample reference objects located on the straight line along the second direction based on the intermediate pixel coordinates of each sample reference object to obtain multiple second straight lines, it includes
- a first straight line fitting is performed on the sample reference object located on a straight line along the second direction to obtain a plurality of second straight lines.
- the method when the coordinate correction module 703 is used to obtain corrected pixel coordinates based on multiple first straight lines and multiple second straight lines, the method includes:
- the pixel coordinates corresponding to the intersections of the plurality of first straight lines and the plurality of second straight lines are used as the corrected pixel coordinates.
- the first coordinate axis is the abscissa axis in the image coordinate system
- the second coordinate axis is the ordinate axis in the image coordinate system
- the first coordinate axis is the ordinate axis in the image coordinate system
- the second coordinate axis is the abscissa axis in the image coordinate system.
- the second determining module 704 is further configured to:
- test image For each test image, determine the test pixel coordinates of each test reference object in the test image in the image coordinate system;
- test pixel coordinates and the homography matrix determine the test world coordinates of the test reference object in the world coordinate system
- the accuracy of the homography matrix is determined.
- an embodiment of the present disclosure also provides a position determining device 800, which locates a target obtained based on the image capturing device through the homography matrix of the image capturing device determined by the above-mentioned calibration device.
- the location determining device 800 includes:
- the image acquisition module 801 is configured to acquire a target image obtained after the image acquisition device photographs the target object;
- the first determining module 802 is configured to determine the pixel coordinates of the target object in the image coordinate system based on the target image;
- the second determining module 803 is used to determine the world coordinates of the target object in the world coordinate system based on the pixel coordinates and the homography matrix of the image acquisition device.
- the homography matrix of the image acquisition device adopts any one of the embodiments of the disclosure
- the calibration method is determined.
- the second determining module 803 is further configured to:
- the distance between the target and the preset location point is determined.
- an embodiment of the present disclosure also provides an electronic device 900.
- a schematic structural diagram of the electronic device provided by the embodiment of the present disclosure includes:
- the processor 901 and the memory 902 communicate through the bus 903, so that the processor 901 is Execute the following instructions: obtain the sample image taken by the image acquisition device; based on the sample image, determine the initial pixel coordinates of multiple sample reference objects in the sample image in the image coordinate system; based on the determined position of each sample reference object in the image coordinate system The initial pixel coordinates, a straight line fitting is performed on the sample reference objects located on the same straight line, and the initial pixel coordinates participating in the fitting are corrected based on the fitted straight line to obtain the corrected pixel coordinates; based on each sample reference in the sample image
- the world coordinates of the object in the world coordinate system and the obtained corrected pixel coordinates determine the homography matrix of the image acquisition device.
- an embodiment of the present disclosure also provides an electronic device 1000.
- a schematic structural diagram of the electronic device provided by the embodiment of the present disclosure includes:
- the processor 1001 and the memory 1002 communicate through the bus 1003, so that the processor 1001 is Execute the following instructions: Obtain the target image obtained after the image capture device shoots the target; Based on the target image, determine the pixel coordinates of the target in the image coordinate system; Determine the target location based on the pixel coordinates and the homography matrix of the image capture device The world coordinates in the world coordinate system and the homography matrix of the image acquisition device are determined by the calibration method of the first aspect.
- the embodiments of the present disclosure also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to execute the steps of the calibration method or position determination in the above method embodiments Method steps.
- the computer program product of the calibration method or the position determination method provided by the embodiment of the present disclosure includes a computer-readable storage medium storing program code, and the program code includes instructions that can be used to execute the steps of the calibration method in the above method embodiment Or for the steps of the location determination method, please refer to the foregoing method embodiment for details, which will not be repeated here.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a nonvolatile computer readable storage medium executable by a processor.
- the technical solution of the present disclosure essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Manufacturing & Machinery (AREA)
- Electromagnetism (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
Description
Claims (19)
- 一种标定方法,其特征在于,包括:获取图像采集设备拍摄的样本图像;基于所述样本图像,确定所述样本图像中多个样本参照物在图像坐标系中的初始像素坐标;基于确定的每个样本参照物在图像坐标系中的初始像素坐标,对位于同一条直线上的所述样本参照物进行直线拟合,并基于拟合的直线对参与拟合的初始像素坐标进行修正,得到修正像素坐标;基于所述样本图像中的每个样本参照物在世界坐标系下的世界坐标、以及得到的修正像素坐标,确定所述图像采集设备的单应性矩阵。
- 根据权利要求1所述的标定方法,其特征在于,所述基于确定的每个样本参照物在图像坐标系中的初始像素坐标,对位于同一条直线上的所述样本参照物进行直线拟合,并基于拟合的直线对参与拟合的初始像素坐标进行修正,得到修正像素坐标,包括:基于确定的每个样本参照物在图像坐标系中的初始像素坐标,对位于沿第一方向的直线上的样本参照物分别进行直线拟合,得到多条第一直线;基于多条第一直线,对每个样本参照物在图像坐标系中的初始像素坐标进行修正,得到中间像素坐标;并基于每个样本参照物的中间像素坐标,对位于沿第二方向上的直线上的样本参照物分别进行直线拟合,得到多条第二直线,其中,沿第一方向上的直线与沿第二方向上的直线相交;基于多条所述第一直线和多条所述第二直线,得到所述修正像素坐标。
- 根据权利要求2所述的标定方法,其特征在于,所述初始像素坐标包括初始第一坐标值和初始第二坐标值,所述初始第一坐标值对应的第一坐标轴与所述初始第二坐标值对应的第二坐标轴相互垂直;基于多条第一直线,对每个样本参照物在图像坐标系中的初始像素坐标进行修正,得到中间像素坐标,包括:将每个样本参照物的初始像素坐标中的初始第一坐标值,代入该样本参照物所在的所述第一直线的直线方程,得到中间第二坐标值;一个样本参照物的中间像素坐标包括该样本参照物的初始第一坐标值和中间第二坐标值;基于每个样本参照物的中间像素坐标,对位于沿第二方向上的直线上的样本参照物分别进行直线拟合,得到多条第二直线,包括:基于每个样本参照物的中间像素坐标中的初始第一坐标值和中间第二坐标值,对位于沿第二方向的直线上的所述样本参照物进行直线拟合,得到多条第二直线。
- 根据权利要求2或3所述的标定方法,其特征在于,所述基于多条所述第一直线和多条所述第二直线,得到所述修正像素坐标,包括:将多条所述第一直线和多条所述第二直线的交点对应的像素坐标,作为所述修正像素坐标。
- 根据权利要求3所述的标定方法,其特征在于,所述第一坐标轴为图像坐标系中的横坐标轴,所述第二坐标轴为图像坐标系中的纵坐标轴;或者,所述第一坐标轴为图像坐标系中的纵坐标轴,所述第二坐标轴为图像坐标系中的横坐标轴。
- 根据权利要求1所述的标定方法,其特征在于,确定所述图像采集设备的单应性矩阵之后,还包括:获取所述图像采集设备拍摄的多个测试图像;针对每个所述测试图像,确定所述测试图像中每个测试参照物在图像坐标系中的测试像素坐标;基于所述测试像素坐标和所述单应性矩阵,确定所述测试参照物在所述世界坐标系中的测试世界坐标;基于多个所述测试图像中所述测试参照物的真实世界坐标和所述测试世界坐标,确定所述单应性矩阵的准确度。
- 一种位置确定方法,其特征在于,包括:获取图像采集设备拍摄目标物后得到的目标图像;基于所述目标图像,确定所述目标物在图像坐标系下的像素坐标;基于所述像素坐标和所述图像采集设备的单应性矩阵,确定所述目标物在世界坐标系下的世界坐标,所述图像采集设备的单应性矩阵采用权利要求1-6任一所述的标定方法确定。
- 根据权利要求7所述的位置确定方法,其特征在于,确定所述目标物在世界坐标系下的世界坐标之后,所述位置确定方法还包括:基于所述目标物在世界坐标系下的世界坐标以及所述世界坐标系中的预设位置点的坐标,确定所述目标物与所述预设位置点之间的距离。
- 一种标定装置,其特征在于,包括:图像获取模块,用于获取图像采集设备拍摄的样本图像;第一确定模块,用于基于所述样本图像,确定所述样本图像中多个样本参照物在图像坐标系中的初始像素坐标;坐标修正模块,用于基于确定的每个样本参照物在图像坐标系中的初始像素坐标,对位于同一条直线上的所述样本参照物进行直线拟合,并基于拟合的直线对参与拟合的初始像素坐标进行修正,得到修正像素坐标;第二确定模块,用于基于所述样本图像中的每个样本参照物在世界坐标系下的世界坐标、以及得到的修正像素坐标,确定所述图像采集设备的单应性矩阵。
- 根据权利要求9所述的标定装置,其特征在于,所述坐标修正模块用于:基于确定的每个样本参照物在图像坐标系中的初始像素坐标,对位于沿第一方向的直线上的样本参照物分别进行直线拟合,得到多条第一直线;基于多条第一直线,对每个样本参照物在图像坐标系中的初始像素坐标进行修正,得到中间像素坐标;并基于每个样本参照物的中间像素坐标,对位于沿第二方向上的直线上的样本参照物分别进行直线拟合,得到多条第二直线,其中,沿第一方向上的直线与沿第二方向上的直线相交;基于多条所述第一直线和多条所述第二直线,得到所述修正像素坐标。
- 根据权利要求10所述的标定装置,其特征在于,所述初始像素坐标包括初始第一坐标值和初始第二坐标值,所述初始第一坐标值对应的第一坐标轴与所述初始第二坐标值对应的第二坐标轴相互垂直;所述坐标修正模块在用于基于多条第一直线,对每个样本参照物在图像坐标系中的初始像素坐标进行修正,得到中间像素坐标时,包括:将每个样本参照物的初始像素坐标中的初始第一坐标值,代入该样本参照物所在的所述第一直线的直线方程,得到中间第二坐标值;一个样本参照物的中间像素坐标包括该样本参照物的初始第一坐标值和中间第二坐标值;所述坐标修正模块在用于基于每个样本参照物的中间像素坐标,对位于沿第二方向上 的直线上的样本参照物分别进行直线拟合,得到多条第二直线时,包括:基于每个样本参照物的中间像素坐标中的初始第一坐标值和中间第二坐标值,对位于沿第二方向的直线上的所述样本参照物进行第直线拟合,得到多条第二直线。
- 根据权利要求10或11所述的标定装置,其特征在于,所述坐标修正模块在用于基于多条所述第一直线和多条所述第二直线,得到所述修正像素坐标时,包括:将多条所述第一直线和多条所述第二直线的交点对应的像素坐标,作为所述修正像素坐标。
- 根据权利要求11所述的标定装置,其特征在于,所述第一坐标轴为图像坐标系中的横坐标轴,所述第二坐标轴为图像坐标系中的纵坐标轴;或者,所述第一坐标轴为图像坐标系中的纵坐标轴,所述第二坐标轴为图像坐标系中的横坐标轴。
- 根据权利要求9所述的标定装置,其特征在于,所述第二确定模块在确定所述图像采集设备的单应性矩阵之后,还用于:获取所述图像采集设备拍摄的多个测试图像;针对每个所述测试图像,确定所述测试图像中每个测试参照物在图像坐标系中的测试像素坐标;基于所述测试像素坐标和所述单应性矩阵,确定所述测试参照物在所述世界坐标系中的测试世界坐标;基于多个所述测试图像中所述测试参照物的真实世界坐标和所述测试世界坐标,确定所述单应性矩阵的准确度。
- 一种位置确定装置,其特征在于,包括:图像获取模块,用于获取图像采集设备拍摄目标物后得到的目标图像;第一确定模块,用于基于所述目标图像,确定所述目标物在图像坐标系下的像素坐标;第二确定模块,用于基于所述像素坐标和所述图像采集设备的单应性矩阵,确定所述目标物在世界坐标系下的世界坐标,所述图像采集设备的单应性矩阵采用权利要求1-6任一所述的标定方法确定。
- 根据权利要求15所述的位置确定装置,其特征在于,确定所述目标物在世界坐标系下的世界坐标之后,所述第二确定模块还用于:基于所述目标物在世界坐标系下的世界坐标以及所述世界坐标系中的预设位置点的坐标,确定所述目标物与所述预设位置点之间的距离。
- 一种电子设备,其特征在于,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如权利要求1至6任一所述方法的步骤,或者,以执行如权利要求7或8所述方法的步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如权利要求1至6任一所述方法的步骤,或者,以执行如权利要求7或8所述方法的步骤。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括程序指令,所述程序指令被处理器运行时该处理器执行如权利要求1至6任一所述方法的步骤,或者,以执行如权利要求7或8所述方法的步骤。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020217024741A KR20210116507A (ko) | 2020-03-13 | 2020-12-31 | 교정 방법, 위치 확정 방법, 장치, 전자 디바이스 및 저장매체 |
SG11202111469TA SG11202111469TA (en) | 2020-03-13 | 2020-12-31 | Calibration method and apparatus, location determination method and apparatus, electronic device, and storage medium |
JP2021546384A JP2022528301A (ja) | 2020-03-13 | 2020-12-31 | キャリブレーション方法、位置確定方法、装置、電子機器及び記憶媒体 |
US17/502,387 US20220036587A1 (en) | 2020-03-13 | 2021-10-15 | Calibration method, electronic device, and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010175090.3 | 2020-03-13 | ||
CN202010175090.3A CN111380502B (zh) | 2020-03-13 | 2020-03-13 | 标定方法、位置确定方法、装置、电子设备及存储介质 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/502,387 Continuation US20220036587A1 (en) | 2020-03-13 | 2021-10-15 | Calibration method, electronic device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021179772A1 true WO2021179772A1 (zh) | 2021-09-16 |
Family
ID=71215336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/142509 WO2021179772A1 (zh) | 2020-03-13 | 2020-12-31 | 标定方法、位置确定方法、装置、电子设备及存储介质 |
Country Status (6)
Country | Link |
---|---|
US (1) | US20220036587A1 (zh) |
JP (1) | JP2022528301A (zh) |
KR (1) | KR20210116507A (zh) |
CN (1) | CN111380502B (zh) |
SG (1) | SG11202111469TA (zh) |
WO (1) | WO2021179772A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114199124A (zh) * | 2021-11-09 | 2022-03-18 | 汕头大学 | 基于线性拟合的坐标标定方法、装置、***及介质 |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111380502B (zh) * | 2020-03-13 | 2022-05-24 | 商汤集团有限公司 | 标定方法、位置确定方法、装置、电子设备及存储介质 |
CN112419423A (zh) * | 2020-10-30 | 2021-02-26 | 上海商汤临港智能科技有限公司 | 一种标定方法、装置、电子设备及存储介质 |
CN112489136B (zh) * | 2020-11-30 | 2024-04-16 | 商汤集团有限公司 | 标定方法、位置确定方法、装置、电子设备及存储介质 |
CN112529968A (zh) * | 2020-12-22 | 2021-03-19 | 上海商汤临港智能科技有限公司 | 摄像设备标定方法、装置、电子设备及存储介质 |
CN113129378A (zh) * | 2021-04-28 | 2021-07-16 | 北京市商汤科技开发有限公司 | 一种定位方法、装置、电子设备及存储介质 |
CN113313772B (zh) * | 2021-07-28 | 2021-10-15 | 浙江华睿科技股份有限公司 | 一种标定方法、装置、电子设备及存储介质 |
CN113643379A (zh) * | 2021-08-05 | 2021-11-12 | 北京的卢深视科技有限公司 | 标定方法、标定装置、交互装置、电子设备及存储介质 |
CN117351077B (zh) * | 2023-09-14 | 2024-07-02 | 广东凯普科技智造有限公司 | 一种点样仪动态预测的视觉修正方法 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894366A (zh) * | 2009-05-21 | 2010-11-24 | 北京中星微电子有限公司 | 一种获取标定参数的方法、装置及一种视频监控*** |
CN103247048A (zh) * | 2013-05-10 | 2013-08-14 | 东南大学 | 一种基于二次曲线与直线的摄像机混合标定方法 |
US20160267661A1 (en) * | 2015-03-10 | 2016-09-15 | Fujitsu Limited | Coordinate-conversion-parameter determination apparatus, coordinate-conversion-parameter determination method, and non-transitory computer readable recording medium having therein program for coordinate-conversion-parameter determination |
CN108805934A (zh) * | 2017-04-28 | 2018-11-13 | 华为技术有限公司 | 一种车载摄像机的外部参数标定方法及装置 |
CN109443209A (zh) * | 2018-12-04 | 2019-03-08 | 四川大学 | 一种基于单应性矩阵的线结构光***标定方法 |
CN111380502A (zh) * | 2020-03-13 | 2020-07-07 | 商汤集团有限公司 | 标定方法、位置确定方法、装置、电子设备及存储介质 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009129001A (ja) * | 2007-11-20 | 2009-06-11 | Sanyo Electric Co Ltd | 運転支援システム、車両、立体物領域推定方法 |
JP6738293B2 (ja) * | 2017-02-23 | 2020-08-12 | Kddi株式会社 | カメラキャリブレーション方法、プログラムおよび装置 |
CN110345875B (zh) * | 2018-04-04 | 2021-04-27 | 灵动科技(北京)有限公司 | 标定及测距方法、装置、电子设备及计算机可读存储介质 |
CN108875657A (zh) * | 2018-06-26 | 2018-11-23 | 北京茵沃汽车科技有限公司 | 一种车道线检测方法 |
CN108986172B (zh) * | 2018-07-25 | 2021-09-07 | 西北工业大学 | 一种面向小景深***的单视图线性摄像机标定方法 |
-
2020
- 2020-03-13 CN CN202010175090.3A patent/CN111380502B/zh active Active
- 2020-12-31 SG SG11202111469TA patent/SG11202111469TA/en unknown
- 2020-12-31 KR KR1020217024741A patent/KR20210116507A/ko active Search and Examination
- 2020-12-31 WO PCT/CN2020/142509 patent/WO2021179772A1/zh active Application Filing
- 2020-12-31 JP JP2021546384A patent/JP2022528301A/ja not_active Ceased
-
2021
- 2021-10-15 US US17/502,387 patent/US20220036587A1/en not_active Abandoned
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894366A (zh) * | 2009-05-21 | 2010-11-24 | 北京中星微电子有限公司 | 一种获取标定参数的方法、装置及一种视频监控*** |
CN103247048A (zh) * | 2013-05-10 | 2013-08-14 | 东南大学 | 一种基于二次曲线与直线的摄像机混合标定方法 |
US20160267661A1 (en) * | 2015-03-10 | 2016-09-15 | Fujitsu Limited | Coordinate-conversion-parameter determination apparatus, coordinate-conversion-parameter determination method, and non-transitory computer readable recording medium having therein program for coordinate-conversion-parameter determination |
CN108805934A (zh) * | 2017-04-28 | 2018-11-13 | 华为技术有限公司 | 一种车载摄像机的外部参数标定方法及装置 |
CN109443209A (zh) * | 2018-12-04 | 2019-03-08 | 四川大学 | 一种基于单应性矩阵的线结构光***标定方法 |
CN111380502A (zh) * | 2020-03-13 | 2020-07-07 | 商汤集团有限公司 | 标定方法、位置确定方法、装置、电子设备及存储介质 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114199124A (zh) * | 2021-11-09 | 2022-03-18 | 汕头大学 | 基于线性拟合的坐标标定方法、装置、***及介质 |
Also Published As
Publication number | Publication date |
---|---|
JP2022528301A (ja) | 2022-06-10 |
SG11202111469TA (en) | 2021-11-29 |
KR20210116507A (ko) | 2021-09-27 |
CN111380502A (zh) | 2020-07-07 |
US20220036587A1 (en) | 2022-02-03 |
CN111380502B (zh) | 2022-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021179772A1 (zh) | 标定方法、位置确定方法、装置、电子设备及存储介质 | |
CN111210468B (zh) | 一种图像深度信息获取方法及装置 | |
CN110111248B (zh) | 一种基于特征点的图像拼接方法、虚拟现实***、照相机 | |
CN109657607B (zh) | 一种基于人脸识别的人脸目标测距方法、装置及存储介质 | |
WO2023011339A1 (zh) | 视线方向追踪方法和装置 | |
CN111932565B (zh) | 一种多靶标识别跟踪解算方法 | |
CN112489136B (zh) | 标定方法、位置确定方法、装置、电子设备及存储介质 | |
CN110443879B (zh) | 一种基于神经网络的透视误差补偿方法 | |
CN110763306B (zh) | 一种基于单目视觉的液位测量***及方法 | |
CN109191374B (zh) | 一种畸变参数测量方法、装置及*** | |
CN108398123B (zh) | 一种全站仪及其度盘标定方法 | |
WO2024011764A1 (zh) | 标定参数确定方法、混合标定板、装置、设备和介质 | |
US10628968B1 (en) | Systems and methods of calibrating a depth-IR image offset | |
CN106408614B (zh) | 适于现场应用的摄像机内参数标校方法和*** | |
CN114360043B (zh) | 模型参数标定方法、视线追踪方法、装置、介质及设备 | |
WO2019127319A1 (zh) | 头戴式显示设备的畸变测量方法及*** | |
CN109308472B (zh) | 一种基于虹膜投影匹配函数的三维视线估计方法 | |
CN110414101B (zh) | 一种仿真场景测量方法、准确性测定方法及*** | |
WO2020224199A1 (zh) | 鱼眼相机标定***、方法、装置、电子设备及存储介质 | |
CN109712198B (zh) | 一种高级驾驶辅助***的标定方法 | |
CN115187612A (zh) | 一种基于机器视觉的平面面积测量方法、装置及*** | |
CN113012238B (zh) | 一种多深度相机快速标定与数据融合的方法 | |
CN111710002B (zh) | 一种基于Optitrack***的相机外参标定方法 | |
CN111998823B (zh) | 基于双目异光源测距装置的目标测距方法 | |
CN112419423A (zh) | 一种标定方法、装置、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
ENP | Entry into the national phase |
Ref document number: 20217024741 Country of ref document: KR Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2021546384 Country of ref document: JP Kind code of ref document: A |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20924724 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20924724 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 28.03.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20924724 Country of ref document: EP Kind code of ref document: A1 |