Summary of the invention
The present invention proposes to overcome the shortcoming existed in prior art, its objective is and provides a kind of colored CCD color selector color to judge and separation method.
Technical scheme of the present invention is: a kind of colored CCD color selector color judges and separation method, the method adopt device comprises detection system, the output signal of telecommunication of detection system is connected with the input of image capturing system, image capturing system and between man-machine interface with signal processing system, the signal of telecommunication is connected, the output signal of telecommunication of signal processing system is connected with the input of rejecting executing agency, the material that the sorting of rejecting executing agency is complete enters separated and collected device, and the method comprises the following steps:
(i) start
Can start after rigging up and debugging of the present invention is good;
(II) arranges look according to material and selects parameter
Man-machine interface can be arranged look and select parameter, wherein two colorimetric parameters, but the parameter of two grey parameters and oneself definition, and require different according to sorting material is different with look choosing, operating personnel carry out optimum configurations;
(III) obtains material image information
Select requirement to set up after look selects parameter according to material and look, just can gather the image information of material, just obtain the colouring information of material thus;
(IV) selects parameter to Image Information Processing according to look
R, G, B colouring information that color ccd sensor exports is changed by analog-digital converter, and gathered one by one by FPGA and be stored in memory, then select parameter to calculate by DSP according to the look arranged in step (II), thus realize the process to image information;
(V) and sensitivity parameter multilevel iudge
Select parameter to carry out the sensitivity parameter calculated set by acquired results and operating personnel to compare judgement, obtain a result according to arranging look.
The logical operation of (VI) judged result
The judged result of parameters is carried out logical operation;
(VII) result exports
By DSP, final result is outputted to rejecting executing agency;
(VIII) is rejected and is separated
When analyzed material is through rejecting executing agency, according to its judged result, rejecting executing agency and carrying out action, achieving and once check judgement, repeatedly different materials is separated rapidly;
(IV) terminates
After above-mentioned each program completes, namely terminate.
Described image capturing system mainly comprises analog-digital converter and FPGA9, in FPGA, also comprise memory.
Described rejecting executing agency comprises executing agency, executing agency and executing agency.
Separated and collected device comprises ground floor material collection mechanism, second layer material collection mechanism, third layer material collection mechanism and leftover materials collecting mechanism, realizes collecting or unified collection the independence of different material.
The invention has the beneficial effects as follows:
The scope of the light that the present invention detects is at whole visible regime, adopt the analog-digital converter of adjustable multiplication factor, obtain standard signal, correction of color standard, multiple colourity mode is adopted to judge material color fast, determine that material retains or rejects, adopt multiple grey parameter to judge, the function that monochromatic color selector judges can be realized; Different colourity, gray scale judge to combine by free logic, make the color of differentiation have diversity; Sensor obtains the data of material from the both direction of front side and rear side, and the result that data judge can free logic combination, adaptive coloration select transparent material and other need before and after the material of combined color choosing; Once judge multiple separation, look selects process effective fast.
Detailed description of the invention
Below, in conjunction with the accompanying drawings and embodiments colored CCD color selector color judgement of the present invention and separation method are described in detail:
As shown in Figure 1, 2, a kind of colored CCD color selector color judges and separation method, the method adopt device comprises detection system 1, the output signal of telecommunication of detection system 1 is connected with the input of image capturing system 2, image capturing system 2 and between man-machine interface 4 with signal processing system 3, the signal of telecommunication is connected, the output signal of telecommunication of signal processing system 3 is connected with the input of rejecting executing agency 5, the material that the sorting of rejecting executing agency 5 is complete enters separated and collected device 6.
Wherein, detection system 1 comprises color ccd sensor 7, and it can the red component of perceived wavelength within the scope of 635nm-700nm in the scope of visible ray, the green component of wavelength within the scope of 500nm-565nm and the blue component within the scope of 380nm-480nm.In order to improve precision and the flexibility of look choosing, place many cover color ccd sensors 7 in former and later two directions of material flow, thus the colouring information of perception material all sidedly.The model of color ccd sensor 7 is TCD2563.
Image capturing system 2 mainly comprises analog-digital converter 8 and FPGA9, memory 10 is also comprised in FPGA9, analog-digital converter 8 converts the analog signal that color ccd sensor 7 collects to data signal, comprises the amplifier of variable amplification in analog-digital converter 8, realizes the amplification of signal.This analog-digital converter 8 only can carry out amplification and the conversion of an analog quantity (as red component), also can amplify red, green, blue three analog quantitys and change.In the use procedure of reality, utilize the red, green, blue light source of standard to irradiate the material of standard, carry out picture signal detection by color ccd sensor 7 pairs of standard materials, observe the data signal changed out.By regulating the multiplication factor of amplifier in analog-digital converter 8, obtaining base colors data signal, thus determining the multiplication factor of amplifier.The model of analog-digital converter 8 is VSP2230.
Wherein, FPGA(Field-Programmable Gate Array) 9 Chinese be programmable gate array, it has the features such as able to programme, applying flexible.The material view data that analog-digital converter 8 obtains by FPGA9 gathers one by one, keep in memory 10, correct the difference caused due to the camera lens of color ccd sensor 7 or the inconsistent of sensor, the data after correction are delivered in Digital signal processing system 3 simultaneously.The present invention adopts the model of FPGA9 to be EP4CE40.
Signal processing system 3 couples of FPGA9 transmit the data come and calculate and process.The controling parameters of signal processing system 3 from man-machine interface 4, and sends data to man-machine interface 4, operates to facilitate man-machine interface 4.Result after process is delivered to and is rejected in executing agency 5 by signal processing system 3.Have at least front and back two to overlap signal processing system 3 in an equipment, with the data of two direction sensors before and after material handling, and logical operation is carried out to the result in former and later two directions.In the product of reality, former and later two directions often respectively adopt many cover signal processing systems 3.In order to realize the object of the multiple separation of one-time detection, the present invention exports the result of multiple signal transacting, needing repeatedly to be circulated by material or adopt the mode of multiple stage color selector, promoting the efficiency of look choosing widely before solving in order to material being divided into many heaps.The model of signal processing system 3 is TMS320DM6446.
Man-machine interface 4 can realize human-computer dialogue, and operating personnel select requirement according to look, determines the part needing sorting in material, and arranges look by man-machine interface 4 and select parameter.Material picture signal passes over and shows in man-machine interface 4 by signal processing system 3.User can arrange the material needing to reject and the material needing to retain according to the image of display, and signal processing system 3 is carried out processing according to parameters and the result be disposed is returned to man-machine interface 4.If result is not suitable for requirement, operating personnel can revise parameter and process, until result is satisfied, then select parameter to file suitable look.The model of the man-machine interface 4 of this system is GC4000 array of touch screen.
Reject the executive signal that executing agency 5 comes according to the transmission of the signal processing system 3 of side, front and back, the logical AND before and after carrying out or computing, then control the opening and closing of air valve, the material blowout that release compressed air will need to reject.You Duotao executing agency of the present invention: reject executing agency 5 and comprise ground floor executing agency 13, second layer executing agency 14 and third layer executing agency 15.Vary in size and different material separating requirements according to volume of material, reject executing agency 5 action simultaneously or action respectively, and realize collecting or unified collection the independence of different material by adjustment separated and collected device 6, finally realize the rapid separation of different colours material.
Separated and collected device 6 comprises ground floor material collection mechanism 16, second layer material collection mechanism 17, third layer material collection mechanism 18 and leftover materials collecting mechanism 19, realizes collecting or unified collection the independence of different material.
Color of the present invention judges and separation method, comprises the following steps:
(i) start
Can start (S1) after rigging up and debugging of the present invention is good.
(II) arranges look according to material and selects parameter
Man-machine interface 4 can be arranged five looks and select parameter, wherein two colorimetric parameters, but the parameter of two grey parameters and oneself definition, and require different according to sorting material is different with look choosing, operating personnel carry out optimum configurations.Colorimetric parameter comprises form and aspect, saturation degree, red phase, Huang Xiang, green phase, blue or green phase, Lan Xiang, pinkish red 8 parameters mutually.Grey parameter comprises R, G, B tri-color component value that color ccd sensor 7 directly exports and HSL(Hue form and aspect, Saturation saturation degree, Lightness brightness) the L brightness value in space.Custom parameter refers to and to obtain (S2) by carrying out combinatorial operation to R, G, B tri-color components.
(III) obtains material image information
Select requirement to set up after look selects parameter according to material and look, just can gather the image information of material.When material flow 11 enters in optical detection region through chute, under the irradiation of light source 12, color ccd sensor camera carries out imaging to material flow, material picture to become on color ccd sensor and by R, G, B information of its outputting material picture, just obtains the colouring information (S3) of material thus.
(IV) selects parameter to Image Information Processing according to look
R, G, B colouring information that color ccd sensor 7 exports is changed by analog-digital converter 8, and is gathered one by one by FPGA and be stored in memory 9.Then select parameter to calculate by DSP according to the look arranged in step (II), thus realize the process to image information.
The numerical value of the three primary colours that color ccd sensor exports is respectively R, G, B, and the maximum in their three values is defined as MAX, and minimum of a value is defined as MIN, then the computing formula of form and aspect H is as follows:
Red phase, Huang Xiang, green phase, blue or green phase, blue mutually and the computing formula of pinkish red phase as follows:
Red phase:
Huang Xiang:
Green phase:
Blue or green phase:
Lan Xiang:
Pinkish red phase:
Saturation degree S refers to the bright-coloured degree of color, also claims the purity of color, and various monochromatic light is the most saturated color.Also can be used for differentiating hue value identical, but the material of shade degree varies, its computing formula is as follows:
Grey parameter comprises R, G, B tri-color component value that color ccd sensor directly exports and HSL(Hue form and aspect, Saturation saturation degree, Lightness brightness) the L brightness value in space.The computing formula of L is as follows:
The computational process of this step is selects parameter to Image Information Processing (S4) according to look.
(V) and sensitivity parameter multilevel iudge
Select parameter to carry out the sensitivity parameter calculated set by acquired results and operating personnel to compare judgement according to arranging look, obtain a result (S5).
The logical operation of (VI) judged result
The judged result of parameters is carried out logical operation (S6).
(VII) result exports
By DSP, final result is outputted to rejecting executing agency 5(S7).
(VIII) is rejected and is separated
When analyzed material is through rejecting executing agency, according to its judged result, rejecting executing agency and carrying out action.Material to be selected through each rejecting executing agency, can be divided into 2 ~ 4 regions successively.Through ground floor executing agency compressed air, Part I material is being blown in ground floor material collecting device, through second layer executing agency compressed air, Part II material is being blown in second layer material collecting device, blown in third layer material collecting device by Part III material through third layer executing agency compressed air, the material do not blown out enters into leftover materials collecting mechanism.Can combine and reject the single foreign matter of executing agency's sorting or larger material, and can realize as required collecting or unified collection the independence of different foreign matter, achieve and once check judgement, repeatedly different materials is separated rapidly, improve the operating efficiency (S8) of color selector.
(IV) terminates
After above-mentioned each program completes, namely terminate (S9).
The present invention adopts multiple colourity mode to judge material color fast, and determine that material retains or rejects, adaptive coloration selects the material of combined color choosing before and after transparent material and other needs; Once judge multiple separation, look selects process effective fast.