Utility model content
Technical problem to be solved in the utility model be to provide one kind can make detection operation and rejecting act be distributed into
OK, the vision on-line measuring device and method of vision-based detection accuracy are improved while.
Technical scheme is used by the utility model solves above-mentioned technical problem:
A kind of servo coordinates vision on-line measuring device, including PLC, vision controller, camera, rotating disk and servomotor,
The PLC is connected with the vision controller, and the camera is connected with the vision controller, and the rotating disk is located at the camera
Lower section and be connected with the PLC, base is provided with below the rotating disk, the servomotor is provided with simultaneously below the base
And the servomotor is connected through the base with the rotating disk, the servomotor is connected with the PLC;The rotating disk around
Central axis, is detected when the rotating disk is turned to below the camera, same plane should be in the camera
Position be detecting position, when the rotating disk turns to some position in the outside of the camera, to reject position, on the rotating disk
Multiple working positions can be rotated with rotating disk and changed between the detecting position and the rejecting position;The Serve Motor Control institute
Static certain time is stated after rotating disk rotates once, and action is entered in the camera and the rejecting position within the quiescent time of the rotating disk
Make.
In order to improve photograph taking quality, the camera includes two, and light source is arranged between two cameras, two
The axis of the axis of the camera and the light source is in same vertical plane, and the axis of two cameras and the light source
The angle of axis be respectively 60 °, two cameras are directed at the product on same rotating disk, the light source axis and institute simultaneously
The axis for stating testing sample on detecting position is same axis.
In order to detect whether rotating disk breaks down, the sensor upwardly extended, the sensor are provided with the base
The rotating disk side and a little higher than rotating disk are arranged at, while the sensor is connected with the PLC.
Preferably, the sensor cover is to the detecting position, and the sensor is by detecting the detecting position seated position
Judge the rotating disk whether normal operation.
Compared with prior art, the utility model has the advantage of by setting servomotor, rotating disk energy after rotation is made
Enough static certain times, camera is taken pictures and rejected to be carried out within this quiescent time, image quality is ensure that, when shortening detection
Between;Also by the setting of sensor, enable detection means self-test, ensure that production process is normally carried out.
Embodiment
The utility model is described in further detail below in conjunction with accompanying drawing embodiment.
A kind of servo coordinates vision on-line measuring device, including PLC (programmable logic controller (PLC)) 1, vision controller 2,
Camera 3, light source 4, rotating disk 5 and servomotor 7, PLC1 are connected with vision controller 2, for starting vision controller 2, are regarded simultaneously
Feel that controller 2 feeds back visual signal to PLC1, PLC is carried out subsequent action.
Camera 3 includes two, is connected with vision controller 2, and camera 3 is by the photo feedback shot to vision controller
2 are compared so as to vision controller 2.Light source 4 is arranged between two cameras 3, ensures the clear of photo captured by two cameras 3
Clear degree.The axis of two cameras 3 and the axis of light source 4 are in same vertical plane, and the axis of two cameras 3 and light source 4
The angle of axis is respectively 60 ° and two cameras while the product that is aligned on same rotating disk 5, is further ensured that two cameras
The brightness obtained is identical.
Rotating disk 5 is located at the lower section of light source 4 and camera 3 and is connected with PLC1, and the lower section of rotating disk 5 is provided with base 6, under base 6
Side is provided with servomotor 7 and servomotor 7 is connected through base 6 with rotating disk 5, for controlling rotating disk 5 to rotate.Servomotor
7 make rotating disk 5 rotate once rear static certain time, and camera 3 is then shot within this quiescent time, ensure that the clear of photo
Degree.Rotating disk 5 is provided with 6 working positions, and for placing product to be detected, rotating disk is around central axis, when rotating disk 5 turns to
Detected during the lower section of two middles of camera 3, same plane should be in two cameras 3 and positioned at position of center line to examine
Location 51, axis and the axis of light source 4 of the product to be measured on detecting position 51 are same axis, i.e. the face detecting position 51 of light source 4
On product.When rotating disk 5 turns to some position in the outside of light source 4, to reject position 5.In order that detection process is effectively carried out,
Detecting position 51 and rejecting position 52 are adjacent, and when the product on detecting position 51 is defective work, PLC1 controls reject position 52 next
Rejected in the secondary quiescent time of rotating disk 5, be advantageous to save the time, when the product on detecting position 51 is certified products, reject position
52 are failure to actuate.Multiple working positions on the rotating disk 5 can be rotated with rotating disk 5 and changed between detecting position 51 and rejecting position 52.
The other device is also provided with material position, lower material position etc., all located at some position that rotating disk 5 rotates.Working position on rotating disk 5
With the rotation cyclic switching between such positions of rotating disk 5.The sensor 8 upwardly extended, sensor 8 are provided with base 6
Positioned at the side of rotating disk 5 and a little higher than rotating disk 5, while sensor 8 is intended for detecting position 51, so that sensor 8 is by detecting
Position 51 seated positions judge rotating disk 5 whether normal operation.Servomotor 7 and sensor 8 are connected with PLC, when detecting position 51 not
When the failure such as product inclination occurs in place or detecting position 51 in time, sensor 8 sends signal to PLC1, PLC1 control servos
Motor 7 recovers rotating disk 5 to initial position, eliminates failure.
A kind of servo of the utility model coordinates the Cleaning Principle of vision on-line measuring device to be:
1) standard picture is registered:On the basis of the battery product of standard, the photos of the standard items is shot as standard picture,
Deposit system.
2) product shooting to be measured:Servomotor 7 is controlled by PLC1, the product to be measured on rotating disk 5 is sent to detecting position
51, when rotating disk 5 is static, two cameras 3 are respectively from different perspectives to the product shooting photo on detecting position 51 as real
Border shooting photo is sent to vision controller 2.
3) shape contrasts:For the photo of actual photographed, setting one includes the detection zone A, detection zone A of cell image
Size be size less than or equal to actual photographed photograph taking region, vision controller 2 finds in actual photographed photo
Most like the detection zone A of a detection zone A and standard picture photo is as most like photo, and it is most like to calculate this
The similarity of photo and standard picture.When similarity is higher than 60%, it is preliminary qualified products to judge the product to be measured, into step
It is rapid 4), on the contrary then be substandard product, vision controller 2 outputs signal to PLC1, into step 5).
4) Defect Detection:Most like photo and standard drawing in step 3) are contrasted, by detecting the flaw on photo
Region area calculates flaw amount.Such as the product is qualified products, reenters the detection that step 2) carries out next product to be measured, such as
For substandard product, vision controller 2 outputs signal to PLC1, into step 5).
The specific method of Defect Detection is:The point centered on the center of standard picture, setting one include the inspection of cell image
Region B is surveyed, detection zone B size is the size less than or equal to actual photographed photographic region;Because of actual photographed photo center
It is overlapping with standard picture center, in concentric, so detection zone B also just falls in the corresponding position of actual photographed photo
Put on region, the corresponding region of the actual photographed photo is named as detection zone B1, adjusts actual photographed photo and standard drawing
As into binaryzation picture, that is, setting a gray threshold, being set as white when the grey scale pixel value in image is more than threshold value, as
Plain gray value is then set as black when being less than threshold value, so as to divide the image into two parts, convenient observation and calculating, i.e. standard picture
It is shown as black, the indefectible part in actual photographed photo is also black, and flaw part is shown as white.In addition can be according to making
User's use habit is different, and image is carried out into binaryzation reversion, reverse image color.It is black with the color after standard picture binaryzation
Color is as background colour, and when flaw occurs in product to be measured, flaw is shown as white in detection zone B1, in detection zone B1
White portion area sum is calculated as defect areas area, judges that product to be measured whether there is according to the value of defect areas area
Defect.It is such as substandard product, then PLC1 is outputed signal to, into step 5);Such as it is qualified products, not output signal.
5) defective work is rejected:Servomotor 7 is controlled by PLC1, product to be measured on detecting position in step 2) 51 is transmitted
To position 52 is rejected, when rotating disk 5 is static, when the product to be measured is defective work, PLC1 receives the feedback of vision controller 2
Signal, immediately control reject position 52 and carry out rejecting action, and reentering step 2) after the completion of rejecting action carries out next production to be measured
The detection of product.
It the above is only preferred embodiment of the present utility model, it is noted that for the ordinary skill people of the art
Member for, on the premise of the utility model technical principle is not departed from, some improvements and modifications can also be made, these improve and
Retouching also should be regarded as the scope of protection of the utility model.