[go: up one dir, main page]

CN112634376B - Calibration method and device, calibration equipment and storage medium - Google Patents

Calibration method and device, calibration equipment and storage medium Download PDF

Info

Publication number
CN112634376B
CN112634376B CN202011566263.0A CN202011566263A CN112634376B CN 112634376 B CN112634376 B CN 112634376B CN 202011566263 A CN202011566263 A CN 202011566263A CN 112634376 B CN112634376 B CN 112634376B
Authority
CN
China
Prior art keywords
calibration
sensor
coordinate
motion platform
image
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
CN202011566263.0A
Other languages
Chinese (zh)
Other versions
CN112634376A (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.)
Shenzhen Zhongke Feice Technology Co Ltd
Original Assignee
Shenzhen Zhongke Feice Technology Co Ltd
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 Shenzhen Zhongke Feice Technology Co Ltd filed Critical Shenzhen Zhongke Feice Technology Co Ltd
Priority to CN202011566263.0A priority Critical patent/CN112634376B/en
Publication of CN112634376A publication Critical patent/CN112634376A/en
Application granted granted Critical
Publication of CN112634376B publication Critical patent/CN112634376B/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/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The calibration method comprises the steps of shooting a first calibration image of a calibration piece through a first sensor, shooting a second calibration image of the calibration piece through a second sensor, wherein the calibration piece is driven by a motion platform and comprises characteristic points; calculating a first calibration coordinate of the motion platform according to the first calibration image, and calculating a second calibration coordinate of the motion platform according to the second calibration image, wherein when the motion platform is positioned at the first calibration coordinate, the characteristic point is positioned at the center of a field of view of the first sensor, and when the motion platform is positioned at the second calibration coordinate, the characteristic point is positioned at the center of the field of view of the second sensor; and calibrating the position conversion relation between the first sensor and the second sensor according to the first calibration coordinate and the second calibration coordinate. The calibration method, the calibration device, the calibration equipment and the nonvolatile computer readable storage medium are simple in operation and are beneficial to improving the detection efficiency.

Description

标定方法及装置、标定设备和存储介质Calibration method and device, calibration equipment and storage medium

技术领域Technical Field

本申请涉及标定技术领域,特别涉及一种标定方法、标定装置、标定设备和非易失性计算机可读存储介质。The present application relates to the field of calibration technology, and in particular to a calibration method, a calibration device, a calibration equipment and a non-volatile computer-readable storage medium.

背景技术Background technique

目前,测量机的扫描路径的实现一直是测量机编程的主要环节,业界现有主流的方式多是通过手动控制两个不同类型相机(如可见光相机和深度相机等)分别去接近被测物,在调整到合适的位置后进行拍摄,以通过拍摄图像实现对被测物的检测,操作较为繁琐,检测效率较低。At present, the realization of the scanning path of the measuring machine has always been the main link of the measuring machine programming. The current mainstream method in the industry is to manually control two different types of cameras (such as visible light cameras and depth cameras, etc.) to approach the object to be measured respectively, and take pictures after adjusting to the appropriate position, so as to realize the detection of the object to be measured by taking images. The operation is relatively cumbersome and the detection efficiency is low.

发明内容Summary of the invention

本申请提供了一种标定方法、标定装置、标定设备和非易失性计算机可读存储介质。The present application provides a calibration method, a calibration apparatus, a calibration device and a non-volatile computer-readable storage medium.

本申请实施方式的标定方法包括通过第一传感器拍摄标定件的第一标定图像,通过第二传感器拍摄所述标定件的第二标定图像,所述标定件由运动平台带动,所述标定件包括特征点;依据所述第一标定图像计算所述运动平台的第一标定坐标,依据所述第二标定图像计算所述运动平台的第二标定坐标,其中,所述运动平台处于所述第一标定坐标时,所述特征点位于所述第一传感器的视场中心,所述运动平台处于所述第二标定坐标时,所述特征点位于所述第二传感器的视场中心;及根据所述第一标定坐标和第二标定坐标标定所述第一传感器和所述第二传感器之间的位置转换关系。The calibration method of the embodiment of the present application includes photographing a first calibration image of a calibration part through a first sensor, and photographing a second calibration image of the calibration part through a second sensor, wherein the calibration part is driven by a motion platform, and the calibration part includes feature points; calculating a first calibration coordinate of the motion platform according to the first calibration image, and calculating a second calibration coordinate of the motion platform according to the second calibration image, wherein when the motion platform is at the first calibration coordinate, the feature point is located at the center of the field of view of the first sensor, and when the motion platform is at the second calibration coordinate, the feature point is located at the center of the field of view of the second sensor; and calibrating the position conversion relationship between the first sensor and the second sensor according to the first calibration coordinate and the second calibration coordinate.

本申请实施方式的标定装置包括拍摄模块、第一计算模块和标定模块。所述拍摄模块用于通过第一传感器拍摄标定件的第一标定图像,通过第二传感器拍摄所述标定件的第二标定图像,所述标定件由运动平台带动,所述标定件包括特征点;所述第一计算模块用于依据所述第一标定图像计算所述运动平台的第一标定坐标,依据所述第二标定图像计算所述运动平台的第二标定坐标,其中,所述运动平台处于所述第一标定坐标时,所述特征点位于所述第一传感器的视场中心,所述运动平台处于所述第二标定坐标时,所述特征点位于所述第二传感器的视场中心;所述标定模块用于根据所述第一标定坐标和第二标定坐标标定所述第一传感器和所述第二传感器之间的位置转换关系。The calibration device of the embodiment of the present application includes a shooting module, a first calculation module and a calibration module. The shooting module is used to shoot a first calibration image of a calibration part through a first sensor, and shoot a second calibration image of the calibration part through a second sensor, wherein the calibration part is driven by a motion platform, and the calibration part includes feature points; the first calculation module is used to calculate the first calibration coordinates of the motion platform according to the first calibration image, and calculate the second calibration coordinates of the motion platform according to the second calibration image, wherein when the motion platform is at the first calibration coordinates, the feature points are located at the center of the field of view of the first sensor, and when the motion platform is at the second calibration coordinates, the feature points are located at the center of the field of view of the second sensor; the calibration module is used to calibrate the position conversion relationship between the first sensor and the second sensor according to the first calibration coordinates and the second calibration coordinates.

本申请实施方式的标定设备包括第一传感器、第二传感器、运动平台和处理器。所述第一传感器用于拍摄标定件的第一标定图像;所述第二传感器用于拍摄所述标定件的第二标定图像;所述运动平台用于带的所述标定件;所述处理器用于依据所述第一标定图像计算所述运动平台的第一标定坐标,依据所述第二标定图像计算所述运动平台的第二标定坐标,其中,所述运动平台处于所述第一标定坐标时,所述特征点位于所述第一传感器的视场中心,所述运动平台处于所述第二标定坐标时,所述特征点位于所述第二传感器的视场中心;及根据所述第一标定坐标和第二标定坐标标定所述第一传感器和所述第二传感器之间的位置转换关系。The calibration device of the embodiment of the present application includes a first sensor, a second sensor, a motion platform and a processor. The first sensor is used to capture a first calibration image of the calibration part; the second sensor is used to capture a second calibration image of the calibration part; the motion platform is used to carry the calibration part; the processor is used to calculate the first calibration coordinates of the motion platform based on the first calibration image, and calculate the second calibration coordinates of the motion platform based on the second calibration image, wherein when the motion platform is at the first calibration coordinates, the feature point is located at the center of the field of view of the first sensor, and when the motion platform is at the second calibration coordinates, the feature point is located at the center of the field of view of the second sensor; and the position conversion relationship between the first sensor and the second sensor is calibrated according to the first calibration coordinates and the second calibration coordinates.

本申请实施方式的一种存储有计算机程序的非易失性计算机可读存储介质,当所述计算机程序被一个或多个处理器执行时,使得所述处理器执行所述标定方法。所述标定方法包括通过第一传感器拍摄标定件的第一标定图像,通过第二传感器拍摄所述标定件的第二标定图像,所述标定件由运动平台带动,所述标定件包括特征点;依据所述第一标定图像计算所述运动平台的第一标定坐标,依据所述第二标定图像计算所述运动平台的第二标定坐标,其中,所述运动平台处于所述第一标定坐标时,所述特征点位于所述第一传感器的视场中心,所述运动平台处于所述第二标定坐标时,所述特征点位于所述第二传感器的视场中心;及根据所述第一标定坐标和第二标定坐标标定所述第一传感器和所述第二传感器之间的位置转换关系。A non-volatile computer-readable storage medium storing a computer program in an embodiment of the present application, when the computer program is executed by one or more processors, enables the processor to execute the calibration method. The calibration method includes photographing a first calibration image of a calibration member through a first sensor, photographing a second calibration image of the calibration member through a second sensor, wherein the calibration member is driven by a motion platform, and the calibration member includes feature points; calculating a first calibration coordinate of the motion platform according to the first calibration image, and calculating a second calibration coordinate of the motion platform according to the second calibration image, wherein when the motion platform is at the first calibration coordinate, the feature point is located at the center of the field of view of the first sensor, and when the motion platform is at the second calibration coordinate, the feature point is located at the center of the field of view of the second sensor; and calibrating the position conversion relationship between the first sensor and the second sensor according to the first calibration coordinate and the second calibration coordinate.

本申请的标定方法、标定装置、标定设备和非易失性计算机可读存储介质,通过第一传感器拍摄标定件的第一标定图像计算第一标定坐标,通过第二传感器拍摄标定件的第二标定图像,由于第一标定坐标和第二标定坐标均对应同一特征点,因此根据第一标定坐标和第二标定坐标能够计算得到第一传感器和第二传感器之间的位置转换关系,从而在后续检测过程中,只需手动调节其中一个传感器拍摄后,根据该传感器拍摄时的位置和标定好的位置转换关系,即可自动确定另一个传感器拍摄时的位置,从而无需对第一传感器和第二传感器均手动调节,操作较为简单,有利于提升检测效率。The calibration method, calibration device, calibration equipment and non-volatile computer-readable storage medium of the present application calculate the first calibration coordinates by photographing a first calibration image of the calibration part with a first sensor, and photographing a second calibration image of the calibration part with a second sensor. Since the first calibration coordinates and the second calibration coordinates correspond to the same feature point, the position conversion relationship between the first sensor and the second sensor can be calculated based on the first calibration coordinates and the second calibration coordinates. Therefore, in the subsequent detection process, it is only necessary to manually adjust one of the sensors to shoot, and the position of the other sensor when shooting can be automatically determined according to the position of the sensor when shooting and the calibrated position conversion relationship, so that there is no need to manually adjust both the first sensor and the second sensor, the operation is relatively simple, and it is beneficial to improve the detection efficiency.

本申请的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

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

图1是本申请某些实施方式的标定方法的流程示意图;FIG1 is a schematic flow chart of a calibration method according to certain embodiments of the present application;

图2是本申请某些实施方式的标定装置的模块示意图;FIG2 is a schematic diagram of a module of a calibration device according to some embodiments of the present application;

图3是本申请某些实施方式的标定设备的平面示意图;FIG3 is a schematic plan view of a calibration device according to some embodiments of the present application;

图4是本申请某些实施方式的标定方法的原理示意图;FIG4 is a schematic diagram of the principle of a calibration method according to some embodiments of the present application;

图5是本申请某些实施方式的标定方法的原理示意图;FIG5 is a schematic diagram of the principle of a calibration method in some embodiments of the present application;

图6是本申请某些实施方式的标定方法的流程示意图;FIG6 is a schematic flow chart of a calibration method according to certain embodiments of the present application;

图7是本申请某些实施方式的标定方法的流程示意图;FIG7 is a schematic diagram of a flow chart of a calibration method according to certain embodiments of the present application;

图8是本申请某些实施方式的标定方法的原理示意图;FIG8 is a schematic diagram of the principle of a calibration method according to some embodiments of the present application;

图9是本申请某些实施方式的标定方法的原理示意图;FIG9 is a schematic diagram of the principle of a calibration method according to some embodiments of the present application;

图10是本申请某些实施方式的标定方法的原理示意图;及FIG10 is a schematic diagram of the principle of a calibration method in some embodiments of the present application; and

图11是本申请某些实施方式的处理器和计算机可读存储介质的连接示意图。FIG. 11 is a connection diagram of a processor and a computer-readable storage medium in certain embodiments of the present application.

具体实施方式Detailed ways

以下结合附图对本申请的实施方式作进一步说明。附图中相同或类似的标号自始至终表示相同或类似的元件或具有相同或类似功能的元件。另外,下面结合附图描述的本申请的实施方式是示例性的,仅用于解释本申请的实施方式,而不能理解为对本申请的限制。The embodiments of the present application are further described below in conjunction with the accompanying drawings. The same or similar reference numerals in the accompanying drawings represent the same or similar elements or elements with the same or similar functions from beginning to end. In addition, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the present application.

请参阅图1至图3,本申请实施方式的标定方法包括以下步骤:Please refer to Figures 1 to 3. The calibration method of the embodiment of the present application includes the following steps:

011:通过第一传感器20拍摄标定件200的第一标定图像,通过第二传感器40拍摄标定件200的第二标定图像,标定件200由运动平台30带动,标定件200包括特征点;011: photographing a first calibration image of the calibration object 200 through the first sensor 20, and photographing a second calibration image of the calibration object 200 through the second sensor 40, wherein the calibration object 200 is driven by the motion platform 30, and the calibration object 200 includes feature points;

012:依据第一标定图像计算运动平台30的第一标定坐标,依据第二标定图像计算运动平台30的第二标定坐标,其中,运动平台30处于第一标定坐标时,特征点位于第一传感器20的视场中心,运动平台30处于第二标定坐标时,特征点位于第二传感器40的视场中心;012: Calculate the first calibration coordinates of the motion platform 30 according to the first calibration image, and calculate the second calibration coordinates of the motion platform 30 according to the second calibration image, wherein when the motion platform 30 is at the first calibration coordinates, the feature point is located at the center of the field of view of the first sensor 20, and when the motion platform 30 is at the second calibration coordinates, the feature point is located at the center of the field of view of the second sensor 40;

013:根据第一标定坐标和第二标定坐标标定第一传感器20和第二传感器40之间的位置转换关系。013: Calibrate the position conversion relationship between the first sensor 20 and the second sensor 40 according to the first calibration coordinates and the second calibration coordinates.

本申请实施方式的标定装置10包括拍摄模块11、第一计算模块12、标定模块13。拍摄模块11用于通过第一传感器20拍摄标定件200的第一标定图像,通过第二传感器40拍摄标定件200的第二标定图像,标定件200由运动平台30带动,标定件200包括特征点;第一计算模块12用于依据第一标定图像计算运动平台30的第一标定坐标,依据第二标定图像计算运动平台30的第二标定坐标,其中,运动平台30处于第一标定坐标时,特征点位于第一传感器20的视场中心,运动平台30处于第二标定坐标时,特征点位于第二传感器40的视场中心;标定模块13用于根据第一标定坐标和第二标定坐标标定第一传感器20和第二传感器40之间的位置转换关系。也即是说,步骤011可以由拍摄模块11实现、步骤012可以由第一计算模块12执行、步骤013可以由标定模块13执行。The calibration device 10 of the embodiment of the present application includes a shooting module 11, a first calculation module 12, and a calibration module 13. The shooting module 11 is used to shoot a first calibration image of the calibration member 200 through the first sensor 20, and shoot a second calibration image of the calibration member 200 through the second sensor 40. The calibration member 200 is driven by the motion platform 30, and the calibration member 200 includes feature points; the first calculation module 12 is used to calculate the first calibration coordinates of the motion platform 30 according to the first calibration image, and calculate the second calibration coordinates of the motion platform 30 according to the second calibration image, wherein when the motion platform 30 is at the first calibration coordinates, the feature points are located at the center of the field of view of the first sensor 20, and when the motion platform 30 is at the second calibration coordinates, the feature points are located at the center of the field of view of the second sensor 40; the calibration module 13 is used to calibrate the position conversion relationship between the first sensor 20 and the second sensor 40 according to the first calibration coordinates and the second calibration coordinates. That is to say, step 011 can be implemented by the shooting module 11, step 012 can be performed by the first calculation module 12, and step 013 can be performed by the calibration module 13.

本申请实施方式的标定设备100包括第一传感器20、第二传感器40、运动平台30和处理器50。第一传感器20用于拍摄标定件200的第一标定图像。第二传感器40用于拍摄第二标定图像。标定件200设置在运动平台30上,运动平台30带动标定件200移动,标定件200包括一个或多个特征点,特征点为标定件200上,通过图像能够准确识别的特定的部分,如标定件200包括一个或多个特征区域,若特征区域为圆形,则特征点为每个特征区域的圆心,若特征区域为矩形,则特征点可为每个特征区域的对角线的交点或者特征区域的顶点。如此,通过对特征区域的识别,能够快速而准确地确定特征点。The calibration device 100 of the embodiment of the present application includes a first sensor 20, a second sensor 40, a motion platform 30 and a processor 50. The first sensor 20 is used to capture a first calibration image of the calibration piece 200. The second sensor 40 is used to capture a second calibration image. The calibration piece 200 is disposed on the motion platform 30, and the motion platform 30 drives the calibration piece 200 to move. The calibration piece 200 includes one or more feature points, and the feature points are specific parts of the calibration piece 200 that can be accurately identified through an image. For example, the calibration piece 200 includes one or more feature areas. If the feature area is circular, the feature point is the center of each feature area. If the feature area is rectangular, the feature point can be the intersection of the diagonal of each feature area or the vertex of the feature area. In this way, by identifying the feature area, the feature point can be determined quickly and accurately.

处理器50与第一传感器20、第二传感器40及运动平台30均连接;处理器50用于依据第一标定图像计算运动平台30的第一标定坐标,依据第二标定图像计算运动平台30的第二标定坐标,其中,运动平台30处于第一标定坐标时,特征点位于第一传感器20的视场中心,运动平台30处于第二标定坐标时,特征点位于第二传感器40的视场中心;及根据第一标定坐标和第二标定坐标标定第一传感器20和第二传感器40之间的位置转换关系。也即是说,步骤011可以由第一传感器20、第二传感器40和运动平台30执行、步骤012和步骤013可以由处理器50执行。The processor 50 is connected to the first sensor 20, the second sensor 40 and the motion platform 30; the processor 50 is used to calculate the first calibration coordinates of the motion platform 30 according to the first calibration image, and calculate the second calibration coordinates of the motion platform 30 according to the second calibration image, wherein when the motion platform 30 is at the first calibration coordinates, the feature point is located at the center of the field of view of the first sensor 20, and when the motion platform 30 is at the second calibration coordinates, the feature point is located at the center of the field of view of the second sensor 40; and calibrate the position conversion relationship between the first sensor 20 and the second sensor 40 according to the first calibration coordinates and the second calibration coordinates. That is to say, step 011 can be executed by the first sensor 20, the second sensor 40 and the motion platform 30, and steps 012 and 013 can be executed by the processor 50.

具体地,标定设备100可以是测量机。可以理解,标定设备100的具体形式并不限于测量机,还可以是任意具有两个相机并需要进行标定的设备。Specifically, the calibration device 100 may be a measuring machine. It is understood that the specific form of the calibration device 100 is not limited to a measuring machine, and may also be any device having two cameras and requiring calibration.

运动平台30包括XY运动平台31和Z运动平台32,第一传感器20和第二传感器40设置在运动平台30上,具体为:第一传感器20和第二传感器40设置在Z运动平台32,其中,XY运动平台31用于控制标定件200沿水平面移动,改变标定件200、和第一传感器20与第二传感器40在水平面的相对位置,Z运动平台32用于控制第一传感器20和第二传感器40沿垂直水平面的方向移动,如此,通过XY运动平台31和Z运动平台32配合实现第一传感器20和第二传感器40相对标定件200的三维位置(即,在水平面的相对位置和垂直水平面方向的相对位置)。The motion platform 30 includes an XY motion platform 31 and a Z motion platform 32, and the first sensor 20 and the second sensor 40 are arranged on the motion platform 30, specifically: the first sensor 20 and the second sensor 40 are arranged on the Z motion platform 32, wherein the XY motion platform 31 is used to control the movement of the calibration piece 200 along the horizontal plane, and change the relative position of the calibration piece 200 and the first sensor 20 and the second sensor 40 in the horizontal plane, and the Z motion platform 32 is used to control the movement of the first sensor 20 and the second sensor 40 in the direction perpendicular to the horizontal plane. In this way, the three-dimensional position of the first sensor 20 and the second sensor 40 relative to the calibration piece 200 (that is, the relative position in the horizontal plane and the relative position in the direction perpendicular to the horizontal plane) is realized through the cooperation of the XY motion platform 31 and the Z motion platform 32.

可以理解,运动平台30并不限于上述结构,只需能够改变第一传感器20和第二传感器40相对标定件200的三维位置即可。It is understandable that the motion platform 30 is not limited to the above structure, and only needs to be able to change the three-dimensional position of the first sensor 20 and the second sensor 40 relative to the calibration piece 200.

例如,Z运动平台32设置在XY运动平台31上,第一传感器20和第二传感器40设置在Z运动平台32,此时XY运动平台31移动即可带动Z运动平台32在水平面移动,XY运动平台31配合Z运动平台32即可改变第一传感器20和第二传感器40相对标定件200的三维位置;For example, the Z motion platform 32 is arranged on the XY motion platform 31, and the first sensor 20 and the second sensor 40 are arranged on the Z motion platform 32. At this time, the movement of the XY motion platform 31 can drive the Z motion platform 32 to move in the horizontal plane, and the XY motion platform 31 cooperates with the Z motion platform 32 to change the three-dimensional position of the first sensor 20 and the second sensor 40 relative to the calibration object 200;

再例如,标定件200设置在Z运动平台32上,此时XY运动平台31移动即可带动Z运动平台32在水平面移动,XY运动平台31配合Z运动平台32即可改变标定件200相对第一传感器20和第二传感器40的三维位置。For another example, the calibration piece 200 is set on the Z motion platform 32. At this time, the movement of the XY motion platform 31 can drive the Z motion platform 32 to move in the horizontal plane. The XY motion platform 31 cooperates with the Z motion platform 32 to change the three-dimensional position of the calibration piece 200 relative to the first sensor 20 and the second sensor 40.

第一传感器20和第二传感器40可均为二维成像传感器,如第一传感器20为可见光摄像头,第二传感器40为深度摄像头;或者,第一传感器20为深度摄像头,第二传感器40为可见光摄像头;或者,第一传感器20和第二传感器40中的一个为二维成像传感器,另一个为测距传感器,如第一传感器20为可见光摄像头,第二传感器40为距离传感器,此时,第二传感器40采集标定件200的信息即为:距离传感器通过采集标定件200不同位置的深度从而生成的深度图像;或者,第一传感器20为距离传感器,第二传感器40为可见光摄像头,此时第一传感器20拍摄的第一标定图像即为:距离传感器通过采集标定件200不同位置的深度从而生成的深度图像;或者,第一传感器20为深度摄像头,第二传感器40为距离传感器;或者,第一传感器20为距离传感器,第二传感器40为深度传感器等。本实施方式中,第一传感器20为可见光摄像头,第二传感器40为距离传感器,第二传感器40可以是通过光谱共聚焦的方式进行测距的。The first sensor 20 and the second sensor 40 may both be two-dimensional imaging sensors, such as the first sensor 20 is a visible light camera and the second sensor 40 is a depth camera; or, the first sensor 20 is a depth camera and the second sensor 40 is a visible light camera; or, one of the first sensor 20 and the second sensor 40 is a two-dimensional imaging sensor and the other is a distance sensor, such as the first sensor 20 is a visible light camera and the second sensor 40 is a distance sensor. In this case, the information collected by the second sensor 40 on the calibration piece 200 is: the distance sensor generates a depth image by collecting the depth of different positions of the calibration piece 200; or, the first sensor 20 is a distance sensor and the second sensor 40 is a visible light camera. In this case, the first calibration image captured by the first sensor 20 is: the distance sensor generates a depth image by collecting the depth of different positions of the calibration piece 200; or, the first sensor 20 is a depth camera and the second sensor 40 is a distance sensor; or, the first sensor 20 is a distance sensor and the second sensor 40 is a depth sensor, etc. In this embodiment, the first sensor 20 is a visible light camera and the second sensor 40 is a distance sensor. The second sensor 40 may perform distance measurement by spectral confocal method.

在标定时,处理器50控制运动平台30移动,以带动第一传感器20移动,使得标定件200位于第一传感器20的景深范围及视场范围内,其中,第一传感器20的景深范围为预设的,因此,运动平台30根据预设的景深范围即可确定Z运动平台32在垂直水平面方向上和标定件200的距离,从而实现Z运动平台32的调节。例如调节Z运动平台32以使得标定件200位于第一传感器20的景深范围的中点处。如景深范围为5厘米至10厘米,则使得标定件200和第一传感器20的距离为7.5厘米。为了使得标定件200的标定面210的特征点准确地位于景深范围的中点,可根据标定件200的预设厚度,进一步确定Z运动平台32在垂直水平面方向上和标定件200的标定面210的距离,从而使得标定面210(即,特征点)准确地位于景深范围的中点。During calibration, the processor 50 controls the motion platform 30 to move, so as to drive the first sensor 20 to move, so that the calibration piece 200 is located within the depth of field range and the field of view range of the first sensor 20, wherein the depth of field range of the first sensor 20 is preset, and therefore, the motion platform 30 can determine the distance between the Z motion platform 32 and the calibration piece 200 in the vertical and horizontal plane directions according to the preset depth of field range, thereby realizing the adjustment of the Z motion platform 32. For example, the Z motion platform 32 is adjusted so that the calibration piece 200 is located at the midpoint of the depth of field range of the first sensor 20. If the depth of field range is 5 cm to 10 cm, the distance between the calibration piece 200 and the first sensor 20 is 7.5 cm. In order to ensure that the characteristic point of the calibration surface 210 of the calibration piece 200 is accurately located at the midpoint of the depth of field range, the distance between the Z motion platform 32 and the calibration surface 210 of the calibration piece 200 in the vertical horizontal plane direction can be further determined according to the preset thickness of the calibration piece 200, so that the calibration surface 210 (i.e., the characteristic point) is accurately located at the midpoint of the depth of field range.

标定件200位于第一传感器20的景深范围内后,为了准确地拍摄到整个标定件200,此时处理器50可根据第一传感器20拍摄的图像,检测标定件200是否全部位于视场范围内,在标定件200较大时,可能存在标定件200部分位于视场范围外的情况,此时可先调节XY运动平台31以使得标定件200全部位于视场范围内,在调节XY运动平台31多次后标定件200仍存在部分位于视场范围外时,此时可加大Z运动平台32和标定面210的距离,在保证标定面210位于景深范围内的同时,使得标定件200全部位于视场范围内。从而清晰地拍摄整个标定件200的第一标定图像。当然,可根据特征点的位置,确定第一标定区域,第一标定区域可以是标定面210的一部分,仅需包含特征点即可,拍摄包含特征点的第一标定区域的第一标定图像也能够实现后续的标定,从而无需拍摄整个标定件200,且第一标定区域能够更易于的位于第一传感器20的视场范围内。After the calibration piece 200 is located within the depth of field of the first sensor 20, in order to accurately capture the entire calibration piece 200, the processor 50 can detect whether the calibration piece 200 is completely within the field of view according to the image captured by the first sensor 20. When the calibration piece 200 is large, part of the calibration piece 200 may be outside the field of view. At this time, the XY motion platform 31 can be adjusted first to make the calibration piece 200 completely within the field of view. After adjusting the XY motion platform 31 for multiple times, if part of the calibration piece 200 is still outside the field of view, the distance between the Z motion platform 32 and the calibration surface 210 can be increased to ensure that the calibration surface 210 is within the depth of field and the calibration piece 200 is completely within the field of view. Thus, the first calibration image of the entire calibration piece 200 is clearly captured. Of course, the first calibration area can be determined according to the position of the feature point. The first calibration area can be a part of the calibration surface 210 and only needs to include the feature point. Taking a first calibration image of the first calibration area including the feature point can also realize subsequent calibration, so there is no need to take a picture of the entire calibration part 200, and the first calibration area can be more easily located within the field of view of the first sensor 20.

在拍摄第一标定图像后,处理器50再次控制运动平台30移动,以带动第二传感器40移动,使得标定件200位于第二传感器40的景深范围及视场范围内,其中,第二传感器40的景深范围为预设的,因此,运动平台30根据预设的景深范围即可确定Z运动平台32在垂直水平面方向上和标定件200的距离,从而实现Z运动平台32的调节,例如调节Z运动平台32以使得标定件200位于第二传感器40的景深范围的中点处。如景深范围为5厘米至10厘米,则使得标定件200和第二传感器40的距离为7.5厘米,为了使得标定件200的标定面210的特征点准确地位于景深范围的中点,可根据标定件200的厚度,进一步确定Z运动平台32在垂直水平面方向上和标定件200的标定面210的距离,从而使得标定面210(即,特征点)准确地位于景深范围的中点。After taking the first calibration image, the processor 50 controls the motion platform 30 to move again to drive the second sensor 40 to move, so that the calibration piece 200 is located within the depth of field and field of view of the second sensor 40, wherein the depth of field of the second sensor 40 is preset. Therefore, the motion platform 30 can determine the distance between the Z motion platform 32 and the calibration piece 200 in the vertical and horizontal plane directions according to the preset depth of field range, thereby realizing the adjustment of the Z motion platform 32, for example, adjusting the Z motion platform 32 so that the calibration piece 200 is located at the midpoint of the depth of field of the second sensor 40. If the depth of field range is 5 cm to 10 cm, the distance between the calibration piece 200 and the second sensor 40 is 7.5 cm. In order to make the feature point of the calibration surface 210 of the calibration piece 200 accurately located at the midpoint of the depth of field range, the distance between the Z motion platform 32 and the calibration surface 210 of the calibration piece 200 in the vertical horizontal plane direction can be further determined according to the thickness of the calibration piece 200, so that the calibration surface 210 (i.e., the feature point) is accurately located at the midpoint of the depth of field range.

标定件200位于第二传感器40的景深范围内后,为了准确地拍摄到整个标定件200,此时处理器50可根据第二传感器40拍摄的图像检测标定件200是否全部位于视场范围内,在标定件200较大时,可能存在标定件200部分位于视场范围外的情况,此时可先调节XY运动平台31以使得标定件200全部位于视场范围内,在调节XY运动平台31多次后标定件200仍存在部分位于视场范围外时,此时可适当加大Z运动平台32和标定面210的距离,在保证标定面210位于景深范围内的同时,使得标定件200全部位于视场范围内。从而清晰地拍摄整个标定件200的第二标定图像。当然,可根据特征点的位置,确定第二标定区域,第二标定区域可以是标定面210的一部分,仅需包含特征点即可,可以理解,为了使得第一标定图像和第二标定图像均包含同一特征点,第一标定区域和第二标定区域也均需包含同一特征点。拍摄包含特征点的第二标定区域的第二标定图像也能够实现后续的标定,从而无需拍摄整个标定件200,且第二标定区域能够更易于的位于第二传感器40的视场范围内。After the calibration object 200 is located within the depth of field of the second sensor 40, in order to accurately capture the entire calibration object 200, the processor 50 can detect whether the calibration object 200 is completely within the field of view according to the image captured by the second sensor 40. When the calibration object 200 is large, part of the calibration object 200 may be outside the field of view. At this time, the XY motion platform 31 can be adjusted first to make the calibration object 200 completely within the field of view. After adjusting the XY motion platform 31 for multiple times, if part of the calibration object 200 is still outside the field of view, the distance between the Z motion platform 32 and the calibration surface 210 can be appropriately increased to ensure that the calibration surface 210 is within the depth of field and the calibration object 200 is completely within the field of view. Thus, the second calibration image of the entire calibration object 200 is clearly captured. Of course, the second calibration area can be determined according to the position of the feature point. The second calibration area can be a part of the calibration surface 210 and only needs to include the feature point. It can be understood that in order to make the first calibration image and the second calibration image both include the same feature point, the first calibration area and the second calibration area also need to include the same feature point. Shooting the second calibration image of the second calibration area including the feature point can also realize subsequent calibration, so there is no need to shoot the entire calibration part 200, and the second calibration area can be more easily located within the field of view of the second sensor 40.

在清晰拍摄第一标定图像和第二标定图像后,处理器50依据第一标定图像计算运动平台30的第一标定坐标,依据第二标定图像计算运动平台30的第二标定坐标。After clearly photographing the first calibration image and the second calibration image, the processor 50 calculates the first calibration coordinates of the motion platform 30 according to the first calibration image, and calculates the second calibration coordinates of the motion platform 30 according to the second calibration image.

具体为:处理器50获取拍摄第一标定图像时,运动平台30的第一初始坐标,该第一初始坐标与第一标定图像中的一个像素是对应的,如该像素一般为第一标定图像的中心像素,此时,第一传感器20对准中心像素对应的标定件200的部分(即,该标定件200的部分位于第一传感器20的视场范围的中心)。当然,该像素也可以是第一标定图像中任一像素,本实施方式以第一初始坐标与第一标定图像的中心像素对应进行说明。Specifically, the processor 50 obtains the first initial coordinate of the motion platform 30 when shooting the first calibration image. The first initial coordinate corresponds to a pixel in the first calibration image. For example, the pixel is generally the center pixel of the first calibration image. At this time, the first sensor 20 is aligned with the portion of the calibration piece 200 corresponding to the center pixel (that is, the portion of the calibration piece 200 is located at the center of the field of view of the first sensor 20). Of course, the pixel can also be any pixel in the first calibration image. This embodiment is described by assuming that the first initial coordinate corresponds to the center pixel of the first calibration image.

由于第一初始坐标与中心像素存在对应关系,即第一标定图像的图像坐标系与运动平台30的物理坐标系存在对应关系,根据该对应关系、特征点的图像坐标和中心像素的图像坐标的差值、及第一标定图像中每个像素对应的实际物理尺寸,即可计算到特征点对应的第一标定坐标。Since there is a corresponding relationship between the first initial coordinate and the center pixel, that is, there is a corresponding relationship between the image coordinate system of the first calibration image and the physical coordinate system of the motion platform 30, the first calibration coordinate corresponding to the feature point can be calculated based on the corresponding relationship, the difference between the image coordinates of the feature point and the image coordinates of the center pixel, and the actual physical size corresponding to each pixel in the first calibration image.

可以理解,运动平台30在物理坐标系的坐标为(X,Y,Z),X和Y表示XY运动平台31在水平面和坐标原点的相对位置,Z表示Z运动平台32在垂直水平面方向与坐标原点的相对位置。其中,坐标原点可任意选取,方便坐标的后续计算即可,如在初始状态下,标定件200的中心所在的位置为坐标原点。It can be understood that the coordinates of the motion platform 30 in the physical coordinate system are (X, Y, Z), X and Y represent the relative position of the XY motion platform 31 in the horizontal plane and the coordinate origin, and Z represents the relative position of the Z motion platform 32 in the vertical horizontal plane direction and the coordinate origin. Among them, the coordinate origin can be arbitrarily selected to facilitate the subsequent calculation of the coordinates. For example, in the initial state, the position where the center of the calibration piece 200 is located is the coordinate origin.

由于第一标定图像是在同一Z坐标下拍摄,因此第一标定图像的所有像素对应的运动平台30的Z坐标是相同的,且均处于同一可清晰地成像的景深处。只需改变运动平台30的X坐标和Y坐标,以使得运动平台30的坐标为第一标定坐标,即可使得第一传感器20对准特征点(即,特征点位于第一传感器20的视场中心),因此,第一标定坐标和第一初始坐标的差异仅在于X和Y。Since the first calibration image is taken at the same Z coordinate, the Z coordinates of the motion platform 30 corresponding to all pixels of the first calibration image are the same and are all at the same depth of field where clear imaging can be achieved. The first sensor 20 can be aligned with the feature point (i.e., the feature point is located at the center of the field of view of the first sensor 20) by simply changing the X and Y coordinates of the motion platform 30 so that the coordinates of the motion platform 30 are the first calibration coordinates. Therefore, the difference between the first calibration coordinates and the first initial coordinates is only in X and Y.

例如,如图4所示的第一标定图像P1的大小为100像素*100像素,其中,中心像素的图像坐标为(50,50),运动平台30的第一初始坐标为(2,3,5),单位为毫米(mm)。第一标定图像P1的实际物理尺寸为0.1mm,实际物理尺寸为0.1mm表示第一标定图像P1中每个像素对应物理坐标系中的长宽均为0.1mm的矩形区域。如第一标定图像P1包括9个特征区域,特征点Q在第一标定图像P1中可占一个像素,如第一标定图像P1的中心的特征区域的中心对应的像素;特征点Q的图像坐标为(48,51),则特征点Q对应的第一标定坐标为(2-(50-48)*0.1,3-(50-51)*0.1,5),即(1.8,2.1,5)。因此,根据特征点Q和中心像素的图像坐标的差值和实际物理尺寸,即可确定特征点Q对应的第一标定坐标和第一初始坐标的坐标差值(如上述例子中的X坐标的差值为0.2,Y坐标的差值为-0.1),从而根据第一初始坐标和坐标差值计算得到第一标定坐标。For example, the size of the first calibration image P1 shown in FIG4 is 100 pixels * 100 pixels, wherein the image coordinates of the center pixel are (50, 50), and the first initial coordinates of the motion platform 30 are (2, 3, 5), and the unit is millimeter (mm). The actual physical size of the first calibration image P1 is 0.1 mm, and the actual physical size of 0.1 mm means that each pixel in the first calibration image P1 corresponds to a rectangular area with a length and width of 0.1 mm in the physical coordinate system. If the first calibration image P1 includes 9 feature areas, the feature point Q may occupy one pixel in the first calibration image P1, such as the pixel corresponding to the center of the feature area at the center of the first calibration image P1; the image coordinates of the feature point Q are (48, 51), then the first calibration coordinates corresponding to the feature point Q are (2-(50-48)*0.1, 3-(50-51)*0.1, 5), that is, (1.8, 2.1, 5). Therefore, according to the difference in image coordinates between the feature point Q and the center pixel and the actual physical size, the coordinate difference between the first calibration coordinate and the first initial coordinate corresponding to the feature point Q can be determined (such as the difference in X coordinate is 0.2 and the difference in Y coordinate is -0.1 in the above example), thereby calculating the first calibration coordinate based on the first initial coordinate and the coordinate difference.

同样的,在计算第二标定坐标时,处理器50获取拍摄第二标定图像时,运动平台30的第二初始坐标,该第二初始坐标与第二标定图像中的一个像素是对应的,如该像素一般为第二标定图像的中心像素,此时,第二传感器40对准中心像素对应的标定件200的部分(即,该标定件200的部分位于第二传感器40的视场范围的中心)。当然,该像素也可以是第二标定图像中任一像素,本实施方式以第二初始坐标与第二标定图像的中心像素对应进行说明。Similarly, when calculating the second calibration coordinates, the processor 50 obtains the second initial coordinates of the motion platform 30 when the second calibration image is captured. The second initial coordinates correspond to a pixel in the second calibration image. For example, the pixel is generally the center pixel of the second calibration image. At this time, the second sensor 40 is aligned with the portion of the calibration member 200 corresponding to the center pixel (that is, the portion of the calibration member 200 is located at the center of the field of view of the second sensor 40). Of course, the pixel can also be any pixel in the second calibration image. This embodiment is described by assuming that the second initial coordinate corresponds to the center pixel of the second calibration image.

由于第二初始坐标与中心像素存在对应关系,即第二标定图像的图像坐标系与运动平台30的物理坐标系存在对应关系,根据该对应关系、特征点的图像坐标和中心像素的图像坐标的差值、及第二标定图像中每个像素对应的实际物理尺寸,即可计算到特征点对应的第二标定坐标。Since there is a corresponding relationship between the second initial coordinate and the center pixel, that is, there is a corresponding relationship between the image coordinate system of the second calibration image and the physical coordinate system of the motion platform 30, the second calibration coordinate corresponding to the feature point can be calculated based on the corresponding relationship, the difference between the image coordinates of the feature point and the image coordinates of the center pixel, and the actual physical size corresponding to each pixel in the second calibration image.

由于第二标定图像是在同一Z坐标下拍摄,因此所有像素对应的运动平台30的Z坐标是相同的,且均处于同一可清晰地成像的景深处。只需改变运动平台30的X坐标和Y坐标,以使得运动平台30的坐标为第二标定坐标,即可使得第二传感器40对准特征点(即,特征点位于第一传感器20的视场中心),因此,第二标定坐标和第二初始坐标的差异仅在于X和Y。Since the second calibration image is taken at the same Z coordinate, the Z coordinates of the motion platform 30 corresponding to all pixels are the same and are all at the same depth of field where clear imaging can be achieved. The second sensor 40 can be aligned with the feature point (i.e., the feature point is located at the center of the field of view of the first sensor 20) by simply changing the X and Y coordinates of the motion platform 30 so that the coordinates of the motion platform 30 are the second calibration coordinates. Therefore, the difference between the second calibration coordinates and the second initial coordinates is only in X and Y.

例如,如图5所示的第二标定图像P2的大小为60像素*60像素,其中,中心像素的图像坐标为(30,30),运动平台30的第二初始坐标为(10,11,15),单位为毫米(mm)。第二标定图像P2的实际物理尺寸为0.1mm。如第二标定图像P2包括9个特征区域,特征点Q在第二标定图像P2中可占一个像素,如第一标定图像P2的中心的特征区域的中心对应的像素;特征点Q的图像坐标为(25,25),则特征点Q对应的第二标定坐标为(10-(30-25)*0.1,11-(30-25)*0.1,15),即(9.5,10.5,15)。因此,根据特征点Q和中心像素的图像坐标的差值和实际物理尺寸,即可确定特征点Q对应的第二标定坐标和第二初始坐标的坐标差值(如上述例子中的X坐标的差值为0.5,Y坐标的差值为0.5),从而根据第二初始坐标和坐标差值计算得到第二标定坐标。For example, the size of the second calibration image P2 shown in FIG5 is 60 pixels * 60 pixels, wherein the image coordinates of the center pixel are (30, 30), and the second initial coordinates of the motion platform 30 are (10, 11, 15), in millimeters (mm). The actual physical size of the second calibration image P2 is 0.1 mm. If the second calibration image P2 includes 9 feature areas, the feature point Q may occupy one pixel in the second calibration image P2, such as the pixel corresponding to the center of the feature area at the center of the first calibration image P2; if the image coordinates of the feature point Q are (25, 25), then the second calibration coordinates corresponding to the feature point Q are (10-(30-25)*0.1, 11-(30-25)*0.1, 15), i.e. (9.5, 10.5, 15). Therefore, based on the difference in image coordinates between the feature point Q and the center pixel and the actual physical size, the coordinate difference between the second calibration coordinate and the second initial coordinate corresponding to the feature point Q can be determined (such as the difference in the X coordinate in the above example is 0.5, and the difference in the Y coordinate is 0.5), thereby calculating the second calibration coordinate based on the second initial coordinate and the coordinate difference.

处理器50可根据第一标定坐标和第二标定坐标标定第一传感器20和第二传感器40之间的位置转换关系。例如可将第一标定坐标和第二标定坐标的坐标差值作为第一传感器20与第二传感器40的位置转换关系。在后续确定第一传感器20(第二传感器40)拍摄待测件400的图像时的第一坐标时,根据该坐标差值即可计算得到第二传感器40(第一传感器20)拍摄待测件400的图像时的第二坐标。如根据第一标定坐标(1.8,2.1,5)和第二标定坐标(9.5,10.5,15)可计算得到X坐标差值为7.7,Y坐标差值为8.4,Z坐标差值为10,若第一坐标为(3,5,7),则第二坐标为(10.7,13.4,17),从而快速根据其中一个传感器拍摄待测件400时的运动平台30的坐标和坐标差值,计算另一个传感器拍摄待测件400时运动平台30的坐标。The processor 50 can calibrate the position conversion relationship between the first sensor 20 and the second sensor 40 according to the first calibration coordinates and the second calibration coordinates. For example, the coordinate difference between the first calibration coordinates and the second calibration coordinates can be used as the position conversion relationship between the first sensor 20 and the second sensor 40. When the first coordinate when the first sensor 20 (second sensor 40) takes the image of the test piece 400 is subsequently determined, the second coordinate when the second sensor 40 (first sensor 20) takes the image of the test piece 400 can be calculated according to the coordinate difference. For example, according to the first calibration coordinates (1.8, 2.1, 5) and the second calibration coordinates (9.5, 10.5, 15), the X coordinate difference can be calculated to be 7.7, the Y coordinate difference can be 8.4, and the Z coordinate difference can be 10. If the first coordinate is (3, 5, 7), the second coordinate is (10.7, 13.4, 17), so that the coordinate of the motion platform 30 when one of the sensors takes the test piece 400 and the coordinate difference can be quickly calculated.

可以理解,标定设备100还可包括更多的传感器,如第三传感器、第四传感器等,只需依据上述对第一传感器20和第二传感器40的标定方法依次计算任意两个传感器之间的位置转换关系,即可将完成所有传感器的标定,从而在后续检测时,只需手动调节其中一个传感器对待测件400进行准确地拍摄后,根据该传感器对应的运动平台30的坐标和位置转换关系,即可确定其他多个传感器对应的运动平台30的坐标,从而实现其他多个传感器对待测件400准确地拍摄。It can be understood that the calibration device 100 can also include more sensors, such as a third sensor, a fourth sensor, etc., and the calibration of all sensors can be completed by only calculating the position conversion relationship between any two sensors in sequence according to the above-mentioned calibration method for the first sensor 20 and the second sensor 40. Therefore, in subsequent inspections, it is only necessary to manually adjust one of the sensors to accurately photograph the part to be tested 400. According to the coordinates and position conversion relationship of the motion platform 30 corresponding to the sensor, the coordinates of the motion platform 30 corresponding to the other multiple sensors can be determined, thereby achieving accurate photography of the part to be tested 400 by the other multiple sensors.

本申请的标定方法、标定装置10、标定设备100和非易失性计算机可读存储介质300,通过第一传感器20拍摄标定件200的第一标定图像计算第一标定坐标,通过第二传感器40拍摄标定件200的第二标定图像,由于第一标定坐标和第二标定坐标均对应同一特征点,因此根据第一标定坐标和第二标定坐标能够计算得到第一传感器20和第二传感器40之间的位置转换关系,从而在后续检测过程中,只需手动调节其中一个传感器拍摄后,根据该传感器拍摄时的位置和标定好的位置转换关系,即可自动确定另一个传感器拍摄时的位置,从而无需对第一传感器20和第二传感器40均手动调节,操作较为简单,有利于提升检测效率。The calibration method, calibration device 10, calibration equipment 100 and non-volatile computer-readable storage medium 300 of the present application calculate the first calibration coordinates by photographing the first calibration image of the calibration part 200 by the first sensor 20, and photographing the second calibration image of the calibration part 200 by the second sensor 40. Since the first calibration coordinates and the second calibration coordinates correspond to the same feature point, the position conversion relationship between the first sensor 20 and the second sensor 40 can be calculated according to the first calibration coordinates and the second calibration coordinates. Therefore, in the subsequent detection process, it is only necessary to manually adjust one of the sensors to shoot, and the position of the other sensor when shooting can be automatically determined according to the position of the sensor when shooting and the calibrated position conversion relationship, so that there is no need to manually adjust the first sensor 20 and the second sensor 40. The operation is relatively simple, which is conducive to improving the detection efficiency.

请参阅图2、图3和图6,在某些实施方式中,步骤013包括:Please refer to FIG. 2 , FIG. 3 and FIG. 6 , in some embodiments, step 013 includes:

0131:计算第一标定坐标和第二标定坐标的坐标差值;及0131: Calculate the coordinate difference between the first calibration coordinate and the second calibration coordinate; and

0132:根据坐标差值建立第一传感器20和第二传感器40之间的标定函数。0132: Establish a calibration function between the first sensor 20 and the second sensor 40 according to the coordinate difference.

在某些实施方式中,标定模块13还用于根据坐标差值建立第一传感器20和第二传感器40之间的标定函数。也即是说,步骤131和步骤0132可以由标定模块13执行。In some embodiments, the calibration module 13 is further configured to establish a calibration function between the first sensor 20 and the second sensor 40 according to the coordinate difference. That is, step 131 and step 132 may be performed by the calibration module 13.

在某些实施方式中,处理器50还用于根据坐标差值建立第一传感器20和第二传感器40之间的标定函数。也即是说,步骤0131和步骤0132可以由处理器50执行。In some embodiments, the processor 50 is further configured to establish a calibration function between the first sensor 20 and the second sensor 40 according to the coordinate difference. That is, step 0131 and step 0132 may be executed by the processor 50.

具体地,在标定第一传感器20和第二传感器40之间的位置转换关系时,处理器50可先计算第一标定坐标和第二标定坐标的坐标差值,然后根据坐标差值建立第一传感器20和第二传感器40之间的标定函数。例如,第一传感器20的坐标为(X1,Y1,Z1)和第二传感器40的坐标为(X2,Y2,Z2),根据第一标定坐标和第二标定坐标计算得到X坐标差值8,Y坐标差值8,Z坐标差值10,则标定函数为X2=X1+7.7;Y2=Y1+8.4;Z2=Z1+10。Specifically, when calibrating the position conversion relationship between the first sensor 20 and the second sensor 40, the processor 50 may first calculate the coordinate difference between the first calibration coordinate and the second calibration coordinate, and then establish a calibration function between the first sensor 20 and the second sensor 40 according to the coordinate difference. For example, the coordinates of the first sensor 20 are (X1, Y1, Z1) and the coordinates of the second sensor 40 are (X2, Y2, Z2). According to the first calibration coordinate and the second calibration coordinate, the X coordinate difference is 8, the Y coordinate difference is 8, and the Z coordinate difference is 10. Then the calibration function is X2=X1+7.7; Y2=Y1+8.4; Z2=Z1+10.

在后续进行检测时,只需确定第一传感器20(第二传感器40)清晰拍摄待测件400时运动平台30的坐标,即可根据标定函数快速计算得到第二传感器40(第一传感器20)拍摄待测件400时运动平台30的坐标。In subsequent testing, it is only necessary to determine the coordinates of the motion platform 30 when the first sensor 20 (second sensor 40) clearly photographs the test piece 400, and the coordinates of the motion platform 30 when the second sensor 40 (first sensor 20) photographs the test piece 400 can be quickly calculated according to the calibration function.

请参阅图2、图3和图7,在某些实施方式中,标定方法还包括:Referring to FIG. 2 , FIG. 3 and FIG. 7 , in certain embodiments, the calibration method further includes:

014:根据标定函数及第一传感器20拍摄待测件400时,运动平台30的第一坐标集,计算第二传感器40采集待测件400的信息时,运动平台30的第二坐标集。014: Calculate the second coordinate set of the motion platform 30 when the second sensor 40 collects information of the test piece 400 according to the calibration function and the first coordinate set of the motion platform 30 when the first sensor 20 photographs the test piece 400.

在某些实施方式中,标定装置10还包括第二计算模块14。第二计算模块用于根据标定函数及第一传感器20拍摄待测件400时,运动平台30的第一坐标集,计算第二传感器40采集待测件400的信息时,运动平台30的第二坐标集。也即是说,步骤014可以由第二计算模块14执行。In some embodiments, the calibration device 10 further includes a second calculation module 14. The second calculation module is used to calculate a second coordinate set of the motion platform 30 when the second sensor 40 collects information of the test piece 400 according to the calibration function and the first coordinate set of the motion platform 30 when the first sensor 20 photographs the test piece 400. That is, step 014 can be performed by the second calculation module 14.

在某些实施方式中,处理器50还用于根据标定函数及第一传感器20拍摄待测件400时,运动平台30的第一坐标集,计算第二传感器40采集待测件400的信息时,运动平台30的第二坐标集。也即是说,步骤014可以由处理器50执行。In some embodiments, the processor 50 is further configured to calculate a second coordinate set of the motion platform 30 when the second sensor 40 collects information of the test piece 400 based on the calibration function and the first coordinate set of the motion platform 30 when the first sensor 20 photographs the test piece 400. That is, step 014 can be executed by the processor 50.

具体的,在检测过程中,第一传感器20和第二传感器40的视场范围一般是不同的,例如第一传感器20为可见光摄像头,第二传感器40为距离传感器时,第二传感器40的视场范围较小,如第二传感器40每次仅采集一个像素对应的待测件400的局部的信息,因此,在第一传感器20拍摄待测件400的第一图像后,为了使得第二传感器40采集到所有待测件400的部分的信息,处理器50首先需要获取待测件400在第一图像的所有待测像素的图像坐标,每个待测像素对应一个待测件400的局部,然后根据第一传感器20拍摄第一图像时的运动平台30的第三初始坐标和对应的中心像素的坐标,即可计算所有待测像素的图像坐标对应的运动平台30的坐标,其中,待测像素的图像坐标对应的运动平台30的坐标指的是,待测像素对应的待测件400的部分位于第一传感器20的视场范围的中心时,运动平台30的坐标(下称第一坐标)。Specifically, during the detection process, the fields of view of the first sensor 20 and the second sensor 40 are generally different. For example, when the first sensor 20 is a visible light camera and the second sensor 40 is a distance sensor, the field of view of the second sensor 40 is smaller. For example, the second sensor 40 only collects local information of the device under test 400 corresponding to one pixel each time. Therefore, after the first sensor 20 captures the first image of the device under test 400, in order for the second sensor 400 to collect information of all parts of the device under test 400, the processor 50 first needs to obtain the image coordinates of all pixels under test of the device under test 400 in the first image, each pixel under test corresponding to a part of the device under test 400, and then the coordinates of the motion platform 30 corresponding to the image coordinates of all pixels under test can be calculated according to the third initial coordinates of the motion platform 30 when the first sensor 20 captures the first image and the coordinates of the corresponding central pixel, wherein the coordinates of the motion platform 30 corresponding to the image coordinates of the pixels under test refer to the coordinates of the motion platform 30 (hereinafter referred to as the first coordinates) when the part of the device under test 400 corresponding to the pixels under test is located at the center of the field of view of the first sensor 20.

处理器50根据所有第一坐标,即可得到第一坐标集,第一坐标集包括所有第一坐标;然后根据标定函数和第一坐标集,可得到每个第一坐标在第二坐标集中对应的第二坐标,从而得到第二坐标集。The processor 50 can obtain a first coordinate set based on all the first coordinates, and the first coordinate set includes all the first coordinates; then, based on the calibration function and the first coordinate set, the second coordinate corresponding to each first coordinate in the second coordinate set can be obtained, thereby obtaining the second coordinate set.

例如,如图8所示,第一图像P3的中心像素的图像坐标为(50,50),实际物理尺寸为0.1mm,待测件400为矩形,待测件400对应的图像区域为图像坐标为(10,10)至(80,70)对应的矩形区域。拍摄第一图像时,运动平台30的第三初始坐标为(15,15,23),处理器50根据第三初始坐标、中心像素的图像坐标、待测件400对应的像素区域、及即可计算得到待测件400对应的像素区域所有像素对应的运动平台30的坐标,即(15-(50-10)*0.1,15-(50-10)*0.1,23)至(15-(50-80)*0.1,15-(50-70)*0.1,23),也即是说,第一坐标集为(11,11,23)至(18,17,23),然后根据第一坐标集和标定函数,即可计算得到第二传感器40对应的第二坐标集为(18.7,19.4,33)至(25.7,25.4,33)。For example, as shown in FIG8 , the image coordinates of the central pixel of the first image P3 are (50,50), the actual physical size is 0.1 mm, the device under test 400 is a rectangle, and the image area corresponding to the device under test 400 is a rectangular area corresponding to the image coordinates (10,10) to (80,70). When capturing the first image, the third initial coordinates of the motion platform 30 are (15, 15, 23). The processor 50 calculates the coordinates of the motion platform 30 corresponding to all pixels in the pixel area corresponding to the device under test 400 according to the third initial coordinates, the image coordinates of the central pixel, and the pixel area corresponding to the device under test 400, i.e., (15-(50-10)*0.1, 15-(50-10)*0.1, 23) to (15-(50-80)*0.1, 15-(50-70)*0.1, 23). In other words, the first coordinate set is (11, 11, 23) to (18, 17, 23). Then, according to the first coordinate set and the calibration function, the second coordinate set corresponding to the second sensor 40 is calculated to be (18.7, 19.4, 33) to (25.7, 25.4, 33).

处理器50根据第二坐标集能够运动平台30的扫描路径,例如,运动平台30按照第二坐标集进行逐个扫描,每次移动到一个第二坐标,第二传感器40采集该第二坐标对应的待测件400的局部的深度;然后依次完成所有第二坐标对应的待测件400的局部的深度的采集,以生成整个待测件400的深度图像;为了减小运动路径的长度以提高拍摄效率,运动平台30可按照第二坐标集控制第二传感器40进行逐行扫描或逐列扫描。The processor 50 can move the scanning path of the motion platform 30 according to the second coordinate set. For example, the motion platform 30 scans one by one according to the second coordinate set, and each time it moves to a second coordinate, the second sensor 40 collects the local depth of the piece to be tested 400 corresponding to the second coordinate; then the local depth collection of the piece to be tested 400 corresponding to all the second coordinates is completed in turn to generate a depth image of the entire piece to be tested 400; in order to reduce the length of the motion path to improve the shooting efficiency, the motion platform 30 can control the second sensor 40 to scan row by row or column by column according to the second coordinate set.

可以理解,有时仅需对待测件400的特定区域进行检测,此时处理器50可先获取待测区域的第一坐标集,然后计算待测区域的第一坐标集对应的第二坐标集,从而控制第二传感器40完成对待测区域的所有部分的信息采集。It can be understood that sometimes only a specific area of the test piece 400 needs to be detected. At this time, the processor 50 can first obtain the first coordinate set of the test area, and then calculate the second coordinate set corresponding to the first coordinate set of the test area, thereby controlling the second sensor 40 to complete the information collection of all parts of the test area.

请参阅图3,在某些实施方式中,处理器50还用于获取检测属性;运动平台30沿扫描路径运动,第二传感器40用于采集待测件400的信息;处理器50还用于依据检测属性、及第二传感器40采集的信息,输出检测结果。Please refer to Figure 3. In some embodiments, the processor 50 is also used to obtain detection attributes; the motion platform 30 moves along the scanning path, and the second sensor 40 is used to collect information of the test piece 400; the processor 50 is also used to output the detection result based on the detection attributes and the information collected by the second sensor 40.

具体地,在确定了扫描路径时,此时运动平台30配合第二传感器40要开始沿扫描路径采集待测件400的信息。处理器50可预先获取需要检测的检测属性,如平面度、圆度、高度差等,检测属性可以是根据用户输入确定的,也可以是根据待测件400的类型确定的,不同类型的待测件400需要检测的属性一般是不同的。Specifically, when the scanning path is determined, the motion platform 30 cooperates with the second sensor 40 to start collecting information of the test piece 400 along the scanning path. The processor 50 can obtain the detection attributes that need to be detected in advance, such as flatness, roundness, height difference, etc. The detection attributes can be determined according to user input or according to the type of the test piece 400. Different types of test pieces 400 generally have different attributes that need to be detected.

此时运动平台30开始沿着扫描路径S移动,扫描路径S可包括多个拍摄节点,如图9所示,当第二传感器40每次仅采集一个像素对应的待测件400的部分的信息(如深度信息)时,每个第二坐标均作为一个拍摄节点,运动平台30每次移动到拍摄节点均进行信息采集;如图10所示,在第二传感器40每次可采集多个待测件400的局部的信息时,则可将待测件400分为多个运动区域M,每个运动区域M包括多个待测件400的局部,然后将所有运动区域M的中心的局部对应的第二坐标依次连接以得到扫描路径S,从而使得第二传感器40每次均可获取多个待测件400的局部的深度,可提升待测件400的深度图像的获取效率。其中,运动区域M中心的局部对应的第二坐标为拍摄节点,从而减少采集次数(如图10的采集次数为图9的采集次数的1/9),有利于提高检测效率。At this time, the motion platform 30 starts to move along the scanning path S, which may include multiple shooting nodes. As shown in FIG9 , when the second sensor 40 only collects information (such as depth information) of a portion of the DUT 400 corresponding to one pixel each time, each second coordinate is used as a shooting node, and the motion platform 30 collects information each time it moves to a shooting node; as shown in FIG10 , when the second sensor 40 can collect information of multiple parts of the DUT 400 each time, the DUT 400 can be divided into multiple motion regions M, each motion region M includes multiple parts of the DUT 400, and then the second coordinates corresponding to the parts at the center of all the motion regions M are sequentially connected to obtain the scanning path S, so that the second sensor 40 can obtain the depth of multiple parts of the DUT 400 each time, which can improve the acquisition efficiency of the depth image of the DUT 400. Among them, the second coordinate corresponding to the part at the center of the motion region M is a shooting node, thereby reducing the number of acquisitions (the number of acquisitions in FIG10 is 1/9 of the number of acquisitions in FIG9 ), which is conducive to improving the detection efficiency.

请参阅图9,在一个例子中,待测件400为矩形,对应第一图像中9*9个待测像素(即,对应待测件400的9*9个局部),第二坐标集即包括9*9个第二坐标。当第二传感器40每次仅获取一个待测件400的局部的深度时,扫描路径S如图9,依次连接每个待测像素对应的第二坐标以形成扫描路径S。当第二传感器40每次获取多个待测件400(如3*3)的局部的深度时,扫描路径S如图10,可将9*9的待测件400分为9个运动区域M(即,一个运动区域M的大小等于第二传感器40获取多个待测件400的局部的数量),然后依次连接每个运动区域M的中心的局部对应的第二坐标以生成扫描路径S。Please refer to FIG9 . In one example, the device under test 400 is a rectangle, corresponding to 9*9 pixels under test in the first image (i.e., corresponding to 9*9 parts of the device under test 400 ), the second coordinate set includes 9*9 second coordinates. When the second sensor 40 acquires the depth of only one part of the device under test 400 each time, the scanning path S is as shown in FIG9 , and the second coordinates corresponding to each pixel under test are sequentially connected to form the scanning path S. When the second sensor 40 acquires the depth of multiple parts of the device under test 400 (e.g., 3*3) each time, the scanning path S is as shown in FIG10 , and the 9*9 device under test 400 can be divided into 9 motion regions M (i.e., the size of one motion region M is equal to the number of parts of the device under test 400 acquired by the second sensor 40 ), and then the second coordinates corresponding to the part at the center of each motion region M are sequentially connected to generate the scanning path S.

在运动平台30沿扫描路径S移动完成后,第二传感器40即完成标定件200的所有局部的信息的采集,处理器50根据检测属性,对采集的信息进行检测,从而输出与检测属性对应的输出结果。After the motion platform 30 has completed moving along the scanning path S, the second sensor 40 has completed collecting all local information of the calibration component 200, and the processor 50 detects the collected information according to the detection attribute, thereby outputting an output result corresponding to the detection attribute.

例如,检测属性为平面度,第二传感器40采集了每个局部的深度信息,根据不同局部的深度的差异,即可确定平面度。然后处理器50输出平面度信息以作为检测结果。For example, if the detection attribute is flatness, the second sensor 40 collects the depth information of each part, and the flatness can be determined according to the difference in depth of different parts. Then the processor 50 outputs the flatness information as the detection result.

请参阅图11,本申请实施方式的一个或多个存储有计算机程序302的非易失性计算机可读存储介质300,当计算机程序302被一个或多个处理器50执行时,使得处理器50可执行上述任一实施方式的标定方法。Please refer to Figure 11, one or more non-volatile computer-readable storage media 300 storing a computer program 302 in an embodiment of the present application, when the computer program 302 is executed by one or more processors 50, the processor 50 can execute the calibration method of any of the above embodiments.

例如,请结合图1至图3,当计算机程序302被一个或多个处理器50执行时,使得处理器50执行以下步骤:For example, referring to FIG. 1 to FIG. 3 , when the computer program 302 is executed by one or more processors 50, the processor 50 performs the following steps:

011:通过第一传感器20拍摄标定件200的第一标定图像,通过第二传感器40拍摄标定件200的第二标定图像,标定件200由运动平台30带动,标定件200包括特征点;011: photographing a first calibration image of the calibration object 200 through the first sensor 20, and photographing a second calibration image of the calibration object 200 through the second sensor 40, wherein the calibration object 200 is driven by the motion platform 30, and the calibration object 200 includes feature points;

012:依据第一标定图像计算运动平台30的第一标定坐标,依据第二标定图像计算运动平台30的第二标定坐标,其中,运动平台30处于第一标定坐标时,特征点位于第一传感器20的视场中心,运动平台30处于第二标定坐标时,特征点位于第二传感器40的视场中心;012: Calculate the first calibration coordinates of the motion platform 30 according to the first calibration image, and calculate the second calibration coordinates of the motion platform 30 according to the second calibration image, wherein when the motion platform 30 is at the first calibration coordinates, the feature point is located at the center of the field of view of the first sensor 20, and when the motion platform 30 is at the second calibration coordinates, the feature point is located at the center of the field of view of the second sensor 40;

013:根据第一标定坐标和第二标定坐标标定第一传感器20和第二传感器40之间的位置转换关系。013: Calibrate the position conversion relationship between the first sensor 20 and the second sensor 40 according to the first calibration coordinates and the second calibration coordinates.

再例如,请结合图2、图3和图6,当计算机程序302被一个或多个处理器50执行时,处理器50还可以执行以下步骤:For another example, referring to FIG. 2 , FIG. 3 , and FIG. 6 , when the computer program 302 is executed by one or more processors 50 , the processor 50 may further perform the following steps:

0131:计算第一标定坐标和第二标定坐标的坐标差值;及0131: Calculate the coordinate difference between the first calibration coordinate and the second calibration coordinate; and

0132:根据坐标差值建立第一传感器20和第二传感器40之间的标定函数。0132: Establish a calibration function between the first sensor 20 and the second sensor 40 according to the coordinate difference.

在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”或“一些示例”等的描述意指结合实施方式或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施方式或示例以及不同实施方式或示例的特征进行结合和组合。In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施方式所属技术领域的技术人员所理解。Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

尽管上面已经示出和描述了本申请的实施方式,可以理解的是,上述实施方式是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施方式进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations to the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims (6)

1. A calibration method, comprising:
shooting a first calibration image of a calibration piece through a first sensor, shooting a second calibration image of the calibration piece through a second sensor, wherein the calibration piece is driven by a motion platform and comprises characteristic points;
Calculating a first calibration coordinate according to a first initial coordinate of the motion platform, an image coordinate of a pixel corresponding to the first initial coordinate in the first calibration image and a pixel size of the first calibration image when the first calibration image is shot, wherein the feature point is positioned at the center of a view field of the first sensor when the motion platform is positioned at the first calibration coordinate;
Calculating a second calibration coordinate according to a second initial coordinate of the motion platform, an image coordinate of a pixel corresponding to the second initial coordinate in the second calibration image and a pixel size of the second calibration image when the second calibration image is shot, wherein the feature point is positioned at the center of a field of view of the second sensor when the motion platform is positioned at the second calibration coordinate;
calculating a coordinate difference value of the first calibration coordinate and the second calibration coordinate;
Establishing a calibration function between the first sensor and the second sensor according to the coordinate difference value;
according to the calibration function and the first coordinate set of the motion platform when the first sensor shoots the to-be-detected piece, calculating the second coordinate set of the motion platform when the second sensor collects the information of the to-be-detected piece; and
And determining a scanning path of the motion platform according to the second coordinate set.
2. The method of calibrating according to claim 1, wherein capturing a first calibration image of the calibration piece by the first sensor comprises:
Adjusting the motion platform so that the characteristic points are located in the depth of field range and the field of view range of the first sensor;
the shooting of the second calibration image of the calibration piece through the second sensor comprises the following steps:
And adjusting the motion platform so that the characteristic points are positioned in the depth of field range and the field of view range of the second sensor.
3. A calibration device, comprising:
the shooting module is used for shooting a first calibration image of the calibration piece through the first sensor, shooting a second calibration image of the calibration piece through the second sensor, wherein the calibration piece is driven by the motion platform and comprises characteristic points;
The first calculating module is used for calculating a first calibration coordinate according to a first initial coordinate of the moving platform, an image coordinate of a pixel corresponding to the first initial coordinate in the first calibration image and a pixel size of the first calibration image when the first calibration image is shot, wherein the characteristic point is positioned at the center of a view field of the first sensor when the moving platform is positioned at the first calibration coordinate; the method comprises the steps of shooting a first calibration image, calculating a first initial coordinate of a motion platform, an image coordinate of a pixel corresponding to the first initial coordinate in the first calibration image, and a pixel size of the first calibration image, wherein the feature point is positioned in the center of a field of view of a first sensor when the motion platform is positioned in the first calibration coordinate;
The difference value calculation module is used for calculating a coordinate difference value of the first calibration coordinate and the second calibration coordinate;
The calibration module is used for establishing a calibration function between the first sensor and the second sensor according to the coordinate difference value;
The second calculation module is used for calculating a second coordinate set of the moving platform when the second sensor collects information of the piece to be detected according to the calibration function and the first coordinate set of the moving platform when the first sensor shoots the piece to be detected;
And the determining module is used for determining the scanning path of the motion platform according to the second coordinate system.
4. A calibration apparatus, comprising:
the first sensor is used for shooting a first calibration image of the calibration piece;
the second sensor is used for shooting a second calibration image of the calibration piece;
the motion platform is used for driving the calibration piece; and
The processor is used for calculating a first calibration coordinate according to a first initial coordinate of the motion platform, an image coordinate of a pixel corresponding to the first initial coordinate in the first calibration image and a pixel size of the first calibration image when the first calibration image is shot, wherein a feature point is positioned at the center of a view field of the first sensor when the motion platform is positioned at the first calibration coordinate; calculating a second calibration coordinate according to a second initial coordinate of the motion platform, an image coordinate of a pixel corresponding to the second initial coordinate in the second calibration image and a pixel size of the second calibration image when the second calibration image is shot, wherein the feature point is positioned at the center of a field of view of the second sensor when the motion platform is positioned at the second calibration coordinate; calculating a coordinate difference value of the first calibration coordinate and the second calibration coordinate; establishing a calibration function between the first sensor and the second sensor according to the coordinate difference value; according to the calibration function and the first coordinate set of the motion platform when the first sensor shoots the to-be-detected piece, calculating the second coordinate set of the motion platform when the second sensor collects the information of the to-be-detected piece; and determining a scanning path of the motion platform according to the second coordinate system.
5. The calibration device of claim 4, wherein the motion platform is further configured to adjust the calibration member such that the feature point is within a depth of field and a field of view of the first sensor and/or the feature point is within a depth of field and a field of view of the second sensor.
6. A non-transitory computer readable storage medium storing a computer program which, when executed by one or more processors, causes the processors to perform the calibration method of any of claims 1 to 2.
CN202011566263.0A 2020-12-25 2020-12-25 Calibration method and device, calibration equipment and storage medium Active CN112634376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011566263.0A CN112634376B (en) 2020-12-25 2020-12-25 Calibration method and device, calibration equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011566263.0A CN112634376B (en) 2020-12-25 2020-12-25 Calibration method and device, calibration equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112634376A CN112634376A (en) 2021-04-09
CN112634376B true CN112634376B (en) 2024-06-04

Family

ID=75325337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011566263.0A Active CN112634376B (en) 2020-12-25 2020-12-25 Calibration method and device, calibration equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112634376B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113310406B (en) * 2021-05-27 2023-03-28 深圳中科飞测科技股份有限公司 Position correction method and position correction apparatus
CN113376181A (en) * 2021-06-09 2021-09-10 深圳中科飞测科技股份有限公司 Detection method and detection equipment
CN114119762B (en) * 2022-01-29 2022-04-29 深圳思谋信息科技有限公司 Element positioning method, device, equipment and storage medium in alternating bright field and dark field
CN114964083B (en) * 2022-05-16 2024-12-17 中铁工程装备集团有限公司 Tunnel face detection device and tunnel face detection method based on ultrasonic waves
CN117848403B (en) * 2024-03-08 2024-07-19 宁德时代新能源科技股份有限公司 Calibration piece and method for calibrating detection system by using calibration piece

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003269913A (en) * 2002-03-19 2003-09-25 Canon Inc Device and method for calibrating sensor, program, and storage medium
WO2014044126A1 (en) * 2012-09-21 2014-03-27 Wei Yiqun Coordinate acquisition device, system and method for real-time 3d reconstruction, and stereoscopic interactive device
KR20180046624A (en) * 2016-10-28 2018-05-09 (주)아이엠 Dual camera module manufacturing method and apparatus for acquisiting correction-data so as to synthesizing image and dual camera module manufactured by this
CN108225667A (en) * 2017-12-28 2018-06-29 北京航空航天大学 Pixel-level cuts quick liquid crystal scaling method and device
CN109186462A (en) * 2018-08-10 2019-01-11 江南大学 A kind of laser high-speed measuring machine and measurement method
JP2019052983A (en) * 2017-09-15 2019-04-04 キヤノン株式会社 Calibration method and calibrator
CN110443853A (en) * 2019-07-19 2019-11-12 广东虚拟现实科技有限公司 Scaling method, device, terminal device and storage medium based on binocular camera
JP2020041850A (en) * 2018-09-07 2020-03-19 株式会社明電舎 Line measuring device and line measuring method
WO2020062699A1 (en) * 2018-09-25 2020-04-02 Zhejiang Dahua Technology Co., Ltd. Systems and methods for 3-dimensional (3d) positioning of imaging device
CN111435070A (en) * 2019-01-14 2020-07-21 深圳中科飞测科技有限公司 Conversion relation obtaining method, detection equipment and detection method
CN111445533A (en) * 2020-03-27 2020-07-24 广东博智林机器人有限公司 Binocular camera calibration method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9430822B2 (en) * 2013-06-14 2016-08-30 Microsoft Technology Licensing, Llc Mobile imaging platform calibration
CN106537269B (en) * 2015-05-06 2020-05-05 东莞市神州视觉科技有限公司 A method, device and system for improving the precision of an XY motion platform system
CN112085797B (en) * 2019-06-12 2024-07-19 通用电气精准医疗有限责任公司 3D camera-medical imaging equipment coordinate system calibration system and method and its application

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003269913A (en) * 2002-03-19 2003-09-25 Canon Inc Device and method for calibrating sensor, program, and storage medium
WO2014044126A1 (en) * 2012-09-21 2014-03-27 Wei Yiqun Coordinate acquisition device, system and method for real-time 3d reconstruction, and stereoscopic interactive device
KR20180046624A (en) * 2016-10-28 2018-05-09 (주)아이엠 Dual camera module manufacturing method and apparatus for acquisiting correction-data so as to synthesizing image and dual camera module manufactured by this
JP2019052983A (en) * 2017-09-15 2019-04-04 キヤノン株式会社 Calibration method and calibrator
CN108225667A (en) * 2017-12-28 2018-06-29 北京航空航天大学 Pixel-level cuts quick liquid crystal scaling method and device
CN109186462A (en) * 2018-08-10 2019-01-11 江南大学 A kind of laser high-speed measuring machine and measurement method
JP2020041850A (en) * 2018-09-07 2020-03-19 株式会社明電舎 Line measuring device and line measuring method
WO2020062699A1 (en) * 2018-09-25 2020-04-02 Zhejiang Dahua Technology Co., Ltd. Systems and methods for 3-dimensional (3d) positioning of imaging device
CN111435070A (en) * 2019-01-14 2020-07-21 深圳中科飞测科技有限公司 Conversion relation obtaining method, detection equipment and detection method
CN110443853A (en) * 2019-07-19 2019-11-12 广东虚拟现实科技有限公司 Scaling method, device, terminal device and storage medium based on binocular camera
CN111445533A (en) * 2020-03-27 2020-07-24 广东博智林机器人有限公司 Binocular camera calibration method, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种基于双目视觉的手眼标定方法;沈爱华;罗印升;宋伟;;机械设计与制造工程(05);全文 *
基于主动视觉的相机标定方法在太阳能电池片丝印机上的应用;张素枝;秦宇锦;;机电工程(03);全文 *

Also Published As

Publication number Publication date
CN112634376A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN112634376B (en) Calibration method and device, calibration equipment and storage medium
JP5273408B2 (en) 4D polynomial model for depth estimation based on two-photo matching
JP5567922B2 (en) Image processing apparatus and control method thereof
JP5096302B2 (en) Imaging device
JP2009031150A (en) Three-dimensional shape measuring device, three-dimensional shape measurement method, three-dimensional shape measurement program, and record medium
JP2010139890A (en) Imaging apparatus
CN105791691B (en) A kind of autofocus and its real-time auto focusing method
CN116134289A (en) Three-dimensional measuring device
JP6152772B2 (en) Imaging apparatus, semiconductor integrated circuit, and imaging method
JP2016217944A (en) Measurement device and measurement method
JP2022152480A (en) Three-dimensional measuring device, three-dimensional measuring method, program, system, and method for manufacturing article
CN112710662B (en) Generation method and device, generation system and storage medium
JP6641485B2 (en) Position specifying device and position specifying method
JP5209100B2 (en) Imaging device
JP4598372B2 (en) 3D field for calibration, 3D field for calibration
JP2020193820A (en) Measurement device, imaging device, control method, and program
JP2016066995A (en) Image deviation amount calculation device, imaging device and image deviation amount calculation method
JPH08327324A (en) Registering apparatus
JP4085720B2 (en) Digital camera
JP5209137B2 (en) Imaging device
JP2003295066A (en) Microscope equipment
JP5209139B2 (en) Imaging device
JP7277267B2 (en) Measuring device, imaging device, measuring system and program
TWI451752B (en) Method for determining if lens and sensing element of image pickup device are parallel
TWI674422B (en) Non-contact optical measurement method and system

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