CN205786374U - Special-shaped stamping parts profile defects vision detection system based on coupling - Google Patents
Special-shaped stamping parts profile defects vision detection system based on coupling Download PDFInfo
- Publication number
- CN205786374U CN205786374U CN201620738352.1U CN201620738352U CN205786374U CN 205786374 U CN205786374 U CN 205786374U CN 201620738352 U CN201620738352 U CN 201620738352U CN 205786374 U CN205786374 U CN 205786374U
- Authority
- CN
- China
- Prior art keywords
- eta
- stamping parts
- smart camera
- support
- abnormity
- 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
Links
Landscapes
- Image Analysis (AREA)
Abstract
This utility model special-shaped stamping parts profile defects vision detection system based on coupling, it is characterized in that this detecting system includes smart camera, the first support, the second support, computer, control part, transparent rotating circular disk, motor, sensor and backlight, control part and control rotation and the triggering of smart camera of motor;Visual system is collectively formed by smart camera, the first support and computer, described smart camera is fixed on the top of transparent rotating circular disk by the first support, smart camera is connected with computer and control part by order wire simultaneously, computer is connected with controlling part, described transparent rotating circular disk is connected with motor, described backlight is positioned at the underface of smart camera, and is in the lower section of transparent rotating circular disk;Described sensor includes sensor transmitter and transducer receivers, and transducer receivers is oppositely arranged with sensor transmitter, and in the same horizontal line, sensor transmitter and the second support are connected.
Description
Technical field
This utility model relates to the matching detection systems technology field determining workpiece profile area and profile not bending moment, specifically
It it is a kind of special-shaped stamping parts profile defects vision detection system based on coupling.
Background technology
Along with the large-scale production of product, a lot of stamping parts have the features such as batch is big, parts are little, specification is many, to product
Quality testing required precision more and more higher, in order to ensure the quality of automobile workpiece, the defects detection to workpiece is essential
Link.Stamping parts was carried out visually or kind of calliper by the method frequently with artificial cognition in the past, but this detection method speed
Slowly, efficiency is low, labor strength is big, and quality is also difficult to ensure that.Therefore, computer picture detection technique is applied to stamping parts
The detection of quality has important demand and value.Machine vision have noncontact, high efficiency, in high precision, easy of integration etc. notable
Advantage, application machine vision carries out the defects detection of workpiece, can solve to perplex a lot of problems of enterprise, it is ensured that detection
Seriality and real-time.Currently, a lot of detection projects conform to the principle of simplicity singly to move towards complicated, and detection mode is also from manually moving towards automatization very
To intelligent.Vision-based detection is exactly a kind of trend of detection, and machine vision solution can utilize machine to replace human eye to do
Various measurements and judgement, have noncontact, adaptable, rapidly and efficiently, accurate, flexible, reliability high, existing
For industrial detection receives extensively attention.
Chinese patent CN103914827 discloses the visible detection method of a kind of weather strip for automobile profile defects, the method
By loading image is carried out Threshold segmentation, obtain bianry image, carry out rim detection, extract the seat of each edge pixel point
Mark, calculates the convex closure of target area, calculates the minimum enveloping surface product moment shape in sealing strip cross section, by area, and edge pixel
Point judges whether defect, and it is disadvantageous in that: detection method based on contour area needs sample several are determined in advance
What shape is regular, and the pixel shared by the same workpiece image that diverse location collects under camera fields of view can change
Become, and owing to the angle difference that defect position is different, sample is put all can produce impact to the estimation of preferable area, make
Become testing result inaccurate, it is impossible to reach the accuracy requirement judged.
Utility model content
For the deficiencies in the prior art, the technical problem that this utility model intends to solve is to provide a kind of based on coupling different
Shape stamping parts profile defects vision detection system and method.This detecting system is (the abnormity punching press of 4mm abnormity stamping parts according to thickness
Part is called for short special-shaped workpiece or workpiece) design, the single-frame images collected according to smart camera, extracts interesting target abnormity punching press
The profile of part, (Hu square has rotation, that translation invariance is also called Hu is constant to calculate the Hu square of profile by effective contour curve
Square, is not bending moment) and the area of interior zone.In gatherer process, owing to workpiece exists certain thickness, at camera fields of view
Various location, the profile of the identical workpiece collected there are differences, be not to fit like a glove.For this problem, take many
The method of individual sample matches, calls multiple sample form Retention area feature, Hu square parameter.Bonded area difference matching detection
With Hu invariant moments matching detection algorithm, and then complete in real time, continuous profile defects detection and classification.The method, it is possible to accurately
Detect the defect of account for whole workpiece area more than 0.5%, improve accuracy of detection, it is possible to meet abnormity stamped workpieces defect
Testing requirement.
The technical solution of the utility model is,
A kind of special-shaped stamping parts profile defects vision detection system based on coupling, it is characterised in that this detecting system includes
Smart camera, the first support, the second support, computer, control part, transparent rotating circular disk, motor, sensor and back light
Source, controls part and controls rotation and the triggering of smart camera of motor;Collectively formed by smart camera, the first support and computer
Visual system, described smart camera is fixed on the top of transparent rotating circular disk by the first support, and smart camera passes through order wire
Being connected with computer and control part, computer is connected with controlling part, and described transparent rotating circular disk is connected with motor, institute simultaneously
State backlight and be positioned at the underface of smart camera, and be in the lower section of transparent rotating circular disk;Described sensor includes sensor
Emitter and transducer receivers, transducer receivers is oppositely arranged with sensor transmitter, and in the same horizontal line, passes
Sensor emitter and the second support are connected, and transducer receivers is fixed on the first support bottom, transducer receivers and sensor
Emitter is connected with control part simultaneously.
A kind of special-shaped stamping parts profile defects visible detection method based on coupling, uses above-mentioned detecting system, the party
Method utilizes the standard extracted and the profile information of abnormity stamping parts to be detected, exists according to utilizing standard workpiece and defective workpiece
Area discrepancy and there is rotations, translate, scale the difference of the profile Hu not bending moment of invariance, contrast special-shaped punching press to be detected
Part, the area of standard special-shaped workpiece and profile not bending moment, be calculated the matching rate (difference in areas of difference in areas and profile respectively
It is the result of area difference algorithm), then set threshold value respectively, it is judged that abnormity stamping parts whether existing defects, the tool of the method
Body step is:
The first step, image procossing
1-1 Image Acquisition: obtain contrast significantly abnormity stamping parts image by smart camera;
1-2 image threshold adaptivenon-uniform sampling: on the basis of step 1-1, calculates each pixel for the image collected
The weighted mean in point 5 × 5 regions around, deducting a constant obtains adaptive threshold, and each pixel pixel value is more than threshold
Value, it is defined as the available point of interesting target object abnormity stamping parts in image;
Seeking of 1-3 profile takes: on the basis of step 1-2, has interesting target object abnormity stamping parts in image
Effect point carries out the continuous evolution of curve, arranges iterations, can obtain effective contour curve C (x, y) figure of abnormity stamping parts
Picture;
Second step, image information analysis
The calculating of 2-1 area: the contour curve C that obtains according to step 1-3 (x, y) is divided into two parts by image-region,
A part is that (x, y), another part is that (x, y), to obtain for contour curve perimeter outC to contour curve interior zone inC
(x, y) is integrated contour curve interior zone inC, i.e. can obtain characterizing the area information of contoured interior area size, this step
Suddenly the area S of standard abnormity stamping parts can be calculated0Area S with special-shaped stamping parts to be detectedn, wherein, SnRefer to
The area of n workpiece to be detected, n >=1;
The calculating of 2-2 profile Hu not bending moment: (x, y), by owning on profile for the contour curve C obtained for step 1-3
Point carries out integral operation, obtains profile Hu not bending moment, it is assumed that the some number on profile is N, obtains profile p+q rank by formula (3)
Central moment,
In formula, the square on p correspondence x dimension, the square on q correspondence y-dimension,WithRepresent the center of gravity of profile:
Normalized p+q central moment ηpqIt is defined as:
Wherein, ρ=(p+q)/2+1;
Hu not bending moment is the linear combination of the normalization central moment obtained by formula (6), can obtain profile by formula (3)
Second order and third central moment, be brought into formula (6) and obtain second order three rank normalization central moment, by second order and three normalization centers, rank
Square seven Hu not bending moment I of structure1~I7, the formula of concrete Hu not bending moment is formula (7), and Hu not bending moment can under the conditions of consecutive image
Keep translation, scaling and invariable rotary;
2-3 area Difference Calculation: the area S of the standard abnormity stamping parts that step 2-1 is obtained0With abnormity to be detected punching press
The area S of partnDiffer from, obtain the area difference result Δ S of abnormity stamping parts to be detected and standard abnormity stamping partsn, i.e. Δ Sn=
|S0-Sn|;
The calculating of 2-4 outline rate: the Hu not bending moment I obtained according to step 2-2i(1≤i≤7), mark is passed judgment in definition
Accurate:
Wherein, mi A、mi BIt is defined as:
mi A=sign (Ii A)·log|Ii A|; (10)
mi B=sign (Ii B)·log|Ii B|; (11)
Ask for the matching rate (in units of percentage ratio) of standard workpiece and workpiece to be detected:
I=100-I (A, B) × 100; (12)
In formula, A, B refer to standard workpiece and workpiece to be checked respectively;
3rd step, detects in real time
3-1 image real-time acquisition: after detecting system starts, controls part and controls the transparent rotating circular disk of carrying workpiece with perseverance
Constant speed degree rotates counterclockwise, when workpiece motion s is to when having between the correlation position of sensor transmitter and transducer receivers, passes
Collection signal is transferred to control part by sensor, and then the transparent rotating circular disk controlling carrying workpiece stops 1s, it is thus possible to work
Part carries out stationary picture;Control part simultaneously is signaled to smart camera, utilizes smart camera external trigger pattern to trigger intelligence
Camera Real-time Collection workpiece image, calls template image to carry out next step image procossing;
3-2 image procossing: after image acquisition terminates, carries out image procossing by computer, by the profile of step 2-4
Joining rate judgment criteria, the area difference result in conjunction with step 2-3 sets threshold value, carries out matching detection, it is judged that whether workpiece closes
Lattice, and feed back to control part;
3-3 workpiece is classified: after image procossing has judged that workpiece is the most qualified, next by outside grasping mechanism to work
Part captures, and qualified storehouse put into by qualified workpiece, otherwise puts into recovery storehouse, thus completes the detection of whole workpiece, defect.
Compared with prior art, the beneficial effects of the utility model are:
This utility model method is by controlling the transparent rotating circular disk stop and start of part Based Intelligent Control carrying workpiece, energy
Enough ensure that smart camera can carry out Real-time Collection to it under workpiece resting state, it is to avoid motion is captured produced continuously
Workpiece image deformation processes, to successive image, this problem that exerts an adverse impact.The image that acquisition for contrast is obvious, and
Can accurately be obtained the available point of interesting image target special-shaped workpiece by adaptive threshold fuzziness, take for accurately seeking of profile
Precondition is provided.The method of the active profile selectivity segmentation acquisition profile that this utility model uses does not relies on gradient and sentences
Fixed, can well improve the edge leakage problem existed when rim detection extracts each pixel, rough for border or
Discontinuous also being able to detects, has the strongest anti-noise, capacity of resisting disturbance, strong robustness.Multiple sample is used to mate, and
In conjunction with Hu not bending moment rotation, translate, scale invariance, solve area difference and mate inaccurate problem, significantly improve
The real-time of system and adaptability.At real-time detection-phase, it is possible to the most effectively workpiece signal to be sent to control system, intelligence
Image acquisition can be controlled, and then complete the defects detection of abnormity stamping parts, it is not necessary to manual intervention, improve work efficiency.
Use field of the present utility model and significance be:
This method is applicable to the profile defects detection of abnormity stamping parts, and abnormity stamping parts occupies act foot in industrial sector chain
The status of weight, is widely used in electronic device, automobile, main equipment, ornament materials etc., and the accurate Intelligent Measurement of method of needing badly is rushed
The profile defects of casting die, and improve the accuracy of detection.Therein it is crucial that the accurate of profile obtains, and matching algorithm
Accuracy.This utility model vision detection system, it can be avoided that dependence to gradient, obtains and has high anti-noise, anti-interference, robust
Property strong contour curve, solve profile and obtain accuracy, the rapidity problem existed.This utility model method is by contour area
Difference matching detection and Hu invariant moments matching detection algorithm combine, and substantially increase accuracy and the adaptability of detection, energy
Enough meet the requirement of judgment accuracy, be more suitable for commercial Application.
Accompanying drawing explanation
Fig. 1 is the knot of this utility model special-shaped stamping parts a kind of embodiment of profile defects vision detection system based on coupling
Structure schematic diagram;
Fig. 2 is that this utility model special-shaped stamping parts profile defects vision detection system one embodiment based on coupling is in phase
Under the machine visual field, gather standard stamping parts template schematic diagram when being in diverse location;
Fig. 3 is the structural representation of a kind of abnormity stamping parts of detection described in the utility model;
Fig. 4 is this utility model special-shaped stamping parts profile defects vision detection system one embodiment workpiece based on coupling
After triggering camera to sensing station, stamping parts fixed range schematic diagram under the visual field;
Fig. 5 is that this utility model special-shaped stamping parts profile defects vision detection system one embodiment based on coupling adds
The contour images schematic diagram extracted after noise;
In figure, 1 first support, 2 second supports, 3 smart cameras, 4 backlight, 5 sensor transmitter, 6 sensors connect
Receive device, 7 motors, 8 transparent rotating circular disks, 9 direction of rotation, 10 abnormity stamping parts, 11 order wires, 12 computers.
Detailed description of the invention
Below in conjunction with embodiment and accompanying drawing, the utility model is described in further detail.
This utility model special-shaped stamping parts profile defects vision detection system based on coupling (is called for short detecting system or is
System, see Fig. 1) include smart camera the 3, first support the 1, second support 2, computer 12, control part, transparent rotating circular disk 8,
Motor 7, sensor and backlight 4, control part and control rotation and the triggering of smart camera 3 of motor 7;By smart camera 3,
First support 1 and computer 12 collectively form visual system, and described smart camera 3 is fixed on transparent rotation by the first support 1
The top of disk 8, smart camera 3 passes through order wire 11 and is connected with computer 12 and control part simultaneously, computer 12 and control
Part connect, for show smart camera 3 gather and process after image;Described transparent rotating circular disk 8 is connected with motor 7, institute
State backlight 4 and be positioned at the underface of smart camera 3, and be in the lower section of transparent rotating circular disk 8;Described sensor includes sensing
Device emitter 5 and transducer receivers 6, transducer receivers 6 is oppositely arranged with sensor transmitter 5, and in same level
On line, sensor transmitter 5 is connected with the second support 2, fixes position and completes the accurate transmission of signal, transducer receivers 6
Being fixed on the first support 1 bottom, transducer receivers 6 is connected with control part with sensor transmitter 5 simultaneously, and the two has coordinated
Become the collection of stamping parts position signalling.
It is 3~5mm that this utility model system is further characterized by the thickness of described abnormity stamping parts 10, and stamping parts is long
Degree is 40~60mm, and width is 15~55mm, and it is more than 0.5% that the rejected region that can detect that accounts for the minimum percent of entirety.
This utility model special-shaped stamping parts profile defects visible detection method (abbreviation method) based on coupling uses above-mentioned
Detecting system, be mainly used in industry spot, the detection of the profile of abnormity stamping parts, identify and judge profile defects and then sentence
Disconnected stamping parts is carried out with or without defect situation simultaneously, and detection algorithm fully adapts to field condition, the method utilize the standard extracted and
The profile information of abnormity stamping parts to be detected, according to utilizing standard workpiece and the area discrepancy of defective workpiece existence and having rotation
Turn, translate, scale the difference of the profile not bending moment of invariance, contrast abnormity stamping parts, the area of standard special-shaped workpiece to be detected
And profile not bending moment, it is calculated the matching rate of difference in areas and profile respectively, then sets threshold value respectively, it is judged that abnormity punching press
Part whether existing defects, comprising the concrete steps that of the method:
The first step, image procossing
1-1 Image Acquisition: obtain contrast significantly abnormity stamping parts image by smart camera 3;
1-2 image threshold adaptivenon-uniform sampling: on the basis of step 1-1, calculates each pixel for the image collected
The weighted mean in point 5 × 5 regions around, deducting a constant obtains adaptive threshold, and each pixel pixel value is more than threshold
Value, it is defined as the available point of interesting target object abnormity stamping parts in image;
Seeking of 1-3 profile takes: on the basis of step 1-2, has interesting target object abnormity stamping parts in image
Effect point carries out the continuous evolution of curve, arranges iterations, can obtain effective contour curve C (x, y) figure of abnormity stamping parts
Picture;
Second step, image information analysis
The calculating of 2-1 area: the contour curve C that obtains according to step 1-3 (x, y) is divided into two parts by image-region,
A part is that (x, y), another part is that (x, y), to obtain for contour curve perimeter outC to contour curve interior zone inC
(x, y) is integrated contour curve interior zone inC, i.e. can obtain characterizing the area information of contoured interior area size, this step
Suddenly the area S of standard abnormity stamping parts can be calculated0Area S with special-shaped stamping parts to be detectedn, wherein, SnRefer to
The area of n workpiece to be detected, n >=1;
The calculating of 2-2 profile Hu not bending moment: (x, y), by owning on profile for the contour curve C obtained for step 1-3
Point carries out integral operation, obtains profile Hu not bending moment, it is assumed that the some number on profile is N, obtains profile p+q rank by formula (3)
Central moment,
In formula, the square on p correspondence x dimension, the square on q correspondence y-dimension,WithRepresent the center of gravity of profile:
Normalized p+q central moment ηpqIt is defined as:
Wherein, ρ=(p+q)/2+1;
Hu not bending moment is the linear combination of the normalization central moment obtained by formula (6), can obtain profile by formula (3)
Second order and third central moment, be brought into formula (6) and obtain second order three rank normalization central moment, by second order and three normalization centers, rank
Square seven Hu not bending moment I of structure1~I7, the formula of concrete Hu not bending moment is formula (7), and Hu not bending moment can under the conditions of consecutive image
Keep translation, scaling and invariable rotary;
2-3 area Difference Calculation: the area S of the standard abnormity stamping parts that step 2-1 is obtained0With abnormity to be detected punching press
The area S of partnDiffer from, obtain the area difference result Δ S of abnormity stamping parts to be detected and standard abnormity stamping partsn, it may be assumed that
ΔSn=| S0-Sn|; (8)
The calculating of 2-4 outline rate: the Hu not bending moment I obtained according to step 2-2i(1≤i≤7), mark is passed judgment in definition
Accurate:
Wherein, mi A、mi BIt is defined as:
mi A=sign (Ii A)·log|Ii A|; (10)
mi B=sign (Ii B)·log|Ii B|; (11)
Ask for the matching rate (in units of percentage ratio) of standard workpiece and workpiece to be detected:
I=100-I (A, B) × 100; (12)
In formula, A, B refer to standard workpiece and workpiece to be checked respectively;
3rd step, detects in real time
3-1 image real-time acquisition: detecting system start after, control part control carrying workpiece transparent rotating circular disk 8 with
Constant speed rotates counterclockwise, when workpiece motion s is to when having between the correlation position of sensor transmitter and transducer receivers,
Collection signal is transferred to control part by sensor, and then the transparent rotating circular disk controlling carrying workpiece stops 1s, it is thus possible to right
Workpiece carries out stationary picture;Control part simultaneously is signaled to smart camera 3, utilizes smart camera external trigger pattern to trigger intelligence
Energy camera Real-time Collection workpiece image, calls template image to carry out next step image procossing;
3-2 image procossing: after image acquisition terminates, carries out image procossing by computer 12, by the profile of step 2-4
Matching rate judgment criteria, the area difference result in conjunction with step 2-3 sets threshold value, carries out matching detection, it is judged that workpiece whether
Qualified, and feed back to control part;
3-3 workpiece is classified: after image procossing has judged that workpiece is the most qualified, next by outside grasping mechanism to work
Part captures, and qualified storehouse put into by qualified workpiece, otherwise puts into recovery storehouse, thus completes the detection of whole workpiece, defect.
Embodiment illustrated in fig. 1 shows, this utility model special-shaped stamping parts profile defects vision detection system based on coupling
The hardware composition of the assembling test platform used includes smart camera the 3, first support the 1, second support 2, computer 12, controls
Partly, transparent rotating circular disk 8, motor 7, sensor and backlight 4, the rotation of control part control motor 7 and smart camera 3
Triggering;Being collectively formed visual system by smart camera the 3, first support 1 and computer 12, described smart camera 3 is by first
Support 1 is fixed on the top of transparent rotating circular disk 8, and smart camera 3 is connected with computer 12 and control part by order wire simultaneously
Connect, computer 12 with control part is connected, be used for show smart camera 3 gather and process after image;Described transparent rotational circle
Dish 8 is connected with motor 7, and described backlight 4 is positioned at the underface of smart camera 3, and is in the lower section of transparent rotating circular disk 8;
Described sensor includes sensor transmitter 5 and transducer receivers 6, and transducer receivers 6 is relative with sensor transmitter 5 to be set
Put, and in the same horizontal line, sensor transmitter 5 is connected with the second support 2, fix position and complete accurately sending out of signal
Sending, transducer receivers 6 is fixed on the first support 1 bottom, with control portion while of transducer receivers 6 and sensor transmitter 5
Dividing and connect, the two has coordinated the collection of stamping parts position signalling.
Control part of the present utility model drives transparent rotating circular disk 8 to rotate by controlling motor 7, transparent rotating circular disk 8
Upper carrying abnormity stamping parts 10, and then realize the direction of transfer to stamping parts 10 and the control of speed, sensor emission simultaneously
The position signalling of the stamping parts 10 that device 5 arrives with transducer receivers 6 assisted acquisition, is transferred to control part, controls part and controls
The triggering collection of smart camera, the image transmitting that smart camera 3 collects, to computer 12, is carried out image by computer 12
Reason, after image procossing completes, control part then controls outside grasping mechanism and classifies the special-shaped stamping parts after having detected.
Backlight 4 can provide illumination so that the contrast between target and background is obvious, the apparent standard of image of collection
Really.
Embodiment illustrated in fig. 2 shows, this utility model special-shaped stamping parts profile defects vision detection system based on coupling
Under smart camera 3 visual field, gather the schematic diagram of special-shaped stamping parts 10 when being in diverse location, by diagram it can be seen that by
There is certain thickness in abnormity stamping parts, the various location under stamping parts is in smart camera 3 visual field, the angle of visual field can be sent out
Raw certain change, therefore can produce some impacts, and then affect final Detection results the image gathered.
Fig. 3 is the structural representation of the special-shaped stamping parts of a kind of embodiment of this utility model, is to test targeted target
Object, embodiment illustrated in fig. 4 shows, this utility model is due to sensor transmitter 5 and the existence of transducer receivers 6, when different
Shape stamping parts 10 arrives under the visual field of smart camera 3, and when being in sensing station, gathers signal and be transferred to control portion
Point, controlling to trigger smart camera 3 and gather image, such mode makes stamping parts in the visual field general scope one of smart camera 3
Cause, the biggest skew will not occur, and then decrease the impact on detection profile defects of the stamping parts location, improve inspection
The reliability surveyed.
Embodiment illustrated in fig. 5 shows, this utility model special-shaped stamping parts profile defects vision detection system based on coupling,
Adding very noisy before extracting profile, the outline effect schematic diagram obtained, in figure, black splotch is illustrated as noise, permissible from figure
Find out the contour images that still can extract abnormity stamping parts after adding very noisy exactly, the calculation of this utility model contours extract
Method does not relies on the gradient of image, has the strongest antinoise, capacity of resisting disturbance, and strong robustness, contours extract is more accurate.
This utility model according to the size of workpiece, and can account for the size in the smart camera visual field, adjusts the size of camera lens
And the object distance of camera.
Embodiment
The present embodiment special-shaped stamping parts profile defects vision detection system based on coupling includes smart camera 3, first
Frame the 1, second support 2, computer 12, control part, transparent rotating circular disk 8, motor 7, sensor and backlight 4, control portion
The rotation of sub-control motor 7 and the triggering of smart camera 3;Collectively formed regarded by smart camera the 3, first support 1 and computer 12
Vision system, described smart camera 3 is fixed on the top of transparent rotating circular disk 8 by the first support 1, and smart camera 3 is by communication
Line simultaneously with computer 12 and control part and is connected, computer 12 with control partly to be connected, be used for showing smart camera 3 collection with
Image after process;Described transparent rotating circular disk 8 is connected with motor 7, and described backlight 4 is positioned at the underface of smart camera 3,
And it is in the lower section of transparent rotating circular disk 8;Described sensor includes sensor transmitter 5 and transducer receivers 6, and sensor connects
Receive device 6 to be oppositely arranged with sensor transmitter 5, and in the same horizontal line, sensor transmitter 5 be connected with the second support 2,
Fixing position and complete the accurate transmission of signal, transducer receivers 6 is fixed on the first support 1 bottom, transducer receivers 6 with
Sensor transmitter 5 is connected with control part simultaneously, and the two has coordinated the collection of stamping parts position signalling.
The present embodiment special-shaped stamping parts profile defects visible detection method based on coupling, uses above-mentioned detecting system,
Comprising the concrete steps that of the method:
The first step, image procossing
1-1 Image Acquisition: obtain contrast significantly abnormity stamping parts image by smart camera 3;
1-2 image threshold adaptivenon-uniform sampling: on the basis of step 1-1, calculates each pixel for the image collected
The weighted mean in point 5 × 5 regions around, deducting a constant obtains adaptive threshold, and each pixel pixel value is more than threshold
Value, it is defined as the available point of interesting target object abnormity stamping parts in image;
Seeking of 1-3 profile takes: on the basis of step 1-2, has interesting target object abnormity stamping parts in image
Effect point carries out the continuous evolution of curve, arranges iterations, can obtain effective contour curve C (x, y) figure of abnormity stamping parts
Picture;
Second step, image information analysis
The calculating of 2-1 area: the contour curve C that obtains according to step 1-3 (x, y) is divided into two parts by image-region,
A part is that (x, y), another part is that (x, y), to obtain for contour curve perimeter outC to contour curve interior zone inC
(x, y) is integrated contour curve interior zone inC, i.e. can obtain characterizing the area information of contoured interior area size, this step
Suddenly the area S of standard abnormity stamping parts can be calculated0Area S with special-shaped stamping parts to be detectedn, wherein, SnRefer to
The area of n workpiece to be detected, n >=1;
The computing formula of described contoured interior region area is formula (1):
S=∫inC(x,y)u(x,y)dxdy; (1)
Wherein, (x y) is the contour curve density function that extracts after threshold adaptive dividing processing of image to u;
The calculating of 2-2 profile Hu not bending moment: (x, y), by owning on profile for the contour curve C obtained for step 1-3
Point carries out integral operation, obtains profile Hu not bending moment, it is assumed that the some number on profile is N, then can obtain the p+q rank of profile
Square, such as formula:
Profile p+q rank central moment is obtained by formula (3),
In formula, the square on p correspondence x dimension, the square on q correspondence y-dimension,WithRepresent the center of gravity of profile:
Normalized p+q central moment ηpqIt is defined as:
Wherein, ρ=(p+q)/2+1;
Hu not bending moment is the linear combination of the normalization central moment obtained by formula (6), can obtain profile by formula (3)
Second order and third central moment, be brought into formula (6) and obtain second order three rank normalization central moment, by second order and three normalization centers, rank
Square seven Hu not bending moment I of structure1~I7, the formula of concrete Hu not bending moment is formula (7), and Hu not bending moment can under the conditions of consecutive image
Keep translation, scaling and invariable rotary;
2-3 area Difference Calculation: the area S of the standard abnormity stamping parts that step 2-1 is obtainedb0With abnormity to be detected punching press
The area S of partnDiffer from, obtain the area difference result Δ S of abnormity stamping parts to be detected and standard abnormity stamping partsbn, it may be assumed that
ΔSbn=| Sb0-Sn|; (8)
Area difference result Δ S when the n-th abnormity stamping parts to be detected with b standard abnormity stamping partsbnIn, as long as depositing
At a parameter value in threshold range, i.e. Δ Sbn< yuzhi, decides that this abnormity stamping parts to be detected is qualified products;
Wherein, Sb0Refer to the area of b standard abnormity stamping parts, SnRefer to the area of the n-th workpiece to be detected, this
In embodiment, b is 4, and n is 5;
The calculating of 2-4 outline rate: the Hu not bending moment I obtained according to step 2-2i(1≤i≤7), mark is passed judgment in definition
Accurate:
Wherein, mi A、mi BIt is defined as:
mi A=sign (Ii A)·log|Ii A|; (10)
mi B=sign (Ii B)·log|Ii B|; (11)
Ask for the matching rate (in units of percentage ratio) of standard workpiece and workpiece to be detected:
Ikl=100-I (Ak,Bl)×100; (12)
In formula, Ak, BlRefer to kth standard workpiece and l workpiece to be checked respectively;
3rd step, detects in real time
3-1 image real-time acquisition: detecting system start after, control part control carrying workpiece transparent rotating circular disk 8 with
Constant speed rotates counterclockwise, when workpiece motion s is to when having between the correlation position of sensor transmitter and transducer receivers,
Collection signal is transferred to control part by sensor, and then the transparent rotating circular disk controlling carrying workpiece stops 1s, it is thus possible to right
Workpiece carries out stationary picture;Control part simultaneously is signaled to smart camera 3, utilizes smart camera external trigger pattern to trigger intelligence
Energy camera Real-time Collection workpiece image, calls template image to carry out next step image procossing;
3-2 image procossing: after image acquisition terminates, carries out image procossing by computer 12, by the profile of step 2-4
Matching rate judgment criteria, the area difference result in conjunction with step 2-3 sets threshold value, carries out matching detection, it is judged that workpiece whether
Qualified, and feed back to control part;
3-3 workpiece is classified: after image procossing has judged that workpiece is the most qualified, next by outside grasping mechanism to work
Part captures, and qualified storehouse put into by qualified workpiece, otherwise puts into recovery storehouse, thus completes the detection of whole workpiece, defect.
The present embodiment connects device on request, and selecting abnormity stamping parts thickness is 4mm, and size is 43mm × 45mm
(seeing Fig. 3).Smart camera distance transparent rotating circular disk 300mm, backlight 4 is positioned at the underface of smart camera 3, and is in
The lower section of transparent rotating circular disk 8, apart from bright rotating circular disk about 20mm,
In use, be first turned on smart camera power supply, with detection during under equivalent environment, gather smart camera and regard
The standard abnormity stamping parts image of wild lower different positions and pose, as template, does premise for ensuing matching detection and prepares.According to upper
The method step stated detects.
Table 1 be abnormity stamping parts 10 occur in the scope of smart camera 3 unanimous on the whole in the case of, to same standard
Abnormity stamping parts rotates, and obtains standard abnormity stamping parts and is in the situation of different positions and pose, in the case of different positions and pose
Standard abnormity stamping parts carries out image acquisition, the area of the different positions and pose collected.This example is tested by four poses,
Obtaining area result, there is certain difference in the area that different pose presentation are corresponding as can be seen from Table 1, if standard abnormity punching press
Part is different from not having defective abnormity stamping parts pose, and area difference is likely to can be more than standard abnormity stamping parts in some cases
With the area difference of defective abnormity stamping parts, erroneous judgement can be caused, due to the requirement of industrial detection precision, it is impossible to separately through
Set the threshold value of area difference coupling as the standard judging defect problem the most accurately.
Table 2 be abnormity stamping parts 10 occur in the scope of smart camera 3 unanimous on the whole in the case of, for standard abnormity
Stamping parts different positions and pose carries out image acquisition, the Hu obtained not bending moment parametric results.Result shows that different pose presentation is corresponding
Hu not bending moment parameter I1~I7Change is little, demonstrates again that the robustness of Hu not bending moment, decreases pose different for testing result
Impact, in order to identify exactly abnormity stamping parts 10 defect, matching result can by obtain each to be detected abnormity punching
The Hu square parameter of casting die compares with each standard abnormity stamping parts 10 and judges, and combines each abnormity punching to be detected
The area features as shown in table 1 of casting die carries out area difference with each mark abnormity stamping parts and mates.
Table 3 is application this utility model special-shaped stamping parts profile defects vision detection system based on coupling and method,
Two qualified workpiece arriving and three defective workpiece respectively with the area difference result of standard abnormity stamping parts.In this table
Select four standard abnormity stamping parts as area difference template, be designated as respectively: template 1, template 2, template 3 and template 4, pass through
Result can be seen that qualified workpiece and defective workpiece are for multiple standard workpiece area difference result Δ Sbn, wherein b is mark
The number of quasi-workpiece, n is the number of workpiece to be detected, it can be seen that certified products and the area difference of standard abnormity stamping parts template
As a result, with defective abnormity stamping parts is the biggest with the area difference result gap of standard abnormity stamping parts template, root
Area difference matching threshold is set according to difference result.Each abnormity stamping parts to be detected, relative to different templates, area difference
Result is different, selects area difference result minima Δ SminIf, less than threshold value, prove abnormity stamping parts to be detected at least with its
In a template matching, it is possible to tentatively judge that special-shaped stamping parts to be detected is defective as not having, so can tentatively judge to treat
The defect situation of detection workpiece.
Table 4 is application this utility model special-shaped stamping parts profile defects vision detection system based on coupling, and two qualified
Workpiece and three defective workpiece Hu matching results.Result shows qualified work piece match rate IbjThe highest, more than 99%, this with
Rate (only up to about 90%) joined by defective workpiece significantly differentiation, sets work piece match rate threshold value, if to be detected
Abnormity stamping parts and each standard abnormity stamping parts template join in rate, have more than the threshold value set it may determine that to be detected
Abnormity stamping parts is defective for not having, matching rate I maximum in human-computer interaction interface display matching ratemax(i.e. final matching rate),
In conjunction with result and the judgement of table 3, the matching rate I that display is maximummax, it is possible to accurately detect and account for the 0.5% of whole workpiece area
Above defect, improves accuracy of detection, it is possible to meet the accuracy requirement of defects detection in actual field.
Table 1
Table 2
Table 3
Table 4
Claims (2)
1. a special-shaped stamping parts profile defects vision detection system based on coupling, it is characterised in that this detecting system includes intelligence
Energy camera, the first support, the second support, computer, control part, transparent rotating circular disk, motor, sensor and backlight,
Control part and control rotation and the triggering of smart camera of motor;Collectively formed regarded by smart camera, the first support and computer
Vision system, described smart camera is fixed on the top of transparent rotating circular disk by the first support, and smart camera is same by order wire
Time with computer and control part and is connected, computer is partly connected with control, and described transparent rotating circular disk is connected with motor, described
Backlight is positioned at the underface of smart camera, and is in the lower section of transparent rotating circular disk;Described sensor includes that sensor is sent out
Emitter and transducer receivers, transducer receivers is oppositely arranged with sensor transmitter, and in the same horizontal line, sensing
Device emitter and the second support are connected, and transducer receivers is fixed on the first support bottom, and transducer receivers is sent out with sensor
Emitter is connected with control part simultaneously.
Special-shaped stamping parts profile defects vision detection system based on coupling the most according to claim 1, it is characterised in that
The thickness of described abnormity stamping parts is 3~5mm, and stamping parts a length of 40~60mm, width is 15~55mm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201620738352.1U CN205786374U (en) | 2016-07-13 | 2016-07-13 | Special-shaped stamping parts profile defects vision detection system based on coupling |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201620738352.1U CN205786374U (en) | 2016-07-13 | 2016-07-13 | Special-shaped stamping parts profile defects vision detection system based on coupling |
Publications (1)
Publication Number | Publication Date |
---|---|
CN205786374U true CN205786374U (en) | 2016-12-07 |
Family
ID=58123245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201620738352.1U Active CN205786374U (en) | 2016-07-13 | 2016-07-13 | Special-shaped stamping parts profile defects vision detection system based on coupling |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN205786374U (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106018422A (en) * | 2016-07-13 | 2016-10-12 | 河北工业大学 | Matching-based visual outline defect inspection system and method for specially-shaped stamping parts |
CN109357598A (en) * | 2018-10-22 | 2019-02-19 | 江西北斗变电科技有限公司 | A kind of novel portable silicon steel sheet burr SHAPE DETECTION identification device and method |
CN115026019A (en) * | 2022-08-15 | 2022-09-09 | 苏州艾西姆微电子科技有限公司 | Automatic non-light-transmitting sheet material feeding method and device |
-
2016
- 2016-07-13 CN CN201620738352.1U patent/CN205786374U/en active Active
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106018422A (en) * | 2016-07-13 | 2016-10-12 | 河北工业大学 | Matching-based visual outline defect inspection system and method for specially-shaped stamping parts |
CN106018422B (en) * | 2016-07-13 | 2018-09-18 | 河北工业大学 | Based on matched special-shaped stamping parts profile defects vision detection system and method |
CN109357598A (en) * | 2018-10-22 | 2019-02-19 | 江西北斗变电科技有限公司 | A kind of novel portable silicon steel sheet burr SHAPE DETECTION identification device and method |
CN115026019A (en) * | 2022-08-15 | 2022-09-09 | 苏州艾西姆微电子科技有限公司 | Automatic non-light-transmitting sheet material feeding method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106018422A (en) | Matching-based visual outline defect inspection system and method for specially-shaped stamping parts | |
CN106204614B (en) | A kind of workpiece appearance defects detection method based on machine vision | |
CN106053479B (en) | A kind of vision detection system of the workpiece appearance defects based on image procossing | |
CN102221556B (en) | Device and method for online detection on appearance defect of minitype connecting part based on machine vision | |
CN102495069B (en) | Method for detecting defects of chain belts of zipper on basis of digital image processing | |
CN102636490B (en) | Method for detecting surface defects of dustproof cover of bearing based on machine vision | |
CN109822398B (en) | Numerical control machine tool broken cutter detection system and method based on deep learning | |
CN2932377Y (en) | Flow-type machine visual detector | |
CN106290382A (en) | Bubble-cap tablet package defective vision detection device and method | |
CN107966454A (en) | A kind of end plug defect detecting device and detection method based on FPGA | |
CN104574389A (en) | Battery piece chromatism selection control method based on color machine vision | |
CN205786374U (en) | Special-shaped stamping parts profile defects vision detection system based on coupling | |
CN106290394B (en) | System and method for detecting aluminum extrusion molding defects of CPU radiator | |
CN102998316B (en) | Transparent liquid impurity detection system and detection method thereof | |
CN106052586A (en) | Stone big board surface contour dimension obtaining system and method based on machine vision | |
CN106600593B (en) | A kind of middle aluminium porcelain ball surface defect inspection method | |
CN101852768A (en) | Workpiece flaw identification method based on compound characteristics in magnaflux powder inspection environment | |
CN103778624A (en) | Fabric defect detection method based on optical threshold segmentation | |
CN110108712A (en) | Multifunctional visual sense defect detecting system | |
CN104613869B (en) | Method and system for detecting elliptical hole group based on maximum inscribed circle | |
CN105403147A (en) | Embedded bottle pre-form detection system and detection method | |
CN107891012B (en) | Pearl size and circularity sorting device based on equivalent algorithm | |
CN106353336A (en) | Lens coating automatic detection system | |
CN107036542A (en) | A kind of ring gear internal-and external diameter appearance detecting method and device | |
Yang et al. | An automatic aperture detection system for LED cup based on machine vision |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |