A kind of External Shape quality automatic detection systemTechnical field
The invention belongs to External Shape technical field of quality detection, and in particular to a kind of External Shape quality automatic detectionSystem.
Background technique
Small parts has extensive and important application in modern society is sent out, at present household electrical appliances common in life, numberSmall parts there are many all containing in equal products, or even set in each in large-scale precision lathe, crane etc., miniature parts also playImportant role, therefore, the outer dimension of small parts is quickly and accurately detected in production line, and whether qualification has emphaticallyThe meaning wanted.
Existing technology mostly uses greatly the mode manually inspected by random samples to carry out the profile measurement of small parts, due to not using full inspectionIt surveys, there are parts off quality to enter next process, from the quality for influencing product.How to design one kind can quickly,It is urgently to be solved important that the device for accurately carrying out shape quality inspection to batch small parts becomes those skilled in the art of the present techniqueProblem.
Summary of the invention
It is an object of the invention to overcome above-mentioned the deficiencies in the prior art, a kind of External Shape quality automatic detection is providedSystem.
A kind of External Shape quality automatic detection system, including DSP image procossing detection unit, video camera, featureBe: the signal output end of the video camera is connected with the input terminal of DSP image procossing detection unit, at the DSP imageIt manages detection unit and is equipped with accessory circuit, the accessory circuit is by A/D converter, FLASH chip, memory chip, serial port circuitComposition, the input terminal of the DSP image procossing detection unit are connected by A/D converter with the signal output end of video camera,The front of the video camera is equipped with camera lens, and the camera lens is made of optical filter, lens, and the video camera is mounted on the anti-of light sourceOn firing angle, on the part to be tested, the part to be detected is placed in detection platform, the DSP image for the light source irradiationThe signal output end of processing detection unit is connected by serial port circuit with industrial computer, DSP image procossing detection unitDriving signal output end is connected with the signal input part of executing agency, and the signal output end of the executing agency is connected with light sourceIt connects.
Preferably, the serial port circuit is RS232 serial port circuit.
Preferably, the video camera is CCD camera.
Preferably, the master chip of the DSP image procossing detection unit is VPM642 type single-chip microcontroller.
Compared with prior art, beneficial effects of the present invention:
In the present invention, light source is driven by DSP image procossing detection unit, constantly on the part to be tested by incident light irradiation,Video camera is constantly acquired the image of part, and the image of video camera acquisition is sent into DSP image into after crossing A/D conversion firstProcessing detection unit, DSP image procossing detection unit obtains the image of part after SNR estimation and compensation and image procossing, by partImage and the part image for being stored in memory chip compare, if External Shape to be measured and the part drawing for being stored in memory chipAs shape difference is less than threshold value, then illustrate that the type quality of part is qualified, it is on the contrary then shape is unqualified.Testing result is constantly led toSerial port circuit is crossed to be transmitted in industrial computer.The present invention realizes the detection of accessory appearance quality by way of vision-based detection,Have the advantages that detection efficiency is high, accuracy is good.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of External Shape quality automatic detection system of the present invention.
In figure, 1, detection platform, 2, part to be detected, 3, camera lens, 4, executing agency, 5, video camera, 6, DSP image procossingDetection unit, 7, industrial computer, 8, light source, 9, accessory circuit.
Specific embodiment
Referring to Fig. 1, a kind of External Shape quality automatic detection system, including DSP image procossing detection unit 6, camera shootingMachine 5, it is characterised in that: the signal output end of the video camera 5 is connected with the input terminal of DSP image procossing detection unit 6, instituteDSP image procossing detection unit 6 is stated equipped with accessory circuit 9, the accessory circuit 9 is by A/D converter, FLASH chip, memoryChip, serial port circuit composition, the input terminal of the DSP image procossing detection unit 6 pass through the letter of A/D converter and video camera 5Number output end is connected, and the front of the video camera 5 is equipped with camera lens 3, and the camera lens 3 is made of optical filter, lens, described to take the photographCamera 5 is mounted on the angle of reflection of light source 8, and the light source 8 is radiated on part 2 to be detected, and the part 2 to be detected is placed onIn detection platform 1, the signal output end of the DSP image procossing detection unit 6 is connected by serial port circuit with industrial computer 7It connects, the driving signal output end of DSP image procossing detection unit 6 is connected with the signal input part of executing agency 4, the executionThe signal output end of mechanism 4 is connected with light source 8.
The serial port circuit is RS232 serial port circuit.
The video camera 5 is CCD camera.
The master chip of the DSP image procossing detection unit 6 is VPM642 type single-chip microcontroller.
The working principle of the invention is:
In the present invention, light source 8 is driven by DSP image procossing detection unit 6, and incident light is constantly radiated at part 2 to be detectedOn, video camera 5 is constantly acquired the image of part, and the image that video camera 5 acquires is sent into after crossing A/D conversion firstDSP image procossing detection unit 6, DSP image procossing detection unit 6 obtain the figure of part after SNR estimation and compensation and image procossingPicture by part image and is stored in the part image of memory chip and compares, if External Shape to be measured and being stored in memory coreThe part image shape difference of piece is less than threshold value, then illustrates that the type quality of part is qualified, on the contrary then shape is unqualified.Detection knotFruit constantly passes through serial port circuit and is transmitted in industrial computer 7.The present invention realizes accessory appearance by way of vision-based detectionThe detection of quality has the advantages that detection efficiency is high, accuracy is good.
Technical solution of the present invention is exemplarily described invention above in conjunction with attached drawing, it is clear that present invention specific implementationIt is not subject to the restrictions described above, changes as long as using the various unsubstantialities that the inventive concept and technical scheme of the present invention carry outInto, or it is not improved the conception and technical scheme of invention are directly applied into other occasions, in protection scope of the present inventionWithin.