Method, device and electronic device for determining binocular correction results
By comparing pixel errors of images collected by binocular cameras, the problem of inaccurate naked eye verification is solved, the accuracy and efficiency of binocular correction results are improved, and the accuracy of binocular camera calibration and image matching search efficiency are ensured. .
Patent Information
- Application Number
- CN202110310854.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-03-23
AI Technical Summary
The verification method of binocular correction results in the existing technology relies on naked eye comparison, which cannot accurately identify image differences, resulting in uncertainty in the correction effect.
By obtaining the pixel error of the two images collected by the binocular camera and comparing it with the preset threshold, the accuracy of the correction result is determined. If the conditions are not met, the internal and external parameters are recalibrated until they pass.
It improves the accuracy and efficiency of binocular correction results, ensures the accuracy of calibration parameters of binocular cameras, reduces the amount of calculation and improves the efficiency of image matching search.
Smart Images

Figure CN112907487B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of binocular vision, and in particular to a method, device and electronic equipment for determining binocular correction results. Background Art
[0002] In order to ensure the detection accuracy, the binocular camera needs to be calibrated before use. The calibration mainly includes the internal calibration of the two cameras, the external calibration of the relative position of the two cameras, and the correction calibration. Among them, the binocular correction calibration is to align the two images captured by the binocular camera of the same object from non-coplanar to coplanar to improve the efficiency of matching search.
[0003] At present, the verification of binocular correction results is mainly done by comparing the pixel positions of the same object in the left and right pictures with the naked eye to determine the correction effect. The inventors have found that this verification method is troublesome and cannot accurately verify the correction. Sometimes there are differences between the two pictures, that is, the correction effects are different. If only the naked eye is used to observe, it is difficult to identify this situation. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a method, device and electronic device for determining a binocular correction result, by verifying and optimizing the binocular correction result by the pixel error of the two binocular camera images, so as to ensure the accuracy of the binocular correction result.
[0005] In a first aspect, an embodiment provides a method for determining a binocular correction result, the method comprising:
[0006] Acquire a first image captured by a first camera in a binocular camera and a second image captured by a second camera in the binocular camera for the same target object;
[0007] Determine a pixel error between the first image and the second image, wherein the pixel error is used to characterize the accuracy of a correction result of the binocular camera;
[0008] The pixel error is compared with a pixel error threshold to determine the correction result.
[0009] In an optional implementation manner, the step of comparing the pixel error with a pixel error threshold to determine the correction result includes:
[0010] If the comparison result of the pixel error and the pixel error threshold meets the preset condition, the correction result is verified to be the target result and the internal and external parameters of the binocular camera calibration are determined to be accurate;
[0011] If the comparison result between the pixel error and the pixel error threshold does not meet the preset condition, the correction result verification fails, and it is determined that the internal parameters and / or external parameters of the binocular camera calibration are inaccurate. The internal parameters and external parameters of the binocular camera are recalibrated, and the binocular camera is recalibrated until the correction result verification passes and the optimized target result is obtained.
[0012] In an optional implementation, the first image and the second image are corrected images, and the step of determining a pixel error between the first image and the second image comprises:
[0013] According to the pixel error of each feature point matched in the first image and the second image, an average pixel error of the image collected by the binocular camera for the target object is determined.
[0014] In an optional implementation, the first image and the second image are uncorrected images, and the step of determining a pixel error between the first image and the second image further includes:
[0015] Performing coplanar correction according to row pixels of each feature point that matches between the first image and the second image;
[0016] According to the row pixel error of each feature point matched in the corrected first image and the second image, an average pixel error of the image collected by the binocular camera for the target object is determined.
[0017] In an optional embodiment, the step of determining an average pixel error of an image captured by the binocular camera for the target object according to a pixel error of each feature point matched in the first image and the second image includes:
[0018] Extracting first feature point information corresponding to each first feature point from the first image, and extracting second feature point information corresponding to each second feature point from the second image, wherein the feature point information includes pixel coordinates, pixel values, and feature sub-points;
[0019] Determining, from the second feature points according to the feature sub-points, a third feature point that matches each of the first feature points;
[0020] The pixel error of each of the first feature point and the third feature point is calculated to obtain an average pixel error of the image captured by the binocular camera for the target object.
[0021] In an optional embodiment, before the step of extracting first feature point information corresponding to each first feature point from the first image and extracting second feature point information corresponding to each second feature point from the second image, the step further includes:
[0022] A first feature point is determined in the first image, and a second feature point is determined in the second image.
[0023] In an optional implementation, the step of determining a first feature point in the first image includes:
[0024] Acquire each pixel in the first image;
[0025] Perform feature calculation on each of the pixel points and a plurality of adjacent pixel points to determine a first feature point.
[0026] In an optional embodiment, the feature sub-point is used to characterize feature information of each feature point, and the step of determining a third feature point matching each of the first feature points from the second feature points according to the feature sub-point includes repeatedly performing the following steps until each of the first feature points finds a matching third feature point:
[0027] Matching the feature of the first feature point with the feature of each of the second feature points;
[0028] A third feature point with the smallest feature sub-matching error is determined from the second feature points.
[0029] In a second aspect, an embodiment provides a device for determining a binocular correction result, the device comprising:
[0030] An acquisition module is used to acquire a first image captured by a first camera in a binocular camera and a second image captured by a second camera in the binocular camera for the same target object;
[0031] A first determination module is used to determine a pixel error between the first image and the second image, where the pixel error is used to characterize the accuracy of a correction result of the binocular camera;
[0032] The second determination module compares the pixel error with a pixel error threshold to determine the correction result.
[0033] In a third aspect, an embodiment provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method described in any of the aforementioned implementation methods are implemented.
[0034] In a fourth aspect, an embodiment provides a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the steps of the method described in any one of the aforementioned implementations.
[0035] The embodiments of the present invention provide a method, device and electronic device for determining a binocular correction result. The method obtains the overall pixel error of two binocular camera images and compares them. The accuracy of the binocular correction result is verified according to the comparison result, and the binocular correction result that does not meet the requirements is optimized, so as to determine an accurate binocular correction result.
[0036] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0037] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flow chart of a method for determining a binocular correction result provided by an embodiment of the present invention;
[0040] Figure 2 A functional module diagram of a device for determining a binocular correction result provided by an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of the hardware architecture of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] The inventors have found that the verification of binocular calibration results can not only ensure that the images collected by the two binocular cameras are aligned in the same plane, so as to greatly reduce the amount of calculation in the subsequent search or processing, but also determine the accuracy of the pre-calibrated internal and external parameters. Therefore, it can be seen that it is important to verify the binocular calibration results.
[0044] The current method for verifying binocular correction results is generally to compare the two images by the naked eye, but this verification method is not very accurate. For example, there may be slight differences between the two images, but the naked eye cannot recognize them, which makes it impossible to accurately verify the binocular correction results.
[0045] Based on this, the embodiments of the present invention provide a method, device and electronic device for determining a binocular correction result, which verifies and optimizes the binocular correction result by the pixel error of the two binocular camera images, thereby ensuring the accuracy of the binocular correction result.
[0046] To facilitate understanding of this embodiment, a method for determining a binocular correction result disclosed in an embodiment of the present invention is first introduced in detail. The method can be applied to a control device, which can be integrated into a binocular camera, integrated into a vehicle controller, or independently set.
[0047] Figure 1 A flow chart of a method for determining a binocular correction result provided by an embodiment of the present invention.
[0048] like Figure 1 As shown, the method comprises the following steps:
[0049] Step S102, acquiring a first image captured by a first camera in a binocular camera and a second image captured by a second camera in a binocular camera for the same target object;
[0050] Among them, the binocular camera can be set in front of the currently traveling vehicle to collect objects and vehicles in the direction of the vehicle's travel; the binocular camera can also be set in road facilities, that is, the binocular camera can collect obstacles or vehicles that appear in front of the vehicle during its travel. The first camera and the second camera in the binocular camera can be set at any angle, such as up and down, left and right, etc. The first camera and the second camera can also be called the left camera and the right camera. The first image and the second image both correspond to the same target object, that is, the target object collected by the first camera and the second camera is the same, and then the first image and the second image for the same target object are obtained. It can be understood that the target object may be an obstacle object, an obstacle vehicle, a pedestrian, etc. that appears on the road during the vehicle's travel and may affect the driving safety of the current vehicle. Among them, the target object that causes the impact may include multiple. In the binocular calibration process of this application, it is necessary to use the first camera and the second camera to collect images of any of the same target objects.
[0051] Step S104, determining a pixel error between the first image and the second image, wherein the pixel error is used to characterize the accuracy of a calibration result of the binocular camera;
[0052] Here, after research by the inventor, as an optional embodiment, the calibration result of the binocular camera can be evaluated by the row pixel average error of the first image and the second image as a whole. It should be noted that the calibration of the binocular camera is to calibrate the two images that are not coplanarly aligned to coplanarly aligned, so it can be understood that the pixel error in the embodiment of the present invention refers to the row pixel average error.
[0053] Step S106, comparing the pixel error with a pixel error threshold to determine the correction result.
[0054] In a preferred embodiment of practical application, by obtaining the overall pixel error of the two binocular camera images and comparing them, the accuracy of the binocular correction result is verified according to the comparison result, and the binocular correction result that does not meet the requirements is optimized to determine the accurate binocular correction result.
[0055] In some embodiments, if the first image and the second image are corrected images, step S104 may include:
[0056] Step 1.1), determining an average pixel error of the image captured by the binocular camera for the target object according to the pixel error of each feature point matched in the first image and the second image.
[0057] Here, at this time, it is only necessary to verify the calibrated binocular camera through the pixel error between the first image and the second image. The pixel error here can also be a row pixel error.
[0058] This step 1.1) can also be achieved by the following steps:
[0059] Step 1.1.1), extracting first feature point information corresponding to each first feature point from the first image, and extracting second feature point information corresponding to each second feature point from the second image, wherein the feature point information includes pixel coordinates, pixel values and feature sub-points;
[0060] In some embodiments, before step 1.1.1), the method further includes: determining a first feature point in the first image, and determining a second feature point in the second image.
[0061] Exemplarily, each pixel in the first image is obtained; each pixel is subjected to feature calculation with a plurality of adjacent pixels to determine a first feature point. The feature calculation may include Laplace calculation, gradient calculation, etc. For example, a pixel C in the first image is subjected to feature calculation such as Laplace calculation and gradient calculation with surrounding adjacent pixels, and if the feature calculation result satisfies a preset feature threshold condition, the pixel C is determined as the first feature point.
[0062] The step of determining the second feature point is the same as the process of determining the first feature point, and will not be repeated here.
[0063] As an optional embodiment, the feature points may include corner points, that is, the pixel point C in the first image is subjected to gradient calculation with the surrounding adjacent pixel points, and if the gradient calculation result satisfies the preset feature threshold condition, the pixel point C is determined as the first corner point. At this time, the second corner point is also determined in the second image according to the gradient feature calculation method, and the matching of the corner points in the first image and the second image in the subsequent embodiments is completed according to the feature sub-points corresponding to the corner points.
[0064] Among them, the feature sub-can be used to describe the characteristics of this point through algorithms such as Laplace and gradient. For example, the value of the Histogram of Oriented Gradient (HOG) feature is one of its feature sub-can.
[0065] Step 1.1.2), determining a third feature point matching each of the first feature points from the second feature points according to the feature sub-points;
[0066] In some embodiments, since the first image and the second image are for the same target object, each first feature point on the first image can find a matching second feature point in the second image. Step 1.1.2) includes repeatedly performing the following steps until each first feature point finds a matching third feature point:
[0067] Step 1.1.2.1), matching the feature of the first feature point with the feature of each of the second feature points;
[0068] Step 1.1.2.2), determine the third feature point with the smallest feature sub-matching error from the second feature points, here the third feature point with the closest feature sub-description can be selected.
[0069] Step 1.1.3), calculating the pixel error of each of the first feature point and the third feature point to obtain an average pixel error of the image captured by the binocular camera for the target object.
[0070] For example, the coordinates of the first feature point A in the first image are (1.51, 2), and the coordinates of the second feature point B in the second image that matches the first feature point are (1.7, 10). The pixel error is obtained by calculating the difference between the row pixel values of points A and B. The above row pixel values are floating point values.
[0071] Here, after calculating the row pixel error of each pair of matching feature points, the row pixel errors of all feature point pairs of the first image and the second image as a whole are averaged to obtain the pixel error average of the captured image of the target object by the binocular camera, thereby realizing pixel-level error calculation.
[0072] In some embodiments, at this time, the first image and the second image are uncorrected images. In the embodiment of the present invention, the uncorrected images can be corrected first, and then the correction results can be verified. In the above embodiment, step S104 further includes:
[0073] Step 2.1), performing coplanar correction according to row pixels of each feature point that matches in the first image and the second image;
[0074] Step 2.2), determining an average pixel error of the image captured by the binocular camera for the target object according to the row pixel error of each feature point matched in the corrected first image and the second image.
[0075] In some embodiments, the optimization and verification of the correction result is achieved through step S106, which specifically includes the following steps:
[0076] Step 1.1), if the comparison result between the pixel error and the pixel error threshold satisfies the preset condition, the correction result is verified, and it is determined that the correction result is the target result and the internal and external parameters of the binocular camera calibration are accurate;
[0077] Among them, the pixel error threshold can be selected in the range of 0.5-1.5 pixels, preferably 0.5, 1, and 1.5 pixels. Here, as an optional embodiment, the pixel error is less than the pixel error threshold to meet the preset conditions. Through the embodiment of the present invention, the correction result of the binocular camera can be accurately verified, and the accurate target correction result and the corresponding accurate calibration internal and external parameters can be determined, so that the binocular camera can be subsequently operated, or the image generated by the binocular camera can be used for the operation of subsequent scenes. For example, according to the image, the position of the target object in the image is identified, and accurate position information can be obtained to realize the automatic driving of the vehicle, avoid obstacles, and ensure driving safety.
[0078] Step 1.2), if the comparison result between the pixel error and the pixel error threshold does not meet the preset condition, the correction result verification fails, and it is determined that the internal parameters and / or external parameters of the binocular camera calibration are inaccurate. The internal parameters and external parameters of the binocular camera are recalibrated, and the binocular camera is recalibrated until the correction result verification passes to obtain the optimized target result.
[0079] Here, if it is verified at this time that the correction result does not meet the preset conditions, that is, the correction result is not accurate, the first image and the second image may still be in a non-coplanar row alignment, or the accuracy of the coplanar row alignment is poor. In order to ensure the accuracy of the image captured by the binocular camera and the accurate identification of obstacles in the above-mentioned scene, the intrinsic and extrinsic parameters of the binocular camera are recalibrated at this time, and the correction steps in the aforementioned embodiment are repeated, and the correction result is verified until the correction result is verified.
[0080] It should be noted that when the calibration result in the embodiment of the present invention fails to pass the verification, at least one of the internal and external parameters is inaccurate, but it is impossible to further determine whether the inaccurate one is the internal parameter, the external parameter, or both.
[0081] The embodiment of the present invention can provide a relatively quick and convenient method for determining the binocular correction result, and can optimize and verify the binocular correction result.
[0082] like Figure 2 As shown, the embodiment of the present invention further provides a device 200 for determining a binocular correction result, the device comprising:
[0083] An acquisition module 201 acquires a first image captured by a first camera in a binocular camera and a second image captured by a second camera in a binocular camera for the same target object;
[0084] A first determination module 202 determines a pixel error between the first image and the second image, wherein the pixel error is used to characterize the accuracy of a correction result of the binocular camera;
[0085] The second determination module 203 compares the pixel error with a pixel error threshold to determine the correction result.
[0086] In a preferred embodiment of practical application, by determining the pixel errors of the first image and the second image respectively captured by the two cameras in the binocular camera for the same target object, the calibration effect of the binocular camera can be quickly obtained, so as to decide whether to continue to use the intrinsic and extrinsic parameters calibrated by the binocular camera.
[0087] In an optional embodiment, the second determination module is also used to, if the comparison result of the pixel error and the pixel error threshold meets the preset conditions, then the correction result verification is passed, and it is determined that the correction result is the target result and the internal and external parameters of the binocular camera calibration are accurate; if the comparison result of the pixel error and the pixel error threshold does not meet the preset conditions, then the correction result verification fails, it is determined that the internal and / or external parameters of the binocular camera calibration are inaccurate, the internal and external parameters of the binocular camera are recalibrated, and the binocular camera is recalibrated until the correction result verification is passed to obtain the optimized target result.
[0088] In an optional embodiment, the first image and the second image are corrected images, and the first determination module is further used to determine an average pixel error of the image captured by the binocular camera for the target object based on the pixel error of each feature point matched in the first image and the second image.
[0089] In an optional embodiment, the first image and the second image are uncorrected images, and the first determination module is further used to perform coplanar correction based on row pixels of each feature point that matches in the first image and the second image; and determine the average pixel error of the image captured by the binocular camera for the target object based on the row pixel error of each feature point that matches in the corrected first image and the second image.
[0090] In an optional embodiment, the first determination module is also used to extract first feature point information corresponding to each first feature point from the first image, and to extract second feature point information corresponding to each second feature point from the second image, the feature point information including pixel coordinates, pixel values and feature sub-characters; determine a third feature point matching each first feature point from the second feature points according to the feature sub-characters; calculate the pixel error of each first feature point and the third feature point to obtain an average pixel error of the image captured by the binocular camera for the target object.
[0091] In an optional embodiment, the first determination module is also used to determine the first feature point in the first image and the second feature point in the second image before extracting the first feature point information corresponding to each first feature point from the first image and extracting the second feature point information corresponding to each second feature point from the second image.
[0092] In an optional implementation, the first determination module is further used to obtain each pixel point in the first image; perform feature calculation on each pixel point and a plurality of adjacent pixel points to determine a first feature point.
[0093] In an optional embodiment, the feature sub-item is used to characterize the feature information of each feature point, and the first determination module is also used to repeatedly perform the following steps until each of the first feature points finds a matching third feature point: matching the feature sub-item of the first feature point with the feature sub-item of each of the second feature points; and determining the third feature point with the smallest feature sub-matching error from the second feature points.
[0094] Figure 3 Schematic diagram of the hardware architecture of the electronic device 300 provided in an embodiment of the present invention. Figure 3 As shown, the electronic device 300 includes: a machine-readable storage medium 301 and a processor 302, and may also include a non-volatile storage medium 303, a communication interface 304 and a bus 305; wherein the machine-readable storage medium 301, the processor 302, the non-volatile storage medium 303 and the communication interface 304 complete mutual communication through the bus 305. The processor 302 can execute the method for determining the binocular correction result described in the above embodiment by reading and executing the machine-executable instructions for verifying the binocular correction result in the machine-readable storage medium 301.
[0095] The machine-readable storage medium mentioned in this article can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0096] The non-volatile medium may be a non-volatile memory, a flash memory, a storage drive (such as a hard drive), any type of storage disk (such as a CD, DVD, etc.), or a similar non-volatile storage medium, or a combination thereof.
[0097] It can be understood that the specific operation methods of each functional module in this embodiment can refer to the detailed description of the corresponding steps in the above method embodiment, and will not be repeated here.
[0098] The computer-readable storage medium provided in the embodiment of the present invention stores a computer program. When the computer program code is executed, the method for determining the binocular correction result described in any of the above embodiments can be implemented. For specific implementation, please refer to the method embodiment, which will not be repeated here.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0100] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0101] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0102] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the aforementioned embodiments, those of ordinary skill in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed by the present invention, or can easily conceive of changes, or make equivalent replacements for some of the technical features therein. Such modifications, changes or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the protection scope of the present invention.
Claims
1. A method for determining binocular correction results, It is characterized in that The calibration of the binocular camera is to calibrate the first image and the second image which are not aligned in a coplanar row into coplanar row alignment, and the method comprises: Acquire a first image captured by a first camera in a binocular camera and a second image captured by a second camera in a binocular camera for the same target object; the binocular camera is set in front of a currently traveling vehicle; Determine a pixel error between the first image and the second image, wherein the pixel error is used to characterize the accuracy of a correction result of the binocular camera; Comparing the pixel error with a pixel error threshold to determine the correction result; The step of comparing the pixel error with a pixel error threshold to determine the correction result comprises: If the comparison result of the pixel error and the pixel error threshold meets the preset condition, the correction result is verified to be the target result and the internal and external parameters of the binocular camera calibration are determined to be accurate; If the comparison result between the pixel error and the pixel error threshold does not meet the preset condition, the correction result verification fails, and it is determined that the internal parameters and / or external parameters of the binocular camera calibration are inaccurate, and the internal parameters and external parameters of the binocular camera are recalibrated, and the binocular camera is recalibrated until the correction result verification passes, and the optimized target result is obtained; If the pixel error is less than the pixel error threshold, the correction result of the binocular camera is accurately verified, and an accurate target correction result and corresponding accurate calibration internal and external parameters are determined, so that the binocular camera performs subsequent operations based on the target correction result and the corresponding accurate calibration internal and external parameters, or the image generated by the binocular camera based on the target correction result and the corresponding accurate calibration internal and external parameters is used for subsequent scene operations.
2. The method according to claim 1, It is characterized in that The first image and the second image are corrected images, and the step of determining a pixel error between the first image and the second image comprises: According to the pixel error of each feature point matched in the first image and the second image, an average pixel error of the image collected by the binocular camera for the target object is determined.
3. The method according to claim 1, It is characterized in that The first image and the second image are uncorrected images, and the step of determining a pixel error between the first image and the second image further includes: Performing coplanar correction according to row pixels of each feature point that matches between the first image and the second image; According to the row pixel error of each feature point matched in the corrected first image and the second image, an average pixel error of the image collected by the binocular camera for the target object is determined.
4. The method according to claim 2, It is characterized in that The step of determining an average pixel error of an image captured by the binocular camera for the target object according to a pixel error of each feature point matched in the first image and the second image comprises: Extracting first feature point information corresponding to each first feature point from the first image, and extracting second feature point information corresponding to each second feature point from the second image, wherein the feature point information includes pixel coordinates, pixel values, and feature sub-points; Determining, from the second feature points according to the feature sub-points, a third feature point that matches each of the first feature points; The pixel error of each of the first feature point and the third feature point is calculated to obtain an average pixel error of the image captured by the binocular camera for the target object.
5. The method according to claim 4, It is characterized in that Before the steps of extracting first feature point information corresponding to each first feature point from the first image and extracting second feature point information corresponding to each second feature point from the second image, the method further includes: A first feature point is determined in the first image, and a second feature point is determined in the second image.
6. The method according to claim 5, It is characterized in that The step of determining a first feature point in the first image comprises: Acquire each pixel in the first image; Perform feature calculation on each of the pixel points and a plurality of adjacent pixel points to determine a first feature point.
7. The method according to claim 4, It is characterized in that The feature sub-point is used to characterize feature information of each feature point, and the step of determining a third feature point matching each of the first feature points from the second feature points according to the feature sub-point includes repeatedly performing the following steps until each of the first feature points finds a matching third feature point: Matching the feature of the first feature point with the feature of each of the second feature points; A third feature point with the smallest feature sub-matching error is determined from the second feature points.
8. A device for determining binocular correction results, It is characterized in that The binocular camera is calibrated to calibrate the first image and the second image which are not aligned in a coplanar row into coplanar row alignment, and the device comprises: An acquisition module, which acquires a first image acquired by a first camera in a binocular camera and a second image acquired by a second camera in a binocular camera for the same target object; the binocular camera is arranged in front of a currently traveling vehicle; A first determination module is used to determine a pixel error between the first image and the second image, where the pixel error is used to characterize the accuracy of a correction result of the binocular camera; A second determination module compares the pixel error with a pixel error threshold to determine the correction result; The second determination module is also used for, if the comparison result of the pixel error and the pixel error threshold meets the preset condition, then the correction result verification is passed, and it is determined that the correction result is the target result and the internal and external parameters of the binocular camera calibration are accurate; if the comparison result of the pixel error and the pixel error threshold does not meet the preset condition, then the correction result verification fails, it is determined that the internal and / or external parameters of the binocular camera calibration are inaccurate, the internal and external parameters of the binocular camera are recalibrated, and the binocular camera is recalibrated until the correction result verification is passed to obtain the optimized target result; if the pixel error is less than the pixel error threshold, the correction result of the binocular camera is accurately verified, and an accurate target correction result and corresponding accurate calibration internal and external parameters are determined, so that the binocular camera performs subsequent operations based on the target correction result and the corresponding accurate calibration internal and external parameters, or the image generated by the binocular camera based on the target correction result and the corresponding accurate calibration internal and external parameters is used for the operation of subsequent scenes.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A machine-readable storage medium, It is characterized in that The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the steps of the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Determination method of image correction, terminal, and computer readable storage medium
CN107680059A
Binocular camera self-calibration method and system
CN111862234A
