[go: up one dir, main page]

CN106441094A - Adaptive calibration vision online detection device and method - Google Patents

Adaptive calibration vision online detection device and method Download PDF

Info

Publication number
CN106441094A
CN106441094A CN201610813300.0A CN201610813300A CN106441094A CN 106441094 A CN106441094 A CN 106441094A CN 201610813300 A CN201610813300 A CN 201610813300A CN 106441094 A CN106441094 A CN 106441094A
Authority
CN
China
Prior art keywords
camera
calibration
rotary table
electric rotary
detection
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
CN201610813300.0A
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.)
SHANGHAI UNIVERSITY
Original Assignee
SHANGHAI UNIVERSITY
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI UNIVERSITY filed Critical SHANGHAI UNIVERSITY
Priority to CN201610813300.0A priority Critical patent/CN106441094A/en
Publication of CN106441094A publication Critical patent/CN106441094A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • G01B21/04Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness by measuring coordinates of points
    • G01B21/042Calibration or calibration artifacts
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明涉及一种自适应标定的视觉在线检测装置和方法。本装置组件包括底座,支撑板,三角筋板,丝杠台,步进电机,电动旋转台,相机安装板以及工业相机等组件。该装置由两个步进电机实现相机沿Y、Z轴水平移动,由三个电动旋转台实现相机绕三个坐标轴的转动。通过上下、左右以及旋转等调节功能,可以很方便地调整工业相机的位姿,从而进行相机标定。标定完成后,自动进入物体的检测阶段,进行图像采集、图像预处理、图像分割、形态学处理等操作。图像检测测量完毕后,若待测物体的检测值的误差不在误差范围内,将重新开始标定。该自适应标定的视觉在线检测装置结构简单实用、操作方便,标定精度高,且稳定可靠。标定过程完全是全自动的,不需要人工的干预,消除了人工因素带来的干扰与误差。

The invention relates to a visual online detection device and method for self-adaptive calibration. The device components include a base, a support plate, a triangular rib plate, a lead screw platform, a stepping motor, an electric rotary platform, a camera mounting plate and an industrial camera and other components. The device realizes the horizontal movement of the camera along the Y and Z axes by two stepping motors, and realizes the rotation of the camera around three coordinate axes by three electric rotating tables. Through the adjustment functions such as up and down, left and right, and rotation, the pose of the industrial camera can be easily adjusted for camera calibration. After the calibration is completed, it automatically enters the object detection stage, and performs operations such as image acquisition, image preprocessing, image segmentation, and morphological processing. After the image detection and measurement is completed, if the error of the detection value of the object to be measured is not within the error range, the calibration will be restarted. The self-adaptive calibration visual on-line detection device has simple and practical structure, convenient operation, high calibration precision, and is stable and reliable. The calibration process is fully automatic without manual intervention, eliminating the interference and errors caused by manual factors.

Description

自适应标定的视觉在线检测装置和方法Adaptive Calibration Visual Online Inspection Device and Method

技术领域technical field

本发明涉及自动化检测领域,具体地说是一种自适应标定的视觉在线检测装置和方法。The invention relates to the field of automatic detection, in particular to a self-adaptive calibration visual on-line detection device and method.

背景技术Background technique

近年来,随着中国工业4.0战略的提出,工业自动化技术势必得到快速的发展。机器视觉技术是工业自动化技术的重要方向。机器视觉技术日趋成熟,在社会生产生活方面日益发挥其重要作用,如视觉监控,零件自动识别与测量,三维重建,地形匹配,医学影像处理等。可以说,相机是工业自动化的眼睛,而标定却关系着眼睛的精度与准确度。摄像机定标是大多数机器视觉应用必不可少的重要步骤,直接对后续的工作的精度产生重要影响。当今机器视觉界的研究热点之一就是研究各种方便实用、灵活和较高精度的相机标定系统。因此,研究出操作简单、快速方便的摄像机定标系统,对自动化产业具有极高的实用价值。目前,在视觉标定方面,基本都是离线状态的相机内参数标定,对于视觉检测系统来说,实现相机内参数的标定可以提高测量的准确性,但在线测量还涉及装置的姿态、位置等外参数标定调节,以保证测量系统的精确和安全工作,适应不同的应用场所。目前来说这种外参数及装置初始状态的调节标定都由人工来操作的,除了操作麻烦和需要熟练的工人来操作,标定结果往往无法避免人为因素带来的误差。因而,本发明提出一种可以适应不同应用场所,装置本身能够根据测量对象的特点具有姿态调整功能,可以自动的实现视觉系统内外参数的标定和在线测量。In recent years, with the proposal of China's Industry 4.0 strategy, industrial automation technology is bound to develop rapidly. Machine vision technology is an important direction of industrial automation technology. Machine vision technology is becoming more and more mature, and it is increasingly playing an important role in social production and life, such as visual monitoring, automatic recognition and measurement of parts, 3D reconstruction, terrain matching, medical image processing, etc. It can be said that the camera is the eye of industrial automation, but calibration is related to the precision and accuracy of the eye. Camera calibration is an essential and important step in most machine vision applications, which directly has an important impact on the accuracy of subsequent work. One of the research hotspots in the field of machine vision today is to study various convenient, practical, flexible and high-precision camera calibration systems. Therefore, it is of great practical value to the automation industry to develop a camera calibration system that is easy to operate, fast and convenient. At present, in terms of visual calibration, it is basically the calibration of the internal parameters of the camera in the offline state. For the visual inspection system, the calibration of the internal parameters of the camera can improve the accuracy of the measurement, but the online measurement also involves external parameters such as the attitude and position of the device. Parameters are calibrated and adjusted to ensure the precise and safe operation of the measurement system and adapt to different applications. At present, the adjustment and calibration of the external parameters and the initial state of the device are all manually operated. In addition to the troublesome operation and the need for skilled workers to operate, the calibration results often cannot avoid errors caused by human factors. Therefore, the present invention proposes a device that can adapt to different application places. The device itself can have a posture adjustment function according to the characteristics of the measurement object, and can automatically realize the calibration and online measurement of the internal and external parameters of the vision system.

发明内容Contents of the invention

本发明的目的,在于针对现有技术存在的不足,设计一种自适应标定的视觉在线检测装置和方法,让相机能自动进行位姿调整与标定过程,有效解决目前人工标定过程的复杂、容易出错等弊端,大大地提高了标定精度。同时,可省去额外人工标定所消耗的时间与人力。The purpose of the present invention is to design a visual online detection device and method for self-adaptive calibration in view of the deficiencies in the prior art, so that the camera can automatically perform the pose adjustment and calibration process, effectively solving the complicated and easy manual calibration process at present. Errors and other drawbacks, greatly improving the calibration accuracy. At the same time, the time and manpower consumed by additional manual calibration can be saved.

为达到上述目的,本发明的构思是:通过固定标定板,转动相机来进行相机标定。将相机的安装装置设计成自动调节装置,从而保证标定过程中相机姿态的自由调整。其主要设计功能如下:In order to achieve the above object, the idea of the present invention is to perform camera calibration by fixing the calibration plate and rotating the camera. The installation device of the camera is designed as an automatic adjustment device, so as to ensure the free adjustment of the camera attitude during the calibration process. Its main design functions are as follows:

(1)相机固定:工业相机在系统运行时,微小的震动可能会对采集到的图像产生如抖动、拖影等干扰现象,这种干扰对图像质量有很大影响。工业相机在长时间震动的条件下运行,则相机固定的位置会产生偏移,影响最终的采集效果,而且会对相机产生一定的破坏。故此,需要一个稳固的机械结构将相机的位置相对固定。(1) Camera fixation: When the industrial camera is running in the system, tiny vibrations may cause interference phenomena such as shaking and smearing to the collected images, which have a great impact on image quality. If the industrial camera is operated under the condition of long-term vibration, the fixed position of the camera will shift, which will affect the final collection effect and cause certain damage to the camera. Therefore, a stable mechanical structure is required to relatively fix the position of the camera.

(2)装置位置调节:为了更加精准地采集图像,及时迅速地调整工业相机的位置,此检测装置还需具有上下、左右以及旋转等调节功能。(2) Device position adjustment: In order to collect images more accurately and adjust the position of the industrial camera in a timely and rapid manner, the detection device also needs to have adjustment functions such as up and down, left and right, and rotation.

(3)相机标定:通过改变相机的位姿,由张正友标定法,可以轻易地根据获得的多张图片数据求得相机的内参数,从而实现产品的在线标定。最后,当相机以及待测产品的位置不在改变时,根据产品的位置,可以求得相机的外参数。(3) Camera calibration: By changing the pose of the camera, the internal parameters of the camera can be easily obtained from multiple image data obtained by Zhang Zhengyou’s calibration method, so as to realize the online calibration of the product. Finally, when the positions of the camera and the product to be tested are not changing, the external parameters of the camera can be obtained according to the position of the product.

(4)在线检测及测量:通过摄像机、数据接口等采集图像至计算机,在计算机的图像处理模块实现产品表面质量的检测(如缺陷、字符等)、外形测量,并能将检测测量结果实时反馈给控制系统,控制系统根据结果对视觉系统进行自适应的标定和调节,以满足最佳的测量效果。(4) On-line detection and measurement: collect images to the computer through cameras, data interfaces, etc., and realize product surface quality detection (such as defects, characters, etc.) and shape measurement in the image processing module of the computer, and can feedback the detection and measurement results in real time To the control system, the control system performs adaptive calibration and adjustment to the vision system according to the results to meet the best measurement effect.

根据上述发明构思,本发明采用下述技术方案:According to above-mentioned inventive concept, the present invention adopts following technical scheme:

一种自适应标定的视觉在线检测装置,包括底座、工业相机、工业计算机、传送带和待测物体,其特征在于:A self-adaptive calibration visual online detection device, including a base, an industrial camera, an industrial computer, a conveyor belt and an object to be measured, is characterized in that:

1) 所述底座固定在地面,位于传送带旁,传送带上搁置待检测物体,底座上安装一个电动旋转台A;1) The base is fixed on the ground, next to the conveyor belt, on which objects to be detected are placed, and an electric rotary table A is installed on the base;

2)在所述电动旋转台A上竖直安装一个电机-丝杠装置A,其中丝杠A由步进电机A驱动,而丝杠A与一个电动旋转台B螺旋配合;2) Install a motor-screw device A vertically on the electric turntable A, wherein the lead screw A is driven by a stepping motor A, and the lead screw A is screw-fitted with an electric turntable B;

3)在所述电动旋转台B上水平安装一个电机-丝杠装置B,其中丝杠B由步进电机B驱动,而丝杠B与一个电动旋转台C螺旋配合;3) Install a motor-screw device B horizontally on the electric rotary table B, wherein the screw B is driven by a stepping motor B, and the screw B is screw-fitted with an electric rotary table C;

4)所述工业相机通过相机安装板安装在所述电动旋转台C上;4) The industrial camera is installed on the electric rotary table C through a camera mounting plate;

5)所述电动旋转台A、电动旋转台B、步进电机A、电动旋转台C和步进电机B均经一个控制器连接所述计算机。5) The electric turntable A, electric turntable B, stepper motor A, electric turntable C and stepper motor B are all connected to the computer via a controller.

自适应标定的视觉在线检测方法,采用上述装置进行操作,具体步骤为:标定前,在传送带上放一块标定板;然后,由已设定的程序控制工业相机回到初始位置,即相机镜头朝向正下方;紧接着,开始相机的自动标定;由设定的标定程序控制工业相机沿Y轴、Z轴方向运动,以及分别绕X轴,Y轴,Z轴方向上的旋转运动来调整相机的姿态;通过已设定的程序对相机姿态的小范围内调整,可得到标定板的多张不同图片;然后,由已设定的标定程序处理照片得到相机的内参;标定完成后,计算机将自动进入检测程序界面,实现了标定与检测的一体化;完成图像采集、图像预处理、图像分割、形态学处理操作后,自动进行检测测量,若检测结果与标准样本参数不一致或者检测效果不好,那么将重新回到标定界面进行标定,从而实现了标定与检测之间的智能调整功能;标定完成后,又将重新回到检测界面进行工作。The visual on-line detection method of self-adaptive calibration uses the above-mentioned device to operate, and the specific steps are: before calibration, put a calibration plate on the conveyor belt; then, the set program controls the industrial camera to return to the initial position, that is, the camera lens Right below; then, start the automatic calibration of the camera; the set calibration program controls the industrial camera to move along the Y-axis and Z-axis, and to adjust the camera's rotation around the X-axis, Y-axis, and Z-axis respectively. Attitude; adjust the camera attitude in a small range through the set program to obtain multiple different pictures of the calibration board; then, process the photos by the set calibration program to obtain the internal reference of the camera; after the calibration is completed, the computer will automatically After entering the detection program interface, the integration of calibration and detection is realized; after image acquisition, image preprocessing, image segmentation, and morphological processing operations are completed, detection and measurement are performed automatically. If the detection results are inconsistent with the standard sample parameters or the detection effect is not good, Then it will return to the calibration interface to calibrate, thus realizing the intelligent adjustment function between calibration and detection; after the calibration is completed, it will return to the detection interface to work again.

与现有技术相比,本发明具有如下突出的优点:Compared with the prior art, the present invention has the following prominent advantages:

本装置结构简单实用、操作方便,标定精度高,且稳定可靠。标定过程完全是全自动的,不需要人工的干预,消除了人工因素带来的干扰与误差,有效了提高标定精度。同时,即使是非专业人员,也能进行操作。The device has simple and practical structure, convenient operation, high calibration precision, and is stable and reliable. The calibration process is fully automatic without manual intervention, eliminating the interference and errors caused by manual factors, and effectively improving the calibration accuracy. At the same time, even non-professionals can operate it.

附图说明Description of drawings

图1为自适应标定的视觉在线检测装置图。Figure 1 is a diagram of a visual online inspection device for adaptive calibration.

图2为自适应标定的视觉在线检测装置的结构框图。Fig. 2 is a structural block diagram of an adaptively calibrated visual online inspection device.

图3为自适应标定的视觉在线检测方法的流程图。Fig. 3 is a flowchart of a visual online detection method for adaptive calibration.

具体实施方式detailed description

本发明的优选实施例结合附图详述如下:Preferred embodiments of the present invention are described in detail as follows in conjunction with accompanying drawings:

实施例一:Embodiment one:

参见图1,本自适应标定的视觉在线检测装置,包括底座(1)、工业相机(10)、工业计算机(15)、传送带(13)和待测物体(12),其特征在于:Referring to Fig. 1, this self-adaptive calibration visual online detection device includes a base (1), an industrial camera (10), an industrial computer (15), a conveyor belt (13) and an object to be measured (12), and is characterized in that:

1) 所述底座(1)固定在地面,位于传送带(13)旁,传送带(13)上搁置待检测物体(12),底座(1)上安装一个电动旋转台A(2);1) The base (1) is fixed on the ground, next to the conveyor belt (13), on which the object (12) to be detected is placed, and an electric rotary table A (2) is installed on the base (1);

2)在所述电动旋转台A(2)上竖直安装一个电机-丝杠装置A,其中丝杠A由步进电机A(5)驱动,而丝杠A与一个电动旋转台B(6)螺旋配合;2) Install a motor-screw device A vertically on the electric rotary table A (2), wherein the screw A is driven by a stepping motor A (5), and the screw A is connected with an electric rotary table B (6 ) screw fit;

3)在所述电动旋转台B(6)上水平安装一个电机-丝杠装置B,其中丝杠B由步进电机B(11)驱动,而丝杠B与一个电动旋转台C(8)螺旋配合;3) Install a motor-screw device B horizontally on the electric rotary table B (6), wherein the screw B is driven by a stepping motor B (11), and the screw B is connected with an electric rotary table C (8) screw fit;

4) 所述工业相机(10)通过相机安装板(9)安装在所述电动旋转台C(8)上;4) The industrial camera (10) is installed on the electric rotary table C (8) through the camera mounting plate (9);

5) 所述电动旋转台A(2)、电动旋转台B(6)、步进电机A(5)、电动旋转台C(8)和步进电机B(11)均经一个控制器(14)连接所述计算机(15)。5) The electric rotary table A (2), electric rotary table B (6), stepper motor A (5), electric rotary table C (8) and stepper motor B (11) are all controlled by a controller (14 ) connected to said computer (15).

实施例二:本实施例与实施例一基本相同,特别之处如下:Embodiment 2: This embodiment is basically the same as Embodiment 1, and the special features are as follows:

所述底座(1)与电动旋转台A(2)之间、电动旋转台A(2)与一个支撑板(3)之间通过螺钉连接;所述支撑板(3)与一个丝杠台A(4)之间通过螺栓连接。所述丝杠台A(4)与电动旋转台B(6)之间、电动旋转台B(6)与一个丝杠台B(7)之间、所述丝杠台B(7)与电动旋转台C(8)之间、电动旋转台C(8)与一个相机安装板(9)之间、所述相机安装板(9)与工业相机(10)之间通过螺钉连接;所述步进电机A(5)与步进电机B(11)均通过一个安装板与丝杠台(4、7)端部进行螺钉连接;步进电机A(5)、步进电机B(11)、电动旋转台A(2)、电动旋转台B(6)以及电动旋转台C(8)均通过RS232串口与控制器(14)连接,控制器(14)与计算机(15)也通过串口连接。通过3个电动旋转台(2、6、8)以及2个步进电机-丝杠装置,实现了工业相机(10)沿Y轴、Z轴方向上的自由移动,以及分别绕X轴、Y轴、Z轴旋转,从而使工业相机(10)拥有5个自由度。The base (1) and the electric rotary table A (2), between the electric rotary table A (2) and a support plate (3) are connected by screws; the support plate (3) and a screw table A (4) are connected by bolts. Between the screw table A (4) and the electric rotary table B (6), between the electric rotary table B (6) and a screw table B (7), between the screw table B (7) and the electric Between the rotating table C (8), between the electric rotating table C (8) and a camera mounting plate (9), and between the camera mounting plate (9) and the industrial camera (10) are connected by screws; the steps Both the stepper motor A (5) and the stepper motor B (11) are screwed to the end of the lead screw table (4, 7) through a mounting plate; the stepper motor A (5), stepper motor B (11), The electric turntable A (2), electric turntable B (6) and electric turntable C (8) are all connected to the controller (14) through the RS232 serial port, and the controller (14) is also connected to the computer (15) through the serial port. Through 3 electric rotating tables (2, 6, 8) and 2 stepping motor-screw devices, the free movement of the industrial camera (10) along the Y-axis and Z-axis directions, and around the X-axis and Y-axis respectively Axis and Z axis rotate, so that the industrial camera (10) has 5 degrees of freedom.

实施例三:Embodiment three:

参见图1和图2,本自适应标定的视觉在线检测系统由运输装置、检测装置、控制装置三部分组成。运输装置由传送带(13)与待测物体(12)组成,控制装置由控制器(14)与计算机(15)组成。该检测装置由底座(1)、电动旋转台A(2)、支撑板(3)、丝杠台A(4)、步进电机A(5)、电动旋转台B(6)、丝杠台B(7)、电动旋转台C(8)、相机安装板(9)、工业相机(10)、步进电机B(11)、待测物体(12)、传送带(13)、控制器(14)、计算机(15)构成。底座(1)与电动旋转台A(2)之间、电动旋转台A(2)与支撑板(3)之间通过螺钉连接。支撑板(3)与丝杠台A(4)之间通过螺栓连接。丝杠台A(4)与电动旋转台B(6)之间、电动旋转台B(6)与丝杠台B(7)之间、丝杠台B(7)与电动旋转台C(8)之间、电动旋转台C(8)与相机安装板(9)之间、相机安装板(9)与工业相机(10)之间通过螺钉连接。电机A与电机B均通过安装板与丝杠台端部进行螺钉连接。步进电机A(5)、步进电机B(11)、电动旋转台A(2)、电动旋转台B(6)以及电动旋转台C(8)均通过RS232串口与控制器连接,控制器与计算机也通过串口连接。Referring to Fig. 1 and Fig. 2, this self-adaptive calibration visual on-line detection system consists of three parts: transportation device, detection device and control device. The transportation device is composed of a conveyor belt (13) and an object to be measured (12), and the control device is composed of a controller (14) and a computer (15). The detection device consists of a base (1), an electric rotary table A (2), a support plate (3), a screw table A (4), a stepping motor A (5), an electric rotary table B (6), and a screw table B (7), electric rotary table C (8), camera mounting plate (9), industrial camera (10), stepping motor B (11), object to be measured (12), conveyor belt (13), controller (14 ), a computer (15) constitutes. The base (1) and the electric turntable A (2), and between the electric turntable A (2) and the support plate (3) are connected by screws. The support plate (3) is connected with the lead screw table A (4) by bolts. Between the screw table A (4) and the electric rotary table B (6), between the electric rotary table B (6) and the screw table B (7), between the screw table B (7) and the electric rotary table C (8 ), between the electric rotary table C (8) and the camera mounting plate (9), and between the camera mounting plate (9) and the industrial camera (10) are connected by screws. Both the motor A and the motor B are screwed to the end of the lead screw table through the mounting plate. Stepping motor A (5), stepping motor B (11), electric rotary table A (2), electric rotary table B (6) and electric rotary table C (8) are all connected to the controller through the RS232 serial port, and the controller It is also connected with the computer through the serial port.

实施例四:Embodiment four:

参见图3,本本自适应标定的视觉在线检测方法,采用上述装置进行操作,操作步骤如下:Referring to Figure 3, the visual online detection method of adaptive calibration in this book uses the above-mentioned device for operation, and the operation steps are as follows:

标定前,在传送带上放一块标定板;然后,由已设定的程序控制工业相机回到初始位置,即相机镜头朝向正下方;紧接着,开始相机的自动标定;由设定的标定程序控制工业相机沿Y轴、Z轴方向运动,以及分别绕X轴,Y轴,Z轴方向上的旋转运动来调整相机的姿态;通过已设定的程序对相机姿态的小范围内调整,可得到标定板的多张不同图片;然后,由已设定的标定程序处理照片得到相机的内参;标定完成后,计算机将自动进入检测程序界面,实现了标定与检测的一体化;完成图像采集、图像预处理、图像分割、形态学处理操作后,自动进行检测测量,若检测结果与标准样本参数不一致或者检测效果不好,那么将重新回到标定界面进行标定,从而实现了标定与检测之间的智能调整功能;标定完成后,又将重新回到检测界面进行工作。Before calibration, put a calibration plate on the conveyor belt; then, the set program controls the industrial camera to return to the initial position, that is, the camera lens is facing directly downward; then, the automatic calibration of the camera starts; controlled by the set calibration program The industrial camera moves along the Y-axis and Z-axis, and rotates around the X-axis, Y-axis, and Z-axis respectively to adjust the attitude of the camera; adjust the attitude of the camera in a small range through the set program, you can get Multiple different pictures of the calibration board; then, the internal reference of the camera is obtained by processing the photos with the set calibration program; after the calibration is completed, the computer will automatically enter the detection program interface, realizing the integration of calibration and detection; complete image acquisition, image After preprocessing, image segmentation, and morphological processing, the detection and measurement will be performed automatically. If the detection result is inconsistent with the standard sample parameters or the detection effect is not good, then it will return to the calibration interface for calibration, thus realizing the balance between calibration and detection. Intelligent adjustment function; after the calibration is completed, it will return to the detection interface to work again.

本发明的工作原理具体如下:Working principle of the present invention is specifically as follows:

首先,相机固定是相机安装板(9)通过螺纹连接进行固定的。其次,由步进电机A(5)和步进电机B(11)实现相机沿Y、Z轴(坐标系详见图1)方向上移动,由电动旋转台A(2)、电动旋转台B(6)、电动旋转台C(8)实现相机在XOZ、YOZ、XOY平面的转动。通过上下、左右以及旋转等调节功能,可以很方便地实现相机位置调节。由于相机具有5个自由度(沿Y轴、Z轴方向,绕X轴、Y轴、Z轴旋转),位姿变换容易快速。通过控制器14控制步进电机A、B以及电动旋转台A、B、C,可以自动实现相机的位置调整,从而获取不同位姿下的标定板图片。将采集的图像传送给计算机(15),由计算机内部软件的标定程序(根据张正友标定法)可以实现相机的标定。标定完成后,计算机位姿不再变化,自动进入物体的检测阶段。检测主要包括图像采集、图像预处理、图像分割、形态学处理等操作。根据图像检测后的数据,可以完成测量工作。同时将测量结果反馈给计算机进行调整。First, the camera is fixed by the camera mounting plate (9) through threaded connections. Secondly, the stepper motor A (5) and stepper motor B (11) move the camera along the Y and Z axes (see Figure 1 for coordinate system details), and the electric rotary table A (2) and electric rotary table B (6) The electric rotating table C (8) realizes the rotation of the camera on the XOZ, YOZ, and XOY planes. Through the adjustment functions such as up and down, left and right, and rotation, the camera position can be adjusted very conveniently. Since the camera has 5 degrees of freedom (along the Y-axis, Z-axis direction, rotation around the X-axis, Y-axis, Z-axis), pose transformation is easy and fast. By controlling the stepping motors A, B and the electric rotating tables A, B, C by the controller 14, the position adjustment of the camera can be realized automatically, so as to obtain the pictures of the calibration board in different poses. The collected images are sent to the computer (15), and the calibration program of the computer's internal software (according to Zhang Zhengyou's calibration method) can realize the calibration of the camera. After the calibration is completed, the computer pose will not change, and it will automatically enter the object detection stage. Detection mainly includes operations such as image acquisition, image preprocessing, image segmentation, and morphological processing. According to the data after image detection, the measurement work can be completed. At the same time, the measurement results are fed back to the computer for adjustment.

Claims (4)

1. the vision on-line measuring device of a kind of self-adapting calibration, including base(1), industrial camera(10), industrial computer (15), conveyer belt(13)And object under test(12), it is characterised in that:
1) base(1)Ground is fixed on, positioned at conveyer belt(13)Side, conveyer belt(13)On shelve examined object(12), Base(1)One electric rotary table A of upper installation(2);
2) in the electric rotary table A(2)A upper vertically-mounted motor-feed screw apparatus A, wherein leading screw A is by motor A (5)Drive, and a leading screw A and electric rotary table B(6)Threaded engagement;
3) in the electric rotary table B(6)On be horizontally mounted a motor-feed screw apparatus B, wherein leading screw B is by motor B (11)Drive, and a leading screw B and electric rotary table C(8)Threaded engagement;
4) industrial camera(10)By camera installing plate(9)Installed in the electric rotary table C(8)On;
5) the electric rotary table A(2), electric rotary table B(6), motor A(5), electric rotary table C(8)With stepping electricity Machine B(11)All through a controller(14)Connect the computer(15).
2. the vision on-line measuring device of self-adapting calibration according to claim 1, it is characterised in that:The base(1) With electric rotary table A(2)Between, electric rotary table A(2)With a gripper shoe(3)Between be connected by screw;The gripper shoe (3)With a leading screw platform A(4)Between be bolted,
The leading screw platform A(4)With electric rotary table B(6)Between, electric rotary table B(6)With a leading screw platform B(7)Between, institute State leading screw platform B(7)With electric rotary table C(8)Between, electric rotary table C(8)With a camera installing plate(9)Between, the phase Machine installing plate(9)With industrial camera(10)Between be connected by screw;The motor A(5)With motor B(11)All lead to Cross an installing plate and leading screw platform(4、7)End carries out mode connects for screw;Motor A(5), motor B(11), electronic rotation Platform A(2), electric rotary table B(6)And electric rotary table C(8)All by RS232 serial ports and controller(14)Connection, controller (14)With computer(15)Connect also by serial ports, by 3 electric rotary tables(2、6、8)And 2 motor-leading screw dresses Put, it is achieved that industrial camera(10)Moving freely in Y-axis, Z-direction, and rotate rotating around X-axis, Y-axis, Z axis, so as to Make industrial camera(10)Have 5 degree of freedom.
3. a kind of vision online test method of self-adapting calibration, adopts the vision of self-adapting calibration according to claim 1 On-line measuring device is operated, it is characterised in that concretely comprised the following steps:Before demarcation, in conveyer belt(13)On put one piece of scaling board (12);Then, by the process control industry camera for having set(10)Initial position is returned to, i.e., camera lens are towards underface;Tightly Then, start the automatic Calibration of camera;By the calibrating procedure control industrial camera for setting(10)Move along Y-axis, Z-direction, with And rotating around X-axis, Y-axis, the rotary motion in Z-direction is adjusting the attitude of camera;By the program that set to camera appearance The a small range adjustment of state, is obtained multiple different pictures of scaling board;Then, process photo by the calibrating procedure for having set to obtain Internal reference to camera;Then, camera attitude keeps constant, automatically into the detection-phase of object, carries out image acquisition, image pre- Process, image segmentation, Morphological scale-space operation;After image detection measurement is finished, according to detected value, calibration result is tested, If testing result deviation is larger, computer will re-start demarcation;After the completion of re-scaling, then detected.
4. the vision online test method of self-adapting calibration according to claim 3, it is characterised in that:After the completion of demarcation, Computer(15)Will be automatically into detection program interface, it is achieved that demarcate integrated with detection;Complete image acquisition, image pre- After process, image segmentation, Morphological scale-space are operated, detection measurement is carried out automatically, if testing result is differed with master sample parameter Cause or Detection results are bad, then calibration interface will be come back to and demarcated, it is achieved thereby that demarcating and detection between Adjustment function;After the completion of demarcation, detection interface will be come back to again and be operated.
CN201610813300.0A 2016-09-10 2016-09-10 Adaptive calibration vision online detection device and method Pending CN106441094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610813300.0A CN106441094A (en) 2016-09-10 2016-09-10 Adaptive calibration vision online detection device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610813300.0A CN106441094A (en) 2016-09-10 2016-09-10 Adaptive calibration vision online detection device and method

Publications (1)

Publication Number Publication Date
CN106441094A true CN106441094A (en) 2017-02-22

Family

ID=58167533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610813300.0A Pending CN106441094A (en) 2016-09-10 2016-09-10 Adaptive calibration vision online detection device and method

Country Status (1)

Country Link
CN (1) CN106441094A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107091800A (en) * 2017-06-06 2017-08-25 深圳小孚医疗科技有限公司 Focusing system and focus method for micro-imaging particle analysis
CN107888894A (en) * 2017-10-12 2018-04-06 浙江零跑科技有限公司 A kind of solid is vehicle-mounted to look around method, system and vehicle-mounted control device
CN108454939A (en) * 2018-06-01 2018-08-28 青岛农业大学 A kind of spheral fruit posture automatic adjusting method based on computer vision and device
CN109458932A (en) * 2018-12-27 2019-03-12 贵州大学 One kind is around multi-faceted Rosa roxburghii Tratt detection system
CN109738454A (en) * 2019-03-18 2019-05-10 福建工程学院 A soft pack battery tab welding seam detection device and method
CN110030929A (en) * 2019-05-17 2019-07-19 深圳市东盈讯达电子有限公司 A kind of 3D measuring system and its measurement method based on five axis
CN110068447A (en) * 2018-01-23 2019-07-30 舜宇光学(浙江)研究院有限公司 Integrate formula diffraction optical element test equipment
CN110261160A (en) * 2019-07-04 2019-09-20 浙江理工大学 A kind of eccentric wheel automatic sampler of view-based access control model detection
CN110567942A (en) * 2019-08-29 2019-12-13 南京航空航天大学 Device and method for on-line detection and identification of alloy composition based on LIBS equipment
CN110823276A (en) * 2019-11-28 2020-02-21 广东博智林机器人有限公司 Method, device and system for detecting vision sensor
CN110966990A (en) * 2019-11-26 2020-04-07 深圳航天智控科技有限公司 Machine vision device and control method thereof
CN111710003A (en) * 2020-06-03 2020-09-25 山东山速机器人科技有限公司 Camera imaging calibration device and camera imaging calibration method
CN112053405A (en) * 2020-08-21 2020-12-08 合肥工业大学 Deviation calibration and external reference correction method for optical axis and rotating shaft of follow-up vision system
CN112520310A (en) * 2020-12-28 2021-03-19 三门峡云硕智能科技有限公司 Detection platform
CN114152199A (en) * 2021-12-14 2022-03-08 桂林理工大学 A visual measurement system and measurement method of film size on conveyor belt
CN114952127A (en) * 2022-07-29 2022-08-30 常州市镭烁光电科技有限公司 Calibration model and method for 3D vision and mechanical arm for welding
CN115842848A (en) * 2023-03-01 2023-03-24 成都远峰科技发展有限公司 Dynamic monitoring system based on industrial Internet of things and control method thereof
CN117097986A (en) * 2023-10-16 2023-11-21 钛玛科(北京)工业科技有限公司 Image quality adjusting device collected by linear array camera and working method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090284755A1 (en) * 2008-05-13 2009-11-19 Smart Optics Gmbh Device for Flexible Detection of the Geometric Shape of Objects by Means of Optical 3D Measuring Technology
CN103175485A (en) * 2013-02-20 2013-06-26 天津工业大学 Method for visually calibrating aircraft turbine engine blade repair robot
CN104786226A (en) * 2015-03-26 2015-07-22 华南理工大学 Posture and moving track positioning system and method of robot grabbing online workpiece
CN104913723A (en) * 2015-07-01 2015-09-16 广东省自动化研究所 Online precision detection system and method for large components
CN105675610A (en) * 2016-02-02 2016-06-15 青岛海信电子技术服务有限公司 Online detection system for object surface texture characteristics and working principle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090284755A1 (en) * 2008-05-13 2009-11-19 Smart Optics Gmbh Device for Flexible Detection of the Geometric Shape of Objects by Means of Optical 3D Measuring Technology
CN103175485A (en) * 2013-02-20 2013-06-26 天津工业大学 Method for visually calibrating aircraft turbine engine blade repair robot
CN104786226A (en) * 2015-03-26 2015-07-22 华南理工大学 Posture and moving track positioning system and method of robot grabbing online workpiece
CN104913723A (en) * 2015-07-01 2015-09-16 广东省自动化研究所 Online precision detection system and method for large components
CN105675610A (en) * 2016-02-02 2016-06-15 青岛海信电子技术服务有限公司 Online detection system for object surface texture characteristics and working principle

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
许海霞等: "一种机器人手眼关系自标定方法", 《机器人》 *
郑红灯: "基于精确模型的云台摄像机自标定", 《机器人》 *

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107091800A (en) * 2017-06-06 2017-08-25 深圳小孚医疗科技有限公司 Focusing system and focus method for micro-imaging particle analysis
CN107888894A (en) * 2017-10-12 2018-04-06 浙江零跑科技有限公司 A kind of solid is vehicle-mounted to look around method, system and vehicle-mounted control device
CN110068447A (en) * 2018-01-23 2019-07-30 舜宇光学(浙江)研究院有限公司 Integrate formula diffraction optical element test equipment
CN110068447B (en) * 2018-01-23 2021-07-27 舜宇光学(浙江)研究院有限公司 Integrated diffraction optical element test equipment
CN108454939A (en) * 2018-06-01 2018-08-28 青岛农业大学 A kind of spheral fruit posture automatic adjusting method based on computer vision and device
CN109458932A (en) * 2018-12-27 2019-03-12 贵州大学 One kind is around multi-faceted Rosa roxburghii Tratt detection system
CN109738454A (en) * 2019-03-18 2019-05-10 福建工程学院 A soft pack battery tab welding seam detection device and method
CN109738454B (en) * 2019-03-18 2024-07-05 福建工程学院 Device and method for detecting welding seam of tab of soft-package battery
CN110030929A (en) * 2019-05-17 2019-07-19 深圳市东盈讯达电子有限公司 A kind of 3D measuring system and its measurement method based on five axis
CN110261160A (en) * 2019-07-04 2019-09-20 浙江理工大学 A kind of eccentric wheel automatic sampler of view-based access control model detection
CN110261160B (en) * 2019-07-04 2024-02-23 浙江理工大学 Eccentric wheel automatic sampler based on visual detection
CN110567942A (en) * 2019-08-29 2019-12-13 南京航空航天大学 Device and method for on-line detection and identification of alloy composition based on LIBS equipment
CN110966990A (en) * 2019-11-26 2020-04-07 深圳航天智控科技有限公司 Machine vision device and control method thereof
CN110823276A (en) * 2019-11-28 2020-02-21 广东博智林机器人有限公司 Method, device and system for detecting vision sensor
CN111710003A (en) * 2020-06-03 2020-09-25 山东山速机器人科技有限公司 Camera imaging calibration device and camera imaging calibration method
CN111710003B (en) * 2020-06-03 2024-02-13 山东山速机器人科技有限公司 Camera imaging calibration device and camera imaging calibration method
CN112053405A (en) * 2020-08-21 2020-12-08 合肥工业大学 Deviation calibration and external reference correction method for optical axis and rotating shaft of follow-up vision system
CN112053405B (en) * 2020-08-21 2022-09-13 合肥工业大学 Deviation calibration and external parameter correction method for optical axis and rotating shaft of follow-up vision system
CN112520310A (en) * 2020-12-28 2021-03-19 三门峡云硕智能科技有限公司 Detection platform
CN114152199A (en) * 2021-12-14 2022-03-08 桂林理工大学 A visual measurement system and measurement method of film size on conveyor belt
CN114952127B (en) * 2022-07-29 2022-10-21 常州市镭烁光电科技有限公司 Calibration model and method for 3D vision camera and mechanical arm for welding
CN114952127A (en) * 2022-07-29 2022-08-30 常州市镭烁光电科技有限公司 Calibration model and method for 3D vision and mechanical arm for welding
CN115842848A (en) * 2023-03-01 2023-03-24 成都远峰科技发展有限公司 Dynamic monitoring system based on industrial Internet of things and control method thereof
CN115842848B (en) * 2023-03-01 2023-04-28 成都远峰科技发展有限公司 Dynamic monitoring system based on industrial Internet of things and control method thereof
CN117097986A (en) * 2023-10-16 2023-11-21 钛玛科(北京)工业科技有限公司 Image quality adjusting device collected by linear array camera and working method thereof
CN117097986B (en) * 2023-10-16 2024-01-19 钛玛科(北京)工业科技有限公司 Image quality adjusting device collected by linear array camera and working method thereof

Similar Documents

Publication Publication Date Title
CN106441094A (en) Adaptive calibration vision online detection device and method
CN203657755U (en) Non-contact type clearance and offset optical measuring device
CN202256171U (en) An integrated circuit board chip pin welding defect detector
CN108972557A (en) Micro- part pose automatic alignment apparatus and its method
CN105721859A (en) Aligning apparatus for image module and application method thereof
CN108489394A (en) A kind of large-scale sheet metal works almost T-stable automatic detection device and method
CN105933605B (en) Automatic correction device and method for focusing part of camera
CN204924183U (en) Small -size part vision precision measurement appearance
CN211827005U (en) A multi-functional detection device for five-axis CNC machine tools based on multi-eye vision
CN105115425A (en) Vision-based precision measuring instrument of small-size part
CN1861880A (en) Single needle quilting intelligent controlling system based on visual tracking and controlling method thereof
CN106287126A (en) Camera fixing device and there is the visual identity equipment of this camera fixing device
CN113358070A (en) Automobile brake pad flatness and pin height detection system and detection method thereof
CN109506577A (en) Parts measurement method
CN102095737A (en) A single-table flexible printed circuit surface defect automatic detection machine
CN108953885A (en) Photographic unit and connector pinout normotopia degree detection method
CN104897080B (en) A kind of revolving body bus profile measurer
CN102419157B (en) Micro-depth-dimension automatic image measuring system
CN112596165A (en) Automatic coupling device for optical fiber waveguide array
CN111207682A (en) Trapezoidal lead screw parameter automatic measuring device and method based on machine vision
CN205787848U (en) A kind of screen connection ultraprecise intelligence alignment system
CN103852006A (en) Device and method for automatically measuring cutter
CN212180654U (en) Camera module adjusting device
CN212320647U (en) Rotary scanning equipment for circular object
CN203385925U (en) Automatic focusing device of high-pixel module group

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20170222