CN116297501A - Moving part detection system and method adopting monocular vision and galvanometer synergistic effect - Google Patents
Moving part detection system and method adopting monocular vision and galvanometer synergistic effect Download PDFInfo
- Publication number
- CN116297501A CN116297501A CN202310284365.0A CN202310284365A CN116297501A CN 116297501 A CN116297501 A CN 116297501A CN 202310284365 A CN202310284365 A CN 202310284365A CN 116297501 A CN116297501 A CN 116297501A
- Authority
- CN
- China
- Prior art keywords
- axis
- coordinate system
- coordinate value
- rotating motor
- galvanometer
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 title claims description 18
- 230000002195 synergetic effect Effects 0.000 title abstract description 4
- 238000012545 processing Methods 0.000 claims abstract description 24
- 230000007547 defect Effects 0.000 claims abstract description 11
- 238000003708 edge detection Methods 0.000 claims abstract description 11
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 8
- 238000007689 inspection Methods 0.000 claims description 6
- 239000011159 matrix material Substances 0.000 claims description 6
- 238000013519 translation Methods 0.000 claims description 6
- 230000000007 visual effect Effects 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 2
- 238000004891 communication Methods 0.000 claims description 2
- 238000009499 grossing Methods 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000003384 imaging method Methods 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 4
- 230000009466 transformation Effects 0.000 description 4
- 208000032544 Cicatrix Diseases 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 231100000241 scar Toxicity 0.000 description 3
- 230000037387 scars Effects 0.000 description 3
- 230000001276 controlling effect Effects 0.000 description 2
- 230000002079 cooperative effect Effects 0.000 description 2
- 230000002950 deficient Effects 0.000 description 2
- 238000003754 machining Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/89—Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
- G01N21/8901—Optical details; Scanning details
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/01—Arrangements or apparatus for facilitating the optical investigation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/10—Image acquisition
- G06V10/12—Details of acquisition arrangements; Constructional details thereof
- G06V10/14—Optical characteristics of the device performing the acquisition or on the illumination arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/20—Image signal generators
- H04N13/204—Image signal generators using stereoscopic image cameras
- H04N13/207—Image signal generators using stereoscopic image cameras using a single 2D image sensor
- H04N13/221—Image signal generators using stereoscopic image cameras using a single 2D image sensor using the relative movement between cameras and objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/20—Image signal generators
- H04N13/275—Image signal generators from 3D object models, e.g. computer-generated stereoscopic image signals
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/01—Arrangements or apparatus for facilitating the optical investigation
- G01N2021/0106—General arrangement of respective parts
- G01N2021/0112—Apparatus in one mechanical, optical or electronic block
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/01—Arrangements or apparatus for facilitating the optical investigation
- G01N2021/0106—General arrangement of respective parts
- G01N2021/0118—Apparatus with remote processing
- G01N2021/0137—Apparatus with remote processing with PC or the like
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/01—Arrangements or apparatus for facilitating the optical investigation
- G01N2021/0181—Memory or computer-assisted visual determination
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
- G01N2021/8887—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/89—Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
- G01N2021/8909—Scan signal processing specially adapted for inspection of running sheets
- G01N2021/891—Edge discrimination, e.g. by signal filtering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30164—Workpiece; Machine component
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Immunology (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Pathology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Textile Engineering (AREA)
- Quality & Reliability (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
The invention discloses a moving part detection system and a moving part detection method adopting the synergistic effect of monocular vision and a vibrating mirror, which belong to the technical field of part detection and comprise a vibrating mirror module, a vision sensing module, a motion control module and a processing module, wherein the vibrating mirror module comprises a rotating motor and a vibrating mirror, the vibrating mirror is connected with the rotating motor and is driven by the rotating motor to rotate, the vision sensing module comprises an industrial camera, and the industrial camera shoots through the vibrating mirror on the rotating motor to acquire images of a detected part in a moving state on a conveyor belt. The invention tracks and acquires the part image for a plurality of times by the monocular vision technology and the vibrating mirror, can acquire a more complete image of the part, firstly carries out graying and Gaussian convolution processing on the acquired part image, then carries out edge detection on the convolved part image, can better carry out edge processing on the part, has better continuity of edge processing, and can more accurately judge whether the part has defects.
Description
Technical Field
The invention relates to the technical field of part detection, in particular to a moving part detection system and method adopting the cooperative action of monocular vision and a galvanometer.
Background
With the development of society, visual systems and robots in manufacturing enterprises are effectively combined, the consumption of manpower and material resources is reduced, the time is shortened, the efficiency is improved, and the application of visual technology is popularized in a plurality of fields nowadays. At present, the vision technology is widely applied to the fields of workpiece positioning, logistics sorting, part assembly and the like, but the most application of the fields is the mature 2D vision technology, namely the monocular camera, which has a certain limitation, but with the development of the robot vision technology, the part recognition positioning technology is increasingly improved, and the monocular camera can achieve the expected purpose.
The conventional monocular camera is used for detecting a static plane object target and is mainly used for judging whether the target has defects (such as small round holes, rectangular holes and the like). Along with the development of manufacturing industry, if detect the part on the assembly line, shoot the part on the conveyer belt through the removal camera and can have time overlength, and the field of vision is restricted in shooting process, brings the problem of certain error for the detection work of part. For this purpose, a moving part detection system employing monocular vision in conjunction with a galvanometer is proposed.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: how to perform more effective inspection of parts on a conveyor belt provides a moving part inspection system that employs monocular vision in conjunction with a vibrating mirror.
The invention solves the technical problems through the following technical scheme that the invention comprises a galvanometer module, a visual sensing module, a motion control module and a processing module; the vibration mirror module comprises a rotating motor and a vibration mirror, the vibration mirror is connected with the rotating motor and rotates under the drive of the rotating motor, the vision sensing module comprises an industrial camera, the industrial camera shoots through the vibration mirror on the rotating motor to collect images of the tested parts in a moving state on the conveyor belt, the motion control module comprises a singlechip and a control unit, the singlechip is connected with the rotating motor through the control unit, the processing module comprises a computer, and the images of the tested parts collected by the industrial camera are processed through the computer and subjected to defect detection; the singlechip is in communication connection with the computer.
Furthermore, the industrial camera lens center and the vibrating mirror center controlled to rotate by the rotating motor are at the same horizontal height, and the industrial camera is fixedly arranged.
Further, when the industrial camera shoots the part to be measured, the conversion relation between the world coordinates and the pixel coordinates is as follows:
wherein t is a translation matrix,r is a rotation matrix>t x ,t y ,t z Representing translation along the world coordinate system X, Y, Z axis; r is (r) 1 Representing the coordinate value of the X-axis of the world coordinate system and the X-axis of the camera coordinate systemMultiplying the resulting element, r 2 Representing the element obtained by multiplying the coordinate values of the Y axis of the camera coordinate system and the X axis of the world coordinate system; r is (r) 3 Representing the element obtained by multiplying the coordinate value of the z axis of the camera coordinate system and the coordinate value of the X axis of the world coordinate system; r is (r) 4 Representing an element obtained by multiplying an X-axis coordinate value of a camera coordinate system and a Y-axis coordinate value of a world coordinate system; r is (r) 5 Representing an element obtained by multiplying a Y-axis coordinate value of a camera coordinate system and a Y-axis coordinate value of a world coordinate system; r is (r) 6 Representing an element obtained by multiplying a Z-axis coordinate value of a camera coordinate system and a Y-axis coordinate value of a world coordinate system; r is (r) 7 Representing an element obtained by multiplying an X-axis coordinate value of a camera coordinate system and a Z-axis coordinate value of a world coordinate system; r is (r) 8 Representing an element obtained by multiplying a Y-axis coordinate value of a camera coordinate system and a Z-axis coordinate value of a world coordinate system; r is (r) 9 The element obtained by multiplying the Z-axis coordinate value of the camera coordinate system and the Z-axis coordinate value of the world coordinate system is represented.
Examples: assuming that the world coordinate system is a and the camera coordinate system is B, then we get:
furthermore, the rotating motor drives the galvanometer to rotate, and the coordinate value calculation formula of a new point p' after the point p on the reflecting surface of the galvanometer in the industrial camera coordinate system passes through the angle θ of the galvanometer is as follows:
wherein X 'is' W 、Y' W 、Z' W Three-axis coordinate value of the respective point p' in world coordinate, X W 、Z W Is the two-axis coordinate value of the point p under the world coordinate before the rotation.
Further, the parts on the conveyor belt are regarded as a parallel sequential moving mode, each batch of parts is regarded as a whole, the batch of parts is detected, and the process expression of the conveyor belt is as follows:
wherein T is the total period of the batch of parts, n is the batch of parts, m is the number of parts to be processed, T i Is the ith part machining time.
The invention also provides a moving part detection method adopting the cooperative action of monocular vision and the vibrating mirror, which is used for detecting the defects of the moving part by adopting the moving part detection system and comprises the following steps:
s1: the vibrating mirror rotates under the drive of the rotating motor, and the industrial camera shoots through the vibrating mirror on the rotating motor, so that the image of the part to be detected in a moving state on the conveyor belt is collected;
s2: graying the acquired part image, and performing Gaussian convolution processing;
s3: and (2) carrying out edge detection on the part image processed in the step (S2) through a Canny operator, and judging whether the detected part has defects according to an edge detection result.
Further, in the step S2, the specific procedure of the convolution processing is as follows:
s21: graying treatment is carried out on the acquired part image;
s22: and carrying out convolution processing by using a Gaussian smoothing function to obtain new pixel points, so as to keep effective information of the image.
It should be noted that there are two types of defects existing in the part to be tested: one is that the part is cracked; the other is that scars are generated in the production process of parts.
Compared with the prior art, the invention has the following advantages: according to the moving part detection system adopting the coordinated action of the monocular vision and the vibrating mirror, the monocular vision technology is matched with the vibrating mirror to track and collect part images for multiple times, so that a more complete image of the part can be obtained, the collected part images are subjected to gray scale and Gaussian convolution treatment, then the convolved part images are subjected to edge detection, the part can be better subjected to edge treatment, the continuity of the edge treatment is better, and whether the part has defects can be accurately judged.
Drawings
FIG. 1 is a schematic diagram of a moving part detection system employing monocular vision and galvanometer cooperation in accordance with a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a geometric model of an industrial camera imaging in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram of a conversion process between a world coordinate system and a pixel coordinate system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram showing the cooperation of an industrial camera and a galvanometer according to an embodiment of the invention (top view);
FIG. 5 is a diagram showing the relationship between the new coordinate value and the original coordinate value of a midpoint P after the rotating galvanometer θ is rotated by the rotating motor according to the embodiment of the present invention;
FIG. 6 is a schematic diagram of an implementation flow of a method for detecting moving parts by using monocular vision and galvanometer cooperation in a second embodiment of the invention;
fig. 7 (a) is an image (original) of a part in a second embodiment of the present invention;
FIG. 7 (b) is a part image after graying treatment in a second embodiment of the present invention;
FIG. 7 (c) is an image of a part processed by Gaussian convolution in a second embodiment of the invention;
fig. 7 (d) is an image of a part after Canny edge detection in the second embodiment of the present invention.
In fig. 1: 1. a single chip microcomputer; 2. a rotating electric machine; 3. vibrating mirror; 4. a part to be measured; 5. an industrial camera; 6. a computer; 7. a conveyor belt.
Detailed Description
The following describes in detail the examples of the present invention, which are implemented on the premise of the technical solution of the present invention, and detailed embodiments and specific operation procedures are given, but the scope of protection of the present invention is not limited to the following examples.
Example 1
As shown in fig. 1, this embodiment provides a technical solution: the moving part detection system (hereinafter referred to as a monocular vision galvanometer system) adopting the synergistic effect of monocular vision and the galvanometer mainly comprises a vision sensing module, a motion control module and a processing module; the motion control module comprises a singlechip 1 and a control unit and is used for controlling a rotating motor 2 to drive a vibrating mirror 3 to rotate; the visual sensing module is an industrial camera 5, and shoots through the vibrating mirror 3 on the rotating motor 2, so that the image of the detected part on the conveyor belt 7 is acquired; the processing module is a computer 6, and the computer 6 is used for processing the measured part image acquired by the industrial camera 5. As can be seen from fig. 1, the lens center of the industrial camera 5 and the vibrating mirror center controlled by the rotating motor 2 to rotate are on the same level, the industrial camera 5 is fixedly arranged, and the image of the measured part collected by the industrial camera 5 is collected by controlling the vibrating mirror 3 to rotate by the rotating motor 2. The object motion can be shot through the rotation of the vibrating mirror 3, so that the problem of visual field blind areas caused by too fast or no shooting of the moving object can be avoided. And then, detecting whether the part is defective or not by carrying out canny edge detection on the part image acquired by the industrial camera 5, so as to reach the qualification standard.
Perspective imaging model for industrial cameras: according to the principle of pinhole imaging, the imaging position of any point in space in an image can be represented by a pinhole, and a linear relationship exists between space coordinates (coordinates under a world coordinate system) and image coordinates, so that the planar relationship between a real scene in a three-dimensional space and a two-dimensional image can be represented.
The geometric model of industrial camera imaging is shown in fig. 2, where P (X C ,Y C ,Z C ) For a point in the camera coordinate system, P (X, Y) is the projection of the point P on the imaging plane, and P' is the point P in the camera coordinate system X C OZ C The projection point of the plane, f camera focal length;
according to a geometric model imaged by an industrial camera, a conversion relation between a camera coordinate system and an image coordinate system shown in the formula (1) can be obtained by a triangle similarity principle:
wherein Z is C A value representing the Z-axis of the camera coordinate, i.e. the distance of the object from the camera,(X, Y) is an arbitrary coordinate point in the image coordinate system, (X) C ,Y C ,Z C ) Is a three-dimensional coordinate point in a world coordinate system;
in the camera plane, the image pixel coordinate system and the image physical coordinate system together form an image coordinate system, if the coordinate points (u 0 ,v 0 ) Is the position of the origin O of the physical coordinate system of the image in the coordinate system of the pixels of the image.
Let the physical dimension of each unit pixel in the x-axis and y-axis directions be d x ,d y According to the position relation between the image coordinates and the pixel coordinates, the conversion of any pixel (u, v) between the image coordinates and the pixel coordinates can be obtained, and then the conversion between the three-dimensional coordinates and the pixel coordinates is obtained; the conversion relationship can be obtained as follows:
Since industrial camera coordinates are not generally consistent with world coordinates, rotation transformation and translation transformation are required to obtain a transformation between two coordinate systems, and a transformation relationship flow chart is shown in fig. 3.
In the embodiment, the detection of the moving object (moving part) is that the vibrating mirror is driven to rotate by the rotating motor, so that the condition of the object in relative motion is detected, and then the detection is carried out by shooting by the industrial camera; in combination with a motor model, a camera and a vibrating mirror in the system are taken as an example, as shown in fig. 4, when a part moves, the vibrating mirror rotates, shooting of the part is carried out, a rotating motor is combined with a singlechip, the vibrating mirror rotates under the control of the rotating motor, and the rotating motor controls the vibrating mirror to rotate by an angle to track the movement of an object every time the singlechip outputs a pulse, so that the part is tracked and shot.
Assuming that the coordinate value of the world coordinate system calculated by the above-described conversion relation after the rotation of the point P is P (X W ,0,Z W ) The relationship diagram between the new coordinate value and the original coordinate value of the point P after the rotating motor rotates the vibrating mirror theta angle is shown in figure 5, wherein O W -x w y w z w World coordinate system centered on rotary electric machine platform, P (X W ,0,Z W ) For the camera to reach a point of the galvanometer, point P '(X' W ,Y' W ,Z' W ) Is a new coordinate position of the point P after being rotated by an angle theta under the drive of a motor, and theta is a rotation angle.
And each time the part is conveyed, the vibrating mirror rotates for a certain angle, the vibrating mirror is utilized to shoot an object, the image of the measured part is better obtained, and then the computer is used for carrying out image processing so as to detect the part.
The rotation angle θ of the rotating motor control galvanometer and the fixed angle α of each part of the conveyor belt in the past are as follows:
θ=n·α
wherein n represents the number of conveyor parts.
Since point p 'is point p' in plane O w -x w y w The projected point on the plane of light O is based on the geometrical relationship in the figure w -x w The coordinate of the point p in yw and the rotation angle of the vibrating mirror controlled by the motor can be used for calculating the coordinate value of a new point p' after the point p passes through the rotation angle theta of the vibrating mirror, and the formula is as follows:
if the parts on the (parallel) conveyor are regarded as parallel sequential movement, if each batch of parts is regarded as a whole, and if the batch of parts is inspected, the conveyor process (in the manufacturing parts industry, the parts are conveyed by the conveyor for processing) is expressed as follows:
wherein T is the total period of the batch of parts, n is the batch of parts, m is the number of parts to be processed, T i Is the ith part machining time.
Example two
In this embodiment, the collected part image is processed by a computer, and whether the measured part is defective or not is determined by experimental simulation, and the specific flow is shown in fig. 6 below.
In this embodiment, the model of the industrial camera is A7a20MU201.
The image processing process and the result graph of the part shot by the monocular camera through the computer are shown in fig. 7 (a) -7 (d).
Tracking and collecting parts for multiple times through a monocular vision galvanometer system, obtaining a more complete image of the parts, carrying out graying and Gaussian convolution treatment on the collected image, and then carrying out edge detection on the convolved image of the parts. From the processing process and the result graph, the system function can better perform edge processing on the parts, the continuity of the edge processing is better, and whether the parts have defects can be better judged.
Edge detection can better detect the integrity of parts, and scars and cracks are defects which can be caused by collision or manual misoperation between parts, and can be detected as effective information in the edge detection process, so that the scars and the cracks can be detected.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.
Claims (7)
1. Adopt monocular vision and mirror synergy's moving part detecting system, its characterized in that includes: the device comprises a galvanometer module, a visual sensing module, a motion control module and a processing module; the vibration mirror module comprises a rotating motor and a vibration mirror, the vibration mirror is connected with the rotating motor and rotates under the drive of the rotating motor, the vision sensing module comprises an industrial camera, the industrial camera shoots through the vibration mirror on the rotating motor to collect images of the tested parts in a moving state on the conveyor belt, the motion control module comprises a singlechip and a control unit, the singlechip is connected with the rotating motor through the control unit, the processing module comprises a computer, and the images of the tested parts collected by the industrial camera are processed through the computer and subjected to defect detection; the singlechip is in communication connection with the computer.
2. The moving part inspection system employing monocular vision in conjunction with galvanometer according to claim 1, wherein: the industrial camera lens center and the vibrating mirror center controlled to rotate by the rotating motor are at the same horizontal height, and the industrial camera is fixedly arranged.
3. The moving part inspection system employing monocular vision in conjunction with galvanometer according to claim 1, wherein: when the industrial camera shoots a part to be measured, the conversion relation between world coordinates and pixel coordinates is as follows:
wherein t is a translation matrix,r is a rotation matrix>tx, ty, tz denote translation along the world coordinate system X, Y, Z axis; r1 represents an element obtained by multiplying the coordinate value of the X-axis of the world coordinate system and the coordinate value of the X-axis of the camera coordinate system, and r2 represents the Y-axis of the camera coordinate system and the world coordinate systemAn element obtained by multiplying the X-axis coordinate values; r3 represents an element obtained by multiplying a z-axis coordinate value of a camera coordinate system and an X-axis coordinate value of a world coordinate system; r4 represents an element obtained by multiplying the coordinate value of the X-axis of the camera coordinate system and the coordinate value of the Y-axis of the world coordinate system; r5 represents an element obtained by multiplying a Y-axis coordinate value of a camera coordinate system and a Y-axis coordinate value of a world coordinate system; r6 represents an element obtained by multiplying the Z-axis coordinate value of the camera coordinate system and the Y-axis coordinate value of the world coordinate system; r is (r) 7 Representing an element obtained by multiplying an X-axis coordinate value of a camera coordinate system and a Z-axis coordinate value of a world coordinate system; r8 represents an element obtained by multiplying a coordinate value of a Y-axis of a camera coordinate system and a coordinate value of a Z-axis of a world coordinate system; r9 represents an element obtained by multiplying the Z-axis coordinate value of the camera coordinate system by the Z-axis coordinate value of the world coordinate system.
4. The moving part inspection system employing monocular vision in conjunction with galvanometer according to claim 1, wherein: the rotating motor drives the galvanometer to rotate, and a coordinate value calculation formula of a new point p after the point p on the reflecting surface of the galvanometer in the industrial camera coordinate system passes through the angle theta of the galvanometer rotation is as follows:
wherein X 'is' W 、Y' W 、Z' W The three-axis coordinate value of the point p and the world coordinate X respectively W 、Z W Is the two-axis coordinate value of the point p under the world coordinate before the rotation.
5. The moving part inspection system employing monocular vision in conjunction with galvanometer according to claim 1, wherein: and (3) regarding the parts on the conveyor belt as a parallel sequential moving mode, regarding each batch of parts as a whole, detecting the batch of parts, and carrying out the following process expression of the conveyor belt:
wherein T is the total period of the batch of parts, n is the batch of parts, m is the number of parts to be processed, and ti is the ith part processing time.
6. A method for detecting a moving part by using a cooperation of monocular vision and a galvanometer, characterized by comprising the steps of:
s1: the vibrating mirror rotates under the drive of the rotating motor, and the industrial camera shoots through the vibrating mirror on the rotating motor, so that the image of the part to be detected in a moving state on the conveyor belt is collected;
s2: graying the acquired part image, and performing Gaussian convolution processing;
s3: and (2) carrying out edge detection on the part image processed in the step (S2) through a Canny operator, and judging whether the detected part has defects according to an edge detection result.
7. The method for detecting the moving parts by adopting the cooperation of monocular vision and a galvanometer according to claim 6, wherein the method comprises the following steps: in the step S2, the specific procedure of the convolution processing is as follows:
s21: graying treatment is carried out on the acquired part image;
s22: and carrying out convolution processing by using a Gaussian smoothing function to obtain new pixel points, and retaining effective information of the image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310284365.0A CN116297501A (en) | 2023-03-20 | 2023-03-20 | Moving part detection system and method adopting monocular vision and galvanometer synergistic effect |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310284365.0A CN116297501A (en) | 2023-03-20 | 2023-03-20 | Moving part detection system and method adopting monocular vision and galvanometer synergistic effect |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116297501A true CN116297501A (en) | 2023-06-23 |
Family
ID=86799318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310284365.0A Pending CN116297501A (en) | 2023-03-20 | 2023-03-20 | Moving part detection system and method adopting monocular vision and galvanometer synergistic effect |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116297501A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117348237A (en) * | 2023-12-04 | 2024-01-05 | 北京天翔睿翼科技有限公司 | Remote high-speed vision real-time tracking system and method based on industrial galvanometer system |
-
2023
- 2023-03-20 CN CN202310284365.0A patent/CN116297501A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117348237A (en) * | 2023-12-04 | 2024-01-05 | 北京天翔睿翼科技有限公司 | Remote high-speed vision real-time tracking system and method based on industrial galvanometer system |
CN117348237B (en) * | 2023-12-04 | 2024-02-06 | 北京天翔睿翼科技有限公司 | Remote high-speed vision real-time tracking system and method based on industrial galvanometer system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN210046133U (en) | Welding seam visual tracking system based on laser structured light | |
US8872913B2 (en) | System for positioning micro tool of micro machine and method thereof | |
US9124873B2 (en) | System and method for finding correspondence between cameras in a three-dimensional vision system | |
US7813559B2 (en) | Image analysis for pick and place machines with in situ component placement inspection | |
US20130060369A1 (en) | Method and system for generating instructions for an automated machine | |
JP2921660B2 (en) | Article shape measuring method and device | |
JP2019111640A (en) | Article conveying device, robot system, and article conveying method | |
CN113146172B (en) | Multi-vision-based detection and assembly system and method | |
CN108907526A (en) | A kind of weld image characteristic recognition method with high robust | |
JP2019113895A (en) | Imaging apparatus with visual sensor for imaging work-piece | |
CN110501347A (en) | A kind of rapid automatized Systems for optical inspection and method | |
CN109509221B (en) | Positioning measurement system based on image ruler | |
CN116297501A (en) | Moving part detection system and method adopting monocular vision and galvanometer synergistic effect | |
CN113269762A (en) | Screen defect detection method, system and computer storage medium | |
Hsu et al. | Development of a faster classification system for metal parts using machine vision under different lighting environments | |
EP4009273A1 (en) | Cloud-to-cloud comparison using artificial intelligence-based analysis | |
US20020120359A1 (en) | System and method for planning a tool path along a contoured surface | |
CN114782535B (en) | Workpiece pose recognition method and device, computer equipment and storage medium | |
CN112419406A (en) | Object detection device and computer program for object detection | |
Seçil et al. | 3-d visualization system for geometric parts using a laser profile sensor and an industrial robot | |
CN112566758A (en) | Robot control device, robot control method, and robot control program | |
JP3340143B2 (en) | Polishing tool control device | |
CN114926531A (en) | Binocular vision based method and system for autonomously positioning welding line of workpiece under large visual field | |
CN211915840U (en) | Three-dimensional five-axis laser cutting machine tool based on monocular vision | |
Sansoni et al. | Combination of 2D and 3D vision systems into robotic cells for improved flexibility and performance |
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 |