CN118429342B - Calibration image screening method, calibration method and related equipment - Google Patents
Calibration image screening method, calibration method and related equipment Download PDFInfo
- Publication number
- CN118429342B CN118429342B CN202410887020.9A CN202410887020A CN118429342B CN 118429342 B CN118429342 B CN 118429342B CN 202410887020 A CN202410887020 A CN 202410887020A CN 118429342 B CN118429342 B CN 118429342B
- Authority
- CN
- China
- Prior art keywords
- image
- calibration
- image set
- images
- corner point
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012216 screening Methods 0.000 title claims abstract description 112
- 238000000034 method Methods 0.000 title claims abstract description 84
- 238000001514 detection method Methods 0.000 claims description 16
- 238000004422 calculation algorithm Methods 0.000 claims description 13
- 238000000605 extraction Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 description 30
- 230000008569 process Effects 0.000 description 10
- 230000003252 repetitive effect Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- G—PHYSICS
- 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/10016—Video; Image sequence
-
- 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/20—Special algorithmic details
- G06T2207/20112—Image segmentation details
- G06T2207/20164—Salient point detection; Corner detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30168—Image quality inspection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及相机标定技术领域,具体而言,涉及一种标定图像筛选方法、标定方法及相关设备。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
相机标定用于确立图像测量中三维空间点与图像点间的对应关系。Camera calibration is used to establish the correspondence between three-dimensional space points and image points in image measurement.
相关技术中,张正友标定法通过拍摄棋盘图,利用算法计算相机参数,确定三维空间点与像素点间的转换关系及畸变系数。在拍摄时,需稳定棋盘图,多角度拍摄清晰图片,然后通过算法计算获得相机内参。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.
对于多相机的标定过程,需要人工逐帧筛选清晰有效的图片来进行标定,导致对于整个相机标定的过程存在耗时严重、标定效率低的问题。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.
针对上述问题,目前尚未有有效的技术解决方案。There is currently no effective technical solution to the above problems.
发明内容Summary of the invention
本申请的目的在于提供一种标定图像筛选方法、标定方法及相关设备,实现清晰的有效图片的自动获取,以提高相机标定的效率。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.
第一方面,本申请提供了一种标定图像筛选方法,用于从视频数据中筛选出能用于进行相机标定的图像,所述相机标定基于棋盘格标定板进行标定,所述标定图像筛选方法包括以下步骤: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:
S1、获取包含棋盘格标定板的拍摄视频;S1, obtaining a captured video containing a checkerboard calibration plate;
S2、从所述拍摄视频抽取拍摄图像集;S2, extracting a set of captured images from the captured video;
S3、获取所述拍摄图像集中各个图像中的候选角点;S3, obtaining candidate corner points in each image in the captured image set;
S4、根据所述棋盘格标定板的角点分布规律筛选获取第一图像集及从候选角点中确定第一图像集中各个图像中的基准角点,所述第一图像集中的图像为所述拍摄图像集中包含棋盘格标定板的图像;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、根据所述基准角点周边区域的图像方差去除所述第一图像集中的模糊图像筛选出第二图像集;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、根据边缘的基准角点的位置关系去除所述第二图像集中的重复图像以筛选出标定图像集。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.
本申请的标定图像筛选方法依次对拍摄图像集进行非完整图像筛除处理、模糊图像筛除处理、重复图像筛除处理,以得到最终包含了完整清晰、不重复的有效图片的标定图像集,确保该标定图像集中的图像均适用于相机的内参标定,能有效提高标定精度和效率。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.
所述的标定图像筛选方法,其中,所述标定图像筛选方法还包括执行于步骤S2和步骤S3之间的步骤:The calibration image screening method, wherein the calibration image screening method further comprises a step performed between step S2 and step S3:
SA、对所述拍摄图像集中的图像进行灰度化处理。SA. grayscale the images in the captured image set.
在该示例中,本申请的优选为在执行步骤S3之前对拍摄图像中的所有图像进行灰度化处理,使这些图像均转变为灰度图像,以减少其余杂色对角点检测和图像方差的计算的影响。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.
所述的标定图像筛选方法,其中,步骤S3包括:The calibration image screening method, wherein step S3 comprises:
S31、基于滑动窗口和角点检测算法获取所述拍摄图像集中各个图像的候选角点。S31. Acquire candidate corner points of each image in the captured image set based on a sliding window and a corner point detection algorithm.
在该示例中,本申请的标定图像筛选方法在图像中基于滑动窗口检测角点,配合对应的角点检测算法能逐步将图像中的角点依照窗口滑动方向逐步检测出来。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.
所述的标定图像筛选方法,其中,步骤S5包括:The calibration image screening method, wherein step S5 comprises:
S51、对第一图像集中各个图像遍历计算各个基准角点周边区域对应的图像方差;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、去除第一图像集中存在至少一个图像方差小于预设方差阈值的图像,以获取所述第二图像集。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.
所述的标定图像筛选方法,其中,步骤S6包括:The calibration image screening method, wherein step S6 comprises:
S61、建立角点位置列表;S61, establishing a corner point position list;
S62、遍历判断所述第二图像集中的图像中的边缘的基准角点的位置是否与已置入角点位置列表中的边缘的基准角点的位置重复,并将对应位置未重复的基准角点的位置置入所述角点位置列表以及将位置重复的图像从所述第二图像集中剔除。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.
所述的标定图像筛选方法,其中,边缘的基准角点的位置关系包括首位基准角点的坐标距离和末位基准角点的坐标距离。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.
第二方面,本申请还提供了一种标定方法,所述标定方法基于如第一方面提供的标定图像筛选方法筛选获取的标定图像集进行相机标定。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.
本申请的标定方法用于进行相机的内参标定,其基于第一方面提供的标定图像筛选方法依次对拍摄图像集进行非完整图像筛除处理、模糊图像筛除处理、重复图像筛除处理,以得到最终包含了完整清晰、不重复的有效图片的标定图像集,确保该标定图像集中的图像均适用于相机的内参标定,使得本申请的标定方法具有高标定精度和效率的优势。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.
第三方面,本申请还提供了一种标定图像筛选装置,用于从视频数据中筛选出能用于进行相机标定的图像,所述相机标定基于棋盘格标定板进行标定,所述标定图像筛选装置包括: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:
获取模块,用于获取包含棋盘格标定板的拍摄视频;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;
第三筛选模块,用于根据边缘的基准角点的位置关系去除所述第二图像集中的重复图像以筛选出标定图像集。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.
本申请的标定图像筛选装置依次对拍摄图像集进行非完整图像筛除处理、模糊图像筛除处理、重复图像筛除处理,以得到最终包含了完整清晰、不重复的有效图片的标定图像集,确保该标定图像集中的图像均适用于相机的内参标定,能有效提高标定精度和效率。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.
第四方面,本申请还提供了一种电子设备,包括处理器以及存储器,所述存储器存储有计算机可读取指令,当所述计算机可读取指令由所述处理器执行时,运行如上述第一方面提供的标定图像筛选方法或如上述第二方面提供的标定方法中的步骤。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.
第五方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时运行如上述第一方面提供的标定图像筛选方法或如上述第二方面提供的标定方法中的步骤。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.
由上可知,本申请提供了一种标定图像筛选方法、标定方法及相关设备,其中,标定图像筛选方法依次对拍摄图像集进行非完整图像筛除处理、模糊图像筛除处理、重复图像筛除处理,以得到最终包含了完整清晰、不重复的有效图片的标定图像集,确保该标定图像集中的图像均适用于相机的内参标定,能有效提高标定精度和效率。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
图1为本申请实施例提供的标定图像筛选方法的流程图。FIG. 1 is a flow chart of a calibration image screening method provided in an embodiment of the present application.
图2为包含清晰的棋盘格标定板的图像的示意图。FIG. 2 is a schematic diagram of an image containing a clear checkerboard calibration plate.
图3为包含清晰的棋盘格标定板且标记出基准角点的图像的示意图。FIG. 3 is a schematic diagram of an image including a clear checkerboard calibration plate and having reference corner points marked.
图4为包含模糊的棋盘格标定板的图像的示意图。FIG. 4 is a schematic diagram of an image containing a blurred checkerboard calibration plate.
图5为本申请实施例提供的标定图像筛选装置的结构示意图。FIG. 5 is a schematic diagram of the structure of a calibration image screening device provided in an embodiment of the present application.
图6为本申请实施例提供的电子设备的结构示意图。FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
附图标记:301、获取模块;302、抽取模块;303、角点检测模块;304、第一筛选模块;305、第二筛选模块;306、第三筛选模块;401、处理器;402、存储器;403、通信总线。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
下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。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.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。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.
第一方面,请参照图1,本申请一些实施例提供了一种标定图像筛选方法,用于从视频数据中筛选出能用于进行相机标定的图像,相机标定基于棋盘格标定板进行标定,标定图像筛选方法包括以下步骤:In the first aspect, referring to FIG. 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, wherein the camera calibration is performed based on a checkerboard calibration plate, and the calibration image screening method comprises the following steps:
S1、获取包含棋盘格标定板的拍摄视频;S1, obtaining a captured video containing a checkerboard calibration plate;
S2、从拍摄视频抽取拍摄图像集;S2, extracting a set of captured images from the captured video;
S3、获取拍摄图像集中各个图像中的候选角点;S3, obtaining candidate corner points in each image in the captured image set;
S4、根据棋盘格标定板的角点分布规律筛选获取第一图像集及从候选角点中确定第一图像集中各个图像中的基准角点,第一图像集中的图像为拍摄图像集中包含棋盘格标定板的图像;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;
S5、根据基准角点周边区域的图像方差去除第一图像集中的模糊图像筛选出第二图像集;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;
S6、根据边缘的基准角点的位置关系去除第二图像集中的重复图像以筛选出标定图像集。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.
具体地,本申请实施例的标定图像筛选方法应用在相机内参标定中,该相机可以搭载在各类移动器械中,如机械手、移动机器人、无人机等,使得对应移动器械能根据相机抓取的视频或图像获取对应视觉内对象或移动器械自身的空间位置;在本申请实施例中,拍摄视频为在相机的移动过程中或在棋盘格标定板的移动过程中采集的视频数据,且为相机视觉内拍摄到棋盘格标定板的视频段,以使得相机能基于已知空间位置的棋盘格标定板在拍摄视频中的位置进行内参标定,其中,棋盘格标定板为具备用于定位标定的方块形黑白棋盘格纹理的板面件。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.
更具体地,为了确保相机内参标定准确,本申请实施例的标定图像筛选方法能从拍摄视频中筛选出基于包含完整、清晰的棋盘格标定板的图像组成的标定图像集,以优化标定用的有效图片的筛选过程。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.
更具体地,步骤S2中的抽取行为可以是随机抽取、逐帧抽取或跳帧抽取,考虑到拍摄视频中时序相近的图像的位置差异较小,采用更多存在位置差异的有效图片进行相机内参标定能有效提高标定精度,因此,在本申请实施例中,步骤S2优选为:从拍摄视频中跳帧抽取拍摄图像集,进一步优选为从拍摄视频中每2或3帧中抽取一帧视频画面来组建拍摄图像集,另外,采用跳帧抽取拍摄图像集也能提高本申请实施例的标定图像筛选方法的处理效率。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.
更具体地,棋盘格标定板的背景为白色,其内具有多个黑色方块格交叉间隔排列,其中,黑色方块格的边角位置会产生角点。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.
更具体地,候选角点为基于角点检测算法初步分析检测对应图像确定的角点。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.
更具体地,本申请实施例的标定图像筛选方法分别基于步骤S4、步骤S5和步骤S6依次对拍摄图像集进行非完整图像筛除处理、模糊图像筛除处理、重复图像筛除处理,以得到最终包含了完整清晰、不重复的有效图片的标定图像集。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.
更具体地,由于棋盘格标定板中的角点为基于黑色方块格产生,这些角点的分布情况和数量与黑色方块格的分布规律相关,具有明显的矩阵分布特性,因此,步骤S4可以通过分析拍摄图像集中各个图像的角点的分布情况和数量来确定棋盘格标定板在对应图像中的完整性,因此,步骤S4能基于步骤S3检测出的候选角点来快速判别棋盘格标定板在拍摄图像集中对应图像中的完整性,以筛选出具有完整棋盘格标定板的图像来组成第一图像集。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.
更具体地,候选角点为对应图像中检测出来的所有角点,基准角点为从候选角点中筛选出来的最能凸出棋盘格标定板中角点分布规律的角点;在本申请实施例中,基准角点优选为棋盘格标定板中不同黑色方块格的边角交接处产生的角点,如图2和图3所示,图中的10列7行的黑色方块格产生了9×6=54个基准角点。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 this embodiment of the present application, the reference corner points are preferably the corner points generated at the intersection of the corners of different black square grids in the checkerboard calibration plate, as shown in Figures 2 and 3, the 10 columns and 7 rows of black square grids in the figure generate 9×6=54 reference corner points.
更具体地,基准角点包括角点位置信息,该角点位置信息表征了基准角点在图像中的位置,优选为基准角点在图像中的坐标数据。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.
更具体地,由于棋盘格标定板为基于黑色方块格交叉间隔排列而成的,基准角点附近理应具有分明的黑白间隔区域,而图像方差的计算方式主要用于衡量图像中像素值与其均值之间的偏离程度,从而反映图像的灰度层次丰富程度和信息含量,因此,基准角点的周边区域理应具有较大的图像方差,若第一图像集中的图像出现模糊,则对应图像中的基准角点的周边区域的图像方差则会下降,使得本申请实施例的标定图像筛选方法能便捷地基于基准角点周边区域的图像方差快速判别对应图像的模糊程度,以将存在模糊的图像从第一图像集中去除以筛选出仅包含清晰图像的第二图像集,其中,图像方差可以采用现有的区域性图像方差计算公式计算获取,在此不做赘述。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.
更具体地,边缘的基准角点与整个棋盘格标定板中边缘位置的黑色方块格的边缘位置对应,其能反映出棋盘格标定板在相应图像中的位置和缩放大小,在本申请实施例中,步骤S6优选为考虑至少两个对应于棋盘格标定板边角位置的基准角点,以判别第二图像集中的不同图像中的棋盘格标定板的位置和大小是否相同以确定这些图像是否存在位置和大小重复的棋盘格标定板,以将这些位置和大小重复的图像从第二图像集中去除,以获取标定图像集,去除这些重复图像能减少后续相机标定的分析量,从而提高标定效率。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.
本申请实施例的标定图像筛选方法依次对拍摄图像集进行非完整图像筛除处理、模糊图像筛除处理、重复图像筛除处理,以得到最终包含了完整清晰、不重复的有效图片的标定图像集,确保该标定图像集中的图像均适用于相机的内参标定,能有效提高标定精度和效率。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.
需要说明的是,步骤S2-步骤S6的筛选过程可以是在进行拍摄视频拍摄的过程中,持续对拍摄视频中的图像进行抽取和分析,也可以是根据预先拍摄好的拍摄视频进行抽取和分析。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.
在一些优选的实施方式中,标定图像筛选方法还包括执行于步骤S2和步骤S3之间的步骤:In some preferred embodiments, the calibration image screening method further includes the following steps performed between step S2 and step S3:
SA、对拍摄图像集中的图像进行灰度化处理。SA, grayscale the images in the captured image set.
具体地,虽然棋盘格标定板是基于白色背景和黑色方块格构成的,但在实际获取的拍摄视频可能会由于场景反光等因素引入其余色彩,为了提高候选角点检测和模糊图像去除的精度,本申请实施例的优选为在执行步骤S3之前对拍摄图像中的所有图像进行灰度化处理,使这些图像均转变为灰度图像,以减少其余杂色对角点检测和图像方差的计算的影响。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.
需要说明的是,标定图像集中的图像可以是经过步骤SA灰度化处理的图像,也可以返回原色彩的图像,在本申请实施例中,优选为前者,灰度化处理过的图像中的棋盘格标定板更利于进行相机内参的标定。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.
在一些优选的实施方式中,步骤S3包括:In some preferred embodiments, step S3 comprises:
S31、基于滑动窗口和角点检测算法获取拍摄图像集中各个图像的候选角点。S31. Acquire candidate corner points of each image in the captured image set based on a sliding window and a corner point detection algorithm.
具体地,角点检测算法为现有的基于图像进行角点识别及定位的算法,在本申请实施例中,可以采用Harris算法或Shi-Tomasi算法。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.
更具体地,本申请实施例的标定图像筛选方法在图像中基于滑动窗口检测角点,配合对应的角点检测算法能逐步将图像中的角点依照窗口滑动方向逐步检测出来,并基于对应的角点检测算法生成关于角点的分值(响应值),并将分值大于预设的分值阈值的角点确定为候选角点,也可以将图像中最大分值的n(根据棋盘格标定板中的黑色方块格进行设定)个角点确定为候选角点。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.
更具体地,图像中确定的候选角点包含了黑色方块格的各个角点,最外侧的黑色方块格的外侧的角点(非不同黑色方块格的边角交接处产生的角点)的周边区域的图像方差较小,不利于进行模糊图像的识别,故步骤S4需要根据角点分布规律从候选角点中确定更利于进行模糊图像筛选的基准角点。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.
在一些优选的实施方式中,步骤S5包括:In some preferred embodiments, step S5 comprises:
S51、对第一图像集中各个图像遍历计算各个基准角点周边区域对应的图像方差;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、去除第一图像集中存在至少一个图像方差小于预设方差阈值的图像,以获取第二图像集。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.
具体地,图4所示为需要筛除的模糊图像,基于图3可见,基准角点附近的黑色方块格的边缘清晰可见,该基准角点周边区域计算的图像方差明显大于模糊图像对应的图像方差,故基于图像方差可以快速判断到不同基准角点的周边区域是否存在模糊问题。Specifically, FIG4 shows a blurred image that needs to be screened out. Based on FIG3, 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 surrounding area of the reference corner point is significantly larger than the image variance corresponding to the blurred image. Therefore, based on the image variance, it can be quickly determined whether there is a blur problem in the surrounding area of different reference corner points.
更具体地,为了更准确地剔除模糊图像,本申请实施例的标定图像筛选方法对第一图像集中各个图像的各个基准角点的周边区域均进行图像方差计算,并去除存在至少一个图像方差小于预设方差阈值的图像,以滤除所有局部模糊或整体模糊的图像。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.
更具体地,周边区域的大小可以根据使用需求进行设定,其一般设定为小于视觉中黑色方块格的大小,如设定为k*k的图像区域,则k的值设定为小于相邻的基准角点之间的坐标距离。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.
在一些优选的实施方式中,步骤S6包括:In some preferred embodiments, step S6 comprises:
S61、建立角点位置列表;S61, establishing a corner point position list;
S62、遍历判断第二图像集中的图像中的边缘的基准角点的位置是否与已置入角点位置列表中的边缘的基准角点的位置重复,并将对应位置未重复的基准角点的位置置入角点位置列表以及将位置重复的图像从第二图像集中剔除。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.
具体地,步骤S62中,判断基准角点的位置是否重复的过程为分组判断过程,即将图像中的需要分析的所有边缘的基准角点视为一组数据来与角点位置列表中的各个图像中的数据进行比对,在一组数据重复时,将该图像视为重复图像。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.
更具体地,为了简化分析判断过程,每个图像中需要分析的边缘的基准角点定义为位于棋盘格标定板最外侧且对角设置的两个基准角点,优选为左上角最边缘处的基准角点(下面简称为首位基准角点)和右下角最边缘处的基准角点(下面简称为末位基准角点),首位基准角点和末位基准角点的位置能综合反映棋盘格标定板在图像中的大小和位置,故通过分析首位基准角点和末位基准角点的位置数据便能区分两个图像是否重复。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.
更具体地,在该实施方式中,步骤S62相当于判断待分析的图像中的首位基准角点和末位基准角点的位置是否同时与角点位置列表中的某个图像对应的首位基准角点和末位基准角点的位置同时相同,从而判断该待分析的图像是否属于重复图像,该判断方式能快速完成重复图像的识别。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.
需要说明的是,在建立角点位置列表后,角点位置列表初始状态为空,步骤S62分析的第一个图像必然为不重复图像,故可直接将对应的基准角点的位置直接置入角点位置列表。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.
在一些优选的实施方式中,边缘的基准角点的位置关系包括首位基准角点的坐标距离和末位基准角点的坐标距离。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.
具体地,在该实施方式中,步骤S6可以通过判断第二图像集中不同图像上的首位基准角点的坐标距离和末位基准角点的坐标距离的大小来确定图像是否重复。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.
更具体地,步骤S62可以通过计算出待分析图像中的首位基准角点与角点位置列表中的某个图像的首位基准角点的坐标距离以及末位基准角点与角点位置列表中的对应图像的末位基准角点的坐标距离,然后根据这两个坐标距离的大小来判断待分析图像与该角点位置列表中的图像是否重复,继而再判断出该待分析图像是否与角点位置列表中已存入的边缘的基准角点的位置所对应的图像是否均不重复。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.
更具体地,本申请实施例的标定图像筛选方法基于坐标距离来表征边缘的基准角点的位置关系,能进一步简化重复图像的判断过程,提高图像的筛选效果。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.
在一些更优选的实施方式中,步骤S62中,判断第二图像集中的图像中的边缘的基准角点的位置是否与已置入角点位置列表中的边缘的基准角点的位置重复的过程为: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:
S621、从第二图像集选取一图像作为待分析图像,计算待分析图像与各个已置入角点位置列表中的边缘的基准角点的位置对应的图像的坐标总距,坐标总距为待分析图像与相应图像的首位基准角点的坐标距离和末位基准角点的坐标距离之和;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、在存在至少一个坐标总距小于预设距离阈值时,认为该待分析图像为重复图像,其边缘的基准角点的位置与已置入角点位置列表中的边缘的基准角点的位置重复。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.
具体地,在实际操作中,第二图像集中鲜有完全一致的图像,但相似的图像对相机的内参标定来说意义不大,且会降低标定效率,因此,本申请实施例的标定图像筛选方法设定预设距离阈值来判断图像是否属于重复图像,将高度相似的图像视为重复图像,并将这些重复图像进行剔除。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.
在一些别的实施方式中,步骤S6还可以是包括:In some other implementations, step S6 may also include:
S61’、建立标定图像集;S61', establishing a calibration image set;
S62’、遍历判断第二图像集中的图像中的边缘的基准角点的位置是否与已置入标定图像集中的图像中的边缘的基准角点的位置重复,并将位置未重复的图像置入标定图像集。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 in the images already placed in the calibration image set, and place the images whose positions are not repeated into the calibration image set.
第二方面,本申请一些实施例还提供了一种标定方法,标定方法基于如第一方面提供的标定图像筛选方法筛选获取的标定图像集进行相机标定。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.
本申请实施例的标定方法用于进行相机的内参标定,其基于第一方面提供的标定图像筛选方法依次对拍摄图像集进行非完整图像筛除处理、模糊图像筛除处理、重复图像筛除处理,以得到最终包含了完整清晰、不重复的有效图片的标定图像集,确保该标定图像集中的图像均适用于相机的内参标定,使得本申请实施例的标定方法具有高标定精度和效率的优势。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.
第三方面,请参照图5,本申请一些实施例还提供了一种标定图像筛选装置,用于从视频数据中筛选出能用于进行相机标定的图像,相机标定基于棋盘格标定板进行标定,标定图像筛选装置包括:In a third aspect, referring to FIG. 5 , some embodiments of the present application further provide 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 includes:
获取模块301,用于获取包含棋盘格标定板的拍摄视频;An acquisition module 301 is used to acquire a captured video including a checkerboard calibration plate;
抽取模块302,用于从拍摄视频抽取拍摄图像集;An extraction module 302 is used to extract a set of captured images from a captured video;
角点检测模块303,用于获取拍摄图像集中各个图像中的候选角点;Corner point detection module 303, used to obtain candidate corner points in each image in the captured image set;
第一筛选模块304,用于根据棋盘格标定板的角点分布规律筛选获取第一图像集及从候选角点中确定第一图像集中各个图像中的基准角点,第一图像集中的图像为拍摄图像集中包含棋盘格标定板的图像;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;
第二筛选模块305,用于根据基准角点周边区域的图像方差去除第一图像集中的模糊图像筛选出第二图像集;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;
第三筛选模块306,用于根据边缘的基准角点的位置关系去除第二图像集中的重复图像以筛选出标定图像集。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.
本申请实施例的标定图像筛选装置依次对拍摄图像集进行非完整图像筛除处理、模糊图像筛除处理、重复图像筛除处理,以得到最终包含了完整清晰、不重复的有效图片的标定图像集,确保该标定图像集中的图像均适用于相机的内参标定,能有效提高标定精度和效率。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.
在一些优选的实施方式中,本申请实施例的标定图像筛选装置用于执行上述第一方面提供的标定图像筛选方法。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.
第四方面,请参照图6,本申请一些实施例还提供了一种电子设备的结构示意图,本申请提供一种电子设备,包括:处理器401和存储器402,处理器401和存储器402通过通信总线403和/或其他形式的连接机构(未标出)互连并相互通讯,存储器402存储有处理器401可执行的计算机可读取指令,当电子设备运行时,处理器401执行该计算机可读取指令,以执行时执行上述实施例的任一可选的实现方式中的方法。In the fourth aspect, 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 method of the above-mentioned embodiments.
第五方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时,执行上述实施例的任一可选的实现方式中的方法。其中,计算机可读存储介质可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(Static Random Access Memory, 简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory, 简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read Only Memory, 简称EPROM),可编程只读存储器(Programmable Red-Only Memory, 简称PROM),只读存储器(Read-OnlyMemory, 简称ROM),磁存储器,快闪存储器,磁盘或光盘。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.
综上,本申请实施例提供了一种标定图像筛选方法、标定方法及相关设备,其中,标定图像筛选方法依次对拍摄图像集进行非完整图像筛除处理、模糊图像筛除处理、重复图像筛除处理,以得到最终包含了完整清晰、不重复的有效图片的标定图像集,确保该标定图像集中的图像均适用于相机的内参标定,能有效提高标定精度和效率。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.
在本申请所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。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.
另外,作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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.
再者,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。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.
在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。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.
以上所述仅为本申请的实施例而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。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 (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410887020.9A CN118429342B (en) | 2024-07-03 | 2024-07-03 | Calibration image screening method, calibration method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410887020.9A CN118429342B (en) | 2024-07-03 | 2024-07-03 | Calibration image screening method, calibration method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118429342A CN118429342A (en) | 2024-08-02 |
CN118429342B true CN118429342B (en) | 2024-10-29 |
Family
ID=92324509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410887020.9A Active CN118429342B (en) | 2024-07-03 | 2024-07-03 | Calibration image screening method, calibration method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118429342B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110838148A (en) * | 2019-11-11 | 2020-02-25 | 杭州凌像科技有限公司 | Binocular camera self-calibration method |
CN111640157A (en) * | 2020-05-28 | 2020-09-08 | 华中科技大学 | Checkerboard corner detection method based on neural network and application thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103177468A (en) * | 2013-03-29 | 2013-06-26 | 渤海大学 | Three-dimensional motion object augmented reality registration method based on no marks |
CN110969668B (en) * | 2019-11-22 | 2023-05-02 | 大连理工大学 | Stereo calibration algorithm of long-focus binocular camera |
CN113297420A (en) * | 2021-04-30 | 2021-08-24 | 百果园技术(新加坡)有限公司 | Video image processing method and device, storage medium and electronic equipment |
-
2024
- 2024-07-03 CN CN202410887020.9A patent/CN118429342B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110838148A (en) * | 2019-11-11 | 2020-02-25 | 杭州凌像科技有限公司 | Binocular camera self-calibration method |
CN111640157A (en) * | 2020-05-28 | 2020-09-08 | 华中科技大学 | Checkerboard corner detection method based on neural network and application thereof |
Also Published As
Publication number | Publication date |
---|---|
CN118429342A (en) | 2024-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4664432B2 (en) | SHOT SIZE IDENTIFICATION DEVICE AND METHOD, ELECTRONIC DEVICE, AND COMPUTER PROGRAM | |
CN113109368B (en) | Glass crack detection method, device, equipment and medium | |
CN107749268A (en) | Screen detection method and equipment | |
CN115018785A (en) | Tension detection method of hoisting wire rope based on visual vibration frequency recognition | |
CN115018735B (en) | Crack width identification method and system based on Hough transformation correction two-dimensional code image | |
CN107220647A (en) | Crop location of the core method and system under a kind of blade crossing condition | |
CN117152165B (en) | Photosensitive chip defect detection method and device, storage medium and electronic equipment | |
CN118429336B (en) | Image clarity sorting method, device, electronic device and storage medium | |
CN112950594B (en) | Product surface defect detection method, equipment and storage medium | |
CN114399507A (en) | Appearance quality detection method, device, electronic device and storage medium of a mobile phone | |
CN118429342B (en) | Calibration image screening method, calibration method and related equipment | |
CN111062415B (en) | Object image extraction method, system and storage medium based on contrast difference | |
CN110738656B (en) | Definition evaluation method of certificate photo, storage medium and processor | |
CN116993654B (en) | Camera module defect detection method, device, equipment, storage medium and product | |
CN118488329A (en) | Pixel dead pixel correction method and device, electronic equipment and storage medium | |
WO2025025500A1 (en) | Method for detecting link plate missing in chain, and electronic device | |
CN117456371A (en) | Group string hot spot detection method, device, equipment and medium | |
CN112884784B (en) | Image-based lens detection and front and back judgment method | |
CN116071562A (en) | Plant seed identification method and device, electronic equipment and storage medium | |
JP6897448B2 (en) | Line width estimation programs, devices, and methods | |
CN112465850A (en) | Peripheral boundary modeling method, intelligent monitoring method and device | |
CN110264531A (en) | A kind of catching for X-comers takes method, apparatus, system and readable storage medium storing program for executing | |
CN120339289A (en) | Image defect detection method, device and storage medium | |
CN115424062B (en) | Method, device, equipment and storage medium for automatically identifying diagonal network | |
CN111738973A (en) | Stain testing method, device and system for quality inspection of camera module and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |