Workpiece, defect detection recognition method in charging tray
Technical field
The present invention relates to technical field of vision detection, the workpiece, defect detection recognition method in a kind of charging tray is referred in particular to.
Background technique
The characteristics of Machine Vision Detection is the flexibility and the degree of automation for improving production.It is not suitable for manual work some
Dangerous work environment or artificial vision be difficult to the occasion met the requirements, machine in normal service vision substitutes artificial vision;Exist simultaneously
In high-volume industrial processes, manually visual inspection product quality low efficiency and precision is not high, with Machine Vision Detection side
Method can greatly improve the degree of automation of production efficiency and production.And machine vision is easily achieved information integration, is to realize
The basic technology of computer integrated manufacturing system.Vision-based detection is exactly to replace human eye with machine to measure and judge.Vision-based detection is
Refer to that, by machine vision product, image-pickup device is divided to CMOS and two kinds of CCD, will be ingested target and be converted into picture signal,
It sends dedicated image processing system to, according to the information such as pixel distribution and brightness, color, is transformed into digitized signal;Image
System carries out various operations to these signals to extract clarification of objective, and then the equipment at scene is controlled according to the result of differentiation
Movement.It is the valuable mechanism for producing, assembling or pack.It is in detection defect and prevents from faulty goods to be dispensed into disappearing
There is immeasurable value in terms of the function of the person of expense.
As above situation, vision-based detection has huge market value, most crucial in vision-based detection system not to be
Hardware device but algorithm steps, and algorithm steps can be because of testing result requirement, product shape, operating environment situation and design
The appearance of the factors such as the technical capability of personnel or group is multifarious, if core algorithm step design shortcoming, affects a whole set of view
The operational efficiency and running quality for feeling detection device, and in the algorithm steps to multiple workpiece in charging tray, big portion in the market
Divide the use cost of technical solution high, while algorithm steps also join by the complex conventional change for being unfavorable for those skilled in the art
The operations such as number setting.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of workpiece by entire charging tray to identify in batches, guarantees that identification is quasi-
The requirement that hardware device is reduced while exactness reduces manufacture production cost, and algorithm steps are simply easy to the charging tray of operation
In workpiece, defect detection recognition method.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme: the workpiece, defect in a kind of charging tray detects
Recognition methods includes the following steps, step 1: carrying out Image Acquisition to the workpiece on charging tray;
Step 2: the image of acquisition is subjected to binary conversion treatment;
Step 3: spot detection algorithm being carried out to the image after binary conversion treatment, identifies the defect of each workpiece in charging tray;
Step 4: the result of identification judgement is converted into the output of readable data information.
Preferably, charging tray area is divided into 2 to 8 blocks in the step 1, an image is acquired to each block,
Contain 10 to 40 workpiece in each block.
Preferably, charging tray area is divided into 8 blocks in the step 1, an image is acquired to each block, it is each
Contain 25 workpiece in block.
Preferably, the fixed-focus mirror of 16 to 35 millimeters of the industrial camera collocation of 300 to 6,000,000 pixels is used in the step 1
Head carries out Image Acquisition, and wherein the vertical spacing distance between tight shot and workpiece is 300 to 480 millimeters.
Preferably, the tight shot of 25 millimeters of industrial camera collocation in the step 1 using 5,000,000 pixels carries out image
Acquisition, wherein the vertical spacing distance between tight shot and workpiece is 369 millimeters.
Preferably, in the step 1 using coaxial light source auxiliary complete Image Acquisition, wherein coaxial light source include cabinet,
The folding that shooting duct abuts upper wall in cabinet is extended up through through the shooting duct of cabinet setting, from the interior angle of cabinet side
Penetrate mirror and the luminous lamp group for being installed in cabinet wall.
Preferably, the industrial camera is connected with the second driving device for driving its side-to-side movement.
Preferably, the vertical spacing distance between the outside bottom surface and workpiece of the cabinet is 180 to 300 millimeters.
Preferably, the vertical spacing distance between the outside bottom surface and workpiece of the cabinet is 228 millimeters.
Preferably, the lateral wall of the cabinet, which is connected with, adjusts the first of firm arm and the firm arm horizontal movement of driving adjusting
Driving device.
The beneficial effects of the present invention are: the present invention provides the workpiece, defect detection recognition method in a kind of charging tray,
In practical application, multiple electronic workpieces are housed, then charging tray area is divided into 8 blocks, acquires one to each block in charging tray
Secondary image contains 25 workpiece in each block, then carries out at spot detection algorithm to the image of an independent block respectively
Reason, identification of the completion of high-accuracy to workpiece, defect in charging tray, charging tray, which need to only be moved to camera site, can be automatically performed material
The block of disk divides and carries out Image Acquisition to the block of each division, and the shooting station progress without being repeatedly moved to different is more
Secondary shooting, the arrangement for reducing hardware device reduce manufacturing cost, and the algorithm steps of the technical program are also more simple, reduce operation
Time improves production efficiency.
Detailed description of the invention
Fig. 1 is the Facad structure cut-away illustration of coaxial light source in the present invention.
Fig. 2 is coaxial light source in the present invention, the schematic perspective view for adjusting firm arm and first driving device.
Fig. 3 is the positive structure schematic of industrial camera, tight shot and the second driving device in the present invention.
Fig. 4 is the detection contrast schematic diagram of one of block after 8 block of charging tray in the present invention.
Specific embodiment
For the ease of the understanding of those skilled in the art, below with reference to embodiment, the present invention is further illustrated, real
The content that the mode of applying refers to not is limitation of the invention.
As shown in Figures 1 to 4, the workpiece, defect detection recognition method in a kind of charging tray, includes the following steps, step 1: right
Workpiece 2 on charging tray 1 carries out Image Acquisition, and 1 area of charging tray is divided into 8 blocks, an image is acquired to each block, often
Contain 25 workpiece 2 in one block, carries out image using the tight shot 4 of 25 millimeters of the collocation of industrial camera 3 of 5,000,000 pixels and adopt
Collection, wherein the vertical spacing distance between tight shot 4 and workpiece 2 is 369 millimeters, and industrial camera 3, which is connected with, drives its left and right
Second driving device 6 of movement assists completing Image Acquisition using coaxial light source 5, and wherein coaxial light source 5 includes cabinet 51, passes through
It wears the shooting duct 52 of the setting of cabinet 51, extended up through from the interior angle of 51 side of cabinet in the abutting cabinet 51 of shooting duct 52
The refracting telescope 53 of upper wall and the luminous lamp group 54 for being installed in 51 inner wall of cabinet, it is perpendicular between the outside bottom surface and workpiece 2 of cabinet 51
Straight spacing distance is 228 millimeters, and the lateral wall of cabinet 51 is connected with the firm arm 55 of adjusting and driving adjusts the horizontal fortune of firm arm 55
Dynamic first driving device 56;
Step 2: the image of acquisition is subjected to binary conversion treatment;
Step 3: spot detection algorithm being carried out to the image after binary conversion treatment, identifies the defect of each workpiece 2 in charging tray 1;
Step 4: the result of identification judgement is converted into the output of readable data information.
Workpiece, defect detection recognition method in the charging tray of the present embodiment is equipped with multiple electricity in practical applications in charging tray 1
Sub- workpiece 2, then 1 area of charging tray is divided into 8 blocks, and an image is acquired to each block, contains 25 in each block
Then workpiece 2 carries out spot detection algorithm process to the image of an independent block respectively, the completion of high-accuracy is to charging tray 1
The identification of middle 2 defect of workpiece, 1 need of charging tray, which are moved to camera site, can be automatically performed the block division of charging tray 1 and to each
The block of division carries out Image Acquisition, and the shooting station without being repeatedly moved to different is repeatedly shot, and reduces hardware device
Arrangement reduce manufacturing cost, the algorithm steps of the technical program are also more simple, reduce operation time and improve production efficiency.
In addition, being used for description purposes only if any term " first ", " second ", it is not understood to indicate or imply relatively heavy
The property wanted or the quantity for implicitly indicating technical characteristic." first " is defined as a result, " second " feature can be expressed or implicit include
One or more this feature, in the present description, " several " are meant that two or more, unless otherwise clearly having
The restriction of body.
In the present invention, except as otherwise clear stipulaties and restriction, should make if any term " assembling ", " connected ", " connection " term
Broad sense goes to understand, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It is also possible to mechanical connect
It connects;It can be directly connected, be also possible to be connected by intermediary, can be and be connected inside two elements.For ability
For the those of ordinary skill of domain, the concrete meaning of above-mentioned term in the present invention can be understood as the case may be.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.