Machine vision-based method for conducting color quantization of colored bottle cap image

A color quantification and machine vision technology, applied in instruments, measuring devices, scientific instruments, etc., can solve problems such as the reduction of detection accuracy and stability

Inactive Publication Date: 2017-04-19
SHANGHAI UNIV
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Existing automatic inspection systems based on machine vision are all based on grayscale images of bottle caps. With more and more patterns on bottle caps, the detection accuracy and stability of detection systems based solely on grayscale images have decreased.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Machine vision-based method for conducting color quantization of colored bottle cap image
  • Machine vision-based method for conducting color quantization of colored bottle cap image
  • Machine vision-based method for conducting color quantization of colored bottle cap image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The specific embodiments of the present invention will be further described below in conjunction with the drawings.

[0025] Such as figure 1 As shown, a method for quantifying the color of a color bottle cap image based on machine vision includes the following steps:

[0026] Step 1. Collect a color image of a bottle cap;

[0027] Step 2. Determine the number of colors K that needs to be quantified according to the displayed color image and actual detection needs; generally, the K value is greater than 2 and less than 30;

[0028] Step 3. According to the selected color number K, establish K data structures (including but not limited to LIST structure) for storing pixel color information;

[0029] Step 4. Randomly select K colors as the initial color cluster center;

[0030] Step 5. Traverse all the pixels in the image. According to the principle of the shortest Euclidean distance between the color of the pixel and the color of the cluster center, classify the colors of all pixe...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a machine vision-based method for conducting the color quantization of a colored bottle cap image. The method comprises the steps of (1) collecting the image of a colored bottle cap; (2) according to the type of the bottle cap, selecting the number K of colors required for the image after being processed; (3) according to the selected number K of colors, subjecting the collected image of the colored bottle cap to color clustering quantization; (4) according to a judgment condition for ending the clustering, judging whether the clustering is completed or not, and obtaining K color types after the completion of the clustering (clustering results are different for different kinds of bottle caps); (5) for the images of the colored bottle cap obtained later, assigning colors obtained during the previous clustering step to a new image according to the principle of shortest Euclidean distance. The method is applied to the pretreatment process for the defect detection of bottle caps. Based on the method, the basic color features of processed color images are retained, and the influence of light sources, lens and other environmental factors on the imaging quality is reduced.

Description

Technical field [0001] The invention relates to a method for quantifying the color of a color bottle cap image based on machine vision. Background technique [0002] In industrial automated production lines, especially in the production of metal bottle caps, due to trademark printing, cutting, stamping and other processes, the surface of the cap is prone to defects and needs to be tested. Existing automatic inspection systems based on machine vision are all based on the gray-scale image of bottle caps. As the patterns of bottle caps become more and more, the detection accuracy and stability of the detection system based solely on gray-scale images are reduced. . A pre-processing method is needed to process color bottle cap images. Summary of the invention [0003] The technical problem to be solved by the present invention is to overcome the shortcomings of the existing bottle cap defect detection system, which only detects the gray image of the bottle cap without detecting the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G01N21/88
CPCG01N21/8851G01N2021/8887
Inventor 费敏锐戚谢鑫薛志文王海宽鲁璐
Owner SHANGHAI UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products