The size detection recognition methods of strip workpieceTechnical field
The present invention relates to technical field of vision detection, refer in particular to a kind of size detection recognition methods of strip workpiece.
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 someDangerous work environment or artificial vision be difficult to the occasion met the requirements, machine in normal service vision substitutes artificial vision;Exist simultaneouslyIn high-volume industrial processes, manually visual inspection product quality low efficiency and precision is not high, with Machine Vision Detection sideMethod can greatly improve the degree of automation of production efficiency and production.And machine vision is easily achieved information integration, is to realizeThe 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 isRefer 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;ImageSystem 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 differentiationMovement.It is the valuable mechanism for producing, assembling or pack.It is in detection defect and prevents from faulty goods to be dispensed into disappearingThere 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 beHardware device but algorithm steps, and algorithm steps can be because of testing result requirement, product shape, operating environment situation and designThe 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 viewThe operational efficiency and running quality for feeling detection device, and in the algorithm steps of magnetic door seal size, most of skill in the marketThe use cost of art scheme is high, while also the complex routine for being unfavorable for those skilled in the art changes parameter etc. to algorithm stepsOperation setting.
Summary of the invention
That the technical problem to be solved in the present invention is to provide a kind of detection recognition speeds is fast, recognition accuracy is high, identification summarizesThe size detection recognition methods for the strip workpiece of multi-group data convenient working personnel being adjusted flexibly in time.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme: a kind of size detection of strip workpieceRecognition methods includes the following steps, step 1: carrying out Image Acquisition to workpiece;
Step 2: line detection algorithm and spot detection algorithm identification positioning workpiece being carried out to the image of acquisition and identification measuresWorkpiece length;
Step 3: the Workpiece length of identification measurement being judged, if the Workpiece length of identification measurement is in preset standard value toleranceQualification is then recorded in range, is recorded if the Workpiece length that identification measures is not in the preset standard value margin of tolerance unqualified;
Step 4: by the total number information of identification measurement workpiece, the total number information for judging qualification number, judging the total of unqualified numberNumber information and corresponding workpiece identification measurement length information are converted to the output of readable data information.
Preferably, readable data information is transmitted to computer in the step 4 and leads into data form.
Preferably, readable data information is transmitted to display in the step 4, display shows recognition detection workpieceSum, total, the unqualified workpiece sum of qualified workpiece and the length value of corresponding each workpiece calibration.
Preferably, readable data information is transmitted to pickup station in the step 4, picking up station will be deemed as not conforming toThe workpiece of lattice is picked up out.
Preferably, the tight shot of 16 to 35 millimeters of the industrial camera collocation of 80 to 2,000,000 pixels is used in the step 1It is shot, carries out the shooting of backlight illumination assistant images using planar light source, multiple images are shot to a workpiece and are then carried outMerging obtains final completion workpiece image, and wherein the horizontal interval distance between planar light source and workpiece is 60 to 180 millimeters,Horizontal interval distance between tight shot and workpiece is 200 to 320 millimeters.
Preferably, the tight shot of 25 millimeters of industrial camera collocation in the step 1 using 1,300,000 pixels is clappedIt takes the photograph, carries out the shooting of backlight illumination assistant images using planar light source, multiple images are shot to a workpiece and then are mergedTo final completion workpiece image, wherein between planar light source and workpiece horizontal interval distance be 100 millimeters, tight shot withHorizontal interval distance between workpiece is 250 millimeters.
Preferably, it is swept in the step 1 using the line that the line of 1024 to 2048 resolution ratio sweeps 30 to 80 millimeters of camera collocationCamera lens is shot, and carries out the shooting of backlight illumination assistant images using planar light source, wherein the water between planar light source and workpieceFlat spacing distance is 120 to 250 millimeters, and it is 300 to 450 millimeters that line, which sweeps the distance of the horizontal interval between camera lens and workpiece,.
Preferably, camera lens is swept using the line that the line of 2048 resolution ratio sweeps 60 millimeters of camera collocation in the step 1 to be clappedIt takes the photograph, carries out the shooting of backlight illumination assistant images using planar light source, wherein the horizontal interval distance between planar light source and workpieceIt is 162 millimeters, it is 332 millimeters that line, which sweeps the distance of the horizontal interval between camera lens and workpiece,.
The beneficial effects of the present invention are: a kind of size detection recognition methods of strip workpiece is provided, is actually being answeredIn, there are two types of Image Acquisition modes for the technical program design, the first is 25 milli of industrial camera collocation using 1,300,000 pixelsThe tight shot of rice is shot, and is carried out the shooting of backlight illumination assistant images using planar light source, is shot multiple to a workpieceThen image merges to obtain final completion workpiece image, the Image Acquisition that this kind of mode is completed needs to carry out image mosaicSynthesis step, according to the increase of splicing picture, detection accuracy can also increase therewith.Second of line using 2048 resolution ratio sweeps phaseThe line of 60 millimeters of machine collocation is swept camera lens and is shot, and planar light source is used to carry out the shooting of backlight illumination assistant images, this kind of modeThe Image Acquisition of progress facilitates detection accuracy also stable.Both the above mode can reach high-accuracy detection can be according to practical needFlexible setting is wanted, the present invention carries out a variety of data acquisitions to the image of acquisition and summarizes, greatly to facilitate subsequent job needs,Summary information, which can transport, simultaneously leads into table to computer and allows the very clear processing situation of operating personnel, convenient for according to circumstances rapidlyThe operation such as processing scheme is modified, operating efficiency is improved.
Detailed description of the invention
Fig. 1 is the positional structure schematic diagram of industrial camera, tight shot, planar light source and workpiece in the present invention.
Fig. 2 is that middle line of the present invention sweeps camera, line sweeps camera lens, the positional structure schematic diagram of planar light source and workpiece.
Fig. 3 is the detection contrast schematic diagram of workpiece 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, realThe content that the mode of applying refers to not is limitation of the invention.
As shown in Figure 1 to Figure 3, a kind of size detection recognition methods of strip workpiece, includes the following steps, step 1: rightWorkpiece 1 carries out Image Acquisition, is shot, is used using the tight shot 4 of 25 millimeters of the collocation of industrial camera 3 of 1,300,000 pixelsPlanar light source 2 carries out the shooting of backlight illumination assistant images, shoots multiple images to a workpiece 1 and then merges to obtain finally1 image of completion workpiece, wherein the horizontal interval distance between planar light source 2 and workpiece 1 is 100 millimeters, tight shot 4 and workHorizontal interval distance between part 1 is 250 millimeters, or is swept arrange in pairs or groups 60 millimeters of the line of camera 5 using the line of 2048 resolution ratio and sweptCamera lens 6 is shot, and the shooting of backlight illumination assistant images is carried out using planar light source 2, wherein between planar light source 2 and workpiece 1Horizontal interval distance be 162 millimeters, line sweeps the distance of the horizontal interval between camera lens 6 and workpiece 1 as 332 millimeters;
Step 2: line detection algorithm and spot detection algorithm identification positioning workpiece 1 being carried out to the image of acquisition and identification measures1 length of workpiece;
Step 3: 1 length of workpiece of identification measurement being judged, if 1 length of workpiece of identification measurement is public in preset standard valueQualification is then recorded in poor range, records and does not conform to if 1 length of workpiece that identification measures is not in the preset standard value margin of toleranceLattice;
Step 4: by the total number information of identification measurement workpiece 1, the total number information for judging qualification number, judging the total of unqualified numberNumber information and the identification measurement length information of corresponding workpiece 1 are converted to the output of readable data information, are transmitted to computer and leadAt data form, be transmitted to display, display show the sum of recognition detection workpiece 1, qualified workpiece 1 it is total, unqualifiedThe length value that 1 sum of workpiece and corresponding each workpiece 1 measure, is transmitted to pickup station, and picking up station will be deemed as not conforming toThe workpiece 1 of lattice is picked up out.
The size detection recognition methods of the strip workpiece of the present embodiment, in practical applications, the technical program design haveTwo kinds of Image Acquisition modes, the first is clapped using the tight shot 4 of 25 millimeters of the collocation of industrial camera 3 of 1,300,000 pixelsIt takes the photograph, carries out the shooting of backlight illumination assistant images using planar light source 2, multiple images are shot to a workpiece 1 and are then mergedFinal 1 image of completion workpiece is obtained, the Image Acquisition that this kind of mode is completed needs to carry out image mosaic synthesis step, according to spellingThe increase of map interlinking piece, detection accuracy can also increase therewith.Second of line using 2048 resolution ratio sweeps camera 5 and arranges in pairs or groups 60 millimetersLine is swept camera lens 6 and is shot, and carries out the shooting of backlight illumination assistant images using planar light source 2, the image that this kind of mode carries out is adoptedCollection facilitates detection accuracy also stable.Both the above mode can reach high-accuracy detection can flexible setting according to actual needs,The present invention carries out a variety of data acquisitions to the image of acquisition and summarizes, and greatly to facilitate subsequent job needs, while summarizing letterBreath, which can transport, leads into table to computer and allows the very clear processing situation of operating personnel, convenient for according to circumstances modifying rapidly plusThe operation such as work scheme, improves operating efficiency.
In addition, being used for description purposes only if any term " first ", " second ", it is not understood to indicate or imply relatively heavyThe property wanted or the quantity for implicitly indicating technical characteristic." first " is defined as a result, " second " feature can be expressed or implicit includeOne or more this feature, in the present description, " several " are meant that two or more, unless otherwise clearly havingThe restriction of body.
In the present invention, except as otherwise clear stipulaties and restriction, should make if any term " assembling ", " connected ", " connection " termBroad 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 connectIt connects;It can be directly connected, be also possible to be connected by intermediary, can be and be connected inside two elements.For abilityFor 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 simultaneouslyLimitations 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 artFor, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the inventionProtect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.