[go: up one dir, main page]

CN110987383B - An image-based measurement method of high-frequency two-position reciprocating action state - Google Patents

An image-based measurement method of high-frequency two-position reciprocating action state Download PDF

Info

Publication number
CN110987383B
CN110987383B CN201911313677.XA CN201911313677A CN110987383B CN 110987383 B CN110987383 B CN 110987383B CN 201911313677 A CN201911313677 A CN 201911313677A CN 110987383 B CN110987383 B CN 110987383B
Authority
CN
China
Prior art keywords
image
industrial camera
frequency
industrial
exposure
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
CN201911313677.XA
Other languages
Chinese (zh)
Other versions
CN110987383A (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN201911313677.XA priority Critical patent/CN110987383B/en
Publication of CN110987383A publication Critical patent/CN110987383A/en
Application granted granted Critical
Publication of CN110987383B publication Critical patent/CN110987383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/08Testing mechanical properties
    • G01M11/081Testing mechanical properties by using a contact-less detection method, i.e. with a camera
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention relates to a method for measuring a high-frequency two-position reciprocating motion state based on an image, and belongs to the technical field of image processing. The motion trail of a high-speed reciprocating motion object is obtained by prolonging the exposure time, and the motion trail is subjected to gray level processing and further subjected to differential processing with a standard image. And analyzing the reliability of the score of the movement of the object which moves back and forth at high speed between the two polar positions according to the obtained difference result.

Description

Image-based measuring method for high-frequency two-position reciprocating motion state
Technical Field
The invention relates to a method for measuring a high-frequency two-position reciprocating motion state based on an image, and belongs to the technical field of image processing.
Background
The object motion detection technology is one of the basic technologies of modern industry and is the key for ensuring the product quality. With the improvement and improvement of industrial manufacturing technology and processing technology, higher requirements are put on detection means, detection speed and precision, and therefore, the traditional contact type measurement method cannot meet the requirements. Therefore, non-contact measurement methods based on photoelectric, electromagnetic, and other technologies are emerging. With the rapid development of machine vision technology, non-contact measurement means based on image detection are widely used in various fields. The vision measurement technology uses the image as a means or carrier for detecting and transmitting information, extracts useful signals from the image, and obtains various required parameters by processing the detected image, and has the characteristics of non-contact, full-field measurement, high precision and high automation degree. However, at present, the visual measurement of the reciprocating motion of a high-speed moving object is usually tested by an expensive high-frequency industrial camera, and the required cost is high. In order to avoid the use of a high frame rate camera and reduce the measurement cost, the invention hopes to provide a method for measuring the high-frequency two-position reciprocating motion state based on an image.
Disclosure of Invention
In order to avoid using a high frame rate camera when measuring the reciprocating motion of a moving object, thereby reducing the cost, the invention provides a method for measuring the high-frequency two-position reciprocating motion state based on an image, which has the following specific scheme:
a method for measuring a high-frequency two-position reciprocating motion state based on an image comprises the following steps:
(1) taking two industrial cameras, namely a first industrial camera and a second industrial camera, adjusting the placing positions and angles of the two cameras to enable the moving part to move within the field range of the two industrial cameras and enable the cameras to be focused on the whole moving track of the object to be measured;
(2) setting the exposure time of the two industrial cameras as integral multiple of the time required by the moving object to carry out one reciprocating motion, wherein the two industrial cameras adopt a pulse width triggering mode and a non-overlapping working mode in the testing process;
(3) the first industrial camera starts exposure operation when receiving a rising edge trigger signal; stopping exposure operation when the first industrial camera receives a falling edge trigger signal, and starting exposure operation by the second industrial camera; stopping exposure operation when the second industrial camera receives the rising edge trigger signal, starting exposure operation of the first industrial camera at the same time, and starting the next exposure cycle; the obtained image data is transmitted back to the computer for processing;
(4) sampling to obtain the round-trip motion of the moving object for integer times, and carrying out gray level processing and light intensity normalization processing on the image. Firstly, collecting an image of a moving part, converting the image into a Gray image according to a weighting method, calculating the Gray image such as Gray ═ R + G + B)/3 to obtain a Gray value F (x, y) of the image, and taking the Gray value F (x) of a fixed mark point on the image in order to eliminate the influence of the time variation of the light source intensity on the Gray value of the image0,y0),Fg(x,y)=F(x,y) /F(x0,y0) Namely the normalized image gray scale. The gray value of the normalized standard image for comparison obtained in normal operation is recorded as Bg(x, y), the gray value of the nth frame image obtained in the test is fng(x, y). In order to reduce the amount of computation, the measured image is compared with the standard image, and only the images of the two extreme position regions need to be compared. The comparisons described below are therefore all made for two extreme position areas. The specific comparison method is as follows:
will f isng(x, y) and the standard image gray value Bg(x, y) are subtracted to obtain a difference result Dn(x, y); one by oneEach pixel point is subjected to binarization processing to obtain a binarization image Rn(ii) a When D is presentn(x,y)>At T-delta, Rn(x, y) 255, when Dn(x,y)<At T-delta, Rn(x, y) is 0, wherein the threshold value T is 1/N of the gray value of a certain pixel point at the extreme position of the standard image, namely T is Bg(x, y)/N, delta is an allowable deviation; and (3) taking a pixel with the numerical value of 255 in the binary image as a foreground target pixel and a pixel with the numerical value of 0 as a background pixel, and judging the swing condition of the moving object according to the distribution condition of the extreme position pixels in the binary image.
And the time when the moving part starts to move in the third step is just the time when the first industrial camera starts to expose, and the setting can ensure that an integral number of times of moving part imaging pictures can be sampled after one exposure.
And in the third step, the first industrial camera and the second industrial camera transmit data back to the computer for processing when exposure operation is not performed, the setting can ensure that meter leakage is avoided, and the cameras can acquire information at any time.
The first industrial camera acquires odd frame images, and the second industrial camera acquires even frame images.
The exposure time of the two industrial cameras is less than or equal to the time interval between each frame. The setting can avoid image coincidence between frames, and the industrial camera can output complete pictures.
The difference in the fourth step is inversely related to reliability. The larger the difference, the lower the reliability of the reciprocating motion of the moving object.
The principle of the invention is as follows:
a camera with a common frame rate is adopted, an integral number of times of swing component imaging pictures are sampled after one exposure, the motion trail of an object which moves at a high speed between two polar positions is recorded, the gray scale processing is carried out on the object, the obtained image gray scale value is subjected to the difference processing with the standard gray scale value under the normal operation (namely, the object can reach the two polar positions each time), and the larger the difference value at the end point position is, the lower the reliability of the reciprocating motion of the moving object is.
Has the advantages that:
1. for a moving object which performs high-frequency reciprocating motion in the measurement, a high-frame-rate camera is not needed, so that the measurement cost is reduced;
2. compared with the traditional detection means and method, the method provided by the invention has the advantages of high efficiency, high reliability and high universality.
Drawings
FIG. 1 is a schematic view of alternate operation of two industrial cameras;
fig. 2 is a flowchart of performing image post-processing.
Detailed Description
The following is further explained with reference to the drawings of the specification.
A method for measuring the high-frequency two-position reciprocating motion state based on an image is used for testing the reliability of the reciprocating swing of a cutter head of a needle selector in a circular knitting machine at two limit positions.
A needle selector swing measuring platform is built and mainly comprises a tested electromagnetic needle selector, a three-degree-of-freedom micro-displacement adjusting platform, a control circuit, a voltage-stabilized power supply and two industrial cameras with the model number of G3-GM 10-C1240. The method comprises the steps that two industrial cameras are named as a first industrial camera and a second industrial camera respectively, exposure trigger modes of the first industrial camera and the second industrial camera are set to be pulse width trigger modes, and working modes of the two industrial cameras are selected to be non-overlapping working modes. To avoid coincidence between frames due to too long exposure time, the exposure time of the first industrial camera was set to 1/50s and the exposure time of the second industrial camera was set to 1/50 s. The tested needle selector is fixed on the platform, and the three-degree-of-freedom micro-displacement adjusting platform is adjusted, so that the motion trail of the tool bit of the tested needle selector is within the effective detection range of the first industrial camera and the second industrial camera. The output of the stabilized voltage power supply is connected with a control circuit, and the control circuit outputs excitation voltage (the normal working voltage of the needle selector is generally 24V) to drive the needle selector to swing back and forth at the two limit positions. The needle selector tool bit swings from the left side to the right side under the driving of the forward pulse voltage, and the starting time of the swing of the needle selector tool bit is the sending time of the driving pulse. When the needle selector tool bit receives the driving pulse signal, a rising edge trigger signal of the pulse width trigger signal is given to the first industrial camera, so that the first industrial camera starts exposure at the swing starting moment of the needle selector. The first industrial camera starts exposure operation when receiving a rising edge trigger signal of the pulse width trigger signal and stops exposure operation when receiving a falling edge trigger signal; when the first industrial camera stops exposure, the second industrial camera starts exposure operation; and stopping the exposure operation when the second industrial camera receives the rising edge trigger signal, starting the exposure operation of the first industrial camera and starting the next exposure cycle. The first industrial camera and the second industrial camera are exposed in turn, so that the image data stored in the memory can be transmitted to the computer for image data processing when the first industrial camera and the second industrial camera are not exposed, and simultaneously, the collected images can be ensured as many as possible, and the working efficiency is improved.
When the fatigue test is performed on the needle selector under the driving voltage of 24V, the swing frequency of the cutter head reaches 1000 times/second, and the exposure time of the two cameras is 1/50s, so that each frame image comprises 20 motion tracks, namely N is 20. For each image, converting the color image into a Gray image according to the formula Gray ═ R + G + B)/3, and performing light source standardization processing on each pixel, namely dividing each pixel by the Gray value of the fixed mark point in the image, which is called a normalized image. And averaging the gray scale of each pixel point in the 100 frames of normalized images initially acquired by the needle selector to obtain an initial standard image. And comparing the 100 frames of images with the initial standard image to remove the 20 frames of images with large deviation. The remaining 80 normalized images were re-averaged to be the standard image for the actual measurement. Each frame of image in the experimental test is also converted into a normalized gray image according to the formula. Taking the gray value of each pixel point in the area around the limit position (the width is one tenth of the track width) to make difference, and setting the x coordinate of the pixel point at the left limit position as 0 and the x at the right limit position as xPole(s)The coordinates are given as if for 0<|x-x Pole(s)|<xPole(s)/20,0<|x|<xPole(s)Each 20 satisfies fng(x,y)-Bg(x,y)=DnIf (x, y) ═ 0, it means that the motion trajectory in the frame image is normal. If one of the conditions is not satisfied, the description is givenThe moving part swings abnormally. Recording the gray value difference D between the abnormal image and the standard imagen(x, y), and continuing to perform binarization processing on the abnormal image. Selecting proper deviation value delta according to measurement requirements>0, if Dn(x,y)>Bg(x,y)/20-δ,Rn(x, y) 255, when Dn(x,y)<Bg(x, y)/20-delta, Rn(x, y) ═ 0. R in the binary image obtained finallynThe pixel distribution area with (x, y) ═ 255 is the swing abnormal area. If 0<|Dn(x,y)-Bg(x,y)/20|<δ, meaning not swung into place once, 0<|Dn(x,y)-2*Bg(x,y)/20|<δ, representing not swinging into position 2 times, 0<|Dn(x,y)-3*Bg(x,y)/20|<δ, which represents not swinging into position 3 times, and so on. And recording the times of not swinging to the right position, wherein the more times, the worse the reliability is.
The above-mentioned embodiments are only used for explaining the inventive concept of the present invention, and do not limit the protection of the claims of the present invention, and any insubstantial modifications of the present invention using this concept shall fall within the protection scope of the present invention.

Claims (6)

1.一种基于图像的高频二位置往复动作状态的测量方法,其特征在于,包括以下步骤:1. a measurement method based on the high-frequency two-position reciprocating action state of an image, is characterized in that, comprises the following steps: (1)取用两台工业相机,分别为第一工业相机和第二工业相机,调整两台相机的放置位置、角度和焦距,使得运动部件在两台工业相机的视场范围内运动;(1) Take two industrial cameras, namely the first industrial camera and the second industrial camera, and adjust the placement position, angle and focal length of the two cameras, so that the moving parts move within the field of view of the two industrial cameras; (2)将两台工业相机的曝光时间均设置为运动物体进行一个往返运动所需时间的整数倍,测试过程中两台工业相机均采用脉宽触发方式和非重叠工作模式;(2) The exposure time of the two industrial cameras is set to an integer multiple of the time required for a moving object to perform a round-trip motion. During the test, the two industrial cameras both use the pulse width trigger mode and the non-overlapping working mode; (3)第一工业相机接收到上升沿触发信号时开始曝光操作;第一工业相机接收到下降沿触发信号时停止曝光操作,同时第二工业相机开始曝光操作;第二工业相机接收到上升沿触发信号时停止曝光操作,同时第一工业相机开始曝光操作,开启下一个曝光循环;(3) The exposure operation starts when the first industrial camera receives the rising edge trigger signal; the exposure operation stops when the first industrial camera receives the falling edge trigger signal, and the second industrial camera starts the exposure operation at the same time; the second industrial camera receives the rising edge When the trigger signal is triggered, the exposure operation is stopped, and at the same time, the first industrial camera starts the exposure operation and starts the next exposure cycle; (4)采样得到整数次运动物体的往返运动曝光图像,将第n帧图像灰度值fng(x,y)与标准图像灰度值Bg(x,y)相减,获得差分结果Dn(x,y);逐个对像素点进行二值化处理,得到二值化图像Rn;当Dn(x,y)>T-δ时,Rn(x,y)=255,当Dn(x,y)<T-δ时,Rn(x,y)=0,其中阈值T为标准图像极限位置某一像素点灰度值的1/N,即T=Bg(x,y)/N,δ为允许偏差;二值化图像中数值为255的像素作为前景目标像素,数值为0的像素作为背景像素,根据二值图像中极限位置像素分布情况判断出运动物体的摆动情况;所述N为运动轨迹的次数。(4) Sampling to obtain the round-trip motion exposure image of an integer number of moving objects, subtract the gray value f ng (x, y) of the nth frame image from the gray value B g (x, y) of the standard image, and obtain the difference result D n (x, y); binarize the pixels one by one to obtain a binarized image R n ; when D n (x, y)>T-δ, R n (x, y)=255, when When D n (x, y)<T-δ, R n (x, y)=0, where the threshold T is 1/N of the gray value of a pixel at the limit position of the standard image, that is, T=B g (x , y)/N, δ is the allowable deviation; the pixel with a value of 255 in the binarized image is used as the foreground target pixel, and the pixel with a value of 0 is used as the background pixel. According to the pixel distribution at the extreme position in the binary image, the moving object is judged. Swing situation; the N is the number of motion tracks. 2.根据权利要求1所述的一种基于图像的高频二位置往复动作状态的测量方法,其特征在于:所述第三步运动部件开始运动时刻正好为第一工业相机开始曝光时刻。2 . The method for measuring a high-frequency two-position reciprocating action state based on an image according to claim 1 , wherein the moment when the third-step moving part starts to move is exactly the moment when the first industrial camera starts to expose. 3 . 3.根据权利要求1所述的一种基于图像的高频二位置往复动作状态的测量方法,其特征在于:所述第三步中第一工业相机和第二工业相机在不进行曝光操作时,将数据传输回电脑进行处理。3 . The method for measuring a high-frequency two-position reciprocating action state based on an image according to claim 1 , wherein in the third step, the first industrial camera and the second industrial camera are not performing exposure operations. 4 . , transfer the data back to the computer for processing. 4.根据权利要求1所述的一种基于图像的高频二位置往复动作状态的测量方法,其特征在于:所述两台工业相机的曝光时间小于或等于每帧之间的时间间隔。4 . The image-based measuring method of high-frequency two-position reciprocating action state according to claim 1 , wherein the exposure time of the two industrial cameras is less than or equal to the time interval between each frame. 5 . 5.根据权利要求1所述的一种基于图像的高频二位置往复动作状态的测量方法,其特征在于:所述第一工业相机采集奇数帧图像,第二工业相机采集偶数帧图像。5 . The method for measuring high-frequency two-position reciprocating motion state based on an image according to claim 1 , wherein the first industrial camera collects odd-numbered frame images, and the second industrial camera collects even-numbered frame images. 6 . 6.根据权利要求1所述的一种基于图像的高频二位置往复动作状态的测量方法,其特征在于:所述第四步中差值与可靠性呈负相关。6 . The method for measuring the high-frequency two-position reciprocating action state based on an image according to claim 1 , wherein the difference in the fourth step is negatively correlated with reliability. 7 .
CN201911313677.XA 2019-12-19 2019-12-19 An image-based measurement method of high-frequency two-position reciprocating action state Active CN110987383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911313677.XA CN110987383B (en) 2019-12-19 2019-12-19 An image-based measurement method of high-frequency two-position reciprocating action state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911313677.XA CN110987383B (en) 2019-12-19 2019-12-19 An image-based measurement method of high-frequency two-position reciprocating action state

Publications (2)

Publication Number Publication Date
CN110987383A CN110987383A (en) 2020-04-10
CN110987383B true CN110987383B (en) 2021-07-13

Family

ID=70095760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911313677.XA Active CN110987383B (en) 2019-12-19 2019-12-19 An image-based measurement method of high-frequency two-position reciprocating action state

Country Status (1)

Country Link
CN (1) CN110987383B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801007A (en) * 2005-10-10 2006-07-12 郑贯天 Apparatus and method for measuring period of swinging object
CN101482518A (en) * 2009-01-09 2009-07-15 东华大学 On-line quality detection system for movable band-shaped material
CN101517568A (en) * 2006-07-31 2009-08-26 生命力有限公司 System and method for performing motion capture and image reconstruction
CN101819024A (en) * 2010-03-22 2010-09-01 中南大学 Machine vision-based two-dimensional displacement detection method
CN104458760A (en) * 2013-09-13 2015-03-25 楚天科技股份有限公司 Automatic light inspection machine foreign matter detection device
CN108364306A (en) * 2018-02-05 2018-08-03 北京建筑大学 A kind of vision real-time detection method of high speed periodic motion

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011055351A (en) * 2009-09-03 2011-03-17 Fujifilm Corp Photographing device and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801007A (en) * 2005-10-10 2006-07-12 郑贯天 Apparatus and method for measuring period of swinging object
CN101517568A (en) * 2006-07-31 2009-08-26 生命力有限公司 System and method for performing motion capture and image reconstruction
CN101482518A (en) * 2009-01-09 2009-07-15 东华大学 On-line quality detection system for movable band-shaped material
CN101819024A (en) * 2010-03-22 2010-09-01 中南大学 Machine vision-based two-dimensional displacement detection method
CN104458760A (en) * 2013-09-13 2015-03-25 楚天科技股份有限公司 Automatic light inspection machine foreign matter detection device
CN108364306A (en) * 2018-02-05 2018-08-03 北京建筑大学 A kind of vision real-time detection method of high speed periodic motion

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《电磁选针器实时检测系统》;袁嫣红 等;《纺织学报》;20180331;第39卷(第3期);第143-147页 *

Also Published As

Publication number Publication date
CN110987383A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
US12313561B2 (en) Stroboscopic stepped illumination defect detection system
CN109969736B (en) An intelligent detection method for deviation fault of large carrying belt
US10638021B2 (en) Measurement device, processing device, and article manufacturing method
US20210344892A1 (en) Method and system for determining optimal exposure time and number of exposures in structured light-based 3d camera
US8045763B2 (en) Method and apparatus for recognizing and determining the position of at least one teat cup
EP2490438B1 (en) Vision measuring device
CN101387493B (en) Non-contact photoelectric detection method for shape, position and size of iron tower component holes
CN108254063B (en) Vibration measuring device and method for tracking rotating blade
CN103454285A (en) Transmission chain quality detection system based on machine vision
CN112858321A (en) Steel plate surface defect detection system and method based on linear array CCD
US20150042784A1 (en) Image photographing method and image photographing device
CN106768987B (en) With the multi-target tracking method of the breaker test macro of high-speed cmos imaging
CN104486550A (en) Image focus detecting device and method for aerial camera
Abdelhedi et al. Design of automatic vision-based inspection system for monitoring in an olive oil bottling line
CN111521838A (en) A hot-rolled coil velocity measurement method combined with line and area scan cameras
CN108489830B (en) Crack Growth Measurement System
CN110987383B (en) An image-based measurement method of high-frequency two-position reciprocating action state
CN110160455A (en) Clearance surface difference detection system
TW201520669A (en) Bevel-axial auto-focus microscopic system and method thereof
CN114152626B (en) Method and device applied to defect height measurement
JP2020036227A (en) Imaging timing control device, imaging system, and imaging method
CN208623750U (en) Intelligent industrial camera
JP2020036226A (en) Imaging timing control device, imaging system, and imaging method
CN104864808A (en) Method for precisely measuring size of workpiece along transmission direction in rolling transmission process
CN116765149B (en) Seamless steel tube perforation top detecting system based on machine vision

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