Calibration image screening method, calibration method and related equipment
By automatically screening the image set in the video data, blurry and repeated images are removed, and a clear image set suitable for camera calibration is formed, which solves the problem of low camera calibration efficiency in the existing technology and improves the calibration accuracy and efficiency.
Patent Information
- Application Number
- CN202410887020.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-03
AI Technical Summary
In the existing camera calibration process, multi-camera calibration requires manual screening of clear and effective images frame by frame, which results in long time consumption, low efficiency, and the lack of effective automatic screening methods.
Provides a calibration image screening method that obtains video data, extracts image sets, detects candidate corner points, filters reference corner points, removes blurred and repeated images, and forms a clear and effective image set suitable for camera internal parameter calibration, improving calibration accuracy and efficiency. .
It realizes the automatic acquisition of clear and effective pictures, significantly improves the efficiency and accuracy of camera calibration, reduces manual screening time, and ensures that the image set is suitable for camera internal parameter calibration.
Smart Images

Figure CN118429342B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of camera calibration technology, and in particular to a calibration image screening method, a calibration method and related equipment. Background Art
[0002] Camera calibration is used to establish the correspondence between three-dimensional space points and image points in image measurement.
[0003] In the related technology, Zhang Zhengyou's calibration method uses an algorithm to calculate the camera parameters by shooting a chessboard image, and determines the conversion relationship between three-dimensional space points and pixel points and the distortion coefficient. When shooting, the chessboard image needs to be stabilized, clear pictures need to be taken from multiple angles, and then the camera internal parameters are calculated through the algorithm.
[0004] For the calibration process of multiple cameras, it is necessary to manually screen clear and effective pictures frame by frame for calibration, which leads to the problem of serious time consumption and low calibration efficiency for the entire camera calibration process.
[0005] There is currently no effective technical solution to the above problems. Summary of the invention
[0006] The purpose of this application is to provide a calibration image screening method, a calibration method and related equipment to achieve automatic acquisition of clear and effective pictures to improve the efficiency of camera calibration.
[0007] In a first aspect, the present application provides a calibration image screening method for screening images that can be used for camera calibration from video data, wherein the camera calibration is performed based on a checkerboard calibration plate, and the calibration image screening method comprises the following steps:
[0008] S1, obtaining a captured video containing a checkerboard calibration plate;
[0009] S2, extracting a set of captured images from the captured video;
[0010] S3, obtaining candidate corner points in each image in the captured image set;
[0011] S4, selecting and acquiring a first image set according to the distribution rule of the corner points of the checkerboard calibration plate and determining the reference corner points in each image in the first image set from the candidate corner points, wherein the images in the first image set are the images in the captured image set that include the checkerboard calibration plate;
[0012] S5, removing blurred images in the first image set according to the image variance of the area around the reference corner point to select a second image set;
[0013] S6. Remove duplicate images in the second image set according to the positional relationship of the reference corner points of the edge to screen out a calibration image set.
[0014] The calibration image screening method of the present application sequentially performs incomplete image screening processing, blurred image screening processing, and repeated image screening processing on the captured image set to obtain a calibration image set that ultimately contains complete, clear, non-repetitive and valid pictures, thereby ensuring that the images in the calibration image set are all suitable for the camera's intrinsic parameter calibration, which can effectively improve the calibration accuracy and efficiency.
[0015] The calibration image screening method, wherein the calibration image screening method further comprises a step performed between step S2 and step S3:
[0016] SA. grayscale the images in the captured image set.
[0017] In this example, the present application preferably performs grayscale processing on all images in the captured images before executing step S3, so that these images are converted into grayscale images to reduce the influence of other noise on corner point detection and calculation of image variance.
[0018] The calibration image screening method, wherein step S3 comprises:
[0019] S31. Acquire candidate corner points of each image in the captured image set based on a sliding window and a corner point detection algorithm.
[0020] In this example, the calibration image screening method of the present application detects corner points in the image based on a sliding window, and cooperates with the corresponding corner point detection algorithm to gradually detect the corner points in the image according to the window sliding direction.
[0021] The calibration image screening method, wherein step S5 comprises:
[0022] S51, traversing each image in the first image set and calculating the image variance corresponding to the surrounding area of each reference corner point;
[0023] S52: Remove at least one image whose variance is smaller than a preset variance threshold from the first image set to obtain the second image set.
[0024] The calibration image screening method, wherein step S6 comprises:
[0025] S61, establishing a corner point position list;
[0026] S62, traverse and determine whether the positions of the reference corner points of the edges in the images in the second image set are repeated with the positions of the reference corner points of the edges that have been placed in the corner point position list, and place the positions of the corresponding reference corner points that are not repeated into the corner point position list and remove images with repeated positions from the second image set.
[0027] In the calibration image screening method, the positional relationship of the reference corner points of the edge includes the coordinate distance of the first reference corner point and the coordinate distance of the last reference corner point.
[0028] In a second aspect, the present application further provides a calibration method, which performs camera calibration based on a calibration image set obtained by screening the calibration image screening method provided in the first aspect.
[0029] The calibration method of the present application is used to perform intrinsic parameter calibration of a camera. Based on the calibration image screening method provided in the first aspect, the captured image set is sequentially subjected to incomplete image screening processing, blurred image screening processing, and repeated image screening processing, so as to obtain a calibration image set that ultimately contains complete, clear, and non-repetitive valid images, thereby ensuring that the images in the calibration image set are all suitable for the intrinsic parameter calibration of the camera, so that the calibration method of the present application has the advantages of high calibration accuracy and efficiency.
[0030] In a third aspect, the present application further provides a calibration image screening device for screening images that can be used for camera calibration from video data, wherein the camera calibration is performed based on a checkerboard calibration plate, and the calibration image screening device comprises:
[0031] An acquisition module, used to acquire a captured video containing a checkerboard calibration plate;
[0032] An extraction module, used for extracting a set of captured images from the captured video;
[0033] A corner point detection module, used to obtain candidate corner points in each image in the captured image set;
[0034] A first screening module, configured to screen and obtain a first image set according to a distribution rule of corner points of the checkerboard calibration plate and determine reference corner points in each image in the first image set from candidate corner points, wherein the images in the first image set are images in the captured image set that include the checkerboard calibration plate;
[0035] A second screening module, configured to remove blurred images in the first image set according to the image variance of the area around the reference corner point to screen out a second image set;
[0036] The third screening module is used to remove duplicate images in the second image set according to the positional relationship of the reference corner points of the edge to screen out the calibration image set.
[0037] The calibration image screening device of the present application sequentially performs incomplete image screening processing, blurred image screening processing, and repeated image screening processing on the captured image set to obtain a calibration image set that ultimately contains complete, clear, non-repetitive and valid images, thereby ensuring that the images in the calibration image set are all suitable for the camera's intrinsic parameter calibration, which can effectively improve the calibration accuracy and efficiency.
[0038] In a fourth aspect, the present application also provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the calibration image screening method provided in the first aspect or the steps in the calibration method provided in the second aspect are executed.
[0039] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, runs the steps in the calibration image screening method provided in the first aspect or the calibration method provided in the second aspect.
[0040] From the above, it can be seen that the present application provides a calibration image screening method, a calibration method and related equipment, wherein the calibration image screening method sequentially performs incomplete image screening processing, blurred image screening processing, and repeated image screening processing on the captured image set to obtain a calibration image set that ultimately contains complete, clear, non-repetitive and valid images, ensuring that the images in the calibration image set are all suitable for the camera's intrinsic parameter calibration, which can effectively improve the calibration accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flowchart of a calibration image screening method provided in an embodiment of the present application.
[0042] Figure 2 Schematic diagram of an image containing a clear checkerboard calibration plate.
[0043] Figure 3 Schematic diagram of an image containing a clear checkerboard calibration plate with reference corners marked.
[0044] Figure 4 Schematic diagram of an image containing a blurred checkerboard calibration plate.
[0045] Figure 5 A schematic diagram of the structure of a calibration image screening device provided in an embodiment of the present application.
[0046] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0047] Figure numerals: 301, acquisition module; 302, extraction module; 303, corner point detection module; 304, first screening module; 305, second screening module; 306, third screening module; 401, processor; 402, memory; 403, communication bus. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0049] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0050] First, please refer to Figure 1 Some embodiments of the present application provide a calibration image screening method for screening images that can be used for camera calibration from video data. The camera calibration is performed based on a checkerboard calibration plate. The calibration image screening method includes the following steps:
[0051] S1, obtaining a captured video containing a checkerboard calibration plate;
[0052] S2, extracting a set of captured images from the captured video;
[0053] S3, obtaining candidate corner points in each image in the captured image set;
[0054] S4, selecting and acquiring a first image set according to the distribution rule of the corner points of the checkerboard calibration plate and determining the reference corner points in each image in the first image set from the candidate corner points, wherein the images in the first image set are images in the captured image set that include the checkerboard calibration plate;
[0055] S5, removing blurred images in the first image set according to the image variance of the area around the reference corner point to select the second image set;
[0056] S6. Remove duplicate images in the second image set according to the positional relationship of the reference corner points of the edge to screen out a calibration image set.
[0057] Specifically, the calibration image screening method of the embodiment of the present application is applied to the camera intrinsic parameter calibration. The camera can be mounted on various mobile devices, such as manipulators, mobile robots, drones, etc., so that the corresponding mobile device can obtain the spatial position of the corresponding visual object or the mobile device itself according to the video or image captured by the camera; in the embodiment of the present application, the captured video is video data collected during the movement of the camera or during the movement of the checkerboard calibration board, and is a video segment of the checkerboard calibration board captured in the camera vision, so that the camera can perform intrinsic parameter calibration based on the position of the checkerboard calibration board with a known spatial position in the captured video, wherein the checkerboard calibration board is a board surface member with a square-shaped black and white checkerboard texture for positioning calibration.
[0058] More specifically, in order to ensure the accuracy of the camera intrinsic calibration, the calibration image screening method of the embodiment of the present application can screen out a calibration image set based on images containing a complete and clear checkerboard calibration plate from the captured video, so as to optimize the screening process of effective images for calibration.
[0059] More specifically, the extraction behavior in step S2 can be random extraction, frame-by-frame extraction, or frame-skipping extraction. Considering that the position differences of images with similar time sequences in the captured video are small, using more valid pictures with position differences for camera intrinsic parameter calibration can effectively improve the calibration accuracy. Therefore, in the embodiment of the present application, step S2 is preferably: extracting a captured image set from the captured video by skipping frames, and further preferably extracting one frame of video from every 2 or 3 frames in the captured video to form a captured image set. In addition, using frame-skipping to extract the captured image set can also improve the processing efficiency of the calibration image screening method in the embodiment of the present application.
[0060] More specifically, the background of the checkerboard calibration plate is white, and a plurality of black square grids are arranged crosswise and at intervals therein, wherein corner points are generated at the corner positions of the black square grids.
[0061] More specifically, the candidate corner points are corner points determined by preliminary analysis and detection of the corresponding image based on a corner detection algorithm.
[0062] More specifically, the calibration image screening method of the embodiment of the present application performs incomplete image screening processing, blurred image screening processing, and repeated image screening processing on the captured image set based on steps S4, S5, and S6, respectively, to obtain a calibration image set that ultimately contains complete, clear, and non-repetitive valid images.
[0063] More specifically, since the corner points in the checkerboard calibration plate are generated based on the black square grids, the distribution and number of these corner points are related to the distribution pattern of the black square grids and have obvious matrix distribution characteristics. Therefore, step S4 can determine the integrity of the checkerboard calibration plate in the corresponding image by analyzing the distribution and number of the corner points of each image in the captured image set. Therefore, step S4 can quickly determine the integrity of the checkerboard calibration plate in the corresponding image in the captured image set based on the candidate corner points detected in step S3, so as to screen out images with a complete checkerboard calibration plate to form a first image set.
[0064] More specifically, the candidate corner points are all the corner points detected in the corresponding image, and the reference corner points are the corner points selected from the candidate corner points that best highlight the distribution pattern of the corner points in the checkerboard calibration plate; in the embodiment of the present application, the reference corner points are preferably the corner points generated at the intersection of the corners of different black squares in the checkerboard calibration plate, such as Figure 2 and Figure 3 As shown, the black square grid with 10 columns and 7 rows in the figure produces 9×6=54 reference corner points.
[0065] More specifically, the reference corner point includes corner point position information, which represents the position of the reference corner point in the image, and is preferably coordinate data of the reference corner point in the image.
[0066] More specifically, since the checkerboard calibration plate is formed by a cross-spaced arrangement of black squares, there should be a clear black and white interval area near the reference corner point, and the calculation method of the image variance is mainly used to measure the degree of deviation between the pixel value in the image and its mean, thereby reflecting the grayscale richness and information content of the image. Therefore, the surrounding area of the reference corner point should have a larger image variance. If the image in the first image set is blurred, the image variance of the surrounding area of the reference corner point in the corresponding image will decrease, so that the calibration image screening method of the embodiment of the present application can quickly determine the blurriness of the corresponding image based on the image variance of the surrounding area of the reference corner point, so as to remove the blurred image from the first image set to screen out the second image set containing only clear images, wherein the image variance can be calculated using the existing regional image variance calculation formula, which will not be repeated here.
[0067] More specifically, the reference corner point of the edge corresponds to the edge position of the black square grid at the edge position of the entire checkerboard calibration plate, which can reflect the position and scaling size of the checkerboard calibration plate in the corresponding image. In the embodiment of the present application, step S6 preferably considers at least two reference corner points corresponding to the corner positions of the checkerboard calibration plate to determine whether the position and size of the checkerboard calibration plate in different images in the second image set are the same to determine whether there are checkerboard calibration plates with repeated positions and sizes in these images, so as to remove these images with repeated positions and sizes from the second image set to obtain a calibration image set. Removing these repeated images can reduce the amount of analysis for subsequent camera calibration, thereby improving calibration efficiency.
[0068] The calibration image screening method of the embodiment of the present application sequentially performs incomplete image screening processing, blurred image screening processing, and repeated image screening processing on the captured image set to obtain a calibration image set that ultimately contains complete, clear, non-repetitive and valid pictures, thereby ensuring that the images in the calibration image set are all suitable for the camera's intrinsic parameter calibration, which can effectively improve the calibration accuracy and efficiency.
[0069] It should be noted that the screening process of step S2 to step S6 may be performed by continuously extracting and analyzing images in the video during the video shooting process, or may be performed based on the video shot in advance.
[0070] In some preferred embodiments, the calibration image screening method further includes the following steps performed between step S2 and step S3:
[0071] SA, grayscale the images in the captured image set.
[0072] Specifically, although the checkerboard calibration plate is composed of a white background and black squares, other colors may be introduced into the actually acquired captured video due to factors such as scene reflection. In order to improve the accuracy of candidate corner point detection and blurred image removal, the embodiment of the present application preferably performs grayscale processing on all images in the captured image before executing step S3, so that these images are converted into grayscale images to reduce the influence of other noise on corner point detection and image variance calculation.
[0073] It should be noted that the images in the calibration image set can be images that have been grayscaled in step SA, or images that have been returned to their original colors. In the embodiment of the present application, the former is preferred, and the checkerboard calibration plate in the grayscaled image is more conducive to the calibration of the camera intrinsic parameters.
[0074] In some preferred embodiments, step S3 comprises:
[0075] S31. Acquire candidate corner points of each image in the captured image set based on a sliding window and a corner point detection algorithm.
[0076] Specifically, the corner detection algorithm is an existing algorithm for corner recognition and positioning based on an image. In the embodiment of the present application, the Harris algorithm or the Shi-Tomasi algorithm may be used.
[0077] More specifically, the calibration image screening method of the embodiment of the present application detects corner points in the image based on a sliding window, and in conjunction with a corresponding corner point detection algorithm, can gradually detect the corner points in the image according to the window sliding direction, and generate scores (response values) about the corner points based on the corresponding corner point detection algorithm, and determine the corner points with scores greater than a preset score threshold as candidate corner points, and can also determine n (set according to the black square grids in the checkerboard calibration plate) corner points with the maximum score in the image as candidate corner points.
[0078] More specifically, the candidate corner points determined in the image include the corner points of the black square grids. The image variance of the surrounding areas of the outer corner points of the outermost black square grids (not the corner points generated at the intersection of the corners of different black square grids) is small, which is not conducive to the recognition of blurred images. Therefore, step S4 needs to determine the reference corner points that are more conducive to blurred image screening from the candidate corner points according to the corner point distribution law.
[0079] In some preferred embodiments, step S5 comprises:
[0080] S51, traversing each image in the first image set and calculating the image variance corresponding to the surrounding area of each reference corner point;
[0081] S52: remove at least one image whose variance is smaller than a preset variance threshold from the first image set to obtain a second image set.
[0082] Specifically, Figure 4 The blurred image that needs to be screened out is shown in Figure 1. Figure 3 It can be seen that the edges of the black square grid near the reference corner point are clearly visible, and the image variance calculated in the area around the reference corner point is significantly larger than the image variance corresponding to the blurred image. Therefore, based on the image variance, it is possible to quickly determine whether there is a blur problem in the area around different reference corner points.
[0083] More specifically, in order to more accurately eliminate blurred images, the calibration image screening method of the embodiment of the present application performs image variance calculation on the surrounding areas of each benchmark corner point of each image in the first image set, and removes images in which at least one image variance is less than a preset variance threshold, so as to filter out all locally blurred or overall blurred images.
[0084] More specifically, the size of the peripheral area can be set according to usage requirements, and is generally set to be smaller than the size of the black square grid in vision. For example, if the image area is set to k*k, the value of k is set to be smaller than the coordinate distance between adjacent reference corner points.
[0085] In some preferred embodiments, step S6 comprises:
[0086] S61, establishing a corner point position list;
[0087] S62, traverse and determine whether the positions of the reference corner points of the edges in the images in the second image set are repeated with the positions of the reference corner points of the edges that have been placed in the corner point position list, and place the positions of the corresponding reference corner points that are not repeated into the corner point position list and remove the images with repeated positions from the second image set.
[0088] Specifically, in step S62, the process of determining whether the position of the reference corner point is repeated is a grouping determination process, that is, the reference corner points of all edges that need to be analyzed in the image are regarded as a group of data to be compared with the data in each image in the corner point position list. When a group of data is repeated, the image is regarded as a repeated image.
[0089] More specifically, in order to simplify the analysis and judgment process, the reference corner points of the edges that need to be analyzed in each image are defined as two reference corner points located at the outermost sides of the chessboard calibration plate and set diagonally, preferably the reference corner point at the outermost edge of the upper left corner (hereinafter referred to as the first reference corner point) and the reference corner point at the outermost edge of the lower right corner (hereinafter referred to as the last reference corner point). The positions of the first reference corner point and the last reference corner point can comprehensively reflect the size and position of the chessboard calibration plate in the image. Therefore, by analyzing the position data of the first reference corner point and the last reference corner point, it is possible to distinguish whether the two images are repeated.
[0090] More specifically, in this embodiment, step S62 is equivalent to determining whether the positions of the first reference corner point and the last reference corner point in the image to be analyzed are simultaneously the same as the positions of the first reference corner point and the last reference corner point corresponding to a certain image in the corner point position list, thereby determining whether the image to be analyzed is a repeated image. This determination method can quickly complete the identification of repeated images.
[0091] It should be noted that after the corner point position list is established, the corner point position list is initially empty. The first image analyzed in step S62 must be a non-repetitive image, so the position of the corresponding reference corner point can be directly placed in the corner point position list.
[0092] In some preferred embodiments, the positional relationship of the reference corner points of the edge includes the coordinate distance of the first reference corner point and the coordinate distance of the last reference corner point.
[0093] Specifically, in this embodiment, step S6 can determine whether the images are repeated by judging the size of the coordinate distance between the first reference corner point and the coordinate distance between the last reference corner points on different images in the second image set.
[0094] More specifically, step S62 can be performed by calculating the coordinate distance between the first reference corner point in the image to be analyzed and the first reference corner point of an image in the corner point position list, as well as the coordinate distance between the last reference corner point and the last reference corner point of the corresponding image in the corner point position list, and then judging whether the image to be analyzed is repeated with the images in the corner point position list based on the sizes of the two coordinate distances, and then judging whether the image to be analyzed is not repeated with the images corresponding to the positions of the reference corner points of the edges stored in the corner point position list.
[0095] More specifically, the calibration image screening method of the embodiment of the present application characterizes the positional relationship of the reference corner points of the edge based on the coordinate distance, which can further simplify the judgment process of the repeated images and improve the image screening effect.
[0096] In some more preferred embodiments, in step S62, the process of determining whether the position of the reference corner point of the edge in the image in the second image set overlaps with the position of the reference corner point of the edge placed in the corner point position list is as follows:
[0097] S621, selecting an image from the second image set as the image to be analyzed, calculating the total coordinate distance between the image to be analyzed and the image corresponding to the positions of the reference corner points of the edges placed in the corner point position list, the total coordinate distance being the sum of the coordinate distance between the image to be analyzed and the first reference corner point and the coordinate distance between the last reference corner point of the corresponding image;
[0098] S622: When there is at least one coordinate total distance less than a preset distance threshold, the image to be analyzed is considered to be a repeated image, and the position of the reference corner point of its edge is repeated with the position of the reference corner point of the edge placed in the corner point position list.
[0099] Specifically, in actual operation, there are rarely completely identical images in the second image set, but similar images are of little significance to the camera's intrinsic calibration and will reduce the calibration efficiency. Therefore, the calibration image screening method of the embodiment of the present application sets a preset distance threshold to determine whether the image is a duplicate image, regards highly similar images as duplicate images, and eliminates these duplicate images.
[0100] In some other implementations, step S6 may also include:
[0101] S61', establishing a calibration image set;
[0102] S62', traverse and determine whether the positions of the reference corner points of the edges in the images in the second image set overlap with the positions of the reference corner points of the edges in the images placed in the calibration image set, and place the images whose positions are not overlapped into the calibration image set.
[0103] In a second aspect, some embodiments of the present application further provide a calibration method, which performs camera calibration based on a calibration image set obtained by screening the calibration image screening method provided in the first aspect.
[0104] The calibration method of the embodiment of the present application is used to perform intrinsic parameter calibration of the camera. Based on the calibration image screening method provided in the first aspect, it sequentially performs incomplete image screening processing, blurred image screening processing, and repeated image screening processing on the captured image set to obtain a calibration image set that ultimately contains complete, clear, and non-repetitive valid images, ensuring that the images in the calibration image set are all suitable for the intrinsic parameter calibration of the camera, so that the calibration method of the embodiment of the present application has the advantages of high calibration accuracy and efficiency.
[0105] Third, please refer to Figure 5 Some embodiments of the present application further provide a calibration image screening device, which is used to screen images that can be used for camera calibration from video data, and the camera calibration is performed based on a checkerboard calibration plate. The calibration image screening device includes:
[0106] An acquisition module 301 is used to acquire a captured video including a checkerboard calibration plate;
[0107] An extraction module 302 is used to extract a set of captured images from a captured video;
[0108] Corner point detection module 303, used to obtain candidate corner points in each image in the captured image set;
[0109] A first screening module 304 is used to screen and obtain a first image set according to the distribution rule of corner points of the checkerboard calibration plate and determine the reference corner points in each image in the first image set from the candidate corner points, wherein the images in the first image set are images in the captured image set that include the checkerboard calibration plate;
[0110] A second screening module 305 is used to remove blurred images in the first image set according to the image variance of the area around the reference corner point to screen out the second image set;
[0111] The third screening module 306 is used to remove duplicate images in the second image set according to the positional relationship of the reference corner points of the edge to screen out the calibration image set.
[0112] The calibration image screening device of the embodiment of the present application sequentially performs incomplete image screening processing, blurred image screening processing, and repeated image screening processing on the captured image set to obtain a calibration image set that ultimately contains complete, clear, non-repetitive and valid pictures, thereby ensuring that the images in the calibration image set are all suitable for the camera's intrinsic parameter calibration, which can effectively improve the calibration accuracy and efficiency.
[0113] In some preferred embodiments, the calibration image screening device of the embodiment of the present application is used to execute the calibration image screening method provided in the first aspect above.
[0114] Fourth, please refer to Figure 6 Some embodiments of the present application also provide a structural diagram of an electronic device. The present application provides an electronic device, including: a processor 401 and a memory 402. The processor 401 and the memory 402 are interconnected and communicate with each other through a communication bus 403 and / or other forms of connection mechanisms (not marked). The memory 402 stores computer-readable instructions executable by the processor 401. When the electronic device is running, the processor 401 executes the computer-readable instructions to execute the method in any optional implementation of the above embodiments.
[0115] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method in any optional implementation of the above embodiment is executed. The computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or optical disk.
[0116] In summary, the embodiments of the present application provide a calibration image screening method, a calibration method and related equipment, wherein the calibration image screening method sequentially performs incomplete image screening processing, blurred image screening processing, and repeated image screening processing on the captured image set to obtain a calibration image set that ultimately contains complete, clear, and non-repetitive valid images, ensuring that the images in the calibration image set are all suitable for the camera's intrinsic parameter calibration, which can effectively improve the calibration accuracy and efficiency.
[0117] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0118] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0120] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0121] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A calibration image screening method, characterized in that: The method is used to filter out images that can be used for camera calibration from video data, wherein the camera calibration is performed based on a checkerboard calibration plate, and the calibration image screening method comprises the following steps: S1, obtaining a captured video containing a checkerboard calibration plate; S2, extracting a set of captured images from the captured video; S3, obtaining candidate corner points in each image in the captured image set; S4, selecting and acquiring a first image set according to the distribution rule of the corner points of the checkerboard calibration plate and determining the reference corner points in each image in the first image set from the candidate corner points, wherein the images in the first image set are the images in the captured image set that include the checkerboard calibration plate; S5, removing blurred images in the first image set according to the image variance of the area around the reference corner point to select a second image set; S6, according to the positional relationship of the edge reference corner points, the duplicate images in the second image set are removed to screen out the calibration image set, where the positional relationship of the edge reference corner points includes the coordinate distance of the first reference corner point and the coordinate distance of the last reference corner point; Step S5 includes: S51, traversing each image in the first image set and calculating the image variance corresponding to the surrounding area of each reference corner point; S52, removing at least one image in the first image set where the image variance is less than a preset variance threshold, to obtain the second image set; Step S6 includes: S61, establishing a corner point position list; S62, traversing and determining whether the positions of the reference corner points of the edges in the images in the second image set are repeated with the positions of the reference corner points of the edges that have been placed in the corner point position list, placing the positions of the reference corner points whose corresponding positions are not repeated into the corner point position list, and removing the images whose positions are repeated from the second image set; Step S62 includes: S621, selecting an image from the second image set as the image to be analyzed, calculating the total coordinate distance between the image to be analyzed and the image corresponding to the positions of the reference corner points of the edges placed in the corner point position list, the total coordinate distance being the sum of the coordinate distance between the image to be analyzed and the first reference corner point and the coordinate distance between the last reference corner point of the corresponding image; S622: When there is at least one coordinate total distance less than a preset distance threshold, the image to be analyzed is considered to be a repeated image, and the position of the reference corner point of its edge is repeated with the position of the reference corner point of the edge placed in the corner point position list.
2. The calibration image screening method according to claim 1, characterized in that: The calibration image screening method further includes a step performed between step S2 and step S3: SA. grayscale the images in the captured image set.
3. The calibration image screening method according to claim 1, characterized in that: Step S3 includes: S31. Acquire candidate corner points of each image in the captured image set based on a sliding window and a corner point detection algorithm.
4. A calibration method, characterized in that: The calibration method performs camera calibration based on a calibration image set obtained by screening the calibration image screening method according to any one of claims 1 to 3.
5. A calibration image screening device, characterized in that: The device is used to filter out images that can be used for camera calibration from video data, wherein the camera calibration is performed based on a checkerboard calibration plate, and the calibration image screening device includes: An acquisition module, used to acquire a captured video containing a checkerboard calibration plate; An extraction module, used for extracting a set of captured images from the captured video; A corner point detection module, used to obtain candidate corner points in each image in the captured image set; A first screening module, configured to screen and obtain a first image set according to a distribution rule of corner points of the checkerboard calibration plate and determine reference corner points in each image in the first image set from candidate corner points, wherein the images in the first image set are images in the captured image set that include the checkerboard calibration plate; A second screening module, configured to remove blurred images in the first image set according to the image variance of the area around the reference corner point to screen out a second image set; A third screening module, for removing duplicate images in the second image set to screen out a calibration image set according to the positional relationship of the edge reference corner points, wherein the positional relationship of the edge reference corner points includes a coordinate distance of a first reference corner point and a coordinate distance of a last reference corner point; The step of removing the blurred images in the first image set according to the image variance of the area around the reference corner point to filter out the second image set comprises: S51, traversing each image in the first image set and calculating the image variance corresponding to the surrounding area of each reference corner point; S52, removing at least one image in the first image set where the image variance is less than a preset variance threshold, to obtain the second image set; The step of removing duplicate images in the second image set according to the positional relationship of the reference corner points of the edge to screen out the calibration image set comprises: S61, establishing a corner point position list; S62, traversing and determining whether the positions of the reference corner points of the edges in the images in the second image set are repeated with the positions of the reference corner points of the edges that have been placed in the corner point position list, placing the positions of the reference corner points whose corresponding positions are not repeated into the corner point position list, and removing the images whose positions are repeated from the second image set; Step S62 includes: S621, selecting an image from the second image set as the image to be analyzed, calculating the total coordinate distance between the image to be analyzed and the image corresponding to the positions of the reference corner points of the edges placed in the corner point position list, the total coordinate distance being the sum of the coordinate distance between the image to be analyzed and the first reference corner point and the coordinate distance between the last reference corner point of the corresponding image; S622: When there is at least one coordinate total distance less than a preset distance threshold, the image to be analyzed is considered to be a repeated image, and the position of the reference corner point of its edge is repeated with the position of the reference corner point of the edge placed in the corner point position list.
6. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the calibration image screening method according to any one of claims 1 to 3 or the steps in the calibration method according to claim 4 are executed.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the calibration image screening method according to any one of claims 1 to 3 or the calibration method according to claim 4 are executed.
Citation Information
Patent Citations
Three-dimensional motion object augmented reality registration method based on no marks
CN103177468A
Binocular camera self-calibration method
CN110838148A
Three-dimensional calibration algorithm of long-focus binocular camera
CN110969668A
Checkerboard corner detection method based on neural network and application thereof
CN111640157A
Video image processing method and device, storage medium and electronic equipment
CN113297420A
