CN104165696A - Material surface color feature on-line automatic detection method - Google Patents
Material surface color feature on-line automatic detection method Download PDFInfo
- Publication number
- CN104165696A CN104165696A CN201410229900.3A CN201410229900A CN104165696A CN 104165696 A CN104165696 A CN 104165696A CN 201410229900 A CN201410229900 A CN 201410229900A CN 104165696 A CN104165696 A CN 104165696A
- Authority
- CN
- China
- Prior art keywords
- detected
- pixel
- surface color
- original image
- gray
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000000463 material Substances 0.000 title claims abstract description 177
- 238000001514 detection method Methods 0.000 title claims abstract description 39
- 238000012545 processing Methods 0.000 claims abstract description 12
- 238000011156 evaluation Methods 0.000 claims abstract description 11
- 230000001174 ascending effect Effects 0.000 claims description 37
- 239000003086 colorant Substances 0.000 claims description 24
- 230000005484 gravity Effects 0.000 claims description 10
- 230000011218 segmentation Effects 0.000 claims description 10
- 238000000034 method Methods 0.000 abstract description 6
- 238000000926 separation method Methods 0.000 description 7
- 230000002950 deficient Effects 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 6
- 239000012535 impurity Substances 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000018109 developmental process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 2
- 208000003464 asthenopia Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007123 defense Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000001303 quality assessment method Methods 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Landscapes
- Image Analysis (AREA)
- Spectrometry And Color Measurement (AREA)
Abstract
The invention relates to a material surface color feature on-line automatic detection method, and belongs to the technical field of automatic on-line detection of material surface quality. First a material standard sample is selected according to real-time environment and the material type, by adopting a plurality of high-precision cameras capable of covering the surface of the whole material standard sample to be detected to shoot a plurality of original images of the surface of the material standard sample to be detected, and after image processing, a standard color classification threshold value is obtained; for a material to be detected, by adopting the plurality of high-precision cameras capable of covering the surface of the whole material to be detected to shoot a plurality of original images of the surface of the material to be detected, and after image processing, using the obtained standard color classification threshold value to calculate the surface color features of material to be detected; and the surface color features of the material to be detected are compared with evaluation criteria, and surface color quality grading of the material to be detected is obtained through on-line automatic detection. The detection method has relatively high application value, and the method is simple and easy to implement.
Description
Technical field
The present invention relates to a kind of material surface color characteristic online automatic detection method, belong to the automatic on-line detection technique field of material surface quality.
Background technology
Material is the material base that the mankind depend on for existence and development.20 century 70 people are described as information, material and the energy on three large pillars of civilization in the present age.The new technology revolution of the eighties taking hi-tech group as representative, is listed as new material, infotech and biotechnology again the important symbol of new technology revolution.This is mainly because material and the development of the national economy, national defense construction and people's lives are closely related.Along with the raising of living standards of the people, people also bring up to a unprecedented height for the requirement of material quality.
Due to the complicacy of most of manufacture of materials technological processs, inevitably cause the unevenness of material surface color.Though the performance index of material are many, surface quality index is an of paramount importance class, mainly comprises surface color, surface imperfection and size etc.At present, the online surface quality of material detects and mostly still rests on artificial visually examine's sorting phase, and material is sent to by line conveyor, and workman contrasts it and the material of standard, and then the judged result of basis oneself is carried out classification.Not only labour intensity is large for this detection mode, precision and efficiency of detecting is low, and testing result is subject to the subjective factor impacts such as supervisory personnel's technical quality, experience, human eye resolution characteristic and visual fatigue, lack accuracy and standardization, easily generation is undetected determines inaccurate phenomenon with quality grade, and the detection means of this backwardness cannot meet the requirement of modern material industrial development.Therefore, realize material surface quality automatic on-line detect be necessary.
For manufacture of materials producer, the material of same model generally has several " looks number ", the batching of homochromy material, texture are almost not just the same, just visually difference to some extent of color, and many reasons such as this fluctuation mainly due to technological process and furnace temperature cause.Because this species diversity is very little, this just requires detection system can accurately distinguish this species diversity, then carries out material surface quality grading according to these differences, namely requires hierarchical algorithms should have suitable accuracy.Simultaneously because detection system finally will be applied to the online detection of industry spot, thereby require algorithm to there is real-time.So accuracy and real-time are with regard to the corresponding main target that becomes research.
Study in sum high precision, high-level efficiency and stable material surface color characteristic online automatic detection method and system, to saving labour, alleviate labor strength and improve the consistance of detection efficiency and testing result, there is stronger realistic meaning.
Summary of the invention
The problem and the deficiency that exist for above-mentioned prior art, the invention provides a kind of material surface color characteristic online automatic detection method.This detection method has higher using value, and method is simple, and the present invention is achieved through the following technical solutions.
A kind of material surface color characteristic online automatic detection method, its concrete steps are as follows:
(1) first according to real time environment and material category chosen material master sample, by adopting some the high precision video cameras that can cover whole material standard sample surface to be detected, take the surperficial original image of some parts of material standard samples to be detected, after image is processed, obtain Standard Colors classification thresholds;
(2) material to be detected is passed through to adopt some the high precision video cameras that can cover whole material surface to be detected, take the surperficial original image of some parts of materials to be detected, after image is processed, then the Standard Colors classification thresholds that adopts step (1) to obtain calculates the surface color feature of this material to be detected;
(3) the surface color feature and the evaluation criterion that step (2) are obtained to this material to be detected contrast, and obtain the surface color quality grading of this material online automatic detection to be detected.
The step that obtains Standard Colors classification thresholds in described step (1) is:
1.1 adopt matlab function imread to read in matlab the surperficial original image of the some parts of material standard samples to be detected of having taken successively;
Then 1.2 adopt matlab function rgb2gray that the surperficial original image in each step 1.1 is transformed into gray-scale map by cromogram;
1.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 1.2, arrange pixel according to gray-scale value order from small to large; And continue to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point;
1.4 carry out segmentation according to the number of curve break in the curve map of the ascending order pixel obtaining in main color category and step 1.3 in master sample by the curve map of ascending order pixel, and the hop count of segmentation is corresponding with the main color of material successively;
1.5 curves that step 1.4 is obtained to corresponding hop count adopt matlab function plot to simulate corresponding curve map, and obtain the midpoint tangent line of every section of curve, the tangent line joining of adjacent curve is the threshold value that these two sections of colors are divided, each original image can obtain one group of threshold value, and in group, threshold value is arranged by order from small to large;
1.6 by all surfaces original image through step 1.1 to 1.5 processing and obtain group in threshold value mean value.
The step that described step (2) is calculated the surface color feature of this material to be detected is:
2.1 adopt matlab function imread to read in matlab the surperficial original image of taking some parts of materials to be detected successively;
Then 2.2 adopt matlab function rgb2gray that the surperficial original image in each step 2.1 is transformed into gray-scale map by cromogram;
2.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 2.2, arrange pixel according to gray-scale value order from small to large; And continue to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point;
In the group that the curve map of the 2.4 ascending order pixels that step 2.3 is obtained obtains according to step 1.6, threshold value mean value is divided into the curve of corresponding hop count, obtain this color corresponding pixel and, each pictures can obtain pixel corresponding to one group of main color and;
2.5 by all surfaces original image through step 2.1 to 2.4 processing and obtain surface color respective pixel and the mean value of this material to be detected.
What the surface color quality of this material online automatic detection to be detected of described step (3) was graded is: the surface color respective pixel of this material to be detected of first step 2.5 being tried to achieve and mean value obtain respectively the pixel rate of specific gravity of main color divided by total pixel of this detected materials; Then compare according to pixel rate of specific gravity and this evaluation of material standard to be detected, can obtain the affiliated grade of this kind of material surface color characteristic.
As shown in Figure 1, above-mentioned material surface color feature on-line automatic detection device comprises the computing machine 1, manufacture of materials opertaing device 2, material production equipment 3, material transfer equipment 4 and the high precision camera 5 that connect successively.
The invention has the beneficial effects as follows: (1) solved current material enterprise in the time producing in enormous quantities because manual detection speed is slow, labour intensity is large, environment is severe, subjective factor affects the weak points such as larger to result; (2) material surface color characteristic real-time detection method of the present invention and system are simple, can be accurately, fast, reliably, online test material surface color feature in real time, and promptly provide material surface quality assessment; (3) the present invention is simple has an application prospect more widely, can obtain higher economic return; (4) detection method of the present invention and system can be carried out surface quality detection to the material of most kinds on market, can the maximum constraints of every kind of color be set to each quality grade according to the standard of producer oneself, and can as required, by professional, these restrictions be adjusted online.
Brief description of the drawings
Fig. 1 is the structural representation in the automatic testing process of the present invention;
Fig. 2 is the A material original image example of the embodiment of the present invention 1;
Fig. 3 is that the A material standard sampled pixel point gray-scale value ascending order of the embodiment of the present invention 1 is arranged exemplary plot;
Fig. 4 is the A material standard sampled pixel point first paragraph matching exemplary plot of the embodiment of the present invention 1, and wherein degree of fitting is 0.999;
Fig. 5 is the A material standard sampled pixel point second segment matching exemplary plot of the embodiment of the present invention 1, and wherein degree of fitting is 0.992;
Fig. 6 is the 3rd section of matching exemplary plot of A material standard sampled pixel point of the embodiment of the present invention 1, and wherein degree of fitting is 0.988;
Fig. 7 is the 4th section of matching exemplary plot of A material standard sampled pixel point of the embodiment of the present invention 1, and wherein degree of fitting is 0.991;
Fig. 8 is the gray-scale value threshold value exemplary plot that the A material surface color of the embodiment of the present invention 1 is divided;
Fig. 9 is the B material original image example of the embodiment of the present invention 2;
Figure 10 is that the B material standard sampled pixel point gray-scale value ascending order of the embodiment of the present invention 2 is arranged exemplary plot;
Figure 11 is the B material standard sampled pixel point first paragraph matching exemplary plot of the embodiment of the present invention 2, and wherein degree of fitting is 0.999;
Figure 12 is the B material standard sampled pixel point second segment matching exemplary plot of the embodiment of the present invention 2, and wherein degree of fitting is 0.999;
Figure 13 is the 3rd section of matching exemplary plot of B material standard sampled pixel point of the embodiment of the present invention 2, and wherein degree of fitting is 0.999;
Figure 14 is the 4th section of matching exemplary plot of B material standard sampled pixel point of the embodiment of the present invention 2, and wherein degree of fitting is 0.997;
Figure 15 is the 5th section of matching exemplary plot of B material standard sampled pixel point of the embodiment of the present invention 2, and wherein degree of fitting is 0.998;
Figure 16 is the gray-scale value threshold value exemplary plot that the B material surface color of the embodiment of the present invention 2 is divided.
In figure: 1-computing machine, 2-manufacture of materials opertaing device, 3-material production equipment, 4-material transfer equipment, 5-high precision camera.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
Embodiment 1
As shown in Figure 2, this A material is four kinds of colors: black, Dark grey, light gray and white, and wherein black and white is impurity, its content is more few better.The evaluation criterion of this A material is: (1) is (free from foreign meter) under normal circumstances, and Dark grey proportion is 30%, and light grey proportion is 70%, and acceptable error is (1%, 1%), meets this standard qualified, otherwise defective; (2) if impure, impurity (black and white) content is lower than 1%, and black and white is more qualified lower than 0.5% than weight average, otherwise defective, and while only having above two whiles qualified, this material surface quality is qualified, otherwise defective.
This material surface color characteristic online automatic detection method, its concrete steps are as follows:
(1) first according to real time environment and material category chosen material master sample, by adopting 6 high precision video cameras that can cover whole A material standard sample surface to be detected, take the surperficial original image of 50 parts of A material standard samples to be detected, after image is processed, obtain Standard Colors classification thresholds; The step that obtains Standard Colors classification thresholds is:
1.1 adopt matlab function imread to read in matlab the surperficial original image of 50 parts of material standard samples to be detected having taken successively;
Then 1.2 adopt matlab function rgb2gray that the surperficial original image in each step 1.1 is transformed into gray-scale map by cromogram;
1.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 1.2, arrange pixel according to gray-scale value order from small to large; And continue to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point, as shown in Figure 3;
1.4 carry out segmentation according to the number of curve break in the curve map of the ascending order pixel obtaining in main color category and step 1.3 in master sample by the curve map of ascending order pixel, the hop count of segmentation is corresponding with the main color of material successively, this A material is four kinds of colors: black, Dark grey, light gray and white, curve in Fig. 3 is also to there being 3 turning points, therefore curve is divided into four sections, main segment of curve corresponding to color, black, Dark grey, light gray and pixel value corresponding to white raise successively;
1.5 curves that step 1.4 is obtained to corresponding hop count adopt matlab function plot to simulate corresponding curve map, as shown in Fig. 4 to 7, and obtain the midpoint tangent line of every section of curve, the tangent line joining of adjacent curve is the threshold value that these two sections of colors are divided, each original image can obtain one group of threshold value, and in group, threshold value is arranged by order from small to large;
1.6 by all surfaces original image through step 1.1 to 1.5 processing and obtain group in threshold value mean value, as shown in Figure 8, the threshold value mean value obtaining is [gray-scale value 120; Gray-scale value 225; Gray-scale value 240], the separation of the gray-scale value between black, Dark grey color is 120; The separation of the gray-scale value between Dark grey, light grey color is 225, and the separation of light grey and white gray-scale value is 240;
(2) material to be detected is passed through to adopt 6 high precision video cameras that can cover whole material surface to be detected, take the surperficial original image of 50 parts of materials to be detected, after image is processed, then the Standard Colors classification thresholds that adopts step (1) to obtain calculates the surface color feature of this material to be detected; The step of calculating the surface color feature of this material to be detected is:
2.1 adopt matlab function imread to read in matlab the surperficial original image of taking 50 parts of materials to be detected successively;
Then 2.2 adopt matlab function rgb2gray that the surperficial original image in each step 2.1 is transformed into gray-scale map by cromogram;
2.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 2.2, arrange pixel according to gray-scale value order from small to large; And continue to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point;
In the group that the curve map of the 2.4 ascending order pixels that step step 2.3 is obtained obtains according to step 1.6, threshold value mean value is divided into the curve of corresponding hop count, obtain this color corresponding pixel and, each pictures can obtain pixel corresponding to one group of main color and;
2.5 by all surfaces original image through step 2.1 to 2.4 processing and obtain surface color respective pixel and the mean value of this material to be detected, pixel and mean value that the main color of this material is obtained are as shown in table 1.
(3) the surface color feature and the evaluation criterion that step (2) are obtained to this material to be detected contrast, and obtain the surface color quality grading of this material online automatic detection to be detected; What the surface color quality of this material online automatic detection to be detected was graded is: the surface color respective pixel of this material to be detected of first step 2.5 being tried to achieve and mean value obtain respectively the pixel rate of specific gravity of main color divided by total pixel of this detected materials; The pixel rate of specific gravity of main color is as shown in table 1, and then as shown in Table 1, known black and white impurity proportion is respectively 0.61% and 0.77%, all higher than 0.5%, therefore impurity does not meet quality standard, defective; Even if light grey proportion is 70.83%, in (1%, 1%) error range of 70%, but Dark grey proportion is 27.79%, not in (1%, 1%) error range of 30%, thus do not meet quality standard, defective.To sum up, this piece A material surface is off quality.
Table 1
Embodiment 2
As shown in Figure 9, this B material is five kinds of colors: black, Dark grey, grey, light gray and white, the evaluation criterion of this B material is: black, Dark grey, grey, light gray and white proportion are respectively: 6%, 24%, 6%, 61% and 3%, acceptable error is (0.5%, 0.5%), meet this standard qualified, otherwise defective.
This B material surface color characteristic online automatic detection method, its concrete steps are as follows:
(1) first according to real time environment and material category chosen material master sample, by adopting 6 high precision video cameras that can cover whole material standard sample surface to be detected, take the surperficial original image of some parts of material standard samples to be detected, after image is processed, obtain Standard Colors classification thresholds; The step of Standard Colors classification thresholds is:
1.1 adopt matlab function imread to read in matlab the surperficial original image of 50 parts of material standard samples to be detected having taken successively;
Then 1.2 adopt matlab function rgb2gray that the surperficial original image in each step 1.1 is transformed into gray-scale map by cromogram;
1.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 1.2, arrange pixel according to gray-scale value order from small to large; And continuing to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point, this curve map is as shown in figure 10;
1.4 carry out segmentation according to the number of curve break in the curve map of the ascending order pixel obtaining in main color category and step 1.3 in master sample by the curve map of ascending order pixel, the hop count of segmentation is corresponding with the main color of material successively, this B material is five kinds of colors: black, Dark grey, grey, light gray and white, the curve of this Figure 10 be divided into the first paragraph corresponding with above-mentioned color, second segment, the 3rd section, the 4th section, the 5th section;
1.5 curves that step 1.4 is obtained to corresponding hop count adopt matlab function plot to simulate corresponding curve map, as shown in Figure 11 to 15, and obtain the midpoint tangent line of every section of curve, the tangent line joining of adjacent curve is the threshold value that these two sections of colors are divided, each original image can obtain one group of threshold value, and in group, threshold value is arranged by order from small to large;
1.6 by all surfaces original image through step 1.1 to 1.5 processing and obtain group in threshold value mean value, as shown in figure 16, the threshold value mean value obtaining is [gray-scale value 100; Gray-scale value 130; Gray-scale value 190; Gray-scale value 215], the separation of the gray-scale value between black, Dark grey color is 100; The separation of the gray-scale value between Dark grey, grey color is 130; The separation of the gray-scale value between grey, light grey color is 190, and the separation of light grey and white gray-scale value is 215;
(2) material to be detected is passed through to adopt 6 high precision video cameras that can cover whole material surface to be detected, take the surperficial original image of 50 parts of materials to be detected, after image is processed, then the Standard Colors classification thresholds that adopts step (1) to obtain calculates the surface color feature of this material to be detected; The step of calculating the surface color feature of this material to be detected is:
2.1 adopt matlab function imread to read in matlab the surperficial original image of taking some parts of materials to be detected successively;
Then 2.2 adopt matlab function rgb2gray that the surperficial original image in each step 2.1 is transformed into gray-scale map by cromogram;
2.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 2.2, arrange pixel according to gray-scale value order from small to large; And continue to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point;
In the group that the curve map of the 2.4 ascending order pixels that step 2.3 is obtained obtains according to step 1.6, threshold value mean value is divided into the curve of corresponding hop count, obtain this color corresponding pixel and, each pictures can obtain pixel corresponding to one group of main color and;
2.5 by all surfaces original image through step 2.1 to 2.4 processing and obtain surface color respective pixel and the mean value of this material to be detected, surface color respective pixel and mean value are as shown in table 2.
(3) the surface color feature and the evaluation criterion that step (2) are obtained to this material to be detected contrast, and obtain the surface color quality grading of this material online automatic detection to be detected.
What the surface color quality of this material online automatic detection to be detected was graded is: the surface color respective pixel of this material to be detected of first step 2.5 being tried to achieve and mean value obtain respectively the pixel rate of specific gravity of main color divided by total pixel of this detected materials, and the pixel rate of specific gravity of main color is as shown in table 2; Then be respectively according to black, Dark grey, grey, light gray and white proportion: 6.15%, 23.97%, 5.56%, 61.42% and 2.90%, each color than weight average within the scope of acceptable error, therefore this piece B material surface is up-to-standard.
Table 2
Embodiment 3
This material surface color characteristic online automatic detection method, its concrete steps are as follows:
(1) first according to real time environment and material category chosen material master sample, by adopting 10 high precision video cameras that can cover whole material standard sample surface to be detected, take the surperficial original image of 100 parts of material standard samples to be detected, after image is processed, obtain Standard Colors classification thresholds; The step of Standard Colors classification thresholds is:
1.1 adopt matlab function imread to read in matlab the surperficial original image of 100 parts of material standard samples to be detected having taken successively;
Then 1.2 adopt matlab function rgb2gray that the surperficial original image in each step 1.1 is transformed into gray-scale map by cromogram;
1.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 1.2, arrange pixel according to gray-scale value order from small to large; And continue to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point;
1.4 carry out segmentation according to the number of curve break in the curve map of the ascending order pixel obtaining in main color category and step 1.3 in master sample by the curve map of ascending order pixel, and the hop count of segmentation is corresponding with the main color of material successively;
1.5 curves that step 1.4 is obtained to corresponding hop count adopt matlab function plot to simulate corresponding curve map, and obtain the midpoint tangent line of every section of curve, the tangent line joining of adjacent curve is the threshold value that these two sections of colors are divided, each original image can obtain one group of threshold value, and in group, threshold value is arranged by order from small to large;
1.6 by all surfaces original image through step 1.1 to 1.5 processing and obtain group in threshold value mean value.
(2) material to be detected is passed through to adopt 10 high precision video cameras that can cover whole material surface to be detected, take the surperficial original image of 100 parts of materials to be detected, after image is processed, then the Standard Colors classification thresholds that adopts step (1) to obtain calculates the surface color feature of this material to be detected; The step of calculating the surface color feature of this material to be detected is:
2.1 adopt matlab function imread to read in matlab the surperficial original image of taking 100 parts of materials to be detected successively;
Then 2.2 adopt matlab function rgb2gray that the surperficial original image in each step 2.1 is transformed into gray-scale map by cromogram;
2.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 2.2, arrange pixel according to gray-scale value order from small to large; And continue to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point;
In the group that the curve map of the 2.4 ascending order pixels that step 2.3 is obtained obtains according to step 1.6, threshold value mean value is divided into the curve of corresponding hop count, obtain this color corresponding pixel and, each pictures can obtain pixel corresponding to one group of main color and;
2.5 by all surfaces original image through step 2.1 to 2.4 processing and obtain surface color respective pixel and the mean value of this material to be detected.
(3) the surface color feature and the evaluation criterion that step (2) are obtained to this material to be detected contrast, and obtain the surface color quality grading of this material online automatic detection to be detected.What the surface color quality of this material online automatic detection to be detected was graded is: the surface color respective pixel of this material to be detected of first step 2.5 being tried to achieve and mean value obtain respectively the pixel rate of specific gravity of main color divided by total pixel of this detected materials; Then compare according to pixel rate of specific gravity and this evaluation of material standard to be detected, can obtain the affiliated grade of this kind of material surface color characteristic.
Claims (4)
1. a material surface color characteristic online automatic detection method, is characterized in that concrete steps are as follows:
(1) first according to real time environment and material category chosen material master sample, by adopting some the high precision video cameras that can cover whole material standard sample surface to be detected, take the surperficial original image of some parts of material standard samples to be detected, after image is processed, obtain Standard Colors classification thresholds;
(2) material to be detected is passed through to adopt some the high precision video cameras that can cover whole material surface to be detected, take the surperficial original image of some parts of materials to be detected, after image is processed, then the Standard Colors classification thresholds that adopts step (1) to obtain calculates the surface color feature of this material to be detected;
(3) the surface color feature and the evaluation criterion that step (2) are obtained to this material to be detected contrast, and obtain the surface color quality grading of this material online automatic detection to be detected.
2. material surface color characteristic online automatic detection method according to claim 1, is characterized in that: the step that obtains Standard Colors classification thresholds in described step (1) is:
1.1 adopt matlab function imread to read in matlab the surperficial original image of the some parts of material standard samples to be detected of having taken successively;
Then 1.2 adopt matlab function rgb2gray that the surperficial original image in each step 1.1 is transformed into gray-scale map by cromogram;
1.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 1.2, arrange pixel according to gray-scale value order from small to large; And continue to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point;
1.4 carry out segmentation according to the number of curve break in the curve map of the ascending order pixel obtaining in main color category and step 1.3 in master sample by the curve map of ascending order pixel, and the hop count of segmentation is corresponding with the main color of material successively;
1.5 curves that step 1.4 is obtained to corresponding hop count adopt matlab function plot to simulate corresponding curve map, and obtain the midpoint tangent line of every section of curve, the tangent line joining of adjacent curve is the threshold value that these two sections of colors are divided, each original image can obtain one group of threshold value, and in group, threshold value is arranged by order from small to large;
1.6 by all surfaces original image through step 1.1 to 1.5 processing and obtain group in threshold value mean value.
3. arbitrary material surface color characteristic online automatic detection method according to claim 2, is characterized in that: the step that described step (2) is calculated the surface color feature of this material to be detected is:
2.1 adopt matlab function imread to read in matlab the surperficial original image of taking some parts of materials to be detected successively;
Then 2.2 adopt matlab function rgb2gray that the surperficial original image in each step 2.1 is transformed into gray-scale map by cromogram;
2.3 adopt matlab function sort to arrange by ascending order its pixel each gray-scale map obtaining in step 2.2, arrange pixel according to gray-scale value order from small to large; And continue to adopt matlab function plot to simulate the curve map of the ascending order pixel of each image according to collating sequence point;
In the group that the curve map of the 2.4 ascending order pixels that step 2.3 is obtained obtains according to step 1.6, threshold value mean value is divided into the curve of corresponding hop count, obtain this color corresponding pixel and, each pictures can obtain pixel corresponding to one group of main color and;
2.5 by all surfaces original image through step 2.1 to 2.4 processing and obtain surface color respective pixel and the mean value of this material to be detected.
4. arbitrary material surface color characteristic online automatic detection method according to claim 3, is characterized in that: the surface color quality grading of this material online automatic detection to be detected of described step (3) be: the surface color respective pixel of this material to be detected of first step 2.5 being tried to achieve and mean value obtain respectively the pixel rate of specific gravity of main color divided by total pixel of this detected materials; Then compare according to pixel rate of specific gravity and this evaluation of material standard to be detected, can obtain the affiliated grade of this kind of material surface color characteristic.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410229900.3A CN104165696A (en) | 2014-05-28 | 2014-05-28 | Material surface color feature on-line automatic detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410229900.3A CN104165696A (en) | 2014-05-28 | 2014-05-28 | Material surface color feature on-line automatic detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104165696A true CN104165696A (en) | 2014-11-26 |
Family
ID=51909614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410229900.3A Pending CN104165696A (en) | 2014-05-28 | 2014-05-28 | Material surface color feature on-line automatic detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104165696A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106290177A (en) * | 2016-11-09 | 2017-01-04 | 浙江省农业科学院 | Tinned fruit color on-line determination device |
CN107560567A (en) * | 2017-07-24 | 2018-01-09 | 武汉科技大学 | A kind of material surface quality determining method based on graphical analysis |
CN113129392A (en) * | 2021-05-17 | 2021-07-16 | 杭州万事利丝绸文化股份有限公司 | Color matching method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102095499A (en) * | 2009-12-09 | 2011-06-15 | 程好学 | Method for automatic color separation of ceramic tiles |
CN102359819A (en) * | 2011-09-21 | 2012-02-22 | 温州佳易仪器有限公司 | Color detection method of multi-light-source colorful image and color collection box used by color detection method |
CN102714687A (en) * | 2010-01-19 | 2012-10-03 | 阿克佐诺贝尔国际涂料股份有限公司 | Method and system for determining colour from an image |
CN103198304A (en) * | 2013-04-19 | 2013-07-10 | 吉林大学 | Palm print extraction and identification method |
CN203061453U (en) * | 2012-10-31 | 2013-07-17 | 张伟群 | Vision separation system for color difference of tiles |
-
2014
- 2014-05-28 CN CN201410229900.3A patent/CN104165696A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102095499A (en) * | 2009-12-09 | 2011-06-15 | 程好学 | Method for automatic color separation of ceramic tiles |
CN102714687A (en) * | 2010-01-19 | 2012-10-03 | 阿克佐诺贝尔国际涂料股份有限公司 | Method and system for determining colour from an image |
CN102359819A (en) * | 2011-09-21 | 2012-02-22 | 温州佳易仪器有限公司 | Color detection method of multi-light-source colorful image and color collection box used by color detection method |
CN203061453U (en) * | 2012-10-31 | 2013-07-17 | 张伟群 | Vision separation system for color difference of tiles |
CN103198304A (en) * | 2013-04-19 | 2013-07-10 | 吉林大学 | Palm print extraction and identification method |
Non-Patent Citations (1)
Title |
---|
冯涛 等: "基于三角级数的直方图拟合多目标图像分割", 《中国图象图形学报》, vol. 12, no. 10, 31 October 2007 (2007-10-31) * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106290177A (en) * | 2016-11-09 | 2017-01-04 | 浙江省农业科学院 | Tinned fruit color on-line determination device |
CN107560567A (en) * | 2017-07-24 | 2018-01-09 | 武汉科技大学 | A kind of material surface quality determining method based on graphical analysis |
CN113129392A (en) * | 2021-05-17 | 2021-07-16 | 杭州万事利丝绸文化股份有限公司 | Color matching method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104458755B (en) | Multi-type material surface defect detection method based on machine vision | |
CN106238350B (en) | A kind of solar battery sheet method for separating and system based on machine vision | |
CN105046700B (en) | Fruit surface defect detection method and system based on gamma correction and color classification | |
CN109376792A (en) | Photovoltaic cell open defect classification method based on multichannel residual error neural network | |
CN111402226A (en) | Surface defect detection method based on cascade convolution neural network | |
CN111242123B (en) | Power equipment fault diagnosis method based on infrared image | |
CN104574389A (en) | Battery piece chromatism selection control method based on color machine vision | |
CN108491788A (en) | A kind of intelligent extract method and device for financial statement cell | |
CN102221559A (en) | Online automatic detection method of fabric defects based on machine vision and device thereof | |
CN102621154B (en) | Method and device for automatically detecting cloth defects on line based on improved differential box multi-fractal algorithm | |
CN110403232A (en) | A kind of cigarette quality detection method based on second level algorithm | |
CN115018844A (en) | Plastic film quality evaluation method based on artificial intelligence | |
CN104834939A (en) | Method for automatically detecting cavity detect of porous metal material online | |
CN107133962A (en) | A kind of diamond saw blade extracting thermal crack method based on rim detection | |
CN111724358A (en) | Concrete quality detection method and system based on image and convolutional neural network | |
CN103245666B (en) | Automatic detecting method for appearance defects of storage battery polar plate | |
CN110458809B (en) | Yarn evenness detection method based on sub-pixel edge detection | |
Ke et al. | Detection of wood surface defects based on particle swarm-genetic hybrid algorithm | |
CN104165696A (en) | Material surface color feature on-line automatic detection method | |
CN113808104B (en) | Metal surface defect detection method and system based on blocking | |
CN102735689A (en) | Paper defect detection system based on image pattern recognition | |
CN104778709B (en) | A kind of construction method of the electronic blackboard based on yarn sequence image | |
CN109034172B (en) | Product appearance defect detection method based on fuzzy relaxation constraint multi-core learning | |
Li et al. | Research on glass surface quality inspection based on machine vision | |
CN112699824B (en) | Method and device for detecting constant of electric energy meter and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141126 |