| Detect the color quality in industrial production and agricultural processing industry in the application of more and more widespread, more and more attention. Application of machine vision methods can detect the color quality can ensure objectivity, the unity, but also a good factor in the elimination of outside interference caused by noise, making detection more accurate.In this paper, the machine vision technology as the main means to study the integrated use of image processing, optical, computer knowledge, such as study in order to study tomato, under the conditions of natural light through the regular USB camera images in real-time acquisition of the research, implementation of the tomato Identification of color.This thesis research are the core of the machine vision system software - part of image processing. Good at building a machine vision system on the hardware, application software, LabVIEW virtual instruments and Image Vision development platform, through the programming of the implementation of image acquisition and processing. First of all, through the regular USB camera and software implementation to obtain images of the tomato; then color model RGB color image into HSL color model; then mean filtering method applied to the collection of tomato sauce for color image filtering, elimination of the outside world interference and noise; threshold segmentation followed by the application of the law of the histogram method for tomato saturation image binarization segmentation aim to separate objects and background; Finally immature in accordance with ripe tomatoes and tomato on the hue of the color differences identification and analysis. The experimental results show that the use of machine vision method can separate immature tomato. |