Can be used for machine vision detection method and system that multiple product detects
Technical field
The present invention relates to the automatic producing technology field, be specifically related to a kind of machine vision detection method and system that multiple product detects that can be used for.
Background technology
At present, the quality inspection of the outward appearance of known bulk article and profile mainly still adopts human eye to carry out mostly, the factor such as work when tired, people can not grow in being in a bad mood, some high temperature or the toxic environment easily easily because the judgement of human eye is difficult for quantification and execution, human eye, cause present Product Visual detection generally judge by accident and false determination ratio higher.
So, mechanical vision inspection technology has obtained fast-developing and has popularized, but, existing mechanical vision inspection technology is functional single, and a kind of machine vision detection device generally can only correspondingly detect independent a kind of specific product, because in the production run, often need a plurality of assemblies of a complete product are carried out vision-based detection, this just so that the needs correspondence disposes multiple vision-based detection machine, not only wastes resource, and has reduced whole detection efficiency.
Summary of the invention
The objective of the invention is to overcome weak point of the prior art, a kind of machine vision detection method that multiple product detects that can be used for is provided.
Another object of the present invention is to provide a kind of Machine Vision Inspecting System that multiple product detects that can be used for.
The objective of the invention is to be achieved through the following technical solutions: can be used for the machine vision detection method that multiple product detects, the corresponding detection configuration parameter of the visual difference feature of pre-stored various normal survey products, various normal survey products, and the vision-based detection instrument of various normal survey products, this method specifically may further comprise the steps:
A. gather the image of product to be measured, image and pre-stored visual difference feature are carried out characteristic matching, find out the normal survey product with this images match, wherein, machine assert that described product to be measured and the normal survey product of finding out are like product;
B. find out the detection configuration parameter corresponding with normal survey product;
C. call the vision-based detection instrument corresponding with the normal survey product of finding out, and load the detection configuration parameter of finding out, then according to the vision-based detection instrument that calls product to be measured is carried out vision-based detection.
In this method, the corresponding detection configuration parameter of described various normal survey products is vision-based detection content and camera parameter setting.Wherein, the vision-based detection content specifically comprise in the having or not of outward appearance, color and principal character of various normal survey products one or more etc.Camera parameter setting specifically comprises one or more in camera resolution, time shutter and the RGB gain etc.
In this method, the vision-based detection instrument of described various normal survey products includes orientation tool, testing tool and analyzes the output instrument.Wherein, orientation tool comprises based on the orientation tool of contour feature with based on the orientation tool of unique point; Testing tool comprises dimensional measurement instrument, bar code recognition instrument, color and gray scale detection instrument, character recognition, Region Matching testing tool and profile defect detection tool; Analyze the output instrument and comprise product hierarchy decision means and I/O control tool; But similar tools parallel running, the operation of inhomogeneity instrument serializable, the vision-based detection flow process is formed by these vision-based detection tool combinations, and the parameter of the array mode of these instruments and concrete instrument is also namely carried out pre-stored as detecting configuration parameter as the vision-based detection content.
The vision-based detection tool detection go out product to be measured whether qualified after, if defective, then controlling automatic reject mechanism should reject by underproof product to be measured, defective at same problem point such as a plurality of products to be measured of continuous appearance, then automatically stops to detect and making man-machine response.
Can be used for the Machine Vision Inspecting System that multiple product detects, comprising:
The normal Product Visual distinguishing characteristics thesaurus of surveying is for the visual difference feature of the various normal survey products that prestore;
Detect the configuration parameter thesaurus, for the corresponding detection configuration parameter of the various normal survey products that prestore;
Vision-based detection instrument thesaurus is for the vision-based detection instrument of the various normal survey products that prestore;
Image acquisition units includes a plurality of cameras that multi-angle is made a video recording;
The product identification unit carries out characteristic matching for the image of the product to be measured that will gather and pre-stored visual difference feature, identifies product to be measured and surveys product for which kind of is normal;
Detection control unit according to the recognition result of product identification unit, is called corresponding vision-based detection instrument, loads the detection configuration parameter to the vision-based detection instrument from detecting the configuration parameter thesaurus, and product to be measured is carried out vision-based detection.
Camera in the described image acquisition units preferably adopts high speed linear array Charge Coupled Device (CCD) imageing sensor (CCD) camera, can analyze the sharpness of interference image and automatically be adjusted to high definition in 1 second and detect.
Native system also is provided with automatic positioning mechanism, according to the orientation tool in the vision-based detection instrument, with product orientation to be measured to normal place.
Native system also is provided with automatic reject mechanism, according to the testing result of vision-based detection instrument in the detection control unit, with the substandard product automatic rejection.
Native system also is provided with human-computer interaction interface, is used for showing the recognition result of product identification unit, and the vision-based detection result of detection control unit output.
The present invention has the following advantages and beneficial effect compared to existing technology:
The present invention is applicable to the multiple product that detects batch production, the use of this system has sufficient dirigibility, be applicable to the manufacturer of various scales, native system can detect large simultaneously on the same production line according to different examination requirementses, little different parts, system can design nearly 10 mm professional camera specials or above automatic detection different station and moving component and with automatic removing device;
But the present invention's automatic intelligent is identified the product style, identified is to control automatic positioning mechanism by program again behind which product, adjusts the camera position that gathers image with this, detects again;
The present invention can come automatic change detection according to the classification of product is different, the detection of taking pictures to the position of appointment of control camera;
Automatic reject mechanism and detent mechanism have conveniently been realized robotization in the rejecting of detection and location and substandard product, need not manually-operated.
Description of drawings
Fig. 1 is the structural representation that can be used for the Machine Vision Inspecting System of multiple product detection;
Fig. 2 is the operational flowchart that can be used for the machine vision detection method of multiple product detection.
Embodiment
The present invention is described in further detail below in conjunction with embodiment and accompanying drawing, but embodiments of the present invention are not limited to this.
Embodiment
As shown in Figure 1, can be used for the Machine Vision Inspecting System that multiple product detects, comprising:
The normal Product Visual distinguishing characteristics thesaurus of surveying is for the visual difference feature of the various normal survey products that prestore;
Detect the configuration parameter thesaurus, for the corresponding detection configuration parameter of the various normal survey products that prestore;
Vision-based detection instrument thesaurus is for the vision-based detection instrument of the various normal survey products that prestore;
Image acquisition units includes a plurality of cameras that multi-angle is made a video recording;
The product identification unit carries out characteristic matching for the image of the product to be measured that will gather and pre-stored visual difference feature, identifies product to be measured and surveys product for which kind of is normal;
Detection control unit according to the recognition result of product identification unit, is called corresponding vision-based detection instrument, loads the detection configuration parameter to the vision-based detection instrument from detecting the configuration parameter thesaurus, and product to be measured is carried out vision-based detection;
Automatic positioning mechanism, according to the orientation tool in the vision-based detection instrument, with product orientation to be measured to normal place;
Automatic reject mechanism is according to the testing result of vision-based detection instrument in the detection control unit, with the substandard product automatic rejection;
Human-computer interaction interface, for the recognition result that shows the product identification unit, and the vision-based detection result of detection control unit output.
Wherein, camera adopts high speed linear array Charge Coupled Device (CCD) imageing sensor (CCD) camera, can analyze the sharpness of interference image and automatically be adjusted to high definition in 1 second and detect.
As shown in Figure 2, can be used for the machine vision detection method that multiple product detects, the corresponding detection configuration parameter of the visual difference feature of pre-stored various normal survey products, various normal survey products, and the vision-based detection instrument of various normal survey products, this method specifically may further comprise the steps:
A. gather the image of product to be measured, image and pre-stored visual difference feature are carried out characteristic matching, find out the normal survey product with this images match, obviously machine assert that described product to be measured and the normal survey product of finding out are like product;
B. find out the detection configuration parameter corresponding with normal survey product;
C. call the vision-based detection instrument corresponding with the normal survey product of finding out, and load the detection configuration parameter of finding out, then according to the vision-based detection instrument that calls product to be measured is carried out vision-based detection.
The corresponding detection configuration parameter of various normal survey products is vision-based detection content and camera parameter setting.Wherein, the vision-based detection content specifically comprise in the having or not of outward appearance, color and principal character of various normal survey products one or more etc.Camera parameter setting specifically comprises one or more in camera resolution, time shutter and the RGB gain etc.
The vision-based detection instrument of various normal survey products includes orientation tool, testing tool and analyzes the output instrument.Wherein, orientation tool comprises based on the orientation tool of contour feature with based on the orientation tool of unique point; Testing tool comprises dimensional measurement instrument, bar code recognition instrument, color and gray scale detection instrument, character recognition, Region Matching testing tool and profile defect detection tool; Analyze the output instrument and comprise product hierarchy decision means and I/O control tool; But similar tools parallel running, the operation of inhomogeneity instrument serializable, the vision-based detection flow process is formed by these vision-based detection tool combinations, and the parameter of the array mode of these instruments and concrete instrument is also namely carried out pre-stored as detecting configuration parameter as the vision-based detection content.
The vision-based detection tool detection go out product to be measured whether qualified after, if defective, then controlling automatic reject mechanism should reject by underproof product to be measured, defective at same problem point such as a plurality of products to be measured of continuous appearance, then automatically stops to detect and making man-machine response.
Above-described embodiment is the better embodiment of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under Spirit Essence of the present invention and the principle, substitutes, combination, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.