CN114820787B - Image correction method and system for large field of view plane vision measurement - Google Patents

Image correction method and system for large field of view plane vision measurement Download PDF

Info

Publication number
CN114820787B
CN114820787B CN202210428357.4A CN202210428357A CN114820787B CN 114820787 B CN114820787 B CN 114820787B CN 202210428357 A CN202210428357 A CN 202210428357A CN 114820787 B CN114820787 B CN 114820787B
Authority
CN
China
Prior art keywords
image
partition
plane
coordinates
measured
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
Application number
CN202210428357.4A
Other languages
Chinese (zh)
Other versions
CN114820787A (en
Inventor
张来刚
张云龙
徐立鹏
孙群
郭宏亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Liaocheng University
Original Assignee
Liaocheng University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Liaocheng University filed Critical Liaocheng University
Priority to CN202210428357.4A priority Critical patent/CN114820787B/en
Publication of CN114820787A publication Critical patent/CN114820787A/en
Application granted granted Critical
Publication of CN114820787B publication Critical patent/CN114820787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/80Geometric correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses an image correction method and system for large-view-field plane vision measurement, wherein the method comprises the following steps: acquiring a checkerboard image of a plane to be detected, extracting actual image coordinates of the mark points, reasonably partitioning the image according to the distribution condition of the mark points, constructing ideal image coordinates of each mark point, and acquiring a training database of each partition; training a deep learning network model of each partition by utilizing a training database; according to the trained model, calculating ideal image coordinates of pixel points in each partition, establishing a remap matrix of each partition, generating an undistorted front view of each partition by using the remap matrix, and splicing front views of the respective partitions to generate an undistorted front view of the whole image. The invention adopts the strategy of image partition correction and splicing fusion, can finish the accurate correction of the large-view-field and high-distortion image on the premise of no need of camera calibration, and improves the image correction precision and correction efficiency.

Description

一种面向大视场平面视觉测量的图像校正方法及系统Image correction method and system for large field of view plane vision measurement

技术领域Technical Field

本发明涉及图像校正技术领域,特别是涉及一种面向大视场平面视觉测量的图像校正方法及系统。The present invention relates to the technical field of image correction, and in particular to an image correction method and system for large-field-of-view plane vision measurement.

背景技术Background technique

目前,传统的图像校正方法首先需要对相机进行标定,即计算摄像机的内、外参数,然后利用摄像机的内外参数对拍摄的图像进行校正,以获得畸变较小的图像。在此过程中,大视场下的摄像机内外参数计算的准确性会直接影响图像的校正效果。同时,为了获取较准确的摄像机内外参数,大视场下的摄像机标定需要对不同位置、位姿的标定靶进行拍摄,费时费力而且往往不能得到非常好的标定效果。因此研究一种无需摄像机标定即可完成大视场、高畸变图像的精准校正的方法,是本领域亟需解决的技术问题。At present, the traditional image correction method first needs to calibrate the camera, that is, calculate the intrinsic and extrinsic parameters of the camera, and then use the intrinsic and extrinsic parameters of the camera to correct the captured image to obtain an image with less distortion. In this process, the accuracy of the calculation of the intrinsic and extrinsic parameters of the camera under a large field of view will directly affect the correction effect of the image. At the same time, in order to obtain more accurate intrinsic and extrinsic parameters of the camera, the camera calibration under a large field of view requires shooting calibration targets at different positions and postures, which is time-consuming and labor-intensive and often does not produce very good calibration results. Therefore, studying a method that can complete the accurate correction of large-field-of-view, high-distortion images without camera calibration is a technical problem that needs to be solved urgently in this field.

发明内容Summary of the invention

本发明的目的是提供一种面向大视场平面视觉测量的图像校正方法及系统,能够在无需摄像机标定的前提下完成大视场、高畸变的图像精准校正,提高图像校正精度和校正效率。The purpose of the present invention is to provide an image correction method and system for large-field-of-view planar vision measurement, which can complete the precise correction of large-field-of-view and high-distortion images without camera calibration, thereby improving the image correction accuracy and correction efficiency.

为实现上述目的,本发明提供了如下方案:To achieve the above object, the present invention provides the following solutions:

一种面向大视场平面视觉测量的图像校正方法,包括:An image correction method for large-field-of-view plane visual measurement, comprising:

获取待测平面的棋盘格图像;所述待测平面上放置有棋盘格标定板;Acquire a checkerboard image of a plane to be measured; a checkerboard calibration plate is placed on the plane to be measured;

对所述棋盘格图像进行标志点检测,提取所述标志点的实际图像坐标并对所述棋盘格图像进行分区;Performing landmark point detection on the checkerboard image, extracting actual image coordinates of the landmark points and partitioning the checkerboard image;

为所述标志点设置理想图像坐标,根据所述标志点的实际图像坐标和理想图像坐标建立每个分区的训练数据库;Setting ideal image coordinates for the marker points, and establishing a training database for each partition according to the actual image coordinates and the ideal image coordinates of the marker points;

建立深度学习网络模型,并利用所述每个分区的训练数据库分别为每个分区训练所述深度学习网络模型,生成每个分区训练好的图像校正模型;Establishing a deep learning network model, and using the training database of each partition to train the deep learning network model for each partition, to generate a trained image correction model for each partition;

利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标,计算每个分区的remap矩阵;具体包括:利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标;根据所述每个分区中所有像素点的实际图像坐标和理想图像坐标之间的映射关系,构建每个分区的remap矩阵;The image correction model of each partition is used to calculate the ideal image coordinates of all pixels in each partition, and the remap matrix of each partition is calculated; specifically comprising: using the image correction model of each partition to calculate the ideal image coordinates of all pixels in each partition; according to the mapping relationship between the actual image coordinates and the ideal image coordinates of all pixels in each partition, constructing the remap matrix of each partition;

获取待测平面图像并对所述待测平面图像进行分区;Acquire a plane image to be measured and partition the plane image to be measured;

利用所述每个分区的remap矩阵生成所述待测平面每个分区的无畸变正视图;Generate an undistorted front view of each partition of the plane to be measured using the remap matrix of each partition;

拼接所述待测平面各个分区的无畸变正视图,生成所述待测平面图像的无畸变正视图。The undistorted front views of the subareas of the plane to be measured are spliced to generate an undistorted front view of the image of the plane to be measured.

可选地,所述获取待测平面的棋盘格图像,具体包括:Optionally, the obtaining of a checkerboard image of the plane to be measured specifically includes:

将配有广角镜头的相机固定于所述待测平面视场的上方,利用LED光源对拍摄区域进行补光;A camera equipped with a wide-angle lens is fixed above the plane field of view to be measured, and an LED light source is used to fill in the shooting area;

在所述待测平面上放置所述棋盘格标定板,利用计算机控制所述相机拍摄获取所述棋盘格图像。The checkerboard calibration plate is placed on the plane to be measured, and the camera is controlled by a computer to capture the checkerboard image.

可选地,所述对所述棋盘格图像进行标志点检测,提取所述标志点的实际图像坐标并对所述棋盘格图像进行分区,具体包括:Optionally, the performing marker point detection on the checkerboard image, extracting actual image coordinates of the marker points and partitioning the checkerboard image specifically includes:

对所述棋盘格图像进行标志点检测,提取棋盘格的角点作为所述标志点;Performing landmark point detection on the chessboard image, and extracting corner points of the chessboard as the landmark points;

提取所述标志点的实际图像坐标;Extracting the actual image coordinates of the marker points;

根据所述标志点的实际图像坐标分布对所述棋盘格图像进行分区;每个所述分区包含的标志点数量大于或等于60个。The checkerboard image is partitioned according to the actual image coordinate distribution of the marker points; the number of marker points contained in each partition is greater than or equal to 60.

可选地,所述为所述标志点设置理想图像坐标,根据所述标志点的实际图像坐标和理想图像坐标建立每个分区的训练数据库,具体包括:Optionally, setting ideal image coordinates for the marker points and establishing a training database for each partition according to the actual image coordinates and the ideal image coordinates of the marker points specifically includes:

根据所述标志点的实际图像坐标分布和图像校正的目标,为所述标志点设置理想图像坐标;According to the actual image coordinate distribution of the marker point and the goal of image correction, setting the ideal image coordinates for the marker point;

根据所述每个分区内所有标志点的实际图像坐标和理想图像坐标构成每个分区的训练数据库。A training database for each partition is constructed according to the actual image coordinates and ideal image coordinates of all the marker points in each partition.

一种面向大视场平面视觉测量的图像校正系统,包括:An image correction system for large-field-of-view plane vision measurement, comprising:

棋盘格图像获取模块,用于获取待测平面的棋盘格图像;所述待测平面上放置有棋盘格标定板;A checkerboard image acquisition module is used to acquire a checkerboard image of a plane to be measured; a checkerboard calibration plate is placed on the plane to be measured;

标志点检测和分区模块,用于对所述棋盘格图像进行标志点检测,提取所述标志点的实际图像坐标并对所述棋盘格图像进行分区;A landmark point detection and partitioning module, used to perform landmark point detection on the checkerboard image, extract the actual image coordinates of the landmark points and partition the checkerboard image;

训练数据库建立模块,用于为所述标志点设置理想图像坐标,根据所述标志点的实际图像坐标和理想图像坐标建立每个分区的训练数据库;A training database establishment module, used to set ideal image coordinates for the marker points, and establish a training database for each partition according to the actual image coordinates and the ideal image coordinates of the marker points;

图像校正模型建立模块,用于建立深度学习网络模型,并利用所述每个分区的训练数据库分别为每个分区训练所述深度学习网络模型,生成每个分区训练好的图像校正模型;An image correction model establishment module is used to establish a deep learning network model, and use the training database of each partition to train the deep learning network model for each partition, so as to generate a trained image correction model for each partition;

remap矩阵建立模块,用于利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标,计算每个分区的remap矩阵;所述remap矩阵建立模块,具体包括:理想图像坐标计算单元,用于利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标;remap矩阵建立单元,用于根据所述每个分区中所有像素点的实际图像坐标和理想图像坐标之间的映射关系,构建每个分区的remap矩阵;A remap matrix establishment module, used to calculate the ideal image coordinates of all pixels in each partition by using the image correction model of each partition, and calculate the remap matrix of each partition; the remap matrix establishment module specifically includes: an ideal image coordinate calculation unit, used to calculate the ideal image coordinates of all pixels in each partition by using the image correction model of each partition; a remap matrix establishment unit, used to construct the remap matrix of each partition according to the mapping relationship between the actual image coordinates and the ideal image coordinates of all pixels in each partition;

待测平面图像获取模块,用于获取待测平面图像并对所述待测平面图像进行分区;A plane image acquisition module to be measured, used to acquire the plane image to be measured and divide the plane image to be measured into different zones;

分区无畸变正视图生成模块,用于利用所述每个分区的remap矩阵生成所述待测平面每个分区的无畸变正视图;A partitioned undistorted front view generation module, used to generate an undistorted front view of each partition of the plane to be measured by using the remap matrix of each partition;

待测平面无畸变正视图生成模块,用于拼接所述待测平面各个分区的无畸变正视图,生成所述待测平面图像的无畸变正视图。The module for generating an undistorted front view of the plane to be measured is used to splice the undistorted front views of the various subareas of the plane to be measured to generate an undistorted front view of the image of the plane to be measured.

可选地,所述棋盘格图像获取模块,具体包括:Optionally, the chessboard image acquisition module specifically includes:

相机设置单元,用于将配有广角镜头的相机固定于所述待测平面视场的上方,利用LED光源对拍摄区域进行补光;A camera setting unit, used to fix a camera equipped with a wide-angle lens above the plane field of view to be measured, and use an LED light source to fill in the shooting area;

棋盘格图像获取单元,用于在所述待测平面上放置所述棋盘格标定板,利用计算机控制所述相机拍摄获取所述棋盘格图像。The checkerboard image acquisition unit is used to place the checkerboard calibration plate on the plane to be measured, and use a computer to control the camera to capture the checkerboard image.

可选地,所述标志点检测和分区模块,具体包括:Optionally, the landmark detection and partitioning module specifically includes:

标志点检测单元,用于对所述棋盘格图像进行标志点检测,提取棋盘格的角点作为所述标志点;A landmark point detection unit, used to perform landmark point detection on the chessboard image, and extract corner points of the chessboard as the landmark points;

实际图像坐标提取单元,用于提取所述标志点的实际图像坐标;An actual image coordinate extraction unit, used to extract the actual image coordinates of the marker point;

分区单元,用于根据所述标志点的实际图像坐标分布对所述棋盘格图像进行分区;每个所述分区包含的标志点数量大于或等于60个。A partitioning unit is used to partition the checkerboard image according to the actual image coordinate distribution of the marker points; the number of marker points contained in each partition is greater than or equal to 60.

可选地,所述训练数据库建立模块,具体包括:Optionally, the training database establishment module specifically includes:

理想图像坐标设置单元,用于根据所述标志点的实际图像坐标分布和图像校正的目标,为所述标志点设置理想图像坐标;An ideal image coordinate setting unit, used to set ideal image coordinates for the marker point according to the actual image coordinate distribution of the marker point and the target of image correction;

训练数据库建立单元,用于根据所述每个分区内所有标志点的实际图像坐标和理想图像坐标构成每个分区的训练数据库。The training database establishing unit is used to construct a training database for each partition according to the actual image coordinates and ideal image coordinates of all the marker points in each partition.

根据本发明提供的具体实施例,本发明公开了以下技术效果:According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

本发明提供了一种面向大视场平面视觉测量的图像校正方法及系统,所述方法包括:获取待测平面的棋盘格图像;对所述棋盘格图像进行标志点检测,提取所述标志点的实际图像坐标并对所述棋盘格图像进行分区;为所述标志点设置理想图像坐标,根据所述标志点的实际图像坐标和理想图像坐标建立每个分区的训练数据库;建立深度学习网络模型,并利用所述每个分区的训练数据库分别为每个分区训练所述深度学习网络模型,生成每个分区训练好的图像校正模型;利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标,计算每个分区的remap矩阵;获取待测平面图像并对所述待测平面图像进行分区;利用所述每个分区的remap矩阵生成所述待测平面每个分区的无畸变正视图;拼接所述待测平面各个分区的无畸变正视图,生成所述待测平面图像的无畸变正视图。本发明采用了图像分区校正+拼接融合的策略对大视场、高畸变的图像进行校正,分区策略降低了深度学习网络模型的复杂度,提高了模型训练效率;利用训练好的图像校正模型,生成图像校正的映射矩阵remap矩阵,并采用多线程技术和双线性插值法,完成图像的校正,提高了图像校正效率;基于深度学习模型校正图像还避免了相机内、外参数和镜头畸变系数的计算。因此,采用本发明图像校正方法能够在无需摄像机标定的前提下完成大视场、高畸变的图像精准校正,提高图像校正精度和校正效率。The present invention provides an image correction method and system for large-field-of-view plane visual measurement, the method comprising: obtaining a checkerboard image of a plane to be measured; performing landmark point detection on the checkerboard image, extracting actual image coordinates of the landmark points and partitioning the checkerboard image; setting ideal image coordinates for the landmark points, and establishing a training database for each partition according to the actual image coordinates and ideal image coordinates of the landmark points; establishing a deep learning network model, and using the training database of each partition to train the deep learning network model for each partition, respectively, to generate a trained image correction model for each partition; using the image correction model of each partition to calculate the ideal image coordinates of all pixel points in each partition, and calculating the remap matrix of each partition; obtaining a plane image to be measured and partitioning the plane image to be measured; using the remap matrix of each partition to generate an undistorted front view of each partition of the plane to be measured; splicing the undistorted front views of each partition of the plane to be measured to generate an undistorted front view of the plane image to be measured. The present invention adopts the strategy of image partition correction + splicing fusion to correct images with large field of view and high distortion. The partition strategy reduces the complexity of the deep learning network model and improves the model training efficiency. The trained image correction model is used to generate the remap matrix of the image correction, and multi-threading technology and bilinear interpolation are used to complete the image correction, thereby improving the image correction efficiency. The image correction based on the deep learning model also avoids the calculation of the camera's internal and external parameters and the lens distortion coefficient. Therefore, the image correction method of the present invention can complete the accurate correction of images with large field of view and high distortion without the need for camera calibration, thereby improving the image correction accuracy and correction efficiency.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

图1为本发明提供的一种面向大视场平面视觉测量的图像校正方法流程图;FIG1 is a flow chart of an image correction method for large-field-of-view plane vision measurement provided by the present invention;

图2为本发明提供的棋盘格图像示意图;FIG2 is a schematic diagram of a chessboard image provided by the present invention;

图3为本发明提供的棋盘格标志点检测示意图;FIG3 is a schematic diagram of chessboard marker point detection provided by the present invention;

图4为本发明提供的棋盘格图像分区示意图;FIG4 is a schematic diagram of chessboard image partitioning provided by the present invention;

图5为本发明提供的深度学习网络模型示意图;FIG5 is a schematic diagram of a deep learning network model provided by the present invention;

图6为本发明提供的棋盘格图像第一分区标志点实际坐标、理想坐标、校正后坐标分布示意图;6 is a schematic diagram of the distribution of actual coordinates, ideal coordinates, and corrected coordinates of the first partition mark points of the chessboard image provided by the present invention;

图7为本发明提供的校正后棋盘格图像示意图;FIG7 is a schematic diagram of a corrected chessboard image provided by the present invention;

图8为本发明提供的校正结果定量评价参数说明图;FIG8 is a diagram illustrating quantitative evaluation parameters of calibration results provided by the present invention;

图9为本发明提供的行标志点水平度计算结果示意图;FIG9 is a schematic diagram of the calculation result of the horizontality of the row mark points provided by the present invention;

图10为本发明提供的列标志点垂直度计算结果示意图;FIG10 is a schematic diagram of the calculation results of the verticality of column marker points provided by the present invention;

图11为本发明提供的水平相邻标志点分布均匀度计算结果示意图;FIG11 is a schematic diagram of a calculation result of the uniformity of distribution of horizontally adjacent marking points provided by the present invention;

图12为本发明提供的垂直相邻标志点分布均匀度计算结果示意图。FIG. 12 is a schematic diagram of the calculation results of the uniformity of distribution of vertically adjacent marking points provided by the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

本发明的目的是提供一种面向大视场平面视觉测量的图像校正方法及系统,能够在无需摄像机标定的前提下完成大视场、高畸变的图像精准校正,提高图像校正精度和校正效率。The purpose of the present invention is to provide an image correction method and system for large-field-of-view planar vision measurement, which can complete the precise correction of large-field-of-view and high-distortion images without camera calibration, thereby improving the image correction accuracy and correction efficiency.

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

在基于单目摄像机的大视场平面测量中,为了更加方便、快速、准确地完成图像校正,以为后续测量工作提供有效保障,本发明基于单目视觉,基于分区校正的策略,建立深度学习网络模型,在无需计算摄像机内外参数的情况下完成图像校正,同时针对本发明的图像校正方法,提出一种图像校正结果评价方法。In the large field of view plane measurement based on a monocular camera, in order to complete image correction more conveniently, quickly and accurately to provide effective guarantee for subsequent measurement work, the present invention is based on monocular vision and a partition correction strategy to establish a deep learning network model to complete image correction without calculating the internal and external parameters of the camera. At the same time, a method for evaluating image correction results is proposed for the image correction method of the present invention.

图1为本发明提供的一种面向大视场平面视觉测量的图像校正方法流程图。如图1所示,本发明一种面向大视场平面视觉测量的图像校正方法包括:FIG1 is a flow chart of an image correction method for large-field-of-view plane vision measurement provided by the present invention. As shown in FIG1 , an image correction method for large-field-of-view plane vision measurement provided by the present invention comprises:

步骤101:获取待测平面的棋盘格图像。Step 101: Acquire a checkerboard image of the plane to be measured.

具体地,将配有广角镜头的相机固定于待测平面视场的上方,利用LED光源对拍摄区域进行补光,以减小环境光对拍摄的影响。将特制的棋盘格标定板1作为标定靶平放于待测平面2上,利用计算机控制相机获取待测平面2的图像。在实际拍摄过程中,根据图像的平均灰度值和清晰度,实时调整相机的曝光时间、增益等拍摄参数,获取满足标志点检测的图像,即图2所示的待测平面2的棋盘格图像。Specifically, a camera equipped with a wide-angle lens is fixed above the field of view of the plane to be measured, and an LED light source is used to fill the shooting area with light to reduce the influence of ambient light on the shooting. A specially made checkerboard calibration plate 1 is placed flat on the plane to be measured 2 as a calibration target, and a computer is used to control the camera to obtain an image of the plane to be measured 2. In the actual shooting process, the exposure time, gain and other shooting parameters of the camera are adjusted in real time according to the average gray value and clarity of the image to obtain an image that meets the mark point detection, that is, the checkerboard image of the plane to be measured 2 shown in Figure 2.

步骤102:对所述棋盘格图像进行标志点检测,提取所述标志点的实际图像坐标并对所述棋盘格图像进行分区。Step 102: perform landmark point detection on the checkerboard image, extract actual image coordinates of the landmark points and partition the checkerboard image.

对获取的图像进行预处理,提取棋盘格标定板的标志点图像坐标,根据视场的大小、标志点的数量以及标志点的分布情况,对图像的标志点进行分区。The acquired image is preprocessed to extract the image coordinates of the marker points of the checkerboard calibration plate, and the marker points of the image are partitioned according to the size of the field of view, the number of marker points and the distribution of the marker points.

因此,所述步骤102具体包括:Therefore, the step 102 specifically includes:

步骤2.1:对所述棋盘格图像进行标志点检测,提取棋盘格的角点作为所述标志点。Step 2.1: Perform landmark point detection on the chessboard image, and extract the corner points of the chessboard as the landmark points.

图3为本发明提供的棋盘格标志点检测示意图。具体地,参见图3,基于局部平均自适应阈值化方法对棋盘格图像进行二值化,图像膨胀分离各个黑块四边形的衔接,得到缩小的黑块四边形,基于长宽比、周长和面积等约束条件检测黑块四边形,将每个四边形作为一个单元,对角相邻的两个四边形相对的两个点,取其连线的中间点作为角点3。即,黑块四边形的四个顶点为角点。FIG3 is a schematic diagram of the checkerboard mark point detection provided by the present invention. Specifically, referring to FIG3, the checkerboard image is binarized based on the local average adaptive thresholding method, and the connection of each black block quadrilateral is separated by image expansion to obtain a reduced black block quadrilateral. The black block quadrilateral is detected based on constraints such as aspect ratio, perimeter and area, and each quadrilateral is taken as a unit. The middle point of the line connecting the two opposite points of two diagonally adjacent quadrilaterals is taken as the corner point 3. That is, the four vertices of the black block quadrilateral are the corner points.

步骤2.2:提取所述标志点的实际图像坐标。Step 2.2: Extract the actual image coordinates of the landmark points.

步骤2.3:根据所述标志点的实际图像坐标分布对所述棋盘格图像进行分区,每个所述分区包含的标志点数量大于或等于60个。Step 2.3: partition the checkerboard image according to the actual image coordinate distribution of the marker points, wherein the number of marker points contained in each partition is greater than or equal to 60.

具体地,为了提高畸变校正的精度、降低深度学习网络模型的复杂度以及提高模型训练效率,根据视场的大小、标志点的数量以及标志点的实际图像坐标分布情况,对整幅棋盘格图像进行分区,每个分区包含的标志点数量不少于60个。图4为本发明提供的棋盘格图像分区示意图,图4中划分出了24个分区。Specifically, in order to improve the accuracy of distortion correction, reduce the complexity of the deep learning network model, and improve the efficiency of model training, the entire chessboard image is partitioned according to the size of the field of view, the number of marker points, and the actual image coordinate distribution of the marker points, and each partition contains no less than 60 marker points. Figure 4 is a schematic diagram of the chessboard image partition provided by the present invention, in which 24 partitions are divided.

步骤103:为所述标志点设置理想图像坐标,根据所述标志点的实际图像坐标和理想图像坐标建立每个分区的训练数据库。Step 103: setting ideal image coordinates for the marker points, and establishing a training database for each partition according to the actual image coordinates and the ideal image coordinates of the marker points.

所述步骤103具体包括:The step 103 specifically includes:

步骤3.1:根据所述标志点的实际图像坐标分布和图像校正的目标,为所述标志点设置理想图像坐标。Step 3.1: According to the actual image coordinate distribution of the marker point and the goal of image correction, set the ideal image coordinates for the marker point.

具体地,面向大视场平面视觉测量的图像校正的目的是获取待测平面的无畸变正视图,棋盘格标定的行标志点和列标志点是正交分布的,且相邻标志点的横向距离和纵向距离相等,因此可以根据标志点分布情况和图像校正的目标,为步骤102中检测到的每一个标志点设置理想的图像坐标。Specifically, the purpose of image correction for large field of view plane vision measurement is to obtain an undistorted front view of the plane to be measured. The row marker points and column marker points of the chessboard calibration are orthogonally distributed, and the lateral distance and longitudinal distance of adjacent marker points are equal. Therefore, the ideal image coordinates can be set for each marker point detected in step 102 according to the distribution of the marker points and the goal of image correction.

步骤3.2:根据所述每个分区内所有标志点的实际图像坐标和理想图像坐标构成每个分区的训练数据库。Step 3.2: Construct a training database for each partition according to the actual image coordinates and ideal image coordinates of all the landmarks in each partition.

步骤104:建立深度学习网络模型,并利用所述每个分区的训练数据库分别为每个分区训练所述深度学习网络模型,生成每个分区训练好的图像校正模型。Step 104: Establish a deep learning network model, and use the training database of each partition to train the deep learning network model for each partition respectively, to generate a trained image correction model for each partition.

所述步骤104具体包括:The step 104 specifically includes:

步骤4.1:建立深度学习网络模型。Step 4.1: Build a deep learning network model.

具体地,图5为本发明提供的深度学习网络模型示意图。本发明采用如图5所示的DNN深度神经网络搭建深度学习网络模型,该模型包括输入层、2个隐藏层和输出层。输入层和输出层都包含2个神经元,分别表示一个标志点的实际图像坐标(col,row)和其对应的理想图像坐标(col’,row’),其中,row和row’表示标志点的行坐标;col和col’表示列坐标。即,深度学习网络模型的输入为标志点的实际图像坐标,其中一个神经元的输入为标志点的行坐标,另一个神经元的输入为标志点的列坐标。深度学习网络模型的输出为该标志点对应的理想图像坐标,其中一个神经元的输出为该标志点对应的理想行坐标,另一个神经元的输出为该标志点对应的理想列坐标。Specifically, FIG5 is a schematic diagram of a deep learning network model provided by the present invention. The present invention uses a DNN deep neural network as shown in FIG5 to build a deep learning network model, and the model includes an input layer, two hidden layers and an output layer. The input layer and the output layer both contain two neurons, which respectively represent the actual image coordinates (col, row) of a marker point and its corresponding ideal image coordinates (col', row'), wherein row and row' represent the row coordinates of the marker point; col and col' represent the column coordinates. That is, the input of the deep learning network model is the actual image coordinates of the marker point, the input of one neuron is the row coordinates of the marker point, and the input of the other neuron is the column coordinates of the marker point. The output of the deep learning network model is the ideal image coordinates corresponding to the marker point, the output of one neuron is the ideal row coordinates corresponding to the marker point, and the output of the other neuron is the ideal column coordinates corresponding to the marker point.

利用公式(1)对图像的每一个分区内的行坐标和列坐标进行归一化处理,得到实际图像坐标为(x1,y1),理想图像坐标为(x2,y2),公式如下:The row and column coordinates of each partition of the image are normalized using formula (1), and the actual image coordinates are (x 1 , y 1 ) and the ideal image coordinates are (x 2 , y 2 ), as shown in the following formula:

其中,zi为待归一化的向量;min(Z)为向量Z中元素的最小值;max(Z)为向量Z中元素的最大值;Z′i为归一化处理后的向量。Wherein, z i is the vector to be normalized; min(Z) is the minimum value of the elements in the vector Z; max(Z) is the maximum value of the elements in the vector Z; and Z′ i is the vector after normalization.

在对图像的行坐标和列坐标进行归一化处理过程中,每个分区内所有标志点的行坐标为一个向量,利用公式(1)对行向量进行归一化处理;所有标志点的列坐标为另一个向量,利用公式(1)再对列向量进行归一化处理。将每一个分区内归一化处理后得到的实际图像坐标(x1,y1)和对应的理想图像坐标为(x2,y2)作为一个训练样本,构成每个分区的训练数据。In the process of normalizing the row and column coordinates of the image, the row coordinates of all the landmarks in each partition are a vector, and the row vector is normalized using formula (1); the column coordinates of all the landmarks are another vector, and the column vector is normalized again using formula (1). The actual image coordinates (x 1 , y 1 ) obtained after normalization in each partition and the corresponding ideal image coordinates (x 2 , y 2 ) are used as a training sample to constitute the training data of each partition.

步骤4.2:利用每个分区的训练数据,为每个分区训练深度学习网络模型。Step 4.2: Using the training data of each partition, train a deep learning network model for each partition.

利用标志点的实际图像坐标和理想图像坐标进行训练,计算每个分区的模型参数。在模型训练过程中,训练的目的是减少预测值和样本标签值之间的差距,差距通过均方差的欧氏距离来表示,定义损失函数为公式(2)。通过模型参数初始化、学习率调整、权重参数更新等一系列阶段,分别训练每个分区的DNN深度学习网络模型。再通过测试点验证模型的精度和有效性,得到每个分区训练好的图像校正模型。损失函数公式如下:The actual image coordinates and ideal image coordinates of the landmark points are used for training to calculate the model parameters of each partition. During the model training process, the purpose of training is to reduce the gap between the predicted value and the sample label value. The gap is represented by the Euclidean distance of the mean square error, and the loss function is defined as formula (2). Through a series of stages such as model parameter initialization, learning rate adjustment, and weight parameter update, the DNN deep learning network model of each partition is trained separately. The accuracy and effectiveness of the model are then verified through test points to obtain a trained image correction model for each partition. The loss function formula is as follows:

其中,J(w,b)为损失函数;m为每个分区内标志点的数量;xi1为第i个标志点的实际图像坐标的行坐标;yi1为第i个标志点的实际图像坐标的列坐标;xi2为第i个标志点的理想图像坐标的行坐标;yi2为第i个标志点的理想图像坐标的列坐标。Among them, J(w, b) is the loss function; m is the number of landmarks in each partition; x i1 is the row coordinate of the actual image coordinates of the i-th landmark; y i1 is the column coordinate of the actual image coordinates of the i-th landmark; xi2 is the row coordinate of the ideal image coordinates of the i-th landmark; y i2 is the column coordinate of the ideal image coordinates of the i-th landmark.

步骤105:利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标,计算每个分区的remap矩阵。Step 105: Utilize the image correction model of each partition to calculate the ideal image coordinates of all pixels in each partition, and calculate the remap matrix of each partition.

具体地,利用每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标,再根据每个分区中所有像素点的实际图像坐标和理想图像坐标之间的映射关系,构建每个分区的remap矩阵Hi2i作为图像校正的映射矩阵。Specifically, the image correction model of each partition is used to calculate the ideal image coordinates of all pixels in each partition, and then according to the mapping relationship between the actual image coordinates and the ideal image coordinates of all pixels in each partition, the remap matrix H i2i of each partition is constructed as the mapping matrix for image correction.

为了提高图像校正效率,在之后的待测图像校正时不再利用每个分区的图像校正模型,而是用remap矩阵Hi2i来计算像素点校正后的坐标(称为校正坐标),采用多线程技术和双线性插值法,对图像进行畸变校正,得到待测平面的标准正视图,为高精度、大视场平面测量提供保障,并且降低计算量、提高计算速度,进而提高图像校正效率。In order to improve the efficiency of image correction, the image correction model of each partition is no longer used in the subsequent correction of the image to be measured. Instead, the remap matrix Hi2i is used to calculate the coordinates of the corrected pixels (called correction coordinates). Multi-threading technology and bilinear interpolation are used to correct the image distortion and obtain the standard front view of the plane to be measured, which provides guarantee for high-precision and large-field-of-view plane measurement, reduces the amount of calculation, increases the calculation speed, and thus improves the efficiency of image correction.

为了验证remap矩阵Hi2i的有效性,本发明利用remap矩阵Hi2i计算棋盘格图像的所有像素点的校正后的坐标进行验证。In order to verify the validity of the remap matrix H i2i , the present invention uses the remap matrix H i2i to calculate the corrected coordinates of all pixels of the checkerboard image for verification.

先利用remap矩阵Hi2i计算棋盘格图像每个分区内像素点校正后的坐标,计算公式如下:First, use the remap matrix Hi2i to calculate the corrected coordinates of the pixels in each partition of the chessboard image. The calculation formula is as follows:

其中,为像素点校正前的坐标向量,即像素点原始坐标(或实际坐标)构成的向量;/>为相应像素点校正后的坐标向量,即像素点校正坐标构成的向量。in, is the coordinate vector of the pixel before correction, that is, the vector composed of the original coordinates (or actual coordinates) of the pixel;/> is the coordinate vector of the corresponding pixel point after correction, that is, the vector formed by the pixel point correction coordinates.

图6为本发明提供的棋盘格图像第一分区标志点实际坐标、理想坐标、校正后坐标分布示意图,其中4表示标志点实际坐标(也称原始坐标),5表示理想坐标(即理想图像坐标),6表示校正后坐标(也称校正坐标)。如图6所示,利用remap矩阵Hi2i计算棋盘格图像标志点校正后的坐标与理想坐标是高度重合的。FIG6 is a schematic diagram of the distribution of the actual coordinates, ideal coordinates, and corrected coordinates of the marker points of the first partition of the chessboard image provided by the present invention, wherein 4 represents the actual coordinates of the marker points (also called the original coordinates), 5 represents the ideal coordinates (i.e., the ideal image coordinates), and 6 represents the corrected coordinates (also called the corrected coordinates). As shown in FIG6 , the corrected coordinates of the marker points of the chessboard image calculated using the remap matrix H i2i are highly coincident with the ideal coordinates.

再采用多线程技术和双线性插值法,对棋盘格图像进行畸变校正,即可得到棋盘格图像的标准正视图,如图7所示。Then, the multi-threading technology and bilinear interpolation method are used to correct the distortion of the chessboard image, and a standard front view of the chessboard image can be obtained, as shown in FIG7 .

本发明还提出了基于列标志点垂直度、行标定点水平度、相邻标志点分布均匀度的图像校正评价方法,验证本发明提出的面向大视场平面视觉测量的图像校正方法的准确性和有效性。该评价方法是一种面向平面测量图像校正的有效定量评价方法。The present invention also proposes an image correction evaluation method based on the verticality of column markers, the horizontality of row markers, and the uniformity of the distribution of adjacent markers to verify the accuracy and effectiveness of the image correction method for large-field-of-view plane vision measurement proposed by the present invention. This evaluation method is an effective quantitative evaluation method for image correction for plane measurement.

具体地,提取如图7所示的校正后棋盘格图像的标志点,计算列标志点垂直度、行标定点水平度、相邻标志点分布均匀度,各参数说明如图8所示。Specifically, the marker points of the corrected chessboard image shown in FIG7 are extracted, and the verticality of the column marker points, the horizontality of the row marker points, and the uniformity of the distribution of adjacent marker points are calculated. The description of each parameter is shown in FIG8 .

其中,列标志点垂直度VM计算公式如下:Among them, the calculation formula of the column marker verticality VM is as follows:

其中,n为每一列标志点的数量;m为每一行标志点的数量;xij为第j列中第i个标志点的x坐标;AVG(Xj)表示第j列所有标志点的x坐标均值。Where n is the number of landmarks in each column; m is the number of landmarks in each row; xij is the x-coordinate of the ith landmark in the jth column; and AVG( Xj ) represents the average x-coordinate of all landmarks in the jth column.

行标志点水平度计算HM公式如下:The formula for calculating the horizontality of the row mark point HM is as follows:

其中,yij为第j行中第i个角点的y坐标;AVG(Yj)表示第j行所有角点的y坐标均值。Where yij is the y-coordinate of the i-th corner point in the j-th row; AVG( Yj ) represents the average y-coordinate of all corner points in the j-th row.

水平相邻标志点分布均匀度UHM计算公式如下:The calculation formula for the uniformity of distribution of horizontal adjacent landmark points UHM is as follows:

其中,xjk为第j行中第k个标志点的x坐标;xjk-1为第j行中第k-1个标志点的x坐标。Among them, xjk is the x-coordinate of the k-th marker point in the j-th row; xjk -1 is the x-coordinate of the k-1-th marker point in the j-th row.

垂直相邻标志点分布均匀度UVM计算公式如下:The calculation formula for the uniformity of vertically adjacent marker points distribution UVM is as follows:

其中,yjk为第j列中第k个角点的y坐标;yjk-1为第j列中第k-1个角点的y坐标。Among them, y jk is the y-coordinate of the k-th corner point in the j-th column; y jk-1 is the y-coordinate of the k-1-th corner point in the j-th column.

垂直度、水平度和均匀度越好,即VM、HM、UHM、UVM向量中的元素值越小,证明图像校正的效果越好。The better the verticality, horizontality and uniformity, that is, the smaller the element values in the VM, HM, UHM and UVM vectors, the better the image correction effect.

采用该图像校正评价方法,验证了本发明remap矩阵Hi2i的准确性。那么在之后的待测图像校正时,不必再利用每个分区的图像校正模型,用remap矩阵Hi2i即可计算像素点校正后的坐标,采用多线程技术和双线性插值法,对图像进行畸变校正,即可得到待测平面的标准正视图。The image correction evaluation method is used to verify the accuracy of the remap matrix Hi2i of the present invention. Therefore, when correcting the image to be tested later, it is no longer necessary to use the image correction model of each partition. The remap matrix Hi2i can be used to calculate the coordinates of the corrected pixel points, and the image distortion can be corrected by using multi-threading technology and bilinear interpolation to obtain a standard front view of the plane to be tested.

步骤106:获取待测平面图像并对所述待测平面图像进行分区。Step 106: Acquire the plane image to be measured and partition the plane image to be measured.

具体地,将配有广角镜头的相机固定于待测平面视场的上方,利用LED光源对拍摄区域进行补光,以减小环境光对拍摄的影响,利用计算机控制相机获取待测平面的图像。按照在此视场下拍摄的棋盘格图像的分区规则对待测平面图像进行分区。Specifically, a camera equipped with a wide-angle lens is fixed above the field of view of the plane to be measured, and an LED light source is used to fill the shooting area with light to reduce the influence of ambient light on the shooting. The camera is controlled by a computer to obtain an image of the plane to be measured. The image of the plane to be measured is partitioned according to the partitioning rules of the chessboard image taken under this field of view.

步骤107:利用所述每个分区的remap矩阵生成所述待测平面每个分区的无畸变正视图。Step 107: Generate an undistorted front view of each partition of the plane to be measured using the remap matrix of each partition.

利用每个分区的remap矩阵Hi2i,基于公式(3)计算待测平面图像该分区内像素点的校正后的坐标,通过双线性插值法,对该分区图像进行畸变校正,得到该分区的无畸变正视图。The remap matrix H i2i of each partition is used to calculate the corrected coordinates of the pixel points in the partition of the plane image to be measured based on formula (3). The partition image is distorted by bilinear interpolation to obtain the distortion-free front view of the partition.

先利用remap矩阵Hi2i计算棋盘格图像每个分区内像素点校正后的坐标,计算公式如下:First, use the remap matrix Hi2i to calculate the corrected coordinates of the pixels in each partition of the chessboard image. The calculation formula is as follows:

其中,为像素点校正前的坐标向量,即像素点原始坐标(或实际坐标)构成的向量;/>为相应像素点校正后的坐标向量,即像素点校正坐标构成的向量。in, is the coordinate vector of the pixel before correction, that is, the vector composed of the original coordinates (or actual coordinates) of the pixel;/> is the coordinate vector of the corresponding pixel point after correction, that is, the vector formed by the pixel point correction coordinates.

基于深度学习网络模型校正图像避免了相机内、外参数和镜头畸变系数的计算,且融合了传统图像校正的标志点提取和AI图像处理的深度学习方法,不需要通过卷积提取图像特征,最大程度上保证了图像校正精度和校正效率。Image correction based on the deep learning network model avoids the calculation of camera internal and external parameters and lens distortion coefficients, and integrates the landmark point extraction of traditional image correction and the deep learning method of AI image processing. It does not require image feature extraction through convolution, thus ensuring the image correction accuracy and efficiency to the greatest extent.

为实现大视场平面测量,本发明还提供一种校正后的图像正视图坐标与平面物理坐标的转换矩阵,实现大视场平面测量。In order to realize the large-field-of-view plane measurement, the present invention also provides a conversion matrix between the corrected image front view coordinates and the plane physical coordinates to realize the large-field-of-view plane measurement.

具体地,提取待测平面图像的标准正视图的标志点坐标,构建待测平面的平面物理坐标,计算remap矩阵Hi2w,基于Hi2w进行标志点图像坐标和物理坐标的转换,物理坐标向量计算公式如下:Specifically, the coordinates of the marker points of the standard front view of the plane image to be measured are extracted, the plane physical coordinates of the plane to be measured are constructed, the remap matrix H i2w is calculated, and the conversion between the marker point image coordinates and the physical coordinates is performed based on H i2w . The physical coordinate vector calculation formula is as follows:

其中,为图像坐标向量;/>为对应的物理坐标向量。in, is the image coordinate vector; /> is the corresponding physical coordinate vector.

步骤108:拼接所述待测平面各个分区的无畸变正视图,生成所述待测平面图像的无畸变正视图。Step 108: stitching the undistorted front views of the various subareas of the plane to be measured to generate an undistorted front view of the image of the plane to be measured.

本发明将配有广角镜头的相机固定于待测平面视场的上方,在待测平面上放置标定靶,利用计算机控制相机获取待测平面的图像;对图像进行预处理,提取标定靶的标志点图像坐标,同时根据标志的实际分布情况为每个标志点建立理想图像坐标;根据视场的大小、标志点的数量以及标志点的分布情况,对图像的标志点进行分区;建立深度学习网络模型,利用标志点的实际图像坐标和理想图像坐标进行训练,计算每个区域的模型参数;利用训练好的模型,采用多线程技术和双线性插值法,完成图像的校正。同时基于列标志点垂直度、行标定点水平度、相邻标志点分布均匀度,对图像校正结果进行评价。为了提高图像校正效率,利用训练好的网络模型,生成图像校正的映射矩阵。由此可见,本发明在不依赖相机的内外参数的前提下,完成了适用于平面视觉测量的大视场、高畸变的图像精准校正。The present invention fixes a camera equipped with a wide-angle lens above the field of view of the plane to be measured, places a calibration target on the plane to be measured, and uses a computer to control the camera to obtain an image of the plane to be measured; pre-processes the image, extracts the image coordinates of the mark points of the calibration target, and establishes ideal image coordinates for each mark point according to the actual distribution of the mark; partitions the mark points of the image according to the size of the field of view, the number of mark points, and the distribution of the mark points; establishes a deep learning network model, uses the actual image coordinates and ideal image coordinates of the mark points for training, and calculates the model parameters of each area; uses the trained model, adopts multi-threading technology and bilinear interpolation method to complete the image correction. At the same time, the image correction results are evaluated based on the verticality of the column mark points, the horizontality of the row calibration points, and the uniformity of the distribution of adjacent mark points. In order to improve the efficiency of image correction, the trained network model is used to generate a mapping matrix for image correction. It can be seen that the present invention completes the precise correction of large-field-of-view, high-distortion images suitable for plane vision measurement without relying on the internal and external parameters of the camera.

下面提供本发明面向大视场平面视觉测量的图像校正方法的一个具体实施例。A specific embodiment of the image correction method for large-field-of-view plane vision measurement of the present invention is provided below.

本发明图像校正方法的一个具体实施过程包括:A specific implementation process of the image correction method of the present invention includes:

1、获取待测平面图像:在待测平面上放置特制的棋盘格标定板,待测平面的物理尺寸为3000mm×2000mm,棋盘格的物理尺寸为50mm×50mm,每一行的标志点数量为63个,每一列的标志点数量为39个。在待测平面上方布置配有广角镜头的摄像机,相机分辨率为3664×2748,开启相机的实时采集模式,根据图像的平均灰度值和清晰度,实时调整摄像机的曝光时间、增益等拍摄参数,抓取高质量的棋盘格图像,如图2所示。1. Get the image of the plane to be measured: Place a special checkerboard calibration plate on the plane to be measured. The physical size of the plane to be measured is 3000mm×2000mm, the physical size of the checkerboard is 50mm×50mm, the number of markers in each row is 63, and the number of markers in each column is 39. Place a camera with a wide-angle lens above the plane to be measured. The camera resolution is 3664×2748. Turn on the real-time acquisition mode of the camera. According to the average gray value and clarity of the image, adjust the exposure time, gain and other shooting parameters of the camera in real time to capture a high-quality checkerboard image, as shown in Figure 2.

2、标志点检测和分区:基于局部平均自适应阈值化方法对棋盘格图像进行二值化,图像膨胀分离各个黑块四边形的衔接,得到缩小黑块四边形,基于长宽比、周长和面积等约束检测四边形,将每个四边形作为一个单元,对角相邻的两个四边形相对的两个点,取其连线的中间点作为角点,如图3所示,将其角点作为标志点。根据标志点图像坐标分布情况,对整幅图像分成6×4=24个区域,如图4所示,每个分区包含的标志点数量不少于90个。2. Landmark point detection and partitioning: Binarize the checkerboard image based on the local average adaptive thresholding method, dilate and separate the connection of each black block quadrilateral, and obtain the reduced black block quadrilateral. Detect the quadrilateral based on the constraints such as aspect ratio, perimeter and area. Take each quadrilateral as a unit, and take the middle point of the line connecting the two opposite points of the two diagonally adjacent quadrilaterals as the corner point, as shown in Figure 3, and use the corner point as the landmark point. According to the distribution of the landmark point image coordinates, divide the entire image into 6×4=24 regions, as shown in Figure 4, and each partition contains no less than 90 landmark points.

3、生成训练数据库:在上一步检测得到了63×39=2457个标志点,棋盘格的行角点和列角点是正交分布的,且相邻角点的横向和纵向距离相等,根据角点分布和图像校正的目标,为每一个标志点设置理想的图像坐标。将左上角的标志点的理想图像坐标设定为(127,329),以该点水平向右为X轴正方向,垂直向下为Y轴正方向,以50个像素为步长,为每个标志点设置理想的图像坐标。进而,利用每个分区的标志点的实际图像坐标和理想图像坐标构建训练数据库,一共生成24个分区的训练数据库。3. Generate a training database: In the previous step, 63×39=2457 marker points were detected. The row and column corner points of the chessboard are orthogonally distributed, and the horizontal and vertical distances between adjacent corner points are equal. According to the distribution of corner points and the goal of image correction, set the ideal image coordinates for each marker point. Set the ideal image coordinates of the upper left corner marker point to (127, 329), with the horizontal right direction of the point as the positive direction of the X axis, the vertical downward direction as the positive direction of the Y axis, and a step size of 50 pixels to set the ideal image coordinates for each marker point. Then, use the actual image coordinates and ideal image coordinates of the marker points in each partition to construct a training database, and generate a total of 24 partitioned training databases.

4、构建、训练、深度学习网络模型:为每个分区搭建DNN(深度神经网络)模型,共搭建24个DNN模型,利用每个分区的训练数据库训练对应的DNN模型,得到24个训练好的图像校正模型。4. Build, train, and deep learning network models: Build a DNN (deep neural network) model for each partition, a total of 24 DNN models, use the training database of each partition to train the corresponding DNN model, and obtain 24 trained image correction models.

5、校正图像:根据每个分区的训练好的图像校正模型,计算每个分区内每个像素点在校正前、后之间的坐标映射关系,构建remap矩阵Hi2i。通过双线性插值法,对图像进行畸变校正,得到棋盘格图像的每个分区的正视图。5. Correct the image: According to the trained image correction model of each partition, calculate the coordinate mapping relationship between each pixel point in each partition before and after correction, and construct the remap matrix H i2i . Use bilinear interpolation to correct the image distortion and obtain the front view of each partition of the checkerboard image.

拼接棋盘格图像各个分区的无畸变正视图,生成棋盘格整个图像的无畸变正视图,如图7所示。The undistorted front views of each partition of the chessboard image are stitched together to generate an undistorted front view of the entire chessboard image, as shown in FIG7 .

6、图像校正结果评价:提取棋盘格图像的无畸变正视图的标志点坐标,计算列标志点垂直度、行标志点水平度、相邻标志点分布均匀度,基于列标志点垂直度、行标定点水平度、相邻标志点分布均匀度对校正后的图像进行校正评价,验证本发明提出的面向大视场平面视觉测量的图像校正方法的准确性和有效性。图9为本发明提供的行标志点水平度(Horizontal degree ofline corner)计算结果示意图。行标志点水平度HM是一个39×1的向量,如图9所示,横坐标RowIndex为标志点行数,纵坐标HM为行标志点水平度,图中显示的是39行标志点的水平度数值。图10为本发明提供的列标志点垂直度(Vertical degreeofcolumn corner)计算结果示意图。列标志点垂直度VM是一个63×1的向量,如图10所示,横坐标Column Index为标志点列数,纵坐标VM为列标志点垂直度,图中显示的是63列标志点的垂直度数值。图11为本发明提供的水平相邻标志点分布均匀度(Distributionuniformity of horizontal corner points)计算结果示意图。水平相邻标志点分布均匀度UHM是一个39×1的向量,如图11所示,横坐标Row Index为标志点行数,纵坐标UHM为水平相邻标志点分布均匀度,图中显示的是39行标志点水平相邻分布均匀度数值。图12为本发明提供的垂直相邻标志点分布均匀度(Distribution uniformity of Vertical cornerpoints)计算结果示意图。垂直相邻标志点分布均匀度UVM是一个63×1的向量,如图12所示,横坐标Column Index为标志点列数,纵坐标UVM为垂直相邻标志点分布均匀度,图中显示的是63列标志点垂直相邻分布均匀度数值。其VM<0.045,HM<0.5,UHM<0.12,UVM<0.11,充分验证了本发明面向大视场平面视觉测量的图像校正方法的有效性。6. Evaluation of image correction results: Extract the coordinates of the marker points of the undistorted front view of the chessboard image, calculate the verticality of the column marker points, the horizontality of the row marker points, and the uniformity of the distribution of adjacent marker points. The corrected image is evaluated based on the verticality of the column marker points, the horizontality of the row calibration points, and the uniformity of the distribution of adjacent marker points to verify the accuracy and effectiveness of the image correction method for large field of view plane vision measurement proposed in the present invention. Figure 9 is a schematic diagram of the calculation results of the horizontality of the row marker points (Horizontal degree of line corner) provided by the present invention. The horizontality of the row marker point HM is a 39×1 vector, as shown in Figure 9, the horizontal coordinate RowIndex is the number of marker rows, the vertical coordinate HM is the horizontality of the row marker points, and the figure shows the horizontality values of 39 row marker points. Figure 10 is a schematic diagram of the calculation results of the verticality of the column marker points (Vertical degree of column corner) provided by the present invention. The verticality VM of the column marker point is a 63×1 vector, as shown in Figure 10, the horizontal coordinate Column Index is the number of marker columns, the vertical coordinate VM is the verticality of the column marker points, and the figure shows the verticality values of 63 column marker points. Figure 11 is a schematic diagram of the calculation results of the distribution uniformity of horizontal corner points provided by the present invention. The distribution uniformity of horizontal adjacent marker points UHM is a 39×1 vector. As shown in Figure 11, the horizontal coordinate Row Index is the number of marker rows, and the vertical coordinate UHM is the distribution uniformity of horizontal adjacent marker points. The figure shows the values of the horizontal adjacent distribution uniformity of 39 rows of marker points. Figure 12 is a schematic diagram of the calculation results of the distribution uniformity of vertical adjacent marker points provided by the present invention. The distribution uniformity of vertically adjacent marker points UVM is a 63×1 vector. As shown in Figure 12, the horizontal coordinate Column Index is the number of marker columns, and the vertical coordinate UVM is the distribution uniformity of vertically adjacent marker points. The figure shows the values of the vertical adjacent distribution uniformity of 63 columns of marker points. Its VM is less than 0.045, HM is less than 0.5, UHM is less than 0.12, and UVM is less than 0.11, which fully verifies the effectiveness of the image correction method of the present invention for large field of view plane visual measurement.

基于本发明提供的方法,本发明还提供一种面向大视场平面视觉测量的图像校正系统,所述系统包括:Based on the method provided by the present invention, the present invention also provides an image correction system for large-field-of-view plane visual measurement, the system comprising:

棋盘格图像获取模块,用于获取待测平面的棋盘格图像;所述待测平面上放置有棋盘格标定板。The chessboard image acquisition module is used to acquire a chessboard image of a plane to be measured; a chessboard calibration plate is placed on the plane to be measured.

标志点检测和分区模块,用于对所述棋盘格图像进行标志点检测,提取所述标志点的实际图像坐标并对所述棋盘格图像进行分区。The landmark point detection and partitioning module is used to perform landmark point detection on the checkerboard image, extract the actual image coordinates of the landmark points and partition the checkerboard image.

训练数据库建立模块,用于为所述标志点设置理想图像坐标,根据所述标志点的实际图像坐标和理想图像坐标建立每个分区的训练数据库。The training database establishment module is used to set ideal image coordinates for the marker points, and to establish a training database for each partition according to the actual image coordinates and the ideal image coordinates of the marker points.

图像校正模型建立模块,用于建立深度学习网络模型,并利用所述每个分区的训练数据库分别为每个分区训练所述深度学习网络模型,生成每个分区训练好的图像校正模型。The image correction model establishment module is used to establish a deep learning network model, and use the training database of each partition to train the deep learning network model for each partition respectively, so as to generate a trained image correction model for each partition.

remap矩阵建立模块,用于利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标,计算每个分区的remap矩阵。The remap matrix establishment module is used to calculate the ideal image coordinates of all pixels in each partition by using the image correction model of each partition, and calculate the remap matrix of each partition.

待测平面图像获取模块,用于获取待测平面图像并对所述待测平面图像进行分区。The plane image acquisition module to be measured is used to acquire the plane image to be measured and divide the plane image to be measured into different zones.

分区无畸变正视图生成模块,用于利用所述每个分区的remap矩阵生成所述待测平面每个分区的无畸变正视图。The partitioned undistorted front view generation module is used to generate an undistorted front view of each partition of the plane to be measured by using the remap matrix of each partition.

待测平面无畸变正视图生成模块,用于拼接所述待测平面各个分区的无畸变正视图,生成所述待测平面图像的无畸变正视图。The module for generating an undistorted front view of the plane to be measured is used to splice the undistorted front views of the various subareas of the plane to be measured to generate an undistorted front view of the image of the plane to be measured.

其中,所述棋盘格图像获取模块,具体包括:Wherein, the chessboard image acquisition module specifically includes:

相机设置单元,用于将配有广角镜头的相机固定于所述待测平面视场的上方,利用LED光源对拍摄区域进行补光;A camera setting unit, used to fix a camera equipped with a wide-angle lens above the plane field of view to be measured, and use an LED light source to fill in the shooting area;

棋盘格图像获取单元,用于在所述待测平面上放置所述棋盘格标定板,利用计算机控制所述相机拍摄获取所述棋盘格图像。The checkerboard image acquisition unit is used to place the checkerboard calibration plate on the plane to be measured, and use a computer to control the camera to capture the checkerboard image.

其中,所述标志点检测和分区模块,具体包括:The landmark detection and partitioning module specifically includes:

标志点检测单元,用于对所述棋盘格图像进行标志点检测,提取棋盘格的角点作为所述标志点;A landmark point detection unit, used to perform landmark point detection on the chessboard image, and extract corner points of the chessboard as the landmark points;

实际图像坐标提取单元,用于提取所述标志点的实际图像坐标;An actual image coordinate extraction unit, used to extract the actual image coordinates of the marker point;

分区单元,用于根据所述标志点的实际图像坐标分布对所述棋盘格图像进行分区;每个所述分区包含的标志点数量大于或等于60个。A partitioning unit is used to partition the checkerboard image according to the actual image coordinate distribution of the marker points; the number of marker points contained in each partition is greater than or equal to 60.

其中,所述训练数据库建立模块,具体包括:Wherein, the training database establishment module specifically includes:

理想图像坐标设置单元,用于根据所述标志点的实际图像坐标分布和图像校正的目标,为所述标志点设置理想图像坐标;An ideal image coordinate setting unit, used to set ideal image coordinates for the marker point according to the actual image coordinate distribution of the marker point and the target of image correction;

训练数据库建立单元,用于根据所述每个分区内所有标志点的实际图像坐标和理想图像坐标构成每个分区的训练数据库。The training database establishing unit is used to construct a training database for each partition according to the actual image coordinates and ideal image coordinates of all the marker points in each partition.

其中,所述remap矩阵建立模块,具体包括:Wherein, the remap matrix establishment module specifically includes:

理想图像坐标计算单元,用于利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标;An ideal image coordinate calculation unit, used to calculate the ideal image coordinates of all pixels in each partition using the image correction model of each partition;

remap矩阵建立单元,用于根据所述每个分区中所有像素点的实际图像坐标和理想图像坐标之间的映射关系,构建每个分区的remap矩阵。The remap matrix building unit is used to build the remap matrix of each partition according to the mapping relationship between the actual image coordinates and the ideal image coordinates of all the pixels in each partition.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本发明的限制。This article uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims (8)

1.一种面向大视场平面视觉测量的图像校正方法,其特征在于,包括:1. An image correction method for large field of view plane vision measurement, characterized by comprising: 获取待测平面的棋盘格图像;所述待测平面上放置有棋盘格标定板;Acquire a checkerboard image of a plane to be measured; a checkerboard calibration plate is placed on the plane to be measured; 对所述棋盘格图像进行标志点检测,提取所述标志点的实际图像坐标并对所述棋盘格图像进行分区;Performing landmark point detection on the checkerboard image, extracting actual image coordinates of the landmark points and partitioning the checkerboard image; 为所述标志点设置理想图像坐标,根据所述标志点的实际图像坐标和理想图像坐标建立每个分区的训练数据库;Setting ideal image coordinates for the marker points, and establishing a training database for each partition according to the actual image coordinates and the ideal image coordinates of the marker points; 建立深度学习网络模型,并利用所述每个分区的训练数据库分别为每个分区训练所述深度学习网络模型,生成每个分区训练好的图像校正模型;Establishing a deep learning network model, and using the training database of each partition to train the deep learning network model for each partition, to generate a trained image correction model for each partition; 利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标,计算每个分区的remap矩阵;具体包括:利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标;根据所述每个分区中所有像素点的实际图像坐标和理想图像坐标之间的映射关系,构建每个分区的remap矩阵;The image correction model of each partition is used to calculate the ideal image coordinates of all pixels in each partition, and the remap matrix of each partition is calculated; specifically comprising: using the image correction model of each partition to calculate the ideal image coordinates of all pixels in each partition; according to the mapping relationship between the actual image coordinates and the ideal image coordinates of all pixels in each partition, constructing the remap matrix of each partition; 获取待测平面图像并对所述待测平面图像进行分区;Acquire a plane image to be measured and partition the plane image to be measured; 利用所述每个分区的remap矩阵生成所述待测平面每个分区的无畸变正视图;Generate an undistorted front view of each partition of the plane to be measured using the remap matrix of each partition; 拼接所述待测平面各个分区的无畸变正视图,生成所述待测平面图像的无畸变正视图。The undistorted front views of the subareas of the plane to be measured are spliced to generate an undistorted front view of the image of the plane to be measured. 2.根据权利要求1所述的图像校正方法,其特征在于,所述获取待测平面的棋盘格图像,具体包括:2. The image correction method according to claim 1, characterized in that the step of obtaining a checkerboard image of the plane to be measured specifically comprises: 将配有广角镜头的相机固定于所述待测平面视场的上方,利用LED光源对拍摄区域进行补光;A camera equipped with a wide-angle lens is fixed above the plane field of view to be measured, and an LED light source is used to fill in the shooting area; 在所述待测平面上放置所述棋盘格标定板,利用计算机控制所述相机拍摄获取所述棋盘格图像。The checkerboard calibration plate is placed on the plane to be measured, and the camera is controlled by a computer to capture the checkerboard image. 3.根据权利要求1所述的图像校正方法,其特征在于,所述对所述棋盘格图像进行标志点检测,提取所述标志点的实际图像坐标并对所述棋盘格图像进行分区,具体包括:3. The image correction method according to claim 1, characterized in that the step of detecting the marker points on the checkerboard image, extracting the actual image coordinates of the marker points and partitioning the checkerboard image specifically comprises: 对所述棋盘格图像进行标志点检测,提取棋盘格的角点作为所述标志点;Performing landmark point detection on the chessboard image, and extracting corner points of the chessboard as the landmark points; 提取所述标志点的实际图像坐标;Extracting the actual image coordinates of the marker points; 根据所述标志点的实际图像坐标分布对所述棋盘格图像进行分区;每个所述分区包含的标志点数量大于或等于60个。The checkerboard image is partitioned according to the actual image coordinate distribution of the marker points; the number of marker points contained in each partition is greater than or equal to 60. 4.根据权利要求1所述的图像校正方法,其特征在于,所述为所述标志点设置理想图像坐标,根据所述标志点的实际图像坐标和理想图像坐标建立每个分区的训练数据库,具体包括:4. The image correction method according to claim 1, characterized in that the step of setting the ideal image coordinates for the marker points and establishing a training database for each partition according to the actual image coordinates and the ideal image coordinates of the marker points specifically comprises: 根据所述标志点的实际图像坐标分布和图像校正的目标,为所述标志点设置理想图像坐标;According to the actual image coordinate distribution of the marker point and the goal of image correction, setting the ideal image coordinates for the marker point; 根据所述每个分区内所有标志点的实际图像坐标和理想图像坐标构成每个分区的训练数据库。A training database for each partition is constructed according to the actual image coordinates and ideal image coordinates of all the marker points in each partition. 5.一种面向大视场平面视觉测量的图像校正系统,其特征在于,包括:5. An image correction system for large-field-of-view plane vision measurement, characterized by comprising: 棋盘格图像获取模块,用于获取待测平面的棋盘格图像;所述待测平面上放置有棋盘格标定板;A checkerboard image acquisition module is used to acquire a checkerboard image of a plane to be measured; a checkerboard calibration plate is placed on the plane to be measured; 标志点检测和分区模块,用于对所述棋盘格图像进行标志点检测,提取所述标志点的实际图像坐标并对所述棋盘格图像进行分区;A landmark point detection and partitioning module, used to perform landmark point detection on the checkerboard image, extract the actual image coordinates of the landmark points and partition the checkerboard image; 训练数据库建立模块,用于为所述标志点设置理想图像坐标,根据所述标志点的实际图像坐标和理想图像坐标建立每个分区的训练数据库;A training database establishment module, used to set ideal image coordinates for the marker points, and establish a training database for each partition according to the actual image coordinates and the ideal image coordinates of the marker points; 图像校正模型建立模块,用于建立深度学习网络模型,并利用所述每个分区的训练数据库分别为每个分区训练所述深度学习网络模型,生成每个分区训练好的图像校正模型;An image correction model establishment module is used to establish a deep learning network model, and use the training database of each partition to train the deep learning network model for each partition, so as to generate a trained image correction model for each partition; remap矩阵建立模块,用于利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标,计算每个分区的remap矩阵;所述remap矩阵建立模块,具体包括:理想图像坐标计算单元,用于利用所述每个分区的图像校正模型计算每个分区中所有像素点的理想图像坐标;remap矩阵建立单元,用于根据所述每个分区中所有像素点的实际图像坐标和理想图像坐标之间的映射关系,构建每个分区的remap矩阵;A remap matrix establishment module is used to calculate the ideal image coordinates of all pixels in each partition by using the image correction model of each partition, and calculate the remap matrix of each partition; the remap matrix establishment module specifically includes: an ideal image coordinate calculation unit, which is used to calculate the ideal image coordinates of all pixels in each partition by using the image correction model of each partition; a remap matrix establishment unit, which is used to construct the remap matrix of each partition according to the mapping relationship between the actual image coordinates and the ideal image coordinates of all pixels in each partition; 待测平面图像获取模块,用于获取待测平面图像并对所述待测平面图像进行分区;A plane image acquisition module to be measured, used to acquire the plane image to be measured and divide the plane image to be measured into different zones; 分区无畸变正视图生成模块,用于利用所述每个分区的remap矩阵生成所述待测平面每个分区的无畸变正视图;A partitioned undistorted front view generation module, used to generate an undistorted front view of each partition of the plane to be measured by using the remap matrix of each partition; 待测平面无畸变正视图生成模块,用于拼接所述待测平面各个分区的无畸变正视图,生成所述待测平面图像的无畸变正视图。The module for generating an undistorted front view of the plane to be measured is used to splice the undistorted front views of the various subareas of the plane to be measured to generate an undistorted front view of the image of the plane to be measured. 6.根据权利要求5所述的图像校正系统,其特征在于,所述棋盘格图像获取模块,具体包括:6. The image correction system according to claim 5, characterized in that the checkerboard image acquisition module specifically comprises: 相机设置单元,用于将配有广角镜头的相机固定于所述待测平面视场的上方,利用LED光源对拍摄区域进行补光;A camera setting unit, used to fix a camera equipped with a wide-angle lens above the plane field of view to be measured, and use an LED light source to fill in the shooting area; 棋盘格图像获取单元,用于在所述待测平面上放置所述棋盘格标定板,利用计算机控制所述相机拍摄获取所述棋盘格图像。The checkerboard image acquisition unit is used to place the checkerboard calibration plate on the plane to be measured, and use a computer to control the camera to capture the checkerboard image. 7.根据权利要求5所述的图像校正系统,其特征在于,所述标志点检测和分区模块,具体包括:7. The image correction system according to claim 5, characterized in that the landmark detection and partitioning module specifically comprises: 标志点检测单元,用于对所述棋盘格图像进行标志点检测,提取棋盘格的角点作为所述标志点;A landmark point detection unit, used to perform landmark point detection on the chessboard image, and extract corner points of the chessboard as the landmark points; 实际图像坐标提取单元,用于提取所述标志点的实际图像坐标;An actual image coordinate extraction unit, used to extract the actual image coordinates of the marker point; 分区单元,用于根据所述标志点的实际图像坐标分布对所述棋盘格图像进行分区;每个所述分区包含的标志点数量大于或等于60个。A partitioning unit is used to partition the checkerboard image according to the actual image coordinate distribution of the marker points; the number of marker points contained in each partition is greater than or equal to 60. 8.根据权利要求5所述的图像校正系统,其特征在于,所述训练数据库建立模块,具体包括:8. The image correction system according to claim 5, characterized in that the training database establishment module specifically comprises: 理想图像坐标设置单元,用于根据所述标志点的实际图像坐标分布和图像校正的目标,为所述标志点设置理想图像坐标;An ideal image coordinate setting unit, used to set ideal image coordinates for the marker point according to the actual image coordinate distribution of the marker point and the target of image correction; 训练数据库建立单元,用于根据所述每个分区内所有标志点的实际图像坐标和理想图像坐标构成每个分区的训练数据库。The training database establishing unit is used to construct a training database for each partition according to the actual image coordinates and ideal image coordinates of all the marker points in each partition.
CN202210428357.4A 2022-04-22 2022-04-22 Image correction method and system for large field of view plane vision measurement Active CN114820787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210428357.4A CN114820787B (en) 2022-04-22 2022-04-22 Image correction method and system for large field of view plane vision measurement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210428357.4A CN114820787B (en) 2022-04-22 2022-04-22 Image correction method and system for large field of view plane vision measurement

Publications (2)

Publication Number Publication Date
CN114820787A CN114820787A (en) 2022-07-29
CN114820787B true CN114820787B (en) 2024-05-28

Family

ID=82504907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210428357.4A Active CN114820787B (en) 2022-04-22 2022-04-22 Image correction method and system for large field of view plane vision measurement

Country Status (1)

Country Link
CN (1) CN114820787B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942796A (en) * 2014-04-23 2014-07-23 清华大学 High-precision projector and camera calibration system and method
EP3200148A4 (en) * 2014-10-31 2017-08-02 Huawei Technologies Co., Ltd. Image processing method and device
CN107657643A (en) * 2017-08-28 2018-02-02 浙江工业大学 A kind of parallax calculation method based on space plane constraint
CN108198219A (en) * 2017-11-21 2018-06-22 合肥工业大学 Error compensation method for camera calibration parameters for photogrammetry
CN108760767A (en) * 2018-05-31 2018-11-06 电子科技大学 Large-size LCD Screen defect inspection method based on machine vision
CN108876749A (en) * 2018-07-02 2018-11-23 南京汇川工业视觉技术开发有限公司 A kind of lens distortion calibration method of robust
CN108986172A (en) * 2018-07-25 2018-12-11 西北工业大学 A kind of single-view linear camera scaling method towards small depth of field system
CN110660034A (en) * 2019-10-08 2020-01-07 北京迈格威科技有限公司 Image correction method, device and electronic device
CN111667536A (en) * 2019-03-09 2020-09-15 华东交通大学 Parameter calibration method based on zoom camera depth estimation
WO2021115071A1 (en) * 2019-12-12 2021-06-17 中国科学院深圳先进技术研究院 Three-dimensional reconstruction method and apparatus for monocular endoscope image, and terminal device
CN113358061A (en) * 2021-05-31 2021-09-07 东南大学 Single stripe three-dimensional point cloud measuring method for end-to-end calibration of deep learning network
CN113850195A (en) * 2021-09-27 2021-12-28 杭州东信北邮信息技术有限公司 AI intelligent object identification method based on 3D vision

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276734B (en) * 2019-06-24 2021-03-23 Oppo广东移动通信有限公司 Image distortion correction method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942796A (en) * 2014-04-23 2014-07-23 清华大学 High-precision projector and camera calibration system and method
EP3200148A4 (en) * 2014-10-31 2017-08-02 Huawei Technologies Co., Ltd. Image processing method and device
CN107657643A (en) * 2017-08-28 2018-02-02 浙江工业大学 A kind of parallax calculation method based on space plane constraint
CN108198219A (en) * 2017-11-21 2018-06-22 合肥工业大学 Error compensation method for camera calibration parameters for photogrammetry
CN108760767A (en) * 2018-05-31 2018-11-06 电子科技大学 Large-size LCD Screen defect inspection method based on machine vision
CN108876749A (en) * 2018-07-02 2018-11-23 南京汇川工业视觉技术开发有限公司 A kind of lens distortion calibration method of robust
CN108986172A (en) * 2018-07-25 2018-12-11 西北工业大学 A kind of single-view linear camera scaling method towards small depth of field system
CN111667536A (en) * 2019-03-09 2020-09-15 华东交通大学 Parameter calibration method based on zoom camera depth estimation
CN110660034A (en) * 2019-10-08 2020-01-07 北京迈格威科技有限公司 Image correction method, device and electronic device
WO2021115071A1 (en) * 2019-12-12 2021-06-17 中国科学院深圳先进技术研究院 Three-dimensional reconstruction method and apparatus for monocular endoscope image, and terminal device
CN113358061A (en) * 2021-05-31 2021-09-07 东南大学 Single stripe three-dimensional point cloud measuring method for end-to-end calibration of deep learning network
CN113850195A (en) * 2021-09-27 2021-12-28 杭州东信北邮信息技术有限公司 AI intelligent object identification method based on 3D vision

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Laigang Zhang ; Yibin Li ; Yongjun Zhao ; Qun Sun ; Ying Zhao.High Precision Monocular Plane Measurement for Large Field of View.2018 IEEE 8th Annual International Conference on CYBER Technology in Automation, Control, and Intelligent Systems (CYBER).2019,全文. *
W. Turner ; LTD ; .The Document Architecture for the Cornell Digital Library.IETF rfc1691.1994,全文. *
基于FPGA的双目立体视觉图像采集处理系统设计;王东伟;航空精密制造技术;20180215;全文 *
张来刚 ; 魏仲慧 ; 何昕 ; 孙群.多约束融合算法在多摄像机测量系统中的应用.液晶与显示.2013,全文. *
牛苗苗 ; 孙灿 ; 熊海涵.基于tsai方法的多项畸变模型单目摄像机标定.科技与企业.2015,全文. *

Also Published As

Publication number Publication date
CN114820787A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN106558080B (en) Monocular camera external parameter online calibration method
CN108288294A (en) A kind of outer ginseng scaling method of a 3D phases group of planes
CN102496160B (en) Calibration method of centralized control football robot vision system
CN109598762A (en) A kind of high-precision binocular camera scaling method
CN111210468A (en) Image depth information acquisition method and device
CN112753047B (en) Method and system for in-loop calibration and target point setting of hardware of camera and related equipment
CN106340044A (en) Camera external parameter automatic calibration method and calibration device
CN114998448B (en) A method for multi-constrained binocular fisheye camera calibration and spatial point positioning
CN115201883B (en) Moving target video positioning and speed measuring system and method
CN106971408A (en) A kind of camera marking method based on space-time conversion thought
CN106595702A (en) Astronomical-calibration-based spatial registration method for multiple sensors
Zheng et al. Registration of optical images with LiDAR data and its accuracy assessment
CN107492080A (en) Exempt from calibration easily monocular lens image radial distortion antidote
CN117635898A (en) Close-range image stitching method for crop dynamic phenotype extraction
CN112489141B (en) Production line calibration method and device for single-board single-image strip relay lens of vehicle-mounted camera
CN113781581A (en) Depth of field distortion model calibration method based on target loose attitude constraint
CN118864609A (en) A method, device and system for joint calibration of internal and external parameters of vehicle-mounted camera
CN118261787A (en) High-precision sub-pixel interpolation method suitable for image registration of multispectral camera
CN119006599B (en) Image processing method, device and system for measuring vehicle wheelbase
CN115512343A (en) A method for calibrating and reading recognition of a circular pointer instrument
CN114820787B (en) Image correction method and system for large field of view plane vision measurement
CN119515991A (en) A PTZ camera calibration method and device for high-precision geographic positioning
CN209279912U (en) A kind of object dimensional information collecting device
CN108447024A (en) Artificial intelligence distortion automatic correcting method based on in-orbit fixed star data
CN117854018A (en) Real-time target injection method and system in digital twin scene of traffic intersection

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