[go: up one dir, main page]

CN114894716A - Portable ginned cotton ginning quality grading detection device and detection method - Google Patents

Portable ginned cotton ginning quality grading detection device and detection method Download PDF

Info

Publication number
CN114894716A
CN114894716A CN202210642907.2A CN202210642907A CN114894716A CN 114894716 A CN114894716 A CN 114894716A CN 202210642907 A CN202210642907 A CN 202210642907A CN 114894716 A CN114894716 A CN 114894716A
Authority
CN
China
Prior art keywords
cotton
image
transmitting
light
quality
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.)
Granted
Application number
CN202210642907.2A
Other languages
Chinese (zh)
Other versions
CN114894716B (en
Inventor
张若宇
杨萍
宋方丹
王培宇
李�浩
韩晨阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shihezi University
Original Assignee
Shihezi University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shihezi University filed Critical Shihezi University
Priority to CN202210642907.2A priority Critical patent/CN114894716B/en
Publication of CN114894716A publication Critical patent/CN114894716A/en
Application granted granted Critical
Publication of CN114894716B publication Critical patent/CN114894716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • G01N21/03Cuvette constructions
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/24765Rule-based classification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration using histogram techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/54Extraction of image or video features relating to texture
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8854Grading and classifying of flaws
    • G01N2021/8858Flaw counting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30242Counting objects in image
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Biochemistry (AREA)
  • Pathology (AREA)
  • Analytical Chemistry (AREA)
  • Chemical & Material Sciences (AREA)
  • Multimedia (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Signal Processing (AREA)
  • Treatment Of Fiber Materials (AREA)

Abstract

本发明涉及皮棉轧工质量检测技术领域,尤其涉及一种便携式皮棉轧工质量分级检测装置及方法。检测装置包括检测对象皮棉;设置有箱体、把手、CCD相机、方形光源、双光轴滚珠丝杆直线导轨滑台、透光压棉板、可抽拉式透光抽屉、伺服电机、电脑等;检测方法的实施步骤包括:利用上述检测装置对不同轧工质量等级的皮棉图像进行采集;图像预处理;对棉层表面的疵点种类以及疵点数目进行识别和计数;获取棉层表面纹理特征;用机器学习的方法建立皮棉轧工质量分级判别模型。检测装置为便携式,体积小、操作简单、检测效果好;该方法能够完成皮棉轧工质量等级的有效判别,可提高轧工质量检测准确率,减少劳动强度。

Figure 202210642907

The invention relates to the technical field of lint gin quality detection, in particular to a portable lint gin quality classification detection device and method. The detection device includes the detection object lint; it is equipped with a box, a handle, a CCD camera, a square light source, a double optical axis ball screw linear guide slide, a light-transmitting cotton pressing board, a pull-out light-transmitting drawer, a servo motor, a computer, etc. The implementation steps of the detection method include: using the above-mentioned detection device to collect lint images of different ginning quality grades; image preprocessing; identifying and counting the types of defects on the surface of the cotton layer and the number of defects; obtaining the surface texture features of the cotton layer; The machine learning method is used to establish a lint ginner quality classification discriminant model. The detection device is portable, small in size, simple in operation and good in detection effect; the method can complete the effective discrimination of the quality grade of the lint ginner, improve the accuracy of the quality inspection of the ginner, and reduce labor intensity.

Figure 202210642907

Description

Portable ginned cotton ginning quality grading detection device and detection method
Technical Field
The invention relates to the technical field of ginned cotton ginning quality detection, in particular to a portable ginned cotton ginning quality grading detection device and a detection method.
Background
The quality inspection of cotton is an important link for ensuring the quality of cotton, and the quality inspection comprises color grade, rolling quality, length, micronaire value, foreign fiber content, breaking ratio strength and length uniformity inspection. The ginning quality is an important index of the cotton quality, and the quality of the ginning quality directly affects the quality of the ginned cotton and the quality of the resultant yarn, and has great influence on the textile use value. The implementation of GB1103.1-2012 takes the rolling quality as an important quality index independently, gives relevant regulations to the rolling quality, and divides the rolling quality into good grade, medium grade and poor grade according to the roughness of the appearance form of the ginned cotton and the types and the number of the defects contained in the ginned cotton after the seed cotton is processed. Indicated as P1, P2, and P3, respectively, the physical standards of gin quality are the basis for assessing the quality of cotton ginning. The rolling quality object standard is the bottom line standard of each grade.
Currently, sensory inspection is still adopted for evaluating the quality of a rolling mill. During inspection, cotton inspection personnel hold the cotton sample by hand, so that the surface density of the cotton sample is similar to that of the current-year standard cotton sample, check the disorder degree of sample fibers, the number and the properties of defects and the like, and compare the disorder degree, the number and the properties with the physical standard, thereby determining the quality grade of a rolling mill. However, as a quality assessment method, there is a certain uncertainty in the sensory test alone. After the cotton inspection personnel work for a long time in the actual inspection process, the judgment capability can be weakened gradually, error identification is easy to generate, so that errors are generated in classification of the rolling quality, and in addition, the labor force is very large when the sensory inspection is carried out manually, so that the realization of classification inspection instrumentation of the rolling quality is very necessary.
Aiming at the problem of research of the existing ginning quality detection device and method, a portable image acquisition device is designed, and a ginning quality grading detection method based on machine vision is provided, so that the labor intensity of cotton detection personnel can be reduced, various unstable factors in the detection process are avoided, the accurate grading of the ginning quality grade of cotton is realized, and the economic benefit of enterprises is increased.
Disclosure of Invention
One of the purposes of the invention is to provide a portable ginned cotton ginning quality grading detection device, which is portable, small in volume, simple in operation and good in detection effect; another object of the present invention is to provide a method for inspecting cotton ginning quality grade by using machine vision technology and image processing method based on the portable ginning quality grade inspection device of claim 1. The method can effectively judge the quality grade of the cotton rolling mill, has important reference significance for realizing the quality grading instrumentization of the cotton rolling mill, can improve the detection accuracy of the quality of the rolling mill, and reduces the labor intensity.
The technical scheme of the invention is realized as follows:
a portable ginned cotton ginning quality grading detection device, the detection device structure mainly includes: detect box, detection case chamber door, the top of going up in the box and bottom are equipped with CCD camera and square light source respectively, still are equipped with the cotton board of translucent pressure, but pull formula printing opacity drawer, two optical axis ball screw linear guide slip tables, servo motor in the box, the structure of two optical axis ball screw linear guide slip tables contains: the device comprises an optical shaft and a ball screw, wherein the light-transmitting cotton pressing plate is fixedly connected with a box body through a cotton pressing plate connecting piece, a drawable light-transmitting drawer is connected to a double-optical-shaft ball screw linear guide rail sliding table through the optical shaft and the ball screw, the drawable light-transmitting drawer is positioned under the light-transmitting cotton pressing plate, and the drawable light-transmitting drawer is controlled by a servo motor to move up and down, so that the height of the drawable light-transmitting drawer is adjusted, and the pressure between a cotton sample and the light-transmitting cotton pressing plate is adjusted; placing a cotton sample to be detected in the drawable light-transmitting drawer, wherein a group of CCD cameras is over against the light-transmitting cotton pressing plate and is used for collecting the front image of the cotton sample; the other group of CCD cameras are opposite to the drawable light-transmitting drawer and are used for collecting the back images of the cotton samples; the two groups of CCD cameras are connected with a computer;
the computer is used for image processing and image data processing analysis of the collected cotton sample image and establishing a classification discrimination model, so that accurate discrimination of ginned cotton rolling quality is realized.
Preferably, the detection box body is provided with a handle, and the door of the detection box is provided with a sampling port.
Specifically, the method comprises the following steps:
a portable ginned cotton ginning quality grading detection device (hereinafter referred to as device for short):
a portable ginned cotton rolling quality grading detection device mainly comprises: the device comprises a sampling port 1, a detection box door 2, a handle 3, CCD cameras 4 and 14, square light sources 5 and 15, double-optical-axis ball screw linear guide rail sliding tables, optical axes 6 and 8, a ball screw 7, a cotton pressing plate connecting piece 9, a light-transmitting cotton pressing plate 10, a cotton sample 11, a drawable light-transmitting drawer 12, a servo motor 13 and a computer 16;
the position connection relationship is as follows:
a light-transmitting cotton pressing plate 10, a drawable light-transmitting drawer 12, optical axes 6 and 8, a ball screw 7, a cotton pressing plate connecting piece 9 and a cotton sample 11 are arranged in the detection box; the light-transmitting cotton pressing plate 10 is fixed on two side walls of the detection box; the drawable light-transmitting drawer 12 is connected to a double-optical-axis ball screw linear guide rail sliding table through the optical axes 6 and 8 and the ball screw 7, is positioned right below the light-transmitting cotton pressing plate 10, and realizes height adjustment and cotton pressing force adjustment by controlling the vertical movement of the drawer; the double-optical-axis ball screw linear guide rail sliding table is fixed on the rear wall of the detection box; the cotton sample 11 to be tested is placed in a drawable light-transmissive drawer 12.
The CCD cameras 4 and 14 are respectively arranged at the centers of the square light sources 5 and 15; the CCD camera 4 is opposite to the light-transmitting cotton pressing plate 10 and is used for collecting the front image of the cotton sample 11; the CCD camera 14 is opposite to the drawable light-transmitting drawer 12 and is used for collecting the back side image of the cotton sample 11; the two CCD cameras 4 and 14 are connected to a computer 16.
The square light sources 5 and 15 are distributed on the upper wall and the lower wall of the detection box and uniformly irradiate the cotton sample 11 to be detected.
The portable ginned cotton ginning quality grading detection device is characterized in that two CCD cameras 4 and 14 which are symmetrical to each other are adopted to carry out double-sided image acquisition on a cotton sample 11 during image acquisition, so that more characteristic information can be acquired in the detection process, and the judgment accuracy is improved.
The portable ginned cotton ginning quality grading detection device is characterized in that a double-optical-axis ball screw linear guide rail sliding table is selected, cotton pressing action is achieved through up-and-down movement of a ball screw 7, and meanwhile cotton pressing automation is achieved through driving of a servo motor 13.
The portable ginned cotton ginning quality grading detection device is characterized in that a drawable light-transmitting drawer 12 is designed, and the bottom of the drawer is transparent glass so as to realize image acquisition. Meanwhile, in order to avoid external interference in the detection process, the detection box door 2 is closed in the working process, and the sampling is realized by the drawable light-transmitting drawer 12 through the sampling port 1.
Secondly, a portable ginned cotton ginning quality grading detection method (hereinafter referred to as method) mainly completes the following work in the invention:
a. collecting clear lint images;
b: carrying out image preprocessing on the collected lint image;
c: acquiring the variety and the number of the defects on the surface of the cotton layer;
d: acquiring texture characteristics of the surface of the cotton layer;
e: establishing a classification discrimination model according to the acquired varieties and the number of the defects and the texture characteristics;
f: carrying out visual display of the detection result and storing the result;
the method comprises the following specific steps: a detection method based on the portable ginned cotton ginning quality grading detection device mainly comprises the following steps:
step 1: collecting clear lint images:
preparing a plurality of cotton samples with certain quality rolling mill quality grades evaluated as good, medium and poor and numbering in sequence; opening a detection box door of the detection device, sequentially placing the weighed cotton samples on the drawable light-transmitting drawer according to the serial numbers, closing the detection box door, opening two groups of square light sources, then controlling a servo motor to start working, pushing the drawable light-transmitting drawer to move upwards to a proper position, compressing the cotton samples by using a light-transmitting cotton pressing plate, after compressing to an optimal state, controlling two groups of CCD cameras by using a computer to collect front and back images of the cotton samples, and storing the images for subsequent image processing; after the image acquisition is finished, controlling a servo motor to enable the drawable light-transmitting drawer to return to the original position, and sequentially changing the next cotton sample to continue image acquisition;
step 2: carrying out image preprocessing on the collected ginned cotton image:
a. correspondingly cutting the collected lint cotton image, removing the interference caused by light reflection of a light source, and enabling the sizes of the final pictures to be consistent;
b. carrying out image enhancement on the lint image by using a multi-scale homomorphic filtering enhancement algorithm, improving the image quality and increasing the contrast of defects and the lint;
and step 3: acquiring the types and the number of the defects on the surface of the cotton layer:
the defect types are classified into defect types and stiff sheet types according to the difference of defects in the aspects of shapes and colors, wherein the defect types comprise broken seeds, sterile seeds, soft seed skins and fiber-bearing seed scraps, the stiff sheet types are independently used as one type, and the adopted method comprises the following steps:
a. for the defect class, extracting a B channel in an RGB color space by using the image subjected to multi-scale homomorphic filtering enhancement for feature recognition, then performing threshold-based image segmentation processing on the obtained B channel image, and determining an optimal threshold value through an image histogram after ginned cotton enhancement; counting the number of the defects by using a method for marking a connected domain after the division;
b. for the stiff films, extracting a Y channel, a Cb channel and a Cr channel of a YCbCr color space by using an original image, identifying the characteristics of the stiff films by adopting a method of subtracting the Y channel from the Cb channel, carrying out image segmentation on defects of the stiff films by using a threshold segmentation method, carrying out open operation processing on segmented images, eliminating edge burrs, avoiding target misrecognition caused by uneven edges, filling holes in a detection object by using closed operation processing, reducing detection errors caused by cotton fiber shielding in the images, and then counting the number of the stiff films by using a method of marking a communicated region;
and 4, step 4: acquiring texture characteristics of the surface of the cotton layer:
according to the showing mode of the definition, surface smoothness, fluffiness and uniformity of the cotton layer and the fiber entanglement degree characteristic of the cotton layer on the image, extracting the texture characteristics of the surface of the cotton layer by adopting a gray level co-occurrence matrix method in a statistical method, specifically, reading the image, and taking the obtained energy, entropy, inertia moment and mean value and standard deviation of correlation as final texture characteristics by adopting the gray level co-occurrence matrix method;
and 5: establishing a classification discrimination model according to the acquired varieties and the number of the defects and the texture characteristics:
establishing a ginned cotton ginning quality grading discrimination model by using a support vector machine method in a machine learning algorithm; the obtained ginned cotton texture characteristics and the number of the defects are used as input quantity, the ginned cotton rolling quality grade is used as output quantity, and the ginned cotton rolling quality is accurately judged;
step 6: carrying out visual display and storage on the detection result:
and visually displaying the detection result of the ginned cotton ginning quality grading by using a GUI (graphical user interface) designed by computer software and storing the result.
Firstly, preparing a plurality of cotton samples with certain quality rolling quality grades evaluated as good, medium and poor and numbering in sequence. The method comprises the steps of opening a door 2 of the detection box, sequentially placing weighed cotton samples 11 on a drawable light-transmitting drawer 12 according to numbers, closing the door 2 of the detection box, opening square light sources 5 and 15, then controlling a servo motor 13 to start working, pushing the drawable light-transmitting drawer 12 to move upwards to a proper position, compressing the cotton samples 11 by using a light-transmitting cotton pressing plate 10, controlling CCD cameras 4 and 14 to collect front and back images of the cotton samples by using a computer 16 after the cotton samples are compressed to an optimal state, and storing the images. The computer carries out a series of processing on the collected images through image processing software, and then extracts and counts texture characteristics and defect types and numbers on the surface of the cotton layer by using a programmed program. Then, a lint ginning quality grading model is established by a support vector machine method, the lint appearance and shape characteristics and the number of defects are used as input quantity, and the lint ginning quality grade is used as output quantity, so that the lint ginning quality is accurately judged. And finally, visually displaying the predicted result by using a GUI (graphical user interface) designed by matlab and storing the result.
The rolling quality in the invention is defined as: after the seed cotton is processed, the rough appearance of the ginned cotton, the variety and the number of the defects, and the quality of the ginning work are divided into three grades of good, medium and poor. Respectively denoted by P1, P2, P3.
The portable ginned cotton ginning quality grading detection device is mainly used for image acquisition.
The detection method provided by the invention is based on the portable ginned cotton ginning quality grading detection device, and the grade of ginned cotton ginning quality is obtained through the proposed method steps. The basic idea of the method is that (1) the variety and the number of the defects are obtained; (2) texture features of the surface of the lint. The two are combined to judge the rolling quality.
Compared with the prior art, the method has the following different points:
1) the methods of extracting the kinds and the number of the defects are different.
The detection method of the invention is characterized by comprising the following steps of:
a. for the defects (broken seeds, sterile seeds, soft seed skin and seed scraps with fibers), extracting a B channel in an RGB (red, green and blue) color space by using the image subjected to multi-scale homomorphic filtering enhancement for feature recognition, then performing image segmentation processing based on a threshold value on the obtained B channel image, and finally determining the optimal threshold value by observing an image histogram after ginned cotton enhancement and repeatedly trying. And after division, counting the number of the defects by using a method for marking a connected domain. b. And for the stubborn films, extracting a Y channel, a Cb channel and a Cr channel of a YCbCr color space by using an original image, and identifying stubborn film characteristics by adopting a method of subtracting the Y channel from the Cb channel through comparison. The method for determining the optimal threshold value is used for carrying out image segmentation on the stiff sheet defects, opening operation processing is carried out on the segmented images, edge burrs are eliminated, target error identification caused by uneven edges is avoided, the closed operation processing is used for filling the inner cavity of the detected object, detection errors caused by cotton fiber shielding in the images are reduced, and then the number of the stiff sheets is counted by the method for marking the communicated area.
2) The method for judging the quality grade of rolling work is different.
The detection method of the invention establishes a ginned cotton ginning quality grading discrimination model by utilizing a Support Vector Machine (SVM) method in a machine learning algorithm. Then, the obtained appearance morphological characteristics and the number of the defects of the ginned cotton are used as input quantity, the ginned cotton ginning quality grade is used as output quantity, and the ginned cotton ginning quality is accurately judged.
Compared with the prior art, the invention utilizes the machine vision technology and the image processing method to carry out grading inspection on the ginned cotton ginning quality in order to solve the problem that the ginned cotton ginning quality index depends on sensory grading of cotton inspection personnel in the cotton quality inspection process. The method can effectively judge the quality grade of the cotton ginning, has important reference significance for realizing the quality grading instrumentization of the ginned cotton ginning, and can improve the accuracy rate of the ginning quality detection and reduce the labor intensity. The detection device has the advantages of small volume, simple operation and good detection effect.
Drawings
FIG. 1 is a schematic structural view of a cotton gin quality grading detection device according to the present invention;
FIG. 2 is a flow chart of a cotton gin quality grading detection method according to the present invention;
shown in FIG. 1: 1. the device comprises a sampling port, 2. a box door of a detection box, 3. a handle, 4. a CCD camera I, 5. a square light source I, 6. an optical axis I, 7. a roller screw, 8. an optical axis II, 9. a cotton pressing plate connecting piece, 10. a light-transmitting cotton pressing plate, 11. a cotton sample, 12. a drawable light-transmitting drawer, 13. a servo motor, 14. a CCD camera II, 15. a square light source II, 16. a computer.
Detailed Description
The following describes the embodiments of the present invention with reference to the drawings;
example 1:
as shown in figure 1, a portable ginned cotton mill quality grading detection device, the detection object is cotton sample 11, detection device is provided with sample connection 1, detection case chamber door 2, handle 3, CCD camera 4 and 14, square light source 5 and 15, two optical axis ball screw linear guide slip tables, including optical axis 6 and 8, ball screw 7, pressure cotton board connecting piece 9, printing opacity pressure cotton board 10, cotton sample 11, but pull formula printing opacity drawer 12, servo motor 13, computer 16.
A light-transmitting cotton pressing plate 10, a drawable light-transmitting drawer 12, optical axes 6 and 8, a ball screw 7, a cotton pressing plate connecting piece 9 and a cotton sample 11 are arranged in the detection box; the light-transmitting cotton pressing plate 10 is fixed on two side walls of the detection box; the drawable light-transmitting drawer 12 is connected to a double-optical-axis ball screw linear guide rail sliding table through the optical axes 6 and 8 and the ball screw 7, is positioned right below the light-transmitting cotton pressing plate 10, and realizes height adjustment and cotton pressing force adjustment by controlling the vertical movement of the drawer; the double-optical-axis ball screw linear guide rail sliding table is fixed on the rear wall of the detection box; the cotton sample 11 to be tested is placed in a drawable light-transmissive drawer 12.
The CCD cameras 4 and 14 are respectively arranged at the centers of the square light sources 5 and 15; the CCD camera I4 is opposite to the light-transmitting cotton pressing plate 10 and is used for collecting a front image of a cotton sample 11; the CCD camera II 14 is opposite to the drawable light-transmitting drawer 12 and is used for collecting the back side image of the cotton sample 11; the two CCD cameras are connected to a computer 16.
The square light sources 5 and 15 are distributed on the upper wall and the lower wall of the detection box and uniformly irradiate the cotton sample 11 to be detected.
The working principle is as follows:
preparing a plurality of cotton samples with certain quality rolling mill quality grades evaluated as good, medium and poor and numbering in sequence. The method comprises the steps of opening a door 2 of the detection box, sequentially placing weighed cotton samples 11 on a drawable light-transmitting drawer 12 according to numbers, closing the door 2 of the detection box, opening square light sources 5 and 15, then controlling a servo motor 13 to start working, pushing the drawable light-transmitting drawer 12 to move upwards to a proper position, compressing the cotton samples 11 by using a light-transmitting cotton pressing plate 10, after the cotton samples are compressed to an optimal state, controlling CCD cameras 4 and 14 to collect front and back images of the cotton samples by using a computer 16, storing the images and processing subsequent images. And after the image acquisition is finished, controlling the servo motor 13 to enable the drawable light-transmitting drawer 12 to return to the original position, and sequentially changing the next cotton sample to continue the image acquisition.
Example 2:
this embodiment differs from embodiment 1 in that: the detection box body is provided with a handle 3, and the door 2 of the detection box is provided with a sampling port 1.
Example 3:
as shown in fig. 2, a method for detecting a portable ginned cotton ginning quality grading detection device based on the rights comprises the following main working processes:
a. collecting clear lint images;
b: carrying out image preprocessing on the collected lint image;
c: acquiring the variety and the number of the defects on the surface of the cotton layer;
d: acquiring texture characteristics of the surface of the cotton layer;
e: establishing a classification discrimination model according to the acquired varieties and the number of the defects and the texture characteristics;
f: performing visual display of the detection result and storing the result;
more specifically, the detection method of the portable ginned cotton ginning quality grading detection device mainly comprises the following steps:
step 1: collecting clear lint images;
preparing a plurality of cotton samples with certain quality rolling mill quality grades evaluated as good, medium and poor and numbering in sequence. The portable ginned cotton ginning quality grading detection device is used for image acquisition. Opening a detection box door of the detection device, sequentially placing the weighed cotton samples on the drawable light-transmitting drawer according to the serial numbers, closing the detection box door, opening two groups of square light sources, then controlling a servo motor to start working, pushing the drawable light-transmitting drawer to move upwards to a proper position, compressing the cotton samples by using a light-transmitting cotton pressing plate, after compressing to an optimal state, controlling two groups of CCD cameras by using a computer to collect front and back images of the cotton samples, and storing the images for subsequent image processing; after the image acquisition is finished, controlling a servo motor to enable the drawable light-transmitting drawer to return to the original position, and sequentially changing the next cotton sample to continue image acquisition;
step 2: carrying out image preprocessing on the collected lint image;
a. and correspondingly cutting the collected lint cotton image, removing the interference caused by the reflection of a light source and the like, and enabling the sizes of the final pictures to be consistent.
b. And the image enhancement is carried out on the lint image by utilizing a multi-scale homomorphic filtering enhancement algorithm, so that the image quality is improved, and the contrast of defects and the lint is increased.
The MSR calculation formula is:
Figure BDA0003682863410000081
the number of scale parameters N in the formula (1)
And step 3: acquiring the variety and the number of the defects on the surface of the cotton layer;
the defect types are classified into defect types and stiff sheet types according to the difference of defects in the aspects of shapes and colors, wherein the defect types comprise broken seeds, sterile seeds, soft seed skins and fiber-bearing seed scraps, the stiff sheet types are independently used as one type, and the adopted method comprises the following steps:
a. and for the defect class, extracting a B channel in an RGB color space by using the image subjected to multi-scale homomorphic filtering enhancement for feature recognition, and then performing image segmentation processing based on a threshold value on the obtained B channel image, wherein the optimal threshold value is finally determined by observing an image histogram after ginned cotton enhancement and repeatedly trying. And after division, counting the number of the defects by using a method for marking a connected domain.
b. And for the stubborn films, extracting a Y channel, a Cb channel and a Cr channel of the YCbCr color space by using the original image, and identifying the stubborn film characteristics by adopting a method of subtracting the Y channel from the Cb channel. The method comprises the steps of carrying out image segmentation on the stiff piece defects by using a threshold segmentation method, carrying out opening operation processing on the segmented images, eliminating edge burrs, avoiding target error identification caused by uneven edges, filling cavities in a detection object by using closing operation processing, reducing detection errors caused by cotton fiber shielding in the images, and then counting the number of the stiff pieces by using the method for marking the communicated regions.
And 4, step 4: acquiring texture characteristics of the surface of the cotton layer;
and extracting texture features of the surface of the cotton layer by adopting a gray level co-occurrence matrix method in a statistical method. By reading the image, the obtained energy, entropy, moment of inertia, and mean and standard deviation of correlation are used as final texture features.
The above-mentioned correlation formula for solving texture parameters such as energy, entropy, moment of inertia, correlation, etc. is as follows:
Figure BDA0003682863410000091
Figure BDA0003682863410000092
Figure BDA0003682863410000093
Figure BDA0003682863410000094
in the above formula, i, j represents the element gray level; dx and Dy represent the amount of positional deviation; d is a generation step length; theta is the direction of generation
And 5: establishing a classification discrimination model according to the acquired varieties, the number and the texture characteristics of the defects;
a classification and discrimination model of the ginned cotton ginning quality is established by utilizing a support vector machine method in a machine learning algorithm, the appearance morphological characteristics and the number of defects of the ginned cotton are used as input quantities, the ginned cotton ginning quality grade is used as an output quantity, and the ginned cotton ginning quality is accurately discriminated.
Step 6: carrying out visual display and storage on the detection result;
and visually displaying the detection result of the ginned cotton ginning quality grading by using a GUI interface designed by MATLAB software and storing the result.

Claims (3)

1. A portable ginned cotton ginning quality grading detection device is characterized in that the detection device mainly comprises: detect box, detection case chamber door, the top of going up in the box and bottom are equipped with CCD camera and square light source respectively, still are equipped with the cotton board of translucent pressure, but pull formula printing opacity drawer, two optical axis ball screw linear guide slip tables, servo motor in the box, the structure of two optical axis ball screw linear guide slip tables contains: the device comprises an optical shaft and a ball screw, wherein the light-transmitting cotton pressing plate is fixedly connected with a box body through a cotton pressing plate connecting piece, a drawable light-transmitting drawer is connected to a double-optical-shaft ball screw linear guide rail sliding table through the optical shaft and the ball screw, the drawable light-transmitting drawer is positioned under the light-transmitting cotton pressing plate, and the drawable light-transmitting drawer is controlled by a servo motor to move up and down, so that the height of the drawable light-transmitting drawer is adjusted, and the pressure between a cotton sample and the light-transmitting cotton pressing plate is adjusted; placing a cotton sample to be detected in the drawable light-transmitting drawer, wherein a group of CCD cameras is over against the light-transmitting cotton pressing plate and is used for collecting the front image of the cotton sample; the other group of CCD cameras are right opposite to the drawable light-transmitting drawer and are used for collecting the back side images of the cotton samples; the two groups of CCD cameras are connected with a computer;
the computer is used for image processing and image data processing analysis of the collected cotton sample image and establishing a classification discrimination model, so that accurate discrimination of ginned cotton rolling quality is realized.
2. The portable ginned cotton ginning quality grading detection device as in claim 1, characterized in that the detection box body is provided with a handle, and the door of the detection box body is provided with a sampling port.
3. The detection method of the portable ginned cotton ginning quality grading detection device based on the claim 1 is characterized by mainly comprising the following steps:
step 1: collecting clear lint images:
preparing a plurality of cotton samples with certain quality rolling mill quality grades evaluated as good, medium and poor and numbering in sequence; opening a detection box door of the detection device, sequentially placing the weighed cotton samples on the drawable light-transmitting drawer according to the serial numbers, closing the detection box door, opening two groups of square light sources, then controlling a servo motor to start working, pushing the drawable light-transmitting drawer to move upwards to a proper position, compressing the cotton samples by using a light-transmitting cotton pressing plate, after compressing to an optimal state, controlling two groups of CCD cameras by using a computer to collect front and back images of the cotton samples, and storing the images for subsequent image processing; after the image acquisition is finished, controlling a servo motor to enable the drawable light-transmitting drawer to return to the original position, and sequentially changing the next cotton sample to continue image acquisition;
step 2: carrying out image preprocessing on the collected ginned cotton image:
a. correspondingly cutting the collected lint cotton image, removing the interference caused by light reflection of a light source, and enabling the sizes of the final pictures to be consistent;
b. carrying out image enhancement on the lint image by using a multi-scale homomorphic filtering enhancement algorithm, improving the image quality and increasing the contrast of defects and the lint;
and step 3: obtaining the variety and the number of defects on the surface of the cotton layer:
the defect types are classified into defect types and stiff sheet types according to the difference of defects in the aspects of shapes and colors, wherein the defect types comprise broken seeds, sterile seeds, soft seed skins and fiber-bearing seed scraps, the stiff sheet types are independently used as one type, and the adopted method comprises the following steps:
a. for the defect class, extracting a B channel in an RGB color space by using the image subjected to multi-scale homomorphic filtering enhancement for feature recognition, then performing threshold-based image segmentation processing on the obtained B channel image, and determining an optimal threshold value through an image histogram after ginned cotton enhancement; counting the number of the defects by using a method for marking a connected domain after the division;
b. for the stiff films, extracting a Y channel, a Cb channel and a Cr channel of a YCbCr color space by using an original image, identifying the characteristics of the stiff films by adopting a method of subtracting the Y channel from the Cb channel, carrying out image segmentation on defects of the stiff films by using a threshold segmentation method, carrying out open operation processing on segmented images, eliminating edge burrs, avoiding target misrecognition caused by uneven edges, filling holes in a detection object by using closed operation processing, reducing detection errors caused by cotton fiber shielding in the images, and then counting the number of the stiff films by using a method of marking a communicated region;
and 4, step 4: acquiring texture characteristics of the surface of the cotton layer:
according to the showing mode of the definition, surface smoothness, fluffiness and uniformity of the cotton layer and the fiber entanglement degree characteristic of the cotton layer on the image, extracting the texture characteristics of the surface of the cotton layer by adopting a gray level co-occurrence matrix method in a statistical method, specifically, reading the image, and taking the obtained energy, entropy, inertia moment and mean value and standard deviation of correlation as final texture characteristics by adopting the gray level co-occurrence matrix method;
and 5: establishing a classification discrimination model according to the acquired varieties and the number of the defects and the texture characteristics:
establishing a ginned cotton ginning quality grading discrimination model by using a support vector machine method in a machine learning algorithm; the obtained ginned cotton texture characteristics and the number of the defects are used as input quantity, the ginned cotton rolling quality grade is used as output quantity, and the ginned cotton rolling quality is accurately judged;
step 6: carrying out visual display and storage on the detection result:
and visually displaying the detection result of the ginned cotton ginning quality grading by using a GUI (graphical user interface) designed by computer software and storing the result.
CN202210642907.2A 2022-06-08 2022-06-08 Portable lint ginning quality grading detection device and detection method Active CN114894716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210642907.2A CN114894716B (en) 2022-06-08 2022-06-08 Portable lint ginning quality grading detection device and detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210642907.2A CN114894716B (en) 2022-06-08 2022-06-08 Portable lint ginning quality grading detection device and detection method

Publications (2)

Publication Number Publication Date
CN114894716A true CN114894716A (en) 2022-08-12
CN114894716B CN114894716B (en) 2025-05-30

Family

ID=82729170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210642907.2A Active CN114894716B (en) 2022-06-08 2022-06-08 Portable lint ginning quality grading detection device and detection method

Country Status (1)

Country Link
CN (1) CN114894716B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117522823A (en) * 2023-11-14 2024-02-06 安徽财经大学 Rapid detection device and method for foreign fibers in machine-picked seed cotton

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103698341A (en) * 2013-12-31 2014-04-02 中华全国供销合作总社郑州棉麻工程技术设计研究所 System for detecting cotton rolling quality and method for detecting cotton rolling quality based on image
CN103927544A (en) * 2014-04-30 2014-07-16 山东农业大学 Machine vision grading method for ginned cotton rolling quality
CN204422432U (en) * 2015-01-13 2015-06-24 河南财政税务高等专科学校 Cotton defect detection system
WO2016199573A1 (en) * 2015-06-08 2016-12-15 ソニーセミコンダクタソリューションズ株式会社 Image processing device, image processing method, program, and image capture device
CN114460017A (en) * 2021-12-24 2022-05-10 石河子大学 Quick detecting system of unginned cotton quality
CN114486768A (en) * 2021-12-24 2022-05-13 石河子大学 Seed cotton color grade detection device for seed cotton purchasing link and grading method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103698341A (en) * 2013-12-31 2014-04-02 中华全国供销合作总社郑州棉麻工程技术设计研究所 System for detecting cotton rolling quality and method for detecting cotton rolling quality based on image
CN103927544A (en) * 2014-04-30 2014-07-16 山东农业大学 Machine vision grading method for ginned cotton rolling quality
CN204422432U (en) * 2015-01-13 2015-06-24 河南财政税务高等专科学校 Cotton defect detection system
WO2016199573A1 (en) * 2015-06-08 2016-12-15 ソニーセミコンダクタソリューションズ株式会社 Image processing device, image processing method, program, and image capture device
CN114460017A (en) * 2021-12-24 2022-05-10 石河子大学 Quick detecting system of unginned cotton quality
CN114486768A (en) * 2021-12-24 2022-05-13 石河子大学 Seed cotton color grade detection device for seed cotton purchasing link and grading method thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DUCKETT K 等: "Color grading of cotton Part I: Spectral and color image analysis", TEXTILE RESEARCH JOURNAL, vol. 69, no. 11, 30 November 1999 (1999-11-30), pages 876 - 886 *
杨萍: "皮棉轧工质量等级视觉检测装置的研究与设计", 中国优秀硕士学位论文全文数据库 工程科技Ⅰ辑, no. 03, 15 March 2024 (2024-03-15), pages 11 - 62 *
王玲 等: "基于ARM和DSP的嵌入式收获前籽棉分级系统", 农业机械学报, vol. 42, no. 1, 31 December 2011 (2011-12-31), pages 156 - 161 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117522823A (en) * 2023-11-14 2024-02-06 安徽财经大学 Rapid detection device and method for foreign fibers in machine-picked seed cotton
CN117522823B (en) * 2023-11-14 2024-07-16 安徽财经大学 Device and method for rapid detection of foreign fibers in machine-picked seed cotton

Also Published As

Publication number Publication date
CN114894716B (en) 2025-05-30

Similar Documents

Publication Publication Date Title
CN113989279B (en) Quality inspection method of plastic film based on artificial intelligence and image processing
CN110097034B (en) Intelligent face health degree identification and evaluation method
Martínez et al. Quality inspection of machined metal parts using an image fusion technique
CN101424680B (en) Computer automatic recognition apparatus and method for profile fiber
CN110403232B (en) Cigarette quality detection method based on secondary algorithm
CN101701916B (en) Method for quickly identifying and distinguishing variety of corn
CN101059425A (en) Method and device for identifying different variety green tea based on multiple spectrum image texture analysis
CN103698341B (en) A kind of quality of roll for cotton detection system and quality of roll for cotton image detecting method
CN119290896A (en) A method and system for detecting defects in textile products
CN113667584A (en) Colony contrast collection
CN106952258A (en) A kind of bottle mouth defect detection method based on gradient orientation histogram
CN102221559A (en) Online automatic detection method of fabric defects based on machine vision and device thereof
CN106683099A (en) Product surface defect detection method
CN111445471A (en) Product surface defect detection method and device based on deep learning and machine vision
CN108802052A (en) A kind of detecting system and its detection method about slide fastener defect
CN111652883A (en) Glass surface defect detection method based on deep learning
CN117197055A (en) Ceramic product surface flaw identification system and method
CN118351100A (en) Image definition detection and processing method based on deep learning and gradient analysis
CN115049645A (en) Solar cell panel surface defect detection method
CN110781913A (en) Zipper cloth belt defect detection method
CN114894716A (en) Portable ginned cotton ginning quality grading detection device and detection method
CN119273992A (en) Mobile phone screen glass defect detection method based on improved YOLOv8
CN116772718A (en) An online detection method and system for cigarette laser drilling based on linear array vision
CN112329537A (en) A detection method of feces formed components based on yolov3 algorithm
CN118914185B (en) Meat product freshness detection method based on machine vision

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant