Abstract
The existing machine vision systems cannot efficiently detect white contaminants in cotton under the illumination of visible lights, because their color is the same or very close. To solve the problem, this article proposes an imaging method based on line lasers. Under the illumination of a line laser, the white contaminants and cotton showed the differences in the optical characteristic of their surface. Then, according to the features of the intensity of their reflected lights or the distribution of the fluff around their surfaces in the images, an example algorithm for identification of white contaminants from cotton was suggested. The experimental results indicated that, using our method, the mean successful detection rate of the typical white contaminants in cotton was over 87%.
Contaminants, such as polypropylene baler twine, plastic films, packaging materials, ropes, small pieces of cloth and nylon, are almost invariably present in cotton during the cotton picking, storing, drying and transporting. Their presence in textile processing may cause quality problems and thus reduce the end-product’s value, as their physical and chemical properties are different from cotton, even the weight of contaminants in cotton is less than that of one millionth of the cotton. 1
Since the 1990 s, machine vision systems have been used in the textile industry for the removal of contaminants in cotton, according to their color or grey level differences under the illumination of visible lights2–4 in the blow room. At this stage, the cotton has been sufficiently opened and the contaminants can be “seen” on the surface of the cotton tufts.5,6 But so far, the systems cannot efficiently distinguish most of the white contaminants from cotton because they are the same or close in color.7,8 Because the grayscale histograms of these images were of a single peak, most of the suggested algorithms for image processing were too complex to be used on line, or some of them only for a special case of the inspections.9–13 As the result, manual sorting methods of white contaminants are still used in textile processing, which is time-consuming, inefficient and highly costly. 14
To solve the problems, ultraviolet lights were used for the detection of white contaminants,15–17 but a large proportion of the white contaminants is non-fluorescent, which still cannot be sorted out from cotton. Dogan et al. and Pai et al. researched the 2D transmission image acquisition using X-ray for thorough analysis of the contaminants.18,19 However, because of the safety problem and complex image processing, this system based on X-ray still needs further improvement for real-time applications.
In recent years, research on image acquisition based on infrared bands became a hotspot. Church et al. found the difference of the spectrum peaks of cotton and contaminants in infrared bands, and made a suggestion of using the lights in the range of 2250–2400 nm spectrum. 20 Himmelsbach et al. tried to setup a spectral database by ATR/FT-IR analysis to identify the typically classified foreign matters in cotton. 21 Guo et al. and Jia et al. researched the identification of contaminants in lint cotton based on infrared lights and concluded that some of the white contaminants can be identified in infrared bands.22,23 But the speed of spectral analysis is slow and the equipment cost is high. Böhmer et al. developed a camera system based on two channels near infrared camera for detecting some white or transparent foils in raw cotton. 24 Yang et al. presented the best infrared bands for inspecting contaminants. 25 Their research pointed out the possibility of using infrared lights for the detection of white contaminants. However these applications are limited until advanced signal processors and infrared cameras of high speed and high resolution are produced in a large scale.
Recently, the line laser was widely used in the 3D measurement field on account of its advantages of good directionality, high energy, monochromaticity and coherence. Hua et al. found that typical white contaminants, such as nylon belts, acrylic belts, nylon cords, different types of white synthetic fibers and plastic films, and so on, reflected a strong light in a special angle on the cotton surface, which was different from cotton under the illumination of a line laser. 26 The difficulty is that in the machine vision inspection the cotton surface is uneven so that the system cannot exactly capture the reflected light from different angles.
This article proposed a new method for distinguishing typical white contaminants from cotton using line laser imaging. The experiment showed that by acquisition of the images of the microscopic characteristics on the surface of the white contaminants and cotton, most of the white contaminants can be detected.
Laser imaging system
The imaging system of this article is shown in Figure 1.
Imaging system.
Here, a light of line laser was used to “cut” a cotton layer at a certain angle. The upper part of the cutting cross-section of the sample was penetrated and brightened, where the fibers absorbed and reflected a part of light energy, as shown in Figure 2.
Laser cutting cross-section of the sample.
Cotton fibers are slender and curl about 20 um in diameter, up to 45 mm in length. In the natural state, they are loosely wound and wrapped together. The appearance of a cotton mass looks like a cloud or mist. From the microstructure point of view, fluff and free filament fibers are always distributed on the surface of cotton. While, most of white contaminants, such as white plastic mulches, white packing paper and strings, white cloths and hemp ropes, whose surfaces are compact and smooth, in the shape of a strip, sheet or wire with a clear edge, but without any fluff or filaments on the surface.
In the laser cutting cross-section of the samples, the white contaminants and the compact cotton mass are bright and white, shown as a high light block (HLB), and more important, around the cotton, there are always lots of high light sparks (HLS) which come from the cotton fluff and free filaments, but nearly nothing around the white contaminants, as shown in Figure 3. According to our statistical analysis, the white contaminants can be distinguished from cotton by calculation of the HLB and HLS.
Contaminants with cotton in a laser cutting cross-section.
The example images of different types of white contaminants in cotton are shown in Figures 4(a)–(h), where the images in the left column, in the center column and in the right column were respectively captured under the illumination of white LED, white LED plus line laser, and line laser only.
Sample images of cotton with contaminants under illumination of LED, LED + laser or only laser. (a) White paper, (b) white plastic cardboard, (c) white plastic cord, (d) polyethylene foamed sheet, (e) semitransparent plastic mulch, (f) white feather, (g) white nylon cord, (h) semitransparent polypropylene bag.
Example algorithm for image processing
The flow chart of an algorithm for image processing is shown in Figure 5.
Flow chart of an algorithm for image processing.
An image acquired under the laser illumination can be divided into two parts: One part is loose cotton with the background in lower pixel values; and another in higher pixel values, as shown in Figure 6(a).
(a) Original image, (b) histogram, (c) binary image, (d) HLB image, (e) dilated HLB area, (f) HLS in dilated HLB area.
Firstly, the loose cotton with the background is easily removed by employing a simple thresholding method, as the histograms of the grayscale images are of double peaks, as shown in Figure 6(b). Theoretically speaking, any value at the valley bottom can be taken for the binarization. In the experiment the thresholding value for all the images was taken at 180. The binary image is shown in Figure 6(c).
Secondly, by the size of a single object (connected component) in the binary image, HLB (compact cotton and contaminants) can be separated from HLS (cotton fluff and free filaments), as shown in Figures 6(d) and (f). In the experiment, from statistical analysis, the minimum size of any HLB was 25 pixels (Tb), and maximum size of any HLS was 3 pixels (Ts).
Next, in order to distinguish contaminants from the compact cotton (both are HLB), a dilation operation
27
was used for each HLB. Mathematically, the dilation of X by B, denoted X ⊕ B, is expressed as:
Then, the density of HLS in the ring region around a HLB was calculated, as shown in Figure 6(f), which was defined as a proportion of the sum of HLS to the perimeter of the dilated HLB in the ring region. If the density of the HLS is higher than the threshold T0, the HLB is for cotton; otherwise, it is for a contaminant. In this experiment, the threshold T0 was 0.086, based on statistical analysis of our sample set.
Experiment results and discussion
The experimental system of this article is shown in Figure 1, above. The images were captured by a Basler A602fc camera, resolution in 640 × 480 pixels. A line laser at 50 mw of power, wavelength 650 nm, was selected as the illumination source. As a test sample, a continuous opening lint layer formed so as to be 50 cm wide and ∼2–3 cm high was put on a conveyor surface. The camera optical axis was perpendicular to the light plane formed by the line laser.
12 types of typical white contaminants, 10 pieces of each type, were selected for the experiment, as shown in Figure 7. In the experiment, 10 images of each sample in different background of cotton were taken. In total, 1200 images for cotton with contaminants, and 1200 images for pure cotton were acquired for the test.
Foreign fiber samples. (1) White paper, (2) white plastic film, (3) semitransparent plastic mulch, (4) white cloth, (5) white density foam plastic, (6) white nylon cord, (7) cotton string, (8) white plastic cord, (9) white plastic cardboard, (10) semitransparent polypropylene bag, (11) polyethylene foamed sheet, (12) white feather.
The algorithm was implemented and validated by MATLAB, using a computer with Intel(R) Core™ i5-2540 M@2.60 GHz CPU and 2 GB RAM operating a Windows 7 system.
Results of detecting contaminants
If A is the number of the successful detected images and D is the number of the total images, the detection rate is calculated as follows:
Basically, there were two error sources in the experiment. One was from the imaging method, by which a few of contaminants, such as a feather or polyethylene foamed sheet, could not be distinguished from cotton because their surfaces are comose or hairy, very similar to cotton; while similarly a few of the cotton masses without fluff on the surface, because the fibers were stuck together, could not be distinguished from the contaminants. The other error source was the algorithm, which could not identify the HLB if a contaminant connected with a compact cotton layer and they formed a single HLB.
Conclusions
The existing imaging methods in machine vision systems cannot efficiently distinguish non-fluorescent white contaminants from cotton because they are the same or close color under the illumination of the visible lights and ultraviolet lights. A laser imaging method for detecting the white contaminants on the surface of cotton is presented in the paper, based on the fact that in the image of the laser cutting section, there are lots of HLSs around the cotton outside layer, which is different from the white contaminants. The experiment of this article indicated that, according to their difference, the mean successful distinguishing rate of the typical white contaminants from cotton was over 87% by the suggested algorithm.
In the experiment, the detectable minimum size of a contaminant was 25 pixels, about 1.4 mm2, and the movement speed of the imaging system was 18 m/min. For engineering applications, according to the laser imaging method, the imaging speed and accuracy can be improved by more powerful laser and fast cameras, and the detectable minimum size of a contaminant can be changed by employing a different size of HLB in the algorithm, or a more powerful algorithm.
Line lasers are of low cost, small in size and easy to use. Compared with infrared and X-ray systems, the laser imaging system is simple and easily integrated into an existing sorting system.
Next, research work will focus on engineering applications for the method. Different types of line laser at different wavelengths and powers will be used for the image acquisition of white contaminants with different types of cotton in different textile processing stages. And, besides the optimization of the laser imaging method and the algorithm, as we have mentioned before, 28 based on human visual attention, a group of programmable area cameras will be used for the image acquisition and suspicious image location, and then, after the removal of the most redundant image data, a host computer will be used for sorting out contaminants from cotton.
Footnotes
Funding
This work was supported by the National Natural Science Foundation of China (grant number NSFC31371536).
