CN112001974A - Calibration device and calibration method for underwater stereoscopic observation system - Google Patents

Calibration device and calibration method for underwater stereoscopic observation system Download PDF

Info

Publication number
CN112001974A
CN112001974A CN202010860438.2A CN202010860438A CN112001974A CN 112001974 A CN112001974 A CN 112001974A CN 202010860438 A CN202010860438 A CN 202010860438A CN 112001974 A CN112001974 A CN 112001974A
Authority
CN
China
Prior art keywords
calibration
track
moving
calibration plate
moving mechanism
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.)
Pending
Application number
CN202010860438.2A
Other languages
Chinese (zh)
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.)
Fishery Machinery and Instrument Research Institute of CAFS
Original Assignee
Fishery Machinery and Instrument Research Institute of CAFS
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 Fishery Machinery and Instrument Research Institute of CAFS filed Critical Fishery Machinery and Instrument Research Institute of CAFS
Priority to CN202010860438.2A priority Critical patent/CN112001974A/en
Publication of CN112001974A publication Critical patent/CN112001974A/en
Pending legal-status Critical Current

Links

Images

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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/04Indexing scheme for image data processing or generation, in general involving 3D image data
    • 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

Landscapes

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

Abstract

本发明公开了一种水下立体观测系统标定装置,包括设置在玻璃水箱上的标定板移动装置,通过标定板移动装置固定在玻璃水箱内部的标定板、以及设置在玻璃水箱外部的双目视觉设备;所述标定板移动装置包括定位轨道,定位轨道通过挂接件固定在玻璃水箱的顶部,定位轨道包括相对设置的一组轨道短轴和一组轨道长轴,在轨道短轴上开设有若干第一卡槽,移动杆的两端通过第一卡槽设置在定位轨道的轨道短轴上,在移动杆上开设有若干组第二卡槽,移动机构的顶端通过第二卡槽与移动杆可拆卸连接,标定板与移动机构固定连接;标定板通过移动机构和移动杆改变在玻璃水箱中的位置,双目视觉设备获取标定板在当前位置的采样图像。

Figure 202010860438

The invention discloses a calibration device for an underwater stereoscopic observation system. equipment; the calibration plate moving device includes a positioning track, the positioning track is fixed on the top of the glass water tank through a hanger, the positioning track includes a set of track short shafts and a set of track long shafts that are oppositely arranged, and a set of track short shafts is opened on the track short shaft. Several first card slots, the two ends of the moving rod are set on the track short axis of the positioning track through the first card grooves, and several groups of second card grooves are opened on the moving rod, and the top of the moving mechanism passes through the second card grooves. The rod is detachably connected, and the calibration plate is fixedly connected with the moving mechanism; the calibration plate changes its position in the glass water tank through the moving mechanism and the moving rod, and the binocular vision device obtains the sampling image of the calibration plate at the current position.

Figure 202010860438

Description

一种水下立体观测系统标定装置及标定方法An underwater stereoscopic observation system calibration device and calibration method

技术领域technical field

本发明涉及水产养殖领域,具体地说,特别涉及到一种水下立体观测系统标定装置及标定方法。The invention relates to the field of aquaculture, in particular to a calibration device and a calibration method for an underwater stereoscopic observation system.

背景技术Background technique

在水产养殖中,往往需要对玻璃水箱中目标物体进行标定。然而,目前使用视觉测量方法对目标体进行三维重构时,视觉系统与被测目标往往都处在同一介质环境下(如空气),而玻璃水箱内标定时为了不对流体产生扰动,一般将视觉系统放置在玻璃玻璃水箱的外面,隔着玻璃观测水中目标物体的运动,因此被测目标与视觉系统之间除了空气这一介质外,还存在着玻璃介质与水介质。在这三种不同折射率介质的作用下,目标物原有的成像光路发生了改变,利用不同角度像点位置通过直线光路交汇的方式重构目标点的空间坐标会产生较大的误差。In aquaculture, it is often necessary to calibrate the target object in the glass tank. However, when using the visual measurement method to reconstruct the target body in three dimensions, the visual system and the measured target are often in the same medium environment (such as air). The system is placed outside the glass water tank, and the movement of the target object in the water is observed through the glass. Therefore, in addition to the air medium, there are glass medium and water medium between the measured target and the vision system. Under the action of these three different refractive index media, the original imaging optical path of the target object has changed, and the reconstruction of the spatial coordinates of the target point by means of the intersection of the straight-line optical paths with the image point positions of different angles will cause a large error.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于针对现有技术中的不足,提供一种水下立体观测系统标定装置及标定方法,以解决现有技术中存在的问题。The purpose of the present invention is to provide a calibration device and a calibration method for an underwater stereoscopic observation system in view of the deficiencies in the prior art, so as to solve the problems existing in the prior art.

本发明所解决的技术问题可以采用以下技术方案来实现:The technical problem solved by the present invention can be realized by the following technical solutions:

一种水下立体观测系统标定装置,包括设置在玻璃水箱上的标定板移动装置,通过标定板移动装置固定在玻璃水箱内部的标定板、以及设置在玻璃水箱外部的双目视觉设备;An underwater stereoscopic observation system calibration device, comprising a calibration plate moving device arranged on a glass water tank, a calibration plate fixed inside the glass water tank through the calibration plate moving device, and a binocular vision device arranged outside the glass water tank;

所述标定板移动装置包括定位轨道,定位轨道通过挂接件固定在玻璃水箱的顶部,定位轨道包括相对设置的一组轨道短轴和一组轨道长轴,在轨道短轴上开设有若干第一卡槽,移动杆的两端通过第一卡槽设置在定位轨道的轨道短轴上,在移动杆上开设有若干组第二卡槽,移动机构的顶端通过第二卡槽与移动杆可拆卸连接,标定板与移动机构固定连接;The calibration plate moving device includes a positioning track, the positioning track is fixed on the top of the glass water tank through a hook, the positioning track includes a set of track short shafts and a set of track long shafts that are oppositely arranged, and a plurality of first track shafts are opened on the track short shafts. A card slot, the two ends of the moving rod are arranged on the track short axis of the positioning track through the first card groove, and several groups of second card grooves are opened on the moving rod. The top of the moving mechanism can be connected to the moving rod through the second card grooves Dismantling the connection, the calibration plate is fixedly connected with the moving mechanism;

所述标定板通过移动机构和移动杆改变在玻璃水箱中的位置,双目视觉设备获取标定板在当前位置的采样图像。The position of the calibration plate in the glass water tank is changed by the moving mechanism and the moving rod, and the binocular vision device obtains the sampling image of the calibration plate at the current position.

进一步的,双目视觉设备的采样过程如下:Further, the sampling process of the binocular vision device is as follows:

1)安装双目视觉设备、标定板移动装置和标定板,调整双目视觉设备的位置,使玻璃水箱能够完整成像;1) Install binocular vision equipment, calibration board moving device and calibration board, adjust the position of the binocular vision equipment, so that the glass water tank can be completely imaged;

2)将移动杆放置到短轴起始位置,将移动机构放置到长轴起始位置卡槽,将此时标定板的位置作为采样起点,并设定标定板左下角靶点为世界坐标系原点,拍摄第1帧图像;2) Place the moving rod at the starting position of the short axis, place the moving mechanism in the slot at the starting position of the long axis, take the position of the calibration plate at this time as the sampling starting point, and set the target point in the lower left corner of the calibration plate as the world coordinate system Origin, take the first frame of image;

3)将移动机构沿移动杆的第二卡槽顺序平移两次,分别拍摄第2~3帧图像;3) Translate the moving mechanism twice in sequence along the second slot of the moving rod, and shoot the 2nd to 3rd frame images respectively;

4)保持移动机构的位置不动,沿轨道短轴平移移动杆至下一第一卡槽,拍摄第4帧图像;4) Keep the position of the moving mechanism stationary, translate the moving rod along the short axis of the track to the next first card slot, and shoot the 4th frame image;

5)将移动机构沿移动杆的第二卡槽反向平移两次,拍摄第5~6帧图像;5) The moving mechanism is reversely translated twice along the second slot of the moving rod, and the 5th to 6th frame images are taken;

6)保持移动机构的位置不动,沿轨道短轴平移移动杆至下一第一卡槽,重复步骤2)-5),直到最后一个第一卡槽位置,完成全视域采样。6) Keep the position of the moving mechanism still, translate the moving rod along the short axis of the track to the next first card slot, repeat steps 2)-5) until the last first card slot position, and complete the full-view sampling.

进一步的,所述双目视觉设备的标定方法为:Further, the calibration method of the binocular vision device is:

1)通过机器视觉软件获取标定板的位置信息,获得标定板位置后,利用算子对区域中的圆进行分割,找到圆的个数、周长、坐标位置和标定板描述文件中一致的靶标点;1) Obtain the position information of the calibration board through the machine vision software, and after obtaining the position of the calibration board, use the operator to segment the circles in the area, and find the number, perimeter, coordinate position of the circle and the consistent target in the description file of the calibration board point;

2)运算得到靶标点的像素坐标;设定世界坐标系X轴与鱼缸长轴平行、Y轴垂直于鱼缸底部、Z轴与鱼缸短轴平行、原点为标定板起始位置的右下靶标点,联立标定板移动距离和靶标点空间分布得到靶标点的世界坐标系坐标;2) Calculate the pixel coordinates of the target point; set the X axis of the world coordinate system to be parallel to the long axis of the fish tank, the Y axis to be perpendicular to the bottom of the fish tank, the Z axis to be parallel to the short axis of the fish tank, and the origin to be the lower right target point of the starting position of the calibration board , the world coordinate system coordinates of the target point are obtained by combining the moving distance of the calibration plate and the spatial distribution of the target point;

3)将有效采集的靶标点,分为训练集和测试集;使用遗传算法对坐标系的训练集参数进行优化,当迭代达到最大次数后,输出最优组合,得到优化后的模型参数;3) Divide the effectively collected target points into a training set and a test set; use the genetic algorithm to optimize the parameters of the training set of the coordinate system, and when the iteration reaches the maximum number of times, output the optimal combination to obtain the optimized model parameters;

4)利用遗传算法确定的模型参数,构建坐标系的SVR训练模型,预测世界坐标系中的三个参数;其中,靶标点包含左、右图像像素坐标和世界坐标信息,图像坐标值的单位为像素,即靶标点在图像中的像素坐标。4) Use the model parameters determined by the genetic algorithm to construct the SVR training model of the coordinate system, and predict the three parameters in the world coordinate system; wherein, the target point includes left and right image pixel coordinates and world coordinate information, and the unit of the image coordinate value is Pixel, that is, the pixel coordinates of the target point in the image.

进一步的,所述双目视觉设备的标定方法包括误差评价过程,其方法如下:Further, the calibration method of the binocular vision device includes an error evaluation process, and the method is as follows:

采用轴向误差评价和单点误差评价相结合的方法,轴向误差评价采用MSE函数,单点误差评价采用PMSE函数,具体如下:A combination of axial error evaluation and single-point error evaluation is adopted. The axial error evaluation adopts the MSE function, and the single-point error evaluation adopts the P MSE function, as follows:

Figure BDA0002647907000000031
Figure BDA0002647907000000031

Figure BDA0002647907000000032
Figure BDA0002647907000000032

式中的x′、y′、z′为测量点实际空间坐标,xi′、yi′、zi′为测量点模型预测数据,di为所有测量点在x、y或z轴实际空间坐标,di′为所有测量点在X、Y或Z轴模型预测数据。In the formula, x', y', z' are the actual spatial coordinates of the measurement point, xi ', y i ', z i ' are the prediction data of the measurement point model, and d i is the actual measurement point on the x, y or z axis. Spatial coordinates, d i ' are model prediction data in X, Y or Z axis for all measurement points.

与现有技术相比,本发明的有益效果在于:Compared with the prior art, the beneficial effects of the present invention are:

通过图像采集分析的方式重构目标的三维空间坐标信息,具有非接触、精度高、测量范围广等优点,可以很好地满足标定的要求。Reconstructing the three-dimensional space coordinate information of the target through image acquisition and analysis has the advantages of non-contact, high precision, and wide measurement range, which can well meet the requirements of calibration.

附图说明Description of drawings

图1为本发明所述的水下立体观测系统标定装置的示意图。FIG. 1 is a schematic diagram of the calibration device of the underwater stereoscopic observation system according to the present invention.

图2为本发明所述的标定板的示意图。FIG. 2 is a schematic diagram of the calibration plate according to the present invention.

图3为本发明所述的双目视觉设备和玻璃水箱的位置示意图。FIG. 3 is a schematic diagram of the positions of the binocular vision device and the glass water tank according to the present invention.

具体实施方式Detailed ways

为使本发明实现的技术手段、创作特征、达成目的与功效易于明白了解,下面结合具体实施方式,进一步阐述本发明。In order to make the technical means, creative features, achievement goals and effects realized by the present invention easy to understand, the present invention will be further described below with reference to the specific embodiments.

参见图1、图2和图3,本发明所述的一种水下立体观测系统标定装置,包括设置在玻璃水箱(3)上的标定板移动装置,通过标定板移动装置固定在玻璃水箱(3)内部的标定板、以及设置在玻璃水箱(3)外部的双目视觉设备;Referring to Figure 1, Figure 2 and Figure 3, an underwater stereoscopic observation system calibration device according to the present invention includes a calibration plate moving device arranged on the glass water tank (3), and is fixed on the glass water tank (3) through the calibration plate moving device. 3) The internal calibration plate and the binocular vision device arranged outside the glass water tank (3);

所述标定板移动装置包括定位轨道(1),定位轨道(1)通过挂接件(5)固定在玻璃水箱(3)的顶部,定位轨道(1)包括相对设置的一组轨道短轴(6)和一组轨道长轴(7),在轨道短轴(6)上开设有若干第一卡槽(61),移动杆(4)的两端通过第一卡槽(61)设置在定位轨道(1)的轨道短轴(6)上,在移动杆(4)上开设有若干组第二卡槽(41),移动机构(2)的顶端通过第二卡槽(41)与移动杆(4)可拆卸连接,标定板与移动机构(2)固定连接;The calibration plate moving device includes a positioning track (1), the positioning track (1) is fixed on the top of the glass water tank (3) by a hook (5), and the positioning track (1) includes a set of relatively arranged track short shafts ( 6) and a set of track long shafts (7), a plurality of first card slots (61) are opened on the track short shafts (6), and both ends of the moving rod (4) are arranged in the positioning position through the first card slots (61). On the track short axis (6) of the track (1), several groups of second clamping grooves (41) are opened on the moving rod (4), and the top of the moving mechanism (2) passes through the second clamping groove (41) and the moving rod. (4) Removable connection, the calibration plate is fixedly connected with the moving mechanism (2);

所述标定板通过移动机构(2)和移动杆(4)改变在玻璃水箱(3)中的位置,双目视觉设备获取标定板在当前位置的采样图像。The position of the calibration plate in the glass water tank (3) is changed by a moving mechanism (2) and a moving rod (4), and a binocular vision device acquires a sampling image of the calibration plate at the current position.

实施例1Example 1

定位轨道(1)内径尺寸为1300×900mm,上下厚度为20mm,单边宽度为50mm,轨道长轴(7)与玻璃水箱(3)内壁间距为41mm,轨道短轴(6)离玻璃水箱(3)内壁间距为16mm。采用挂接件(5)与玻璃水箱(3)连接,定位轨道(1)上平面与玻璃水箱(3)顶部齐平。The inner diameter of the positioning track (1) is 1300×900mm, the upper and lower thickness is 20mm, the width of one side is 50mm, the distance between the long axis of the track (7) and the inner wall of the glass water tank (3) is 41mm, and the short axis of the track (6) 3) The inner wall spacing is 16mm. A hanger (5) is used to connect with the glass water tank (3), and the upper plane of the positioning track (1) is flush with the top of the glass water tank (3).

移动杆(4)长度为1320mm,上下厚度为20mm,宽度为20mm,通过第一卡槽(61)固定在轨道短轴(6)上。The moving rod (4) is 1320mm in length, 20mm in upper and lower thickness, and 20mm in width, and is fixed on the track short axis (6) through the first card slot (61).

轨道短轴(6)从起始位置每隔50mm加工一个第一卡槽(61)(长度10mm,宽度20mm,深度10mm),共加工17对卡槽。A first slot (61) (length 10mm, width 20mm, depth 10mm) is machined every 50mm from the initial position of the track short axis (6), and a total of 17 pairs of slots are machined.

沿轨道长轴(7)方向,在移动杆(4)上从长轴起始位置每隔400mm加工一对第二卡槽(41)(长度20mm,宽度20mm,深度10mm),每对第二卡槽(41)间隔550mm,与移动机构(2)挂臂等宽,共加工3对第二卡槽(41)。Along the direction of the long axis (7) of the track, a pair of second slots (41) (length 20mm, width 20mm, depth 10mm) are machined on the moving rod (4) at intervals of 400mm from the starting position of the long axis (length 20mm, width 20mm, depth 10mm). The clamping grooves (41) are at an interval of 550 mm and have the same width as the hanging arm of the moving mechanism (2). A total of 3 pairs of second clamping grooves (41) are processed.

移动机构(2)高900mm,宽550mm,通过第二卡槽(41)固定在移动杆上,标定板固定在移动机构(2)的底端。The moving mechanism (2) is 900mm high and 550mm wide, and is fixed on the moving rod through the second card slot (41), and the calibration plate is fixed on the bottom end of the moving mechanism (2).

标定板移动装置采用高精度数控机床加工,加工精度为±0.05mm,第二卡槽(61)和第二卡槽(41)安装精度为±0.1mm。相机标定时,将标定板垂直固定在移动杆(4)上,根据卡槽位置分别沿长轴方向移动标定板以及沿短轴方向移动移动杆,并在每个位置拍摄样本图像,使采集的标定板图像能够覆盖整个玻璃水箱(3)空间,实现全视域采样。The calibration plate moving device is processed by a high-precision CNC machine tool, the processing accuracy is ±0.05mm, and the installation accuracy of the second clamping groove (61) and the second clamping groove (41) is ±0.1mm. When the camera is calibrated, the calibration plate is vertically fixed on the moving rod (4), the calibration plate is moved along the long axis direction and the moving rod is moved along the short axis direction according to the position of the card slot, and sample images are taken at each position, so that the collected The calibration plate image can cover the entire space of the glass water tank (3), so as to realize the sampling of the whole field of view.

双目视觉设备的采样过程如下:The sampling process of the binocular vision device is as follows:

1)安装双目视觉设备和标定板移动装置,调整双目相机位置,使水缸能够完整成像,设备布置如图2所示;1) Install binocular vision equipment and calibration plate moving device, adjust the position of the binocular camera, so that the water tank can be completely imaged. The equipment layout is shown in Figure 2;

2)将移动杆放置到图1所示短轴起始位置卡槽、移动机构放置到标定杆上长轴起始位置卡槽,以此位置作为采样起点,并设定标定板左下角靶点为世界坐标系原点,拍摄第1帧图像;2) Place the moving rod in the initial position of the short axis as shown in Figure 1, and place the moving mechanism in the initial position of the long axis on the calibration rod. Use this position as the sampling starting point, and set the target point in the lower left corner of the calibration plate Take the first frame image as the origin of the world coordinate system;

3)沿长轴方向根据卡槽位置顺序平移移动机构2次,移动距离400mm,分别拍摄第2~3帧图像;3) Translate the moving mechanism 2 times in sequence along the long axis according to the position of the card slot, and the moving distance is 400mm, and shoot the 2nd to 3rd frame images respectively;

4)保持移动机构位置,沿短轴方向平移移动杆50mm,放置到定位轨道下一个卡槽位置,拍摄第4帧图像;4) Keep the position of the moving mechanism, translate the moving rod 50mm along the short axis direction, place it in the next slot of the positioning track, and take the fourth frame of image;

5)逆向顺序平移移动机构两次,移动距离400mm,拍摄第5~6帧图像;5) Translate the moving mechanism in reverse order twice, the moving distance is 400mm, and take the 5th to 6th frame images;

6)保持移动机构位置,沿短轴方向平移移动杆50mm,重复步骤(2)~(5),直到最后一个卡槽位置停止,完成全视域采样。6) Keep the position of the moving mechanism, translate the moving rod 50mm along the short axis direction, and repeat steps (2) to (5) until the last slot stops and complete the full-view sampling.

根据设备安装布局和标定板尺寸,设定标定板从左到右可移动距离上限为1200mm,标定杆从前到后可移动距离上限为850mm;完成上述采样过程,样本库将有51对102张图像,选择其中的前47对作为训练集,第48对作为测试集,后3对作为评价样本。由于每张图片有49个靶标点(71),则前47对图像中共有2303靶标点(71)作为训练集,第48对图像共有49个靶标点(71)作为测试集,后3对图像共有147个靶标点(71)作为评价样本。According to the installation layout of the equipment and the size of the calibration board, the upper limit of the movable distance of the calibration board from left to right is set to 1200mm, and the upper limit of the movable distance of the calibration rod from front to back is 850mm; after the above sampling process is completed, the sample library will have 51 pairs of 102 images , select the first 47 pairs as the training set, the 48th pair as the test set, and the last 3 pairs as the evaluation samples. Since each image has 49 target points (71), there are 2303 target points (71) in the first 47 pairs of images as the training set, the 48th pair of images has a total of 49 target points (71) as the test set, and the last 3 pairs of images A total of 147 target sites (71) were used as evaluation samples.

所述双目视觉设备的标定方法包括误差评价过程,其方法如下:The calibration method of the binocular vision device includes an error evaluation process, and the method is as follows:

标定板位置信息通过HALCON软件自带的find_caltab()算子获取,获得标定板位置后,利用算子find_marks_and_pose()对区域中的圆进行分割,找到圆的个数、周长、坐标位置等应该和标定板描述文件中的一致靶标点(71)。The position information of the calibration board is obtained through the find_caltab() operator that comes with the HALCON software. After the position of the calibration board is obtained, the operator find_marks_and_pose() is used to segment the circles in the area, and the number, perimeter, and coordinate position of the circles should be found. and consistent target spots in the calibration plate description file (71).

通过上述算子运算可以得到靶标点(71)的像素坐标。设定世界坐标系X轴与鱼缸长轴平行、Y轴垂直于鱼缸底部、Z轴与鱼缸短轴平行、原点为标定板起始位置右下靶标点(71),联立标定板移动距离和靶标点(71)空间分布可得到靶标点(71)的世界坐标系坐标。共有效采集2352个靶标点(71),选择其中的前2303各点作为训练集,最后49个点作为测试集。The pixel coordinates of the target point (71) can be obtained through the above-mentioned operator operations. Set the X axis of the world coordinate system to be parallel to the long axis of the fish tank, the Y axis to be perpendicular to the bottom of the fish tank, the Z axis to be parallel to the short axis of the fish tank, and the origin to be the lower right target point (71) of the starting position of the calibration plate, and the moving distance and From the spatial distribution of the target point (71), the coordinates of the world coordinate system of the target point (71) can be obtained. A total of 2352 target points (71) were effectively collected, the first 2303 points were selected as the training set, and the last 49 points were selected as the test set.

使用遗传算法对3个坐标系训练集参数进行优化,综合考虑算法运算运行速度和不同标定模型适应度函数的收敛性,3组寻优样本种群规模和进化代数统一选择为60和200。参数C和g的搜索范围分别为[1000,10000],[0.0001,0.000001]。当迭代达到最大次数后,输出最优组合,得到优化后的模型参数如下表所示。The genetic algorithm was used to optimize the parameters of the training set of the three coordinate systems. Considering the operation speed of the algorithm and the convergence of the fitness functions of different calibration models, the population size and evolutionary algebra of the three groups of optimization samples were uniformly selected as 60 and 200. The search ranges for parameters C and g are [1000, 10000], [0.0001, 0.000001], respectively. When the maximum number of iterations is reached, the optimal combination is output, and the optimized model parameters are obtained as shown in the following table.

Figure BDA0002647907000000071
Figure BDA0002647907000000071

采用轴向误差评价和单点误差评价相结合的方法,轴向误差评价采用MSE函数,单点误差评价采用PMSE函数,具体如下:A combination of axial error evaluation and single-point error evaluation is adopted. The axial error evaluation adopts the MSE function, and the single-point error evaluation adopts the P MSE function, as follows:

Figure BDA0002647907000000072
Figure BDA0002647907000000072

Figure BDA0002647907000000073
Figure BDA0002647907000000073

式中的x′、y′、z′为测量点实际空间坐标,xi′、yi′、zi′为测量点模型预测数据,di为所有测量点在x、y或z轴实际空间坐标,di′为所有测量点在X、Y或Z轴模型预测数据。In the formula, x', y', z' are the actual spatial coordinates of the measurement point, xi ', y i ', z i ' are the prediction data of the measurement point model, and d i is the actual measurement point on the x, y or z axis. Spatial coordinates, d i ' are model prediction data in X, Y or Z axis for all measurement points.

此外,由于μm测量精度已经是一个非常好的测量精度,而基于训练模型的预测值不受实际测量精度影响,预测值可以到无限位数,因此为了保证评价精度的有效性,精度误差设定为小数点后三位。In addition, since the μm measurement accuracy is already a very good measurement accuracy, the predicted value based on the training model is not affected by the actual measurement accuracy, and the predicted value can reach infinite digits. Therefore, in order to ensure the validity of the evaluation accuracy, the accuracy error is set three decimal places.

以上显示和描述了本发明的基本原理和主要特征和本发明的优点。本行业的技术人员应该了解,本发明不受上述实施例的限制,上述实施例和说明书中描述的只是说明本发明的原理,在不脱离本发明精神和范围的前提下,本发明还会有各种变化和改进,这些变化和改进都落入要求保护的本发明范围内。本发明要求保护范围由所附的权利要求书及其等效物界定。The basic principles and main features of the present invention and the advantages of the present invention have been shown and described above. Those skilled in the art should understand that the present invention is not limited by the above-mentioned embodiments. The above-mentioned embodiments and descriptions only illustrate the principle of the present invention. Without departing from the spirit and scope of the present invention, the present invention will also have Various changes and modifications fall within the scope of the claimed invention. The claimed scope of the present invention is defined by the appended claims and their equivalents.

Claims (4)

1.一种水下立体观测系统标定装置,其特征在于,包括设置在玻璃水箱(3)上的标定板移动装置,通过标定板移动装置固定在玻璃水箱(3)内部的标定板、以及设置在玻璃水箱(3)外部的双目视觉设备;1. an underwater stereoscopic observation system calibration device, it is characterized in that, comprise the calibration plate moving device that is arranged on the glass water tank (3), be fixed on the calibration plate inside the glass water tank (3) by the calibration plate moving device and set Binocular vision equipment outside the glass water tank (3); 所述标定板移动装置包括定位轨道(1),定位轨道(1)通过挂接件(5)固定在玻璃水箱(3)的顶部,定位轨道(1)包括相对设置的一组轨道短轴(6)和一组轨道长轴(7),在轨道短轴(6)上开设有若干第一卡槽(61),移动杆(4)的两端通过第一卡槽(61)设置在定位轨道(1)的轨道短轴(6)上,在移动杆(4)上开设有若干组第二卡槽(41),移动机构(2)的顶端通过第二卡槽(41)与移动杆(4)可拆卸连接,标定板与移动机构(2)固定连接;The calibration plate moving device comprises a positioning track (1), the positioning track (1) is fixed on the top of the glass water tank (3) through a hooking piece (5), and the positioning track (1) includes a set of relatively arranged track short shafts ( 6) and a set of track long shafts (7), a plurality of first card slots (61) are opened on the track short shafts (6), and both ends of the moving rod (4) are arranged in the positioning position through the first card slots (61). On the track short axis (6) of the track (1), several groups of second clamping grooves (41) are opened on the moving rod (4), and the top of the moving mechanism (2) passes through the second clamping groove (41) and the moving rod. (4) Removable connection, the calibration plate is fixedly connected with the moving mechanism (2); 所述标定板通过移动机构(2)和移动杆(4)改变在玻璃水箱(3)中的位置,双目视觉设备获取标定板在当前位置的采样图像。The position of the calibration plate in the glass water tank (3) is changed by the moving mechanism (2) and the moving rod (4), and the binocular vision device obtains the sampling image of the calibration plate at the current position. 2.根据权利要求1所述的水下立体观测系统标定装置,其特征在于,双目视觉设备的采样过程如下:2. underwater stereoscopic observation system calibration device according to claim 1, is characterized in that, the sampling process of binocular vision equipment is as follows: 1)安装双目视觉设备、标定板移动装置和标定板,调整双目视觉设备的位置,使玻璃水箱能够完整成像;1) Install binocular vision equipment, calibration board moving device and calibration board, adjust the position of the binocular vision equipment, so that the glass water tank can be completely imaged; 2)将移动杆(4)放置到短轴起始位置,将移动机构(2)放置到长轴起始位置卡槽,将此时标定板的位置作为采样起点,并设定标定板左下角靶点为世界坐标系原点,拍摄第1帧图像;2) Place the moving rod (4) at the starting position of the short axis, place the moving mechanism (2) in the slot at the starting position of the long axis, take the position of the calibration plate at this time as the sampling starting point, and set the lower left corner of the calibration plate The target point is the origin of the world coordinate system, and the first frame image is taken; 3)将移动机构(2)沿移动杆(4)的第二卡槽(41)顺序平移两次,分别拍摄第2~3帧图像;3) The moving mechanism (2) is sequentially translated twice along the second card slot (41) of the moving rod (4), and the second to third frame images are captured respectively; 4)保持移动机构(2)的位置不动,沿轨道短轴(6)平移移动杆(4)至下一第一卡槽(61),拍摄第4帧图像;4) Keeping the position of the moving mechanism (2) still, move the rod (4) in translation along the short axis of the track (6) to the next first card slot (61), and shoot the 4th frame image; 5)将移动机构(2)沿移动杆(4)的第二卡槽(41)反向平移两次,拍摄第5~6帧图像;5) The moving mechanism (2) is reversely translated twice along the second slot (41) of the moving rod (4), and the 5th to 6th frame images are taken; 6)保持移动机构(2)的位置不动,沿轨道短轴(6)平移移动杆(4)至下一第一卡槽(61),重复步骤2)-5),直到最后一个第一卡槽(61)位置,完成全视域采样。6) Keep the position of the moving mechanism (2) still, translate the moving rod (4) to the next first slot (61) along the short axis of the track (6), repeat steps 2)-5) until the last first The position of the card slot (61) completes the sampling of the whole field of view. 3.根据权利要求2所述的水下立体观测系统标定装置,其特征在于,所述双目视觉设备的标定方法为:3. underwater stereoscopic observation system calibration device according to claim 2, is characterized in that, the calibration method of described binocular vision equipment is: 1)通过机器视觉软件获取标定板的位置信息,获得标定板位置后,利用算子对区域中的圆进行分割,找到圆的个数、周长、坐标位置和标定板描述文件中一致的靶标点(71);1) Obtain the position information of the calibration board through the machine vision software, and after obtaining the position of the calibration board, use the operator to segment the circles in the area, and find the number, perimeter, coordinate position of the circle and the consistent target in the description file of the calibration board point(71); 2)运算得到靶标点(71)的像素坐标;设定世界坐标系X轴与鱼缸长轴平行、Y轴垂直于鱼缸底部、Z轴与鱼缸短轴平行、原点为标定板起始位置的右下靶标点(71),联立标定板移动距离和靶标点(71)空间分布得到靶标点(71)的世界坐标系坐标;2) Calculate the pixel coordinates of the target point (71); set the X axis of the world coordinate system to be parallel to the long axis of the fish tank, the Y axis to be perpendicular to the bottom of the fish tank, the Z axis to be parallel to the short axis of the fish tank, and the origin to be the right side of the starting position of the calibration plate. lowering the target point (71), and combining the moving distance of the calibration plate and the spatial distribution of the target point (71) to obtain the world coordinate system coordinates of the target point (71); 3)将有效采集的靶标点(71),分为训练集和测试集;使用遗传算法对坐标系的训练集参数进行优化,当迭代达到最大次数后,输出最优组合,得到优化后的模型参数;3) Divide the effectively collected target points (71) into a training set and a test set; use a genetic algorithm to optimize the parameters of the training set of the coordinate system, when the maximum number of iterations is reached, output the optimal combination to obtain an optimized model parameter; 4)利用遗传算法确定的模型参数,构建坐标系的SVR训练模型,预测世界坐标系中的三个参数;其中,靶标点(71)包含左、右图像像素坐标和世界坐标信息,图像坐标值的单位为像素,即靶标点(71)在图像中的像素坐标。4) Utilize the model parameters determined by the genetic algorithm to construct the SVR training model of the coordinate system, and predict three parameters in the world coordinate system; wherein, the target point (71) contains left and right image pixel coordinates and world coordinate information, and the image coordinate value The unit of is pixels, that is, the pixel coordinates of the target point (71) in the image. 4.根据权利要求3所述的水下立体观测系统标定装置,其特征在于,所述双目视觉设备的标定方法包括误差评价过程,其方法如下:4. underwater stereoscopic observation system calibration device according to claim 3, is characterized in that, the calibration method of described binocular vision equipment comprises error evaluation process, and its method is as follows: 采用轴向误差评价和单点误差评价相结合的方法,轴向误差评价采用MSE函数,单点误差评价采用PMSE函数,具体如下:A combination of axial error evaluation and single-point error evaluation is adopted. The axial error evaluation adopts the MSE function, and the single-point error evaluation adopts the P MSE function, as follows:
Figure FDA0002647906990000031
Figure FDA0002647906990000031
Figure FDA0002647906990000032
Figure FDA0002647906990000032
式中的x′、y′、z′为测量点实际空间坐标,xi′、yi′、zi′为测量点模型预测数据,di为所有测量点在x、y或z轴实际空间坐标,di′为所有测量点在X、Y或Z轴模型预测数据。In the formula, x', y', z' are the actual spatial coordinates of the measurement point, xi ', y i ', z i ' are the prediction data of the measurement point model, and d i is the actual measurement point on the x, y or z axis. Spatial coordinates, d i ' are model prediction data in X, Y or Z axis for all measurement points.
CN202010860438.2A 2020-08-25 2020-08-25 Calibration device and calibration method for underwater stereoscopic observation system Pending CN112001974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010860438.2A CN112001974A (en) 2020-08-25 2020-08-25 Calibration device and calibration method for underwater stereoscopic observation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010860438.2A CN112001974A (en) 2020-08-25 2020-08-25 Calibration device and calibration method for underwater stereoscopic observation system

Publications (1)

Publication Number Publication Date
CN112001974A true CN112001974A (en) 2020-11-27

Family

ID=73470685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010860438.2A Pending CN112001974A (en) 2020-08-25 2020-08-25 Calibration device and calibration method for underwater stereoscopic observation system

Country Status (1)

Country Link
CN (1) CN112001974A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226640A (en) * 2007-12-21 2008-07-23 西北工业大学 Motion capture method based on multi-binocular stereo vision
CN102063721A (en) * 2011-01-06 2011-05-18 大连理工大学 Method for compensating inclination of straight calibration object in calibration process of external parameter of vision system
CN202869412U (en) * 2012-11-14 2013-04-10 中国水产科学研究院黑龙江水产研究所 Measurement tool for measuring measurable characters of fish body
CN104182982A (en) * 2014-08-27 2014-12-03 大连理工大学 Overall optimizing method of calibration parameter of binocular stereo vision camera
CN105994110A (en) * 2016-05-23 2016-10-12 苏州杰姆斯特机械有限公司 Oxygenating agent energy-saving spraying method for modern agricultural farming pond
CN109754415A (en) * 2017-11-02 2019-05-14 郭宇铮 A kind of vehicle-mounted panoramic solid sensory perceptual system based on multiple groups binocular vision
CN109754428A (en) * 2018-11-26 2019-05-14 西北工业大学 A measurement method for underwater binocular vision positioning error
CN110853002A (en) * 2019-10-30 2020-02-28 上海电力大学 Transformer substation foreign matter detection method based on binocular vision
CN111445536A (en) * 2020-05-13 2020-07-24 武汉夕睿光电技术有限公司 A 3D camera calibration device and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226640A (en) * 2007-12-21 2008-07-23 西北工业大学 Motion capture method based on multi-binocular stereo vision
CN102063721A (en) * 2011-01-06 2011-05-18 大连理工大学 Method for compensating inclination of straight calibration object in calibration process of external parameter of vision system
CN202869412U (en) * 2012-11-14 2013-04-10 中国水产科学研究院黑龙江水产研究所 Measurement tool for measuring measurable characters of fish body
CN104182982A (en) * 2014-08-27 2014-12-03 大连理工大学 Overall optimizing method of calibration parameter of binocular stereo vision camera
CN105994110A (en) * 2016-05-23 2016-10-12 苏州杰姆斯特机械有限公司 Oxygenating agent energy-saving spraying method for modern agricultural farming pond
CN109754415A (en) * 2017-11-02 2019-05-14 郭宇铮 A kind of vehicle-mounted panoramic solid sensory perceptual system based on multiple groups binocular vision
CN109754428A (en) * 2018-11-26 2019-05-14 西北工业大学 A measurement method for underwater binocular vision positioning error
CN110853002A (en) * 2019-10-30 2020-02-28 上海电力大学 Transformer substation foreign matter detection method based on binocular vision
CN111445536A (en) * 2020-05-13 2020-07-24 武汉夕睿光电技术有限公司 A 3D camera calibration device and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘世晶 等: "基于全视域GA-SVR模型的鱼类行为双目视觉观测系统标定", 《农业工程学报》 *

Similar Documents

Publication Publication Date Title
CN109443207B (en) A kind of light pen robot in-situ measurement system and method
CN105225224B (en) Improve the arrangements of cameras and scaling method of depth of field measurement accuracy
CN103292695B (en) A kind of single eye stereo vision measuring method
CN111735390A (en) A calibration block and hand-eye calibration method for line laser sensor
CN100557634C (en) A camera calibration method based on dual one-dimensional targets
CN1971206A (en) Calibration method for binocular vision sensor based on one-dimension target
CN103559708B (en) Industrial fixed-focus camera parameter calibration device based on side's target model
CN105486289B (en) A kind of laser photography measuring system and camera calibration method
CN105046715B (en) A kind of line-scan digital camera scaling method based on interspace analytic geometry
CN103198481B (en) A kind of camera marking method
CN113295092B (en) Line laser three-dimensional measurement system and method for thin-wall part
CN104881864A (en) Human body head three dimensional scanner and three-dimensional modeling method
CN106500625B (en) A kind of telecentricity stereo vision measurement method
CN110487179A (en) Truss-like industrial measuring system and measurement method based on optical tracking scanner and PLC control system
CN113269673B (en) Three-dimensional point cloud splicing method based on standard ball frame
CN102221331A (en) Measuring method based on asymmetric binocular stereovision technology
CN103353388A (en) Method and device for calibrating binocular integrated microscopy imaging system with camera shooting function
CN109751964A (en) A high-precision non-contact pipe diameter measuring method and device
CN106524943B (en) Three-dimensional reconstruction device and method of double-rotation laser
CN112729156A (en) Data splicing and system calibration method of human body digital measuring device
CN109490251A (en) Underwater refractive index self-calibrating method based on light field multilayer refraction model
CN111272103B (en) Method for measuring spherical center and curvature radius of large-caliber spherical optical element
CN201007646Y (en) A liquid-assisted tomography three-dimensional shape measurement device
CN109612391B (en) A method of measuring the space coordinates of a motor grader based on a binocular measuring device based on a single high-speed camera
CN112001974A (en) Calibration device and calibration method for underwater stereoscopic observation 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201127