WO2018228436A1 - 双视角图像校准及图像处理方法、装置、存储介质和电子设备 - Google Patents
双视角图像校准及图像处理方法、装置、存储介质和电子设备 Download PDFInfo
- Publication number
- WO2018228436A1 WO2018228436A1 PCT/CN2018/091085 CN2018091085W WO2018228436A1 WO 2018228436 A1 WO2018228436 A1 WO 2018228436A1 CN 2018091085 W CN2018091085 W CN 2018091085W WO 2018228436 A1 WO2018228436 A1 WO 2018228436A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- pair
- feature point
- information
- optimized
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
-
- 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
- G06T7/85—Stereo camera calibration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/50—Depth or shape recovery
- G06T7/55—Depth or shape recovery from multiple images
- G06T7/593—Depth or shape recovery from multiple images from stereo images
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/20—Image signal generators
- H04N13/204—Image signal generators using stereoscopic image cameras
- H04N13/239—Image signal generators using stereoscopic image cameras using two 2D image sensors having a relative position equal to or related to the interocular distance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/20—Image signal generators
- H04N13/204—Image signal generators using stereoscopic image cameras
- H04N13/246—Calibration of cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/90—Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
-
- 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/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
- G06T2207/10012—Stereo images
Definitions
- the embodiments of the present application relate to computer vision technologies, and in particular, to a dual-view image calibration method, apparatus, storage medium, and electronic device, and an image processing method, apparatus, storage medium, and electronic device.
- Dual-view image calibration is a key step in processing two images of different angles of view (such as two images taken by a dual camera).
- the corresponding pixels on the two images are located on the same horizontal line, which is the processing of image depth of field calculation. Prerequisites.
- the embodiment of the present application provides a dual-view image calibration technical solution and an image processing solution.
- a dual-view image calibration method including: matching a first image pair to obtain a first feature point pair set, where the first image pair includes two different perspectives corresponding to the same scene. Separately capturing two images; acquiring at least a plurality of different first base matrices of the first image pair according to the first set of feature point pairs, and acquiring that the first image pair passes through the first basic matrix Performing first image deformation information of relative deformation before and after mapping transformation; determining a first optimization base matrix from the plurality of first base matrices according to at least the first image deformation information; and calibrating according to the first optimized basic matrix The first image pair is described.
- the acquiring the first image deformation information indicating the relative deformation of the first image before and after performing the mapping transformation on the first basic matrix comprising: pairing the first image according to the first basic matrix The two images are subjected to mapping transformation; and the first image deformation information is acquired according to a distance between corresponding feature points of at least one pair of mappings in each image.
- the point pair subset generates at least two first base matrices.
- the method further includes: determining matching error information of each feature point pair subset; determining the first optimized basic matrix from the plurality of first base matrices according to the first image deformation information
- the method includes: determining, according to the matching error information and the first image deformation information, a first optimized basis matrix from the plurality of first base matrices.
- the matching error information includes: a proportion of feature point pairs in the feature point pair subset that do not satisfy the predetermined matching condition in the feature point pair subset or the first feature point pair set.
- the method further includes: storing or updating the first optimized base matrix.
- the method further includes: storing or updating the first feature point pair to concentrate information of at least one pair of feature point pairs satisfying a predetermined matching condition.
- the ratio of the logarithm of the stored or updated feature point pairs to the total feature point pairs included in the feature point pair set is less than a set threshold.
- the at least one pair of information of the feature point pairs satisfying the predetermined matching condition includes: coordinates of at least one pair of feature point pairs satisfying the predetermined matching condition.
- the method further comprises: calibrating the second image pair according to the first optimized base matrix.
- the method further includes: matching a second image pair to obtain a second feature point pair set; determining mapping cost information according to the second feature point pair set, the mapping cost information including the second image Pairing second image deformation information and/or matching error information of the feature point pair subset; said calibrating the second image pair according to the first optimized base matrix, comprising: satisfying a predetermined threshold condition in response to the mapping cost information, The second image pair is calibrated according to the first optimized base matrix.
- the method further includes: acquiring a second optimized basic matrix corresponding to the second image pair, in response to the mapping cost information not satisfying a predetermined threshold condition; and performing, according to the second optimized basic matrix The two image pairs are calibrated.
- the acquiring the second optimized basic matrix corresponding to the second image pair comprises: matching a second image pair to obtain a second feature point pair set of the second image pair; according to the second a feature point pair set and a stored feature point pair, acquiring a plurality of different second base matrices of the second image pair, and acquiring second image deformation information corresponding to each of the second base matrices; The second image deformation information determines the second optimized basis matrix from the plurality of second base matrices.
- the method further includes: updating the stored first optimized basic matrix by using the second optimized basic matrix; and/or adopting at least one pair of the second feature point set to satisfy a predetermined matching condition.
- the information of the feature point pair updates the stored feature point pair information.
- the method further comprises: capturing an image pair by a device provided with two cameras.
- the device with two cameras includes: a dual camera mobile terminal, a dual camera smart glasses, a dual camera robot, a dual camera drone or a dual camera unmanned vehicle.
- an image processing method comprising: calibrating at least one image pair respectively captured by two different viewing angles corresponding to the same scene by using any one of the foregoing two-view image calibration methods; Applying processing based on the calibrated image pair, including any one or more of the following: three-dimensional reconstruction processing, image blurring processing, depth of field calculation, and augmented reality processing.
- a dual-view image calibration apparatus including: a feature matching module, configured to feature a first image pair to obtain a first feature point pair set, where the first image pair includes Two images obtained by respectively capturing two different perspectives of the same scene; the first acquiring module, configured to acquire, according to the first feature point pair set, a plurality of different first basic matrices of the first image pair And acquiring first image deformation information indicating a relative deformation of the first image pair before and after mapping transformation through the first base matrix; and a first determining module, configured to use at least the plurality of image deformation information from the plurality of Determining a first optimized base matrix in the first base matrix; a first calibration module, configured to calibrate the first image pair according to the first optimized base matrix.
- a feature matching module configured to feature a first image pair to obtain a first feature point pair set, where the first image pair includes Two images obtained by respectively capturing two different perspectives of the same scene
- the first acquiring module configured to acquire, according to the first feature point pair set, a plurality
- the first acquiring module includes a first acquiring unit, configured to perform mapping transformation on two images in the first image pair according to the first basic matrix; and according to at least one pair of mappings in each image
- the first image deformation information is acquired by a distance between corresponding feature points.
- the first obtaining module further includes a second acquiring unit, configured to generate at least two first basic matrices according to the first feature point pair, respectively, by concentrating at least two different feature point pair subsets.
- a second acquiring unit configured to generate at least two first basic matrices according to the first feature point pair, respectively, by concentrating at least two different feature point pair subsets.
- the device further includes a second determining module, configured to determine matching error information of each feature point pair subset; the first determining module is configured to deform according to the matching error information and the first image Information determines a first optimized base matrix from the plurality of first base matrices.
- a second determining module configured to determine matching error information of each feature point pair subset; the first determining module is configured to deform according to the matching error information and the first image Information determines a first optimized base matrix from the plurality of first base matrices.
- the matching error information includes: a proportion of feature point pairs in the feature point pair subset that do not satisfy the predetermined matching condition in the feature point pair subset or the first feature point pair set.
- the apparatus further includes a first storage module, configured to store or update the first optimized base matrix.
- the first storage module is further configured to store or update information that the first feature point pair concentrates at least one pair of feature points that satisfy a predetermined matching condition.
- the ratio of the logarithm of the stored or updated feature point pairs to the total feature point pairs included in the feature point pair set is less than a set threshold.
- the at least one pair of information of the feature point pairs satisfying the predetermined matching condition includes: coordinates of at least one pair of feature point pairs satisfying the predetermined matching condition.
- the apparatus further includes: a second calibration module, configured to calibrate the second image pair according to the first optimized base matrix.
- the apparatus further includes a third determining module, configured to perform feature matching on the second image pair to obtain a second feature point pair set; and determine mapping cost information according to the second feature point pair set, the mapping cost information Include second image deformation information of the second image pair and/or matching error information of the feature point pair subset; the second calibration module is configured to satisfy a predetermined threshold condition in response to the mapping cost information, according to the An optimized base matrix calibrates the second image pair.
- a third determining module configured to perform feature matching on the second image pair to obtain a second feature point pair set; and determine mapping cost information according to the second feature point pair set, the mapping cost information Include second image deformation information of the second image pair and/or matching error information of the feature point pair subset; the second calibration module is configured to satisfy a predetermined threshold condition in response to the mapping cost information, according to the An optimized base matrix calibrates the second image pair.
- the device further includes: a second acquiring module, configured to acquire a second optimized basic matrix corresponding to the second image pair, in response to the mapping cost information not satisfying a predetermined threshold condition; and a third calibration module, And calibrating the second image pair according to the second optimized base matrix.
- a second acquiring module configured to acquire a second optimized basic matrix corresponding to the second image pair, in response to the mapping cost information not satisfying a predetermined threshold condition
- a third calibration module And calibrating the second image pair according to the second optimized base matrix.
- the second acquiring module includes: a feature matching unit, configured to match a second image pair to obtain a second feature point pair set of the second image pair; and a third acquiring unit, configured to a second feature point pair and a stored feature point pair, acquiring a plurality of different second base matrices of the second image pair, and acquiring second image deformation information corresponding to each of the second base matrices; And determining, according to the second image deformation information, the second optimized basis matrix from the plurality of second base matrices.
- the device further includes a second storage module, configured to update the stored first optimized basic matrix by using the second optimized basic matrix; and/or adopting at least one of the second feature point sets
- the stored feature point pair information is updated for the information of the feature point pair satisfying the predetermined matching condition.
- the device further comprises a shooting module for capturing an image pair by means of a device provided with two cameras.
- the device with two cameras includes: a dual camera mobile terminal, a dual camera smart glasses, a dual camera robot, a dual camera drone or a dual camera unmanned vehicle.
- an image processing apparatus is further provided for calibrating at least one image pair respectively captured by two different viewing angles corresponding to the same scene by using any one of the foregoing two-view image calibration methods. And applying processing based on the calibrated image pair, the application processing including any one or more of the following: three-dimensional reconstruction processing, image blurring processing, depth of field calculation, augmented reality processing.
- a computer readable storage medium having stored thereon computer program instructions, wherein the program instructions are executed by a processor to implement any of the foregoing two-view image calibration methods or The steps of the aforementioned image processing method.
- an electronic device including: a processor and a memory; the memory is configured to store at least one executable instruction, the executable instruction causing the processor to perform any of the foregoing An operation corresponding to the item bi-view image calibration method; and/or the executable instruction causes the processor to perform an operation corresponding to the image processing method.
- At least two cameras are further included, and the processor and the at least two cameras complete communication with each other through the communication bus.
- a computer program comprising computer readable code, the processor in the device executing to implement any of the foregoing when the computer readable code is run on a device.
- the first feature pair of the first image pair is obtained by performing feature matching on the first image pair obtained by capturing the same scene at different angles, and according to the first feature point pair. Collecting a plurality of different first basic matrices, and first image deformation information corresponding to each first basic matrix, thereby determining a first optimized basic matrix according to the first image deformation information, and according to the first optimized basic matrix.
- the first image pair is calibrated, and the automatic calibration of the dual-view image pair is realized, which can effectively avoid the calibration error caused by the error of the calibration parameter caused by the displacement of the camera lens due to the collision.
- FIG. 1 is a flow chart showing a two-view image calibration method according to an embodiment of the present application.
- FIG. 2 is a flow chart showing a two-view image calibration method according to another embodiment of the present application.
- FIG. 3 is a view showing a first image of a first image pair according to another embodiment of the present application.
- FIG. 4 is a second image showing a first image pair according to another embodiment of the present application.
- FIG. 5 is a composite image showing a first image pair according to another embodiment of the present application.
- FIG. 6 is a first image showing a calibrated first image pair in accordance with another embodiment of the present application.
- FIG. 7 is a second image showing a calibrated first image pair in accordance with another embodiment of the present application.
- FIG. 8 is a composite image showing a calibrated first image pair in accordance with another embodiment of the present application.
- FIG. 9 is a logic block diagram showing a dual-view image calibration apparatus according to an embodiment of the present application.
- FIG. 10 is a logic block diagram showing a dual-view image calibration apparatus according to another embodiment of the present application.
- FIG. 11 is a schematic structural view showing an electronic device according to an embodiment of the present application.
- FIG. 12 is a schematic structural view showing a dual-camera mobile phone according to an embodiment of the present application.
- Embodiments of the present application can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with numerous other general purpose or special purpose computing system environments or configurations.
- Examples of well-known terminal devices, computing systems, environments, and/or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, and the like include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients Machines, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, small computer systems, mainframe computer systems, and distributed cloud computing technology environments including any of the above, and the like.
- Electronic devices such as terminal devices, computer systems, servers, etc., can be described in the general context of computer system executable instructions (such as program modules) being executed by a computer system.
- program modules may include routines, programs, target programs, components, logic, data structures, and the like that perform particular tasks or implement particular abstract data types.
- the computer system/server can be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communication network.
- program modules may be located on a local or remote computing system storage medium including storage devices.
- FIG. 1 is a flow chart showing a two-view image calibration method according to an embodiment of the present application.
- the feature matches the first image pair to obtain a first feature point pair set.
- the first image pair includes two images respectively captured by two different angles of view corresponding to the same scene.
- the two images included in the first image pair are obtained by the two imaging elements capturing the same scene at the same time based on two different viewing angles, and the two imaging elements may be integrated or separated, for example, by integrating two A camera's dual-camera device (such as a dual-camera) captures the resulting image pair at a time.
- the two images included in the first image pair are obtained by the same camera capturing the same scene at different times based on two different viewing angles.
- feature detection and extraction are performed on two images included in the first image pair, and feature points extracted from the two images are matched to obtain matching features on the two images.
- a set of point pairs as a set of first feature point pairs.
- a convolutional neural network a color histogram, a Histogram of Oriented Gradient (HOG), and a corner detection algorithm (Small univalue segment assimilating nucleus) may be used.
- SUSAN and the like, but is not limited thereto.
- a gray-scale correlation matching In the feature matching of the extracted feature points, a gray-scale correlation matching, a SIFT (Scale-invariant feature transform) algorithm, and a SURF (Speeded-Up Robust Features) algorithm may be used. But it is not limited to this.
- the step S102 may be performed by a processor invoking a corresponding instruction stored in a memory, or may be performed by a feature matching module 402 executed by the processor.
- step S104 a plurality of different first base matrices of the first image pair are acquired according to at least the first feature point pair set, and a first image deformation indicating a relative deformation of the first image pair before and after the first base matrix map transform is acquired. information.
- the fundamental matrix is the geometric relationship between two two-dimensional images obtained from two different viewpoints of the same three-dimensional scene.
- the base matrix may indicate a matching relationship between feature point pairs on two images of the first image pair.
- the base matrix can be a 3 x 3 matrix representing the polar geometry between the first image and the second image.
- the method for acquiring the first basic matrix and the first image deformation information is not limited, and the first first basic matrix can be calculated according to the first feature point pair set of the first image pair, and the corresponding first is calculated.
- the method of image deformation information can be applied to the embodiment to acquire the first image deformation information.
- an 8-point method of linearly calculating a basic matrix, or a RANMAT sample-based random sampling consistency algorithm (RANSAC) may be used to obtain a plurality of different firsts according to the first feature point pair set.
- the base matrix may be used to obtain a plurality of different firsts according to the first feature point pair set.
- the number of corresponding feature point pairs on the image before and after the mapping transformation may be changed for the two images in the first image pair, or the distance between the feature point pairs, etc.
- the degree of deformation of the two images is separately calculated, and then the first image deformation information is comprehensively calculated by weighting, summation, and the like.
- the step S104 may be performed by a processor invoking a corresponding instruction stored in the memory, or may be performed by the first acquisition module 404 being executed by the processor.
- step S106 the first optimized base matrix is determined from the plurality of first base matrices based on at least the first image deformation information.
- the first optimized basic matrix is a first basic matrix that can accurately represent the matching relationship between the first feature point pair and the concentrated feature point pair in the obtained plurality of first base matrices. Determining, according to the first image deformation information, the first optimized basic matrix, which is equivalent to determining the first optimized basic rectangle according to the degree of image deformation, for example, determining that the first basic matrix having a smaller degree of deformation of the first image pair is the first The basic matrix is optimized, thereby improving the accuracy of the acquired first optimized basis matrix.
- the first basic matrix with the smallest degree of relative deformation between the first image pairs is obtained from the plurality of first basic matrices according to the first image deformation information as the first optimized basic matrix.
- the first image deformation information may be combined with the matching error of the first base matrix and the proportion of the feature point pairs satisfying the matching error of the first base matrix to determine the first optimization basis.
- step S106 may be performed by the processor invoking a corresponding instruction stored in the memory, or may be performed by the first determining module 406 being executed by the processor.
- the first image pair is calibrated according to the first optimized base matrix.
- the first optimized basic matrix is decomposed into a first transform matrix and a second transform matrix, and two images in the first image pair are respectively transformed based on the first transform matrix and the second transform matrix, to implement Calibration of the first image pair.
- the matched key point pairs are located on the same horizontal line, and the matched key point pairs of the calibrated first image pair can be located at the same depth, facilitating three-dimensional reconstruction of the first image pair
- image processing operations such as processing, image blurring, depth of field calculation, and augmented reality processing.
- step S108 may be performed by the processor invoking a corresponding instruction stored in the memory or by the first calibration module 408 being executed by the processor.
- the first feature pair of the first image pair is obtained by performing feature matching on the first image pair obtained by capturing the same scene at different angles, and according to the first feature point pair. Collecting a plurality of different first basic matrices, and first image deformation information corresponding to each first basic matrix, thereby determining a first optimized basic matrix according to the first image deformation information, and according to the first optimized basic matrix The first image pair is calibrated to achieve automatic calibration of the dual view image pair.
- the dual-view calibration method of the embodiment can be used to automatically calibrate the image pairs captured by the dual-camera device, which can effectively avoid the calibration error caused by the displacement of the dual-lens lens during use.
- the calibration error moreover, for the dual-camera device, there is no need to set up a complicated double-camera calibration device before leaving the factory, and no special personnel are required to calibrate by shooting the checkerboard image, which reduces the production difficulty of the dual-camera device and improves the production. effectiveness.
- the dual-view image calibration method of this embodiment may be performed by a camera, a processor, or a dual camera device, etc., but it should be apparent to those skilled in the art that in practical applications, any device or process having corresponding image processing and data processing functions
- the dual-view image calibration method of the embodiment of the present application can be performed by referring to the embodiment.
- step S202 the feature matches the first image pair to obtain a first feature point pair set.
- the first image pair includes two images respectively captured by two different angles of view corresponding to the same scene.
- the first image pair may be obtained by two separate cameras or by one device provided with two cameras, or may be obtained by one camera sequentially shooting the same scene at different viewing angles.
- an image pair image taken by a device (dual camera device) provided with two cameras is taken as an example to describe the two-view image calibration method of the present application.
- FIGS. 3 and 4 illustrate a first image and a second image included in a first image pair taken by a dual camera, the two images having the same image body, but the corresponding feature point pairs on the two images are not perfectly aligned.
- the composite image of the first image pair shown in FIG. 5 the boy's head, clothes, shoes, and the like are not aligned.
- acquiring a first image pair captured by the dual camera device performing a feature extraction operation on the first image pair by using a method of image feature extraction, such as a convolutional neural network or a SUSAN algorithm, and
- a method of image feature extraction such as a convolutional neural network or a SUSAN algorithm
- the feature extracted from the two images of the first image pair is feature-matched by a feature matching method such as the SIFT algorithm or the SURF algorithm, and the first feature point pair set of the first image pair is obtained.
- step S202 may be performed by the processor invoking a corresponding instruction stored in the memory or by the feature matching module 502 being executed by the processor.
- step S204 a plurality of first base matrices are generated by concentrating a plurality of different feature point pair subsets according to the first feature point pair.
- the first basic matrix that is, a corresponding first base matrix is separately generated according to each feature point pair subset.
- the feature point pair subset includes a partial feature point pair of the first feature point pair set, and the selected plurality of feature point pair subsets include feature point pairs that are not completely identical, that is, the plurality of feature point pair subsets include features Point pairs can be completely different or partially identical.
- the step S204 may be performed by a processor invoking a corresponding instruction stored in the memory, or may be performed by the first acquisition module 504 being executed by the processor.
- step S206 matching error information for each subset of feature points is determined.
- the corresponding matching error information is determined according to the first basic matrix corresponding to the subset of each feature point.
- the matching error information includes a proportion of feature point pairs in the feature point pair subset that do not satisfy the matching condition in the feature point pair subset or the first feature point pair set. For example, for each feature point pair subset (or for each first base matrix), the proportion of feature point pairs that do not satisfy the predetermined matching condition in the feature point pair subset or the first feature point pair set is acquired.
- the predetermined matching condition may be that the matching error of the feature point pair in the subset of the feature points is less than a preset matching error threshold.
- the obtained ratio is (PT)/ P.
- t1 (for example, t1 is 0.3) is a matching error threshold, and is used for filtering feature point pairs that can satisfy the matching relationship indicated by the first basic matrix from the feature point pair subset, or filtering out the first basic matrix cannot be satisfied.
- the key pair of the indicated matching relationship By using the ratio as the matching error information of the feature point pair subset, it is possible to determine the number of feature point pairs that the matching relationship indicated by the corresponding first base matrix satisfies, and further determine the accuracy of the first base matrix.
- the matching error information of the feature point pair subset can be regarded as the matching error information of the corresponding first base matrix, and the form of the matching error information is not limited to the above ratio, and can also be used to determine the representation of the first basic matrix. Other forms of accuracy of the matching relationship.
- step S206 may be performed by the processor invoking a corresponding instruction stored in the memory, or may be performed by the second determining module 510 being executed by the processor.
- step S208 the first image pair is mapped and transformed according to the first base matrix.
- the first optimized basic matrix is decomposed into a first transform matrix and a second transform matrix, and two images in the first image pair are respectively mapped and transformed based on the first transform matrix and the second transform matrix.
- the step S208 may be performed by a processor invoking a corresponding instruction stored in the memory, or may be performed by the first acquisition module 504 or the first acquisition unit 5042 executed by the processor.
- step S210 first image deformation information is acquired according to a distance between at least one pair of corresponding feature points before and after mapping in each image.
- the first distance and the second distance may be, but are not limited to, an Euclidean distance.
- the first vertex may include four vertices (0, 0), (0, h-1), (w-1, 0), (w-1, h-1) of the first image
- the first distance may be The average distance D1 between the four vertices and the corresponding mapping points
- the second distance may be an average distance D2 between the four vertices on the second image and the corresponding mapping points
- the information can be ⁇ (D1+D2), where ⁇ is a weight constant.
- the step S210 may be performed by a processor invoking a corresponding instruction stored in the memory, or may be performed by the first obtaining module 504 or the first acquiring unit 5042 operated by the processor.
- a first optimized basis matrix is determined from the plurality of first base matrices based on the matching error information and the first image deformation information.
- a first basic matrix having a small matching error and/or a small image deformation is selected from the plurality of first basic matrices as the first optimized basic matrix.
- the first image deformation information is preferentially selected, and the first basic matrix with the smallest image distortion is selected as the first optimized basic matrix, which is equivalent to determining the first optimized basic matrix based only on the first image deformation information;
- the number of the first basic matrices is at least two, and the first matching basic matrix is selected from which the matching error is the smallest according to the matching error information.
- the first optimization base matrix is selected in consideration of two factors.
- a mapping cost score cost (P-T)/P+ ⁇ (D1+D2)
- a first optimization basis matrix with a minimum mapping cost score cost is selected from a plurality of first basic matrices.
- the first item of cost is an alternative representation (P-T)/P of matching error information
- the second item is an alternative expression ⁇ (D1+D2) of image deformation information. It should be understood that the above is merely an example, and the matching error information and the image deformation information are not limited to the above expression.
- step S212 may be performed by the processor invoking a corresponding instruction stored in the memory, or may be performed by the first determining module 506 being executed by the processor.
- the first image pair is calibrated according to the first optimized base matrix.
- the first optimal matching matrix is decomposed into a first transformation matrix and a second transformation matrix, and the first image of the first image pair respectively shown in FIGS. 3 and 4 is based on the first transformation matrix and the second transformation matrix, respectively.
- the map is transformed with the second image, and the transformed image can refer to the calibrated first image and the second image shown in FIGS. 6 and 7, respectively.
- FIG. 8 after combining the transformed first image and the second image, it may be determined that the feature points on the transformed first image and the second image are substantially on the same horizontal line, for example, the merged image shown in FIG. The boy’s head, clothes and shoes are aligned.
- the first image pair shown in FIG. 3 and FIG. 4 can be used as an input, and the above steps S202 to S214 are performed, and the processing is performed through feature matching, calculating a basic matrix, determining an optimized basic matrix, and calibration, and outputting FIG. 6 And the calibrated first image pair shown in FIG.
- step S214 may be performed by the processor invoking a corresponding instruction stored in the memory or by the first calibration module 508 being executed by the processor.
- the first optimization base matrix is stored or updated.
- the first optimized basic matrix is stored, which can be used to calibrate other image pairs captured by the same imaging device.
- the stored first optimized basic matrix is updated by the first optimized basic matrix determined this time.
- the first feature point pair is stored or updated to collect information of at least one pair of feature points that satisfy a predetermined matching condition. If a feature point pair is previously stored, the stored feature point pair is updated.
- the matching information of the feature point pairs satisfying the predetermined matching condition is consistent with the basic attributes of the imaging device that captures the image pair, and may be based on the feature point pairs of other image pairs when calibrating other image pairs captured by the same imaging device.
- other image pairs may be calibrated according to the stored information of the feature point pairs, that is, the other image pairs are calibrated by incremental calibration.
- the information of the stored feature point pairs includes at least, but not limited to, coordinates of the feature point pairs, so as to calculate a corresponding basic matrix according to the stored feature point pairs.
- the ratio of the logarithm of the stored or updated feature point pairs to the total feature point pairs included in the feature point pair set is less than a set threshold. In other words, limit the number of feature point pairs stored each time to avoid taking up too much storage space.
- the total number of stored feature point pairs may also be limited. When the total number of stored feature point pairs reaches a set number, some previously stored partial feature point pairs are deleted, for example, the partial feature point pairs whose storage time is the earliest is deleted, or Delete some feature point pairs whose coordinates coincide.
- step S216 may be performed by a processor invoking a corresponding instruction stored in the memory, or may be performed by the first storage module 512 being executed by the processor.
- step S2128 the feature matches the second image pair to obtain a second feature point pair set, and the mapping cost information is determined according to the second feature point pair set.
- the mapping cost information includes second image deformation information of the second image pair and/or matching error information of the feature point pair subset.
- the second image pair and the first image pair are two image pairs captured by the same camera, and the second image pair and the first image pair may be two image pairs obtained by shooting at different times and different scenes.
- the feature matches the second image pair to obtain the second feature point pair set.
- the second image deformation information of the second image pair and/or the matching error information of the feature point pair subset are acquired according to the second image pair set.
- the error information, the second item is the second image deformation information of the second image pair. It is explained here that the alternative way of mapping the cost information is not limited to the above-described mapping cost score.
- step S218 may be performed by a processor invoking a corresponding instruction stored in the memory, or may be performed by a third determining module 514 being executed by the processor.
- step S220 it is judged whether or not the mapping cost information satisfies a predetermined threshold condition.
- step S222 is performed; if the mapping cost information does not satisfy the predetermined threshold condition, step S224 is performed.
- the predetermined matching condition may be used to determine whether the matching relationship indicated by the first optimized basic matrix can accurately reflect the matching relationship between the feature point pairs of the second image pair, thereby determining to calibrate the second image pair by using the first optimized basic matrix. Or recalculate the second optimized base matrix to calibrate the second image pair.
- the mapping cost information is the mapping cost score cost
- the second item of cost is image deformation information ⁇ (D1+D2), and (D1+D2) is used to measure images of two images in the second image pair.
- the degree of deformation generally cannot exceed 10% of the diagonal length of the image; ⁇ can be the reciprocal of the diagonal length of any one of the second image pairs, that is, the mapping cost fraction cost is less than 0.2, which can be preset
- the score threshold is 0.2, and the corresponding predetermined threshold condition may be that the mapping cost score is less than 0.2.
- step S220 may be performed by a processor invoking a corresponding instruction stored in the memory, or may be performed by a third determining module 514 being executed by the processor.
- the second image pair is calibrated according to the first optimized base matrix.
- the second image pair is calibrated according to the stored first optimized base matrix in response to the mapping cost information satisfying the predetermined threshold condition.
- the alternative manner refer to the manner of calibrating the first image pair in the foregoing step S214.
- step S222 can be performed by the processor invoking a corresponding instruction stored in the memory or by the second calibration module 516 being executed by the processor.
- step S224 a second optimized basic matrix corresponding to the second image pair is acquired, and the second image pair is calibrated according to the second optimized basic matrix.
- mapping cost information not satisfying the predetermined threshold condition, acquiring a second optimized basis matrix corresponding to the second image pair, and calibrating the second image pair according to the second optimized basis matrix.
- the feature matches the second image pair to obtain the second feature point pair set of the second image pair, and obtains the feature point pair according to the second feature point pair set and the stored feature point pair.
- a plurality of different second basic matrices of the second image pair and acquiring second image deformation information corresponding to each of the second basic matrices, and determining a second optimized basic matrix from the plurality of second basic matrices based on at least the second image deformation information And calibrating according to the determined second optimized basic matrix second image pair.
- matching error information of the feature point pair subset of the second image pair may also be acquired to determine the second optimized basic matrix in combination with the second image deformation information.
- the step S224 may be performed by a processor invoking a corresponding instruction stored in the memory, or may be performed by a second acquisition module 518 and a third calibration module 520 that are executed by the processor.
- the above is a dual-view image calibration method of the present embodiment.
- the method can be used to calibrate an image pair taken by a dual-camera device (a device with two cameras), or can sequentially shoot the same image for an ordinary photographic device.
- the two-view image of the scene is calibrated.
- the method may be performed to calibrate the captured image pair during later image processing, or may be performed during the process of capturing the image pair and generating the image pair.
- the method is performed to calibrate the acquired image pair to directly generate the calibrated image pair, so that the dual camera device can be bound to other application processing, thereby improving image processing efficiency.
- the dual camera device includes, but is not limited to, a dual camera mobile terminal, a dual camera smart glasses, a dual camera robot, a dual camera drone or a dual camera unmanned vehicle.
- a dual-camera mobile terminal (such as a dual-camera mobile phone) performs the method in the process of capturing an image pair, directly obtaining the calibrated image pair, and also conveniently performing direct depth-of-field calculation and image imaginary on the obtained calibrated image pair. Processing and so on.
- the dual-camera performs the method in the process of capturing an image pair, and generates a calibrated image pair, which is convenient for directly obtaining information from the calibrated image pair for stereo matching, three-dimensional scene reconstruction, etc., and can be efficiently Get a stereo vision system.
- the dual-view calibration method of the embodiment can perform automatic calibration on the image pair captured by the dual-camera device, and can effectively avoid the calibration error caused by the calibration error caused by the movement of the dual-lens lens during use;
- the camera equipment eliminates the need for complicated double-shot calibration equipment before leaving the factory, which reduces the production difficulty of the double-camera equipment and improves the production efficiency.
- the first feature pair of the first image pair is obtained by performing feature matching on the first image pair obtained by capturing the same scene at different angles, and according to the first feature point pair.
- the optimized basic matrix of the pair is used to incrementally calibrate the second image pair to ensure accuracy and improve processing efficiency.
- the dual-view image calibration method of this embodiment may be performed by a camera, a processor, or a dual camera device, etc., but it should be apparent to those skilled in the art that in practical applications, any device or process having corresponding image processing and data processing functions
- the dual-view image calibration method of the embodiment of the present application can be performed by referring to the embodiment.
- the embodiment provides an image processing method, and uses the dual-view image calibration method in the first embodiment or the second embodiment to calibrate at least one image pair respectively captured by two different viewing angles corresponding to the same scene, and The calibrated image pair is applied.
- the application processing may include, for example but not limited to, any one or more of the following: three-dimensional reconstruction processing, image blurring processing, depth of field calculation, augmented reality processing, and the like.
- the image processing method of the present embodiment can be performed by an image capturing apparatus, and the captured image pairs are processed in real time to improve image processing efficiency.
- the captured image pairs are calibrated so that the pair of matching feature points are located at the same depth, which facilitates online depth of field calculation of the image pair, thereby enabling online image imaginary
- the processing is performed to generate an image with a blurring effect, or an online stereo matching, a three-dimensional reconstruction, an enhanced display, and the like are performed to obtain a three-dimensional stereoscopic image.
- the image processing method of this embodiment can also perform post-processing on the dual-view image pair of the input image processing program by the processor calling the image processing instruction or the program execution.
- the processor calling the image processing instruction or the program execution.
- it is convenient to perform depth of field calculation on the calibrated image pair, and further image processing can be performed according to the calculated depth information; and, it can also be set in the image processing program.
- the human-computer interaction item is convenient for the user to select an item for image processing, increase the operability of image processing, and improve the user experience.
- any of the two-view image calibration methods or image processing methods provided by the embodiments of the present application may be performed by any suitable device having data processing capabilities, including but not limited to: a terminal device, a server, and the like.
- any of the dual-view image calibration methods or image processing methods provided by the embodiments of the present application may be executed by a processor, such as the processor executing any of the dual perspectives mentioned in the embodiments of the present application by calling corresponding instructions stored in the memory.
- Image calibration method or image processing method This will not be repeated below.
- the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
- the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
- the dual-view image calibration apparatus of the present embodiment includes: a feature matching module 402, configured to match a first image pair to obtain a first feature point pair set, where the first image pair includes two corresponding to the same scene.
- the first obtaining module 404 is configured to acquire a plurality of different first basic matrices of the first image pair according to the first set of feature point pairs, and acquire a representation Determining, by the first image, the first image deformation information of the relative deformation before and after the mapping transformation by the first base matrix; the first determining module 406, configured to, according to the first image deformation information, the plurality of first basic matrixes Determining a first optimization base matrix; a first calibration module 408, configured to calibrate the first image pair according to the first optimized base matrix.
- the dual-view image calibration device of the present embodiment can be used to implement the corresponding dual-view image calibration method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
- FIG. 10 is a logic block diagram showing a two-view image calibration apparatus according to another embodiment of the present application.
- the dual-view image calibration apparatus of the present embodiment includes: a feature matching module 502, configured to match a first image pair to obtain a first feature point pair set, where the first image pair includes two corresponding to the same scene.
- the first obtaining module 504 is configured to acquire a plurality of different first base matrices of the first image pair according to the first set of feature point pairs, and acquire an indication Determining, by the first image, the first image deformation information of the relative deformation before and after the mapping transformation by the first base matrix; the first determining module 506, configured to use the plurality of first basic matrix according to the first image deformation information Determining a first optimization base matrix; a first calibration module 508, configured to calibrate the first image pair according to the first optimized base matrix.
- the first obtaining module 504 includes a first acquiring unit 5042, configured to perform mapping transformation on two images in the first image pair according to the first basic matrix; and according to at least one pair of mappings in each image
- the first image deformation information is acquired by a distance between corresponding feature points.
- the first obtaining module 504 further includes a second obtaining unit 5044, configured to generate at least two first basic matrices according to the first feature point pair, respectively, by collecting at least two different feature point pair subsets.
- a second obtaining unit 5044 configured to generate at least two first basic matrices according to the first feature point pair, respectively, by collecting at least two different feature point pair subsets.
- the device further includes a second determining module 510, configured to determine matching error information of each feature point pair subset; the first determining module 506 is configured to perform deformation according to the matching error information and the first image Information determines a first optimized base matrix from the plurality of first base matrices.
- a second determining module 510 configured to determine matching error information of each feature point pair subset
- the first determining module 506 is configured to perform deformation according to the matching error information
- the first image Information determines a first optimized base matrix from the plurality of first base matrices.
- the matching error information includes: a proportion of feature point pairs in the feature point pair subset that do not satisfy the predetermined matching condition in the feature point pair subset or the first feature point pair set.
- the device further includes a first storage module 512, configured to store or update the first optimized basic matrix.
- the first storage module 512 is further configured to store or update information that the first feature point pair concentrates at least one pair of feature points that satisfy a predetermined matching condition.
- the ratio of the logarithm of the stored or updated feature point pairs to the total feature point pairs included in the feature point pair set is less than a set threshold.
- the at least one pair of information of the feature point pairs satisfying the predetermined matching condition includes: coordinates of at least one pair of feature point pairs satisfying the predetermined matching condition.
- the apparatus further includes: a second calibration module 516, configured to calibrate the second image pair according to the first optimized base matrix.
- the apparatus further includes a third determining module 514, configured to perform feature matching on the second image pair to obtain a second feature point pair set; and determine mapping cost information according to the second feature point pair set, the mapping cost The information includes second image deformation information of the second image pair and/or matching error information of the subset of feature points; the second calibration module 516 is configured to satisfy a predetermined threshold condition in response to the mapping cost information, according to the An optimized base matrix calibrates the second image pair.
- a third determining module 514 configured to perform feature matching on the second image pair to obtain a second feature point pair set; and determine mapping cost information according to the second feature point pair set, the mapping cost The information includes second image deformation information of the second image pair and/or matching error information of the subset of feature points; the second calibration module 516 is configured to satisfy a predetermined threshold condition in response to the mapping cost information, according to the An optimized base matrix calibrates the second image pair.
- the device further includes: a second obtaining module 518, configured to acquire a second optimized basic matrix corresponding to the second image pair, in response to the mapping cost information not satisfying a predetermined threshold condition; and a third calibration module 520. calibrate the second image pair according to the second optimized basic matrix.
- a second obtaining module 518 configured to acquire a second optimized basic matrix corresponding to the second image pair, in response to the mapping cost information not satisfying a predetermined threshold condition
- a third calibration module 520 calibrate the second image pair according to the second optimized basic matrix.
- the second obtaining module 518 includes: a feature matching unit (not shown) for matching the second image pair to obtain the second feature point pair set of the second image pair; and the third acquiring unit (not shown in the figure), configured to acquire a plurality of different second basic matrices of the second image pair according to the second feature point pair set and stored feature point pairs, and acquire each of the second a second image deformation information corresponding to the base matrix; a determining unit (not shown) for determining the second optimized base matrix from the plurality of second base matrices based on at least the second image deformation information.
- the device further includes a second storage module 522, configured to update the stored first optimized basic matrix by using the second optimized basic matrix; and/or, using the second feature point set to at least A pair of information of the feature point pairs satisfying the predetermined matching condition updates the stored feature point pair information.
- a second storage module 522 configured to update the stored first optimized basic matrix by using the second optimized basic matrix; and/or, using the second feature point set to at least A pair of information of the feature point pairs satisfying the predetermined matching condition updates the stored feature point pair information.
- the apparatus further includes a photographing module (not shown) for taking an image pair by means of a device provided with two cameras.
- a photographing module (not shown) for taking an image pair by means of a device provided with two cameras.
- the device with two cameras may include, but is not limited to, a dual camera mobile terminal, a dual camera smart glasses, a dual camera robot, a dual camera drone or a dual camera unmanned vehicle.
- the dual-view image calibration device of the present embodiment can be used to implement the corresponding dual-view image calibration method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
- the embodiment of the present application further provides an image processing apparatus for performing at least one image pair respectively captured by two different viewing angles corresponding to the same scene by using the dual-view image calibration method of the first embodiment or the second embodiment.
- Calibration; applying processing based on the calibrated image pair which may include, but is not limited to, any one or more of the following: three-dimensional reconstruction processing, image blurring processing, depth of field calculation, augmented reality processing, and the like.
- the image processing apparatus of this embodiment may include the dual-view image calibration apparatus of any of the foregoing embodiments.
- the image processing apparatus of the present embodiment can be used to implement the image processing method of the foregoing embodiment, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
- the embodiment of the present application further provides an electronic device, such as a mobile terminal, a personal computer (PC), a tablet computer, a server, and the like.
- electronic device 700 includes one or more first processors, first communication elements, etc., such as one or more central processing units (CPUs) 701, and / or one or more image processor (GPU) 713 or the like, the first processor may be loaded into the random access memory (RAM) 703 according to executable instructions stored in read only memory (ROM) 702 or from storage portion 708.
- the executable instructions execute various appropriate actions and processes.
- the first read only memory 702 and the random access memory 703 are collectively referred to as a first memory.
- the first communication component includes a communication component 712 and/or a communication interface 709.
- the communication component 712 can include, but is not limited to, a network card, which can include, but is not limited to, an IB (Infiniband) network card
- the communication interface 709 includes a communication interface of a network interface card such as a LAN card, a modem, etc.
- the communication interface 709 is via, for example, the Internet.
- the network performs communication processing.
- the first processor can communicate with read only memory 702 and/or random access memory 703 to execute executable instructions, connect to communication component 712 via first communication bus 704, and communicate with other target devices via communication component 712 to complete
- the operation corresponding to any two-view image calibration method provided by the embodiment of the present application, for example, the feature matching the first image pair to obtain a first feature point pair set, where the first image pair includes two different perspectives corresponding to the same scene.
- RAM 703 various programs and data required for the operation of the device can be stored.
- the CPU 701 or the GPU 713, the ROM 702, and the RAM 703 are connected to each other through the first communication bus 704.
- ROM 702 is an optional module.
- the RAM 703 stores executable instructions or writes executable instructions to the ROM 702 at runtime, the executable instructions causing the first processor to perform operations corresponding to the above-described communication methods.
- An input/output (I/O) interface 705 is also coupled to the first communication bus 704.
- the communication component 712 can be integrated or can be configured to have multiple sub-modules (e.g., multiple IB network cards) and be on a communication bus link.
- the following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker; a storage portion 708 including a hard disk or the like And a communication interface 709 including a network interface card such as a LAN card, modem, or the like.
- Driver 710 is also connected to I/O interface 705 as needed.
- a removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage portion 708 as needed.
- FIG. 11 is only an optional implementation manner.
- the number and type of components in the foregoing FIG. 11 may be selected, deleted, added, or replaced according to actual needs; Different function components can also be implemented in separate settings or integrated settings, such as GPU and CPU detachable settings or GPU can be integrated on the CPU, communication components can be separated, or integrated on the CPU or GPU. ,and many more.
- These alternative embodiments are all within the scope of the present application.
- embodiments of the present application include a computer program product comprising a computer program tangibly embodied on a machine readable medium, the computer program comprising program code for executing the method illustrated in the flowchart, the program code comprising the corresponding execution
- the instruction corresponding to the step of the dual-view image calibration method provided by the embodiment of the present application for example, the feature matching the first image pair to obtain the first feature point pair set, wherein the first image pair includes two different perspectives corresponding to the same scene respectively.
- the program code may include instructions corresponding to the steps of the image processing method provided by the embodiment of the present application.
- the two-view image calibration method of the first embodiment or the second embodiment is used to separately capture two different angles of view corresponding to the same scene.
- the computer program can be downloaded and installed from the network via a communication component, and/or installed from the removable media 711.
- the above-described functions defined in the method of the embodiments of the present application are executed when the computer program is executed by the first processor.
- the electronic device 700 further includes at least two cameras, and the first processor (including the central processing unit CPU 701 and/or the image processor GPU 713) and the at least two cameras complete the mutual side through the first communication bus. Communication.
- the electronic device 700 may be a dual-camera mobile phone integrated with two cameras A as shown in FIG.
- the first processor and the communication bus built in the inside of the dual camera are not shown in FIG.
- the two cameras transmit the captured image to the first processor through the first communication bus, and the first processor can perform the image pair on the dual-view image calibration method in the embodiment of the present application.
- Calibration that is, the dual camera phone can automatically calibrate the captured image pair.
- the electronic device 700 can also be a dual-camera mobile terminal other than a dual-camera mobile phone, or a dual-camera smart glasses, a dual-camera robot, a dual-camera drone, a dual-camera unmanned vehicle, and the like.
- the electronic device 700 further includes at least two cameras, and the second processor (including the central processing unit CPU 701 and/or the image processor GPU 713) and the at least two cameras complete mutual communication through the second communication bus. .
- the electronic device 700 may be a dual-camera mobile phone integrated with two cameras A as shown in FIG.
- the two cameras transmit the captured image to the second processor through the second communication bus, and the second processor can process the image pair by using the image processing method in the embodiment of the present application.
- the image pair after calibration based on the dual-view image calibration method of the embodiment of the present application is directly processed, and the image processing efficiency is high.
- the electronic device 700 can also be a type of dual-camera mobile terminal other than a dual-camera mobile phone, as well as a dual-camera robot, a dual-camera smart glasses, a dual-camera drone or a dual-camera unmanned vehicle. Other dual camera equipment.
- the methods, apparatus, and apparatus of the present application may be implemented in a number of ways.
- the methods, apparatus, and apparatus of the present application can be implemented in software, hardware, firmware, or any combination of software, hardware, and firmware.
- the above-described sequence of steps for the method is for illustrative purposes only, and the steps of the method of the present application are not limited to the order described above unless otherwise specifically stated.
- the present application can also be implemented as a program recorded in a recording medium, the programs including machine readable instructions for implementing the method according to the present application.
- the present application also covers a recording medium storing a program for executing the method according to the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
Claims (38)
- 一种双视角图像校准方法,其特征在于,包括:特征匹配第一图像对以得到第一特征点对集,所述第一图像对包括对应同一场景的二个不同视角分别拍摄而得的二张图像;至少根据所述第一特征点对集获取所述第一图像对的多个不同的第一基础矩阵,以及获取表示所述第一图像对经过第一基础矩阵进行映射变换前后的相对变形的第一图像变形信息;至少根据所述第一图像变形信息从所述多个第一基础矩阵中确定第一优化基础矩阵;根据所述第一优化基础矩阵校准所述第一图像对。
- 根据权利要求1所述的方法,其特征在于,所述获取表示所述第一图像对经过第一基础矩阵进行映射变换前后的相对变形的第一图像变形信息,包括:根据所述第一基础矩阵对所述第一图像对中的二张图像进行映射变换;根据每张图像中至少一对映射前后相应的特征点之间的距离,获取所述第一图像变形信息。
- 根据权利要求1或2所述的方法,其特征在于,所述根据所述第一特征点对集获取所述第一图像对的多个不同的第一基础矩阵,包括:分别根据所述第一特征点对集中至少二个不同的特征点对子集生成至少二个第一基础矩阵。
- 根据权利要求3所述的方法,其特征在于,所述方法还包括:确定每个特征点对子集的匹配误差信息;所述至少根据所述第一图像变形信息从所述多个第一基础矩阵中确定第一优化基础矩阵,包括:根据所述匹配误差信息和所述第一图像变形信息从所述多个第一基础矩阵中确定第一优化基础矩阵。
- 根据权利要求3或4所述的方法,其特征在于,所述匹配误差信息包括:特征点对子集中不满足预定匹配条件的特征点对在特征点对子集或第一特征点对集的占比。
- 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:存储或更新所述第一优化基础矩阵。
- 根据权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:存储或更新所述第一特征点对集中至少一对满足预定匹配条件的特征点对的信息。
- 根据权利要求7所述的方法,其特征在于,所述存储或更新的特征点对的对数相对特征点对集所包括的总特征点对数的占比,小于设定阈值。
- 根据权利要求7或8所述的方法,其特征在于,所述至少一对满足预定匹配条件的特征点对的信息,包括:至少一对满足预定匹配条件的特征点对的坐标。
- 根据权利要求6至9中任一项所述的方法,其特征在于,所述方法还包括:根据所述第一优化基础矩阵校准第二图像对。
- 根据权利要求10所述的方法,其特征在于,所述方法还包括:特征匹配第二图像对以得到第二特征点对集;根据所述第二特征点对集确定映射代价信息,所述映射代价信息包括所述第二图像对的第二图像变形信息和/或特征点对子集的匹配误差信息;所述根据所述第一优化基础矩阵校准第二图像对,包括:响应于所述映射代价信息满足预定门限条件,根据所述第一优化基础矩阵校准所述第二图像对。
- 根据权利要求11所述的方法,其特征在于,所述方法还包括:响应于所述映射代价信息不满足预定门限条件,获取所述第二图像对对应的第二优化基础矩阵;根据所述第二优化基础矩阵对所述第二图像对进行校准。
- 根据权利要求12所述的方法,其特征在于,所述获取所述第二图像对对应的第二优化基础矩阵,包括:特征匹配第二图像对以得到所述第二图像对的第二特征点对集;根据所述第二特征点对集和存储的特征点对,获取所述第二图像对的多个不同的第二基础矩阵,以及获取各所述第二基础矩阵对应的第二图像变形信息;至少根据所述第二图像变形信息从所述多个第二基础矩阵中确定所述第二优化基础矩阵。
- 根据权利要求13所述的方法,其特征在于,所述方法还包括:采用所述第二优化基础矩阵更新已存储的所述第一优化基础矩阵;和/或,采用所述第二特征点集中至少一对满足预定匹配条件的特征点对的信息更新已存储的特征点对信息。
- 根据权利要求1至14中任一项所述的方法,其特征在于,所述方法还包括:通过设有二个摄像头的设备拍摄图像对。
- 根据权利要求15所述的方法,其特征在于,所述带有二个摄像头的设备包括:双摄移动终端、双摄智能眼镜、双摄机器人、双摄无人机或双摄无人车。
- 一种图像处理方法,其特征在于,包括:采用权1至16中任一项所述的双视角图像校准方法对对应同一场景的二个不同视角分别拍摄而得的至少一个图像对进行校准;基于校准后的图像对进行应用处理,所述应用处理包括以下任意一项或多项:三维重建处理、图像虚化处理、景深计算、增强现实处理。
- 一种双视角图像校准装置,其特征在于,包括:特征匹配模块,用于特征匹配第一图像对以得到第一特征点对集,所述第一图像对包括对应同一场景的二个不同视角分别拍摄而得的二张图像;第一获取模块,用于至少根据所述第一特征点对集获取所述第一图像对的多个不同的第一基础矩阵,以及获取表示所述第一图像对经过第一基础矩阵进行映射变换前后的相对变形的第一图像变形信息;第一确定模块,用于至少根据所述第一图像变形信息从所述多个第一基础矩阵中确定第一优化基础矩阵;第一校准模块,用于根据所述第一优化基础矩阵校准所述第一图像对。
- 根据权利要求18所述的装置,其特征在于,所述第一获取模块包括第一获取单元,用于根据所述第一基础矩阵对所述第一图像对中的二张图像进行映射变换;以及根据每张图像中至少一对映射前后相应的特征点之间的距离,获取所述第一图像变形信息。
- 根据权利要求18或19所述的装置,其特征在于,所述第一获取模块还包括第二获取单元,用于分别根据第一特征点对集中至少二个不同的特征点对子集生成至少二个第一基础矩阵。
- 根据权利要求20所述的装置,其特征在于,所述装置还包括第二确定模块,用于确定每个特征点对子集的匹配误差信息;所述第一确定模块用于根据所述匹配误差信息和所述第一图像变形信息从所述多个第一基础矩阵中确定第一优化基础矩阵。
- 根据权利要求20或21所述的装置,其特征在于,所述匹配误差信息包括:特征点对子集中不满足预定匹配条件的特征点对在特征点对子集或第一特征点对集的占比。
- 根据权利要求18至22中任一项所述的装置,其特征在于,所述装置还包括第一存储模块,用于存储或更新所述第一优化基础矩阵。
- 根据权利要求18至23中任一项所述的装置,其特征在于,所述第一存储模块还用于存储或更新所述第一特征点对集中至少一对满足预定匹配条件的特征点对的信息。
- 根据权利要求24所述的装置,其特征在于,所述存储或更新的特征点对的对数相对特征点对集所包括的总特征点对数的占比,小于设定阈值。
- 根据权利要求24或25所述的装置,其特征在于,所述至少一对满足预定匹配条件的特征点对的信息,包括:至少一对满足预定匹配条件的特征点对的坐标。
- 根据权利要求23至26中任一项所述的装置,其特征在于,所述装置还包括:第二校准模块,用于根据所述第一优化基础矩阵校准第二图像对。
- 根据权利要求27所述的装置,其特征在于,所述装置还包括第三确定模块,用于特征匹配第二图像对以得到第二特征点对集;根据所述第二特征点对集确定映射代价信息,所述映射代价信息包括所述第二图像对的第二图像变形信息和/或特征点对子集的匹配误差信息;所述第二校准模块用于响应于所述映射代价信息满足预定门限条件,根据所述第一优化基础矩阵校准所述第二图像对。
- 根据权利要求28所述的装置,其特征在于,所述装置还包括:第二获取模块,用于响应于所述映射代价信息不满足预定门限条件,获取所述第二图像对对应的第二优化基础矩阵;第三校准模块,用于根据所述第二优化基础矩阵对所述第二图像对进行校准。
- 根据权利要求29所述的装置,其特征在于,所述第二获取模块包括:特征匹配单元,用于特征匹配第二图像对以得到所述第二图像对的第二特征点对集;第三获取单元,用于根据所述第二特征点对集和存储的特征点对,获取所述第二图像对的多个不同的第二基础矩阵,以及获取各所述第二基础矩阵对应的第二图像变形信息;确定单元,用于至少根据所述第二图像变形信息从所述多个第二基础矩阵中确定所述第二优化基础矩阵。
- 根据权利要求30所述的装置,其特征在于,所述装置还包括第二存储模块,用于采用所述第二优化基础矩阵更新已存储的所述第一优化基础矩阵;和/或,采用所述第二特征点集中至少一对满足预定匹配条件的特征点对的信息更新已存储的特征点对信息。
- 根据权利要求18至31中任一项所述的装置,其特征在于,所述装置还包括拍摄模块,用于通过设有二个摄像头的设备拍摄图像对。
- 根据权利要求32所述的装置,其特征在于,所述带有二个摄像头的设备包括:双摄移动终端、双摄智能眼镜、双摄机器人、双摄无人机或双摄无人车。
- 一种图像处理装置,其特征在于,用于采用权1至16中任一项任一所述的双视角图像校准方法对对应同一场景的二个不同视角分别拍摄而得的至少一个图像对进行校准;以及基于校准后的图像对进行应用处理,所述应用处理包括以下任意一项或多项:三维重建处理、图像虚化处理、景深计算、增强现实处理。
- 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述程序指令被处理器执行时实现权利要求1至16中任一项所述的双视角图像校准方法或者权利要求17所述的图像处理方法的步骤。
- 一种计算机程序,包括计算机可读代码,其特征在于,当所述计算机可读代码在设备上运行时,所述设备中的处理器执行用于实现权利要求1至16中任一项所述的双视角图像校准方法或者权利要求17所述的图像处理方法中各步骤的指令。
- 一种电子设备,其特征在于,包括:处理器和存储器;所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如权利要求1至16中任一项所述的双视角图像校准方法对应的操作;和/或,所述可执行指令使所述处理器执行如权利要求17所述的图像处理方法对应的操作。
- 根据权利要求37所述的电子设备,其特征在于,还包括至少二个摄像头,所述处理器和所述至少二个摄像头通过所述通信总线完成相互间的通信。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019569277A JP6902122B2 (ja) | 2017-06-14 | 2018-06-13 | ダブル視野角画像較正および画像処理方法、装置、記憶媒体ならびに電子機器 |
SG11201912033WA SG11201912033WA (en) | 2017-06-14 | 2018-06-13 | Dual-view angle image calibration method and apparatus, storage medium and electronic device |
US16/710,033 US11380017B2 (en) | 2017-06-14 | 2019-12-11 | Dual-view angle image calibration method and apparatus, storage medium and electronic device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710448540.X | 2017-06-14 | ||
CN201710448540.XA CN108230395A (zh) | 2017-06-14 | 2017-06-14 | 双视角图像校准及图像处理方法、装置、存储介质和电子设备 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/710,033 Continuation US11380017B2 (en) | 2017-06-14 | 2019-12-11 | Dual-view angle image calibration method and apparatus, storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018228436A1 true WO2018228436A1 (zh) | 2018-12-20 |
Family
ID=62656659
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/091085 WO2018228436A1 (zh) | 2017-06-14 | 2018-06-13 | 双视角图像校准及图像处理方法、装置、存储介质和电子设备 |
Country Status (5)
Country | Link |
---|---|
US (1) | US11380017B2 (zh) |
JP (1) | JP6902122B2 (zh) |
CN (1) | CN108230395A (zh) |
SG (1) | SG11201912033WA (zh) |
WO (1) | WO2018228436A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111798507A (zh) * | 2020-06-03 | 2020-10-20 | 广东电网有限责任公司 | 一种输电线安全距离测量方法、计算机设备和存储介质 |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020024576A1 (zh) * | 2018-08-01 | 2020-02-06 | Oppo广东移动通信有限公司 | 摄像头校准方法和装置、电子设备、计算机可读存储介质 |
CN109040746B (zh) * | 2018-08-01 | 2019-10-25 | Oppo广东移动通信有限公司 | 摄像头校准方法和装置、电子设备、计算机可读存储介质 |
CN109040745B (zh) * | 2018-08-01 | 2019-12-27 | Oppo广东移动通信有限公司 | 摄像头自校准方法和装置、电子设备、计算机存储介质 |
US20210133981A1 (en) * | 2019-10-30 | 2021-05-06 | Allen Institute | Biology driven approach to image segmentation using supervised deep learning-based segmentation |
US11475595B2 (en) * | 2020-03-19 | 2022-10-18 | Sony Corporation | Extrinsic calibration of multi-camera system |
US11232315B2 (en) * | 2020-04-28 | 2022-01-25 | NextVPU (Shanghai) Co., Ltd. | Image depth determining method and living body identification method, circuit, device, and medium |
CN112598751A (zh) * | 2020-12-23 | 2021-04-02 | Oppo(重庆)智能科技有限公司 | 标定方法及装置、终端和存储介质 |
CN112785519B (zh) * | 2021-01-11 | 2024-07-23 | 普联国际有限公司 | 基于全景图的定位误差校准方法、装置、设备及存储介质 |
CN113628283B (zh) * | 2021-08-10 | 2024-05-17 | 地平线征程(杭州)人工智能科技有限公司 | 摄像装置的参数标定方法、装置、介质以及电子设备 |
CN113884099B (zh) * | 2021-12-07 | 2022-04-12 | 智道网联科技(北京)有限公司 | 一种路端移动物体位置测量方法及装置 |
CN114170453A (zh) * | 2021-12-17 | 2022-03-11 | 广州极飞科技股份有限公司 | 同步帧图像确定方法、装置、计算机设备及可读存储介质 |
CN114820314A (zh) * | 2022-04-27 | 2022-07-29 | Oppo广东移动通信有限公司 | 图像处理方法及装置、计算机可读存储介质和电子设备 |
CN115439555A (zh) * | 2022-08-29 | 2022-12-06 | 佛山职业技术学院 | 一种无公共视场多相机外参数标定方法 |
CN118365915B (zh) * | 2024-06-19 | 2024-09-03 | 长春理工大学中山研究院 | 一种基于迭代重加权的非线性基础矩阵估计方法 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104581136A (zh) * | 2013-10-14 | 2015-04-29 | 钰创科技股份有限公司 | 图像校准系统和立体摄像机的校准方法 |
US20150341618A1 (en) * | 2014-05-23 | 2015-11-26 | Leap Motion, Inc. | Calibration of multi-camera devices using reflections thereof |
CN105654459A (zh) * | 2014-11-28 | 2016-06-08 | 深圳超多维光电子有限公司 | 计算场景主体的深度分布方法与装置 |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916454B (zh) | 2010-04-08 | 2013-03-27 | 董洪伟 | 基于网格变形和连续优化的高分辨率人脸重建方法 |
CN102065313B (zh) * | 2010-11-16 | 2012-10-31 | 上海大学 | 平行式相机阵列的未标定多视点图像校正方法 |
JP5768684B2 (ja) * | 2011-11-29 | 2015-08-26 | 富士通株式会社 | ステレオ画像生成装置、ステレオ画像生成方法及びステレオ画像生成用コンピュータプログラム |
JP5901447B2 (ja) * | 2012-06-27 | 2016-04-13 | オリンパス株式会社 | 画像処理装置及びそれを備えた撮像装置、画像処理方法、並びに画像処理プログラム |
CN103345736B (zh) * | 2013-05-28 | 2016-08-31 | 天津大学 | 一种虚拟视点绘制方法 |
US10489912B1 (en) * | 2013-12-20 | 2019-11-26 | Amazon Technologies, Inc. | Automated rectification of stereo cameras |
CN104019799B (zh) * | 2014-05-23 | 2016-01-13 | 北京信息科技大学 | 一种利用局部参数优化计算基础矩阵的相对定向方法 |
CN104316057A (zh) * | 2014-10-31 | 2015-01-28 | 天津工业大学 | 一种无人机视觉导航方法 |
KR102281184B1 (ko) * | 2014-11-20 | 2021-07-23 | 삼성전자주식회사 | 영상 보정 방법 및 장치 |
JP2017059049A (ja) * | 2015-09-17 | 2017-03-23 | キヤノン株式会社 | 画像処理装置およびその制御方法 |
JP6493885B2 (ja) * | 2016-03-15 | 2019-04-03 | 富士フイルム株式会社 | 画像位置合せ装置、画像位置合せ装置の作動方法および画像位置合せプログラム |
CN106204731A (zh) * | 2016-07-18 | 2016-12-07 | 华南理工大学 | 一种基于双目立体视觉系统的多视角三维重建方法 |
-
2017
- 2017-06-14 CN CN201710448540.XA patent/CN108230395A/zh active Pending
-
2018
- 2018-06-13 WO PCT/CN2018/091085 patent/WO2018228436A1/zh active Application Filing
- 2018-06-13 SG SG11201912033WA patent/SG11201912033WA/en unknown
- 2018-06-13 JP JP2019569277A patent/JP6902122B2/ja active Active
-
2019
- 2019-12-11 US US16/710,033 patent/US11380017B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104581136A (zh) * | 2013-10-14 | 2015-04-29 | 钰创科技股份有限公司 | 图像校准系统和立体摄像机的校准方法 |
US20150341618A1 (en) * | 2014-05-23 | 2015-11-26 | Leap Motion, Inc. | Calibration of multi-camera devices using reflections thereof |
CN105654459A (zh) * | 2014-11-28 | 2016-06-08 | 深圳超多维光电子有限公司 | 计算场景主体的深度分布方法与装置 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111798507A (zh) * | 2020-06-03 | 2020-10-20 | 广东电网有限责任公司 | 一种输电线安全距离测量方法、计算机设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
JP6902122B2 (ja) | 2021-07-14 |
JP2020523703A (ja) | 2020-08-06 |
US20200111234A1 (en) | 2020-04-09 |
CN108230395A (zh) | 2018-06-29 |
SG11201912033WA (en) | 2020-01-30 |
US11380017B2 (en) | 2022-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018228436A1 (zh) | 双视角图像校准及图像处理方法、装置、存储介质和电子设备 | |
JP7159057B2 (ja) | 自由視点映像生成方法及び自由視点映像生成システム | |
WO2019149206A1 (zh) | 深度估计方法和装置、电子设备、程序和介质 | |
US10574974B2 (en) | 3-D model generation using multiple cameras | |
JP2020507850A (ja) | 画像内の物体の姿の確定方法、装置、設備及び記憶媒体 | |
CN108492364B (zh) | 用于生成图像生成模型的方法和装置 | |
CN108230384B (zh) | 图像深度计算方法、装置、存储介质和电子设备 | |
Wang et al. | High-fidelity view synthesis for light field imaging with extended pseudo 4DCNN | |
JP2016537901A (ja) | ライトフィールド処理方法 | |
CN113220251B (zh) | 物体显示方法、装置、电子设备及存储介质 | |
CN108388889B (zh) | 用于分析人脸图像的方法和装置 | |
WO2019041660A1 (zh) | 人脸去模糊方法及装置 | |
CN114663686A (zh) | 物体特征点匹配方法及装置、训练方法及装置 | |
CN113379815A (zh) | 基于rgb相机与激光传感器的三维重建方法、装置及服务器 | |
CN111192308B (zh) | 图像处理方法及装置、电子设备和计算机存储介质 | |
CN117788686A (zh) | 一种基于2d影像的三维场景重建方法、装置及电子设备 | |
CN113793392A (zh) | 一种相机参数标定方法及装置 | |
JP2016114445A (ja) | 3次元位置算出装置およびそのプログラム、ならびに、cg合成装置 | |
CN108335329B (zh) | 应用于飞行器中的位置检测方法和装置、飞行器 | |
CN115409949A (zh) | 模型训练方法、视角图像生成方法、装置、设备及介质 | |
Peng et al. | Projective reconstruction with occlusions | |
CN111260544A (zh) | 数据处理方法及装置、电子设备和计算机存储介质 | |
US12051168B2 (en) | Avatar generation based on driving views | |
US20240364996A1 (en) | Characterizing an Undefined Camera Model of a Computing Device Camera | |
US12131423B2 (en) | Analysis apparatus, communication system, non-transitory computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18817652 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2019569277 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
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 1205A DATED 03.08.2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18817652 Country of ref document: EP Kind code of ref document: A1 |