CN109816658A - A kind of cotton seeds detection system and its detection method based on machine vision - Google Patents

A kind of cotton seeds detection system and its detection method based on machine vision Download PDF

Info

Publication number
CN109816658A
CN109816658A CN201910257413.0A CN201910257413A CN109816658A CN 109816658 A CN109816658 A CN 109816658A CN 201910257413 A CN201910257413 A CN 201910257413A CN 109816658 A CN109816658 A CN 109816658A
Authority
CN
China
Prior art keywords
image
module
cotton seeds
acquisition
machine
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
Application number
CN201910257413.0A
Other languages
Chinese (zh)
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.)
Hebei Agricultural University
Original Assignee
Hebei Agricultural 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 Hebei Agricultural University filed Critical Hebei Agricultural University
Priority to CN201910257413.0A priority Critical patent/CN109816658A/en
Publication of CN109816658A publication Critical patent/CN109816658A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

The invention discloses a kind of cotton seeds detection system and its detection method based on machine vision, including image capture module and upper computer module, image capture module connects upper computer module, upper computer module includes image pre-processing module, image segmentation module and PC machine, image capture module acquires cotton seeds image, it is pre-processed again by image of the image pre-processing module to acquisition, image pre-processing module connects image segmentation module, PC machine treated for receiving preprocessing module and image segmentation module data;Detection accuracy can be improved by carrying out cotton seeds quality testing based on machine vision in the present invention, detection efficiency is high simultaneously, detection cycle can effectively be saved, it is that the clarity of acquisition image can be improved and with adjustable resolution ratio in image capture module progress cotton seeds Image Acquisition by using sweep optical square, color of image is more bright-coloured and edge does not distort, and can provide a stable image basis for detection.

Description

A kind of cotton seeds detection system and its detection method based on machine vision
Technical field
The present invention relates to detection technique field more particularly to a kind of cotton seeds detection system based on machine vision and its Detection method.
Background technique
Currently, Cotton Production kind, based on upland cotton, the new dormancy for harvesting cotton seed is relatively conventional, especially make With chemical regulator and under the conditions of encountering the rainy equal unfavourable weathers of later period low temperature, the suspend mode of cotton seed is deeper, and control cotton seed is repaired recklessly Cotton is that considerable major issue is answered in new harvest cotton seeds quality inspection in the process;Machine vision be with machine replace human eye come A kind of technology for measuring and judging, NI Vision Builder for Automated Inspection are will to be ingested target by machine vision product to be converted into image letter Number, it sends dedicated image processing system to, obtains the shape information of target subject, according to pixel distribution and brightness, color etc. Information, is transformed into digitized signal, and picture system carries out various operations to these signals to extract clarification of objective, obtains differentiation As a result.
Most of existing cotton seeds quality determining method detects cotton seeds by artificial experience, cotton seeds The subjective error of quality measurements is very big, is unfavorable for raising seedling of cotton, the directly economic loss of meeting cotton planting, detects simultaneously Efficiency is very low, and therefore, the present invention proposes a kind of cotton seeds detection system and its detection method based on machine vision, to solve Shortcoming in the prior art.
Summary of the invention
In view of the above-mentioned problems, detection standard can be improved by carrying out cotton seeds quality testing based on machine vision in the present invention True rate, subjective error is small, while detection efficiency is high, can effectively save detection cycle.
The present invention proposes a kind of cotton seeds detection system based on machine vision, including image capture module and host computer Module, described image acquisition module connect upper computer module, and the upper computer module includes image pre-processing module, image segmentation Module and PC machine, described image acquisition module connect image pre-processing module, and the picture acquisition module acquires cotton seeds image, It is pre-processed again by image of the image pre-processing module to acquisition, described image preprocessing module connects image segmentation mould Block, described image divides module to pretreated carrying out image threshold segmentation, then carries out histogram analysis, detects cotton seeds matter Amount, described image preprocessing module connect PC machine with image segmentation module, and the PC machine is for receiving preprocessing module and image Data after dividing resume module, are analyzed, show that cotton seeds quality measurements are exported.
Further improvement lies in that: memory is embedded in the PC machine, the memory connects image capture module, described Memory is flash storage, and the memory in the form of BMP files for storing the cotton of image capture module acquisition Drawing of seeds picture.
Further improvement lies in that: described image acquisition module is the Image Acquisition that Image Acquisition is carried out using sweep optical square Module.
Further improvement lies in that: described image acquisition module further includes supplementary lighting module, and the supplementary lighting module uses axis light Source carries out light filling, eliminates reflective and phenomenon of giving out light.
A kind of cotton seeds detection method based on machine vision, comprising the following steps:
Step 1: Image Acquisition is carried out to cotton seeds to be detected using image capture module, and by the image of acquisition It is transmitted to memory, memory stores image in the form of BMP files, then by image transmitting to preprocessing module;
Step 2: image conversion process, figure are carried out using cotton seeds original image of the image pre-processing module to acquisition As encoding compression processing, image enhancement and restoration disposal and gray proces, pretreatment image is obtained;
Step 3: Threshold segmentation, filtering processing and Mathematical Morphology are carried out to pretreatment image using image segmentation module Processing, and the segmented image that treated obtains is transmitted to PC machine;
Step 4: analyzing segmented image data using PC machine, and differentiation detects that cotton seeds quality results are reported, And result is exported.
Further improvement lies in that: the cotton seeds that image capture module acquires in the step 1 are original to be transmitted to storage It needs to carry out image pixel value Screening Treatment before device, the pixel value of the cotton seeds image of image capture module acquisition be carried out flat Homogenizing, obtains average value, takes pixel value close to the cotton seeds image of average value as original image.
Further improvement lies in that: Fourier transformation, Walsh transformation can be used in the step 2 when image conversion process Or the indirect processing technique of any one in discrete cosine transform changes the array size of original image, reduces original image with this Calculation amount.
Further improvement lies in that: Threshold segmentation carries out image point using adaptive mean shift algorithm in the step 3 It cuts, expansion process first is carried out to the image after segmentation after Threshold segmentation, so that image difference regional connectivity and being carried out centainly to it Error compensation, be finally filtered and Mathematical Morphology processing.
The invention has the benefit that detection standard can be improved by carrying out cotton seeds quality testing based on machine vision True rate, subjective error is small, while detection efficiency is high, can effectively save detection cycle, is image by using sweep optical square Acquisition module, which carries out cotton seeds Image Acquisition, can be improved the clarity of acquisition image and has adjustable resolution ratio, image Color is more bright-coloured and edge does not distort, and can provide a stable image basis for detection, improve Detection accuracy.
Detailed description of the invention
Fig. 1 is present system structural framing schematic diagram.
Specific embodiment
In order to realize invention technological means, reach purpose and effect is easy to understand, below with reference to specific implementation Mode, the present invention is further explained.
Embodiment one
According to Fig. 1, the present embodiment proposes that a kind of cotton seeds detection system based on machine vision, including image are adopted Collect module and upper computer module, described image acquisition module connects upper computer module, and the upper computer module includes that image is located in advance Module, image segmentation module and PC machine are managed, described image acquisition module connects image pre-processing module, described as acquisition module is adopted Collect cotton seeds image, then is pre-processed by image of the image pre-processing module to acquisition, described image preprocessing module Image segmentation module is connected, described image divides module to pretreated carrying out image threshold segmentation, then carries out histogram analysis, examines Cotton seeds quality is surveyed, described image preprocessing module connects PC machine with image segmentation module, and the PC machine is for receiving pre- place Module and image segmentation module are managed treated data, is analyzed, show that cotton seeds quality measurements are exported.
Memory is embedded in the PC machine, the memory connects image capture module, and the memory is deposited for Flash Reservoir, the memory in the form of BMP files for storing the cotton seeds image of image capture module acquisition.The figure As acquisition module is the image capture module for carrying out Image Acquisition using sweep optical square.Described image acquisition module further includes mending Optical module, the supplementary lighting module carry out light filling using coaxial light source, eliminate reflective and phenomenon of giving out light.
A kind of cotton seeds detection method based on machine vision, comprising the following steps:
Step 1: Image Acquisition is carried out to cotton seeds to be detected using image capture module, then carries out image pixel It is worth Screening Treatment, the pixel value of the cotton seeds image of image capture module acquisition is averaged, average value, capture are obtained The cotton seeds image of element value close to average value is transmitted to memory as original image, and by the original image of acquisition, stores Device stores image in the form of BMP files, then by image transmitting to preprocessing module;
Step 2: image conversion process, figure are carried out using cotton seeds original image of the image pre-processing module to acquisition As encoding compression processing, image enhancement and restoration disposal and gray proces, pretreatment image is obtained, when image conversion process can Change the array size of original image using the indirect processing technique of Fourier transformation, original image calculation amount is reduced with this;
Step 3: Threshold segmentation, filtering processing and Mathematical Morphology are carried out to pretreatment image using image segmentation module Processing, and the segmented image that treated obtains is transmitted to PC machine, Threshold segmentation is carried out using adaptive mean shift algorithm Image segmentation first carries out expansion process to the image after segmentation after Threshold segmentation so that image difference regional connectivity and to its into The certain error compensation of row, is finally filtered and Mathematical Morphology is handled;
Step 4: analyzing segmented image data using PC machine, and differentiation detects that cotton seeds quality results are reported, And result is exported.
Embodiment two
According to Fig. 1, the present embodiment proposes that a kind of cotton seeds detection system based on machine vision, including image are adopted Collect module and upper computer module, described image acquisition module connects upper computer module, and the upper computer module includes that image is located in advance Module, image segmentation module and PC machine are managed, described image acquisition module connects image pre-processing module, described as acquisition module is adopted Collect cotton seeds image, then is pre-processed by image of the image pre-processing module to acquisition, described image preprocessing module Image segmentation module is connected, described image divides module to pretreated carrying out image threshold segmentation, then carries out histogram analysis, examines Cotton seeds quality is surveyed, described image preprocessing module connects PC machine with image segmentation module, and the PC machine is for receiving pre- place Module and image segmentation module are managed treated data, is analyzed, show that cotton seeds quality measurements are exported.
Memory is embedded in the PC machine, the memory connects image capture module, and the memory is deposited for Flash Reservoir, the memory in the form of BMP files for storing the cotton seeds image of image capture module acquisition.The figure As acquisition module is the image capture module for carrying out Image Acquisition using sweep optical square.Described image acquisition module further includes mending Optical module, the supplementary lighting module carry out light filling using coaxial light source, eliminate reflective and phenomenon of giving out light.
A kind of cotton seeds detection method based on machine vision, comprising the following steps:
Step 1: Image Acquisition is carried out to cotton seeds to be detected using image capture module, then carries out image pixel It is worth Screening Treatment, the pixel value of the cotton seeds image of image capture module acquisition is averaged, average value, capture are obtained The cotton seeds image of element value close to average value is transmitted to memory as original image, and by the original image of acquisition, stores Device stores image in the form of BMP files, then by image transmitting to preprocessing module;
Step 2: image conversion process, figure are carried out using cotton seeds original image of the image pre-processing module to acquisition As encoding compression processing, image enhancement and restoration disposal and gray proces, pretreatment image is obtained, when image conversion process can Change the array size of original image using the indirect processing technique of Walsh transformation, original image calculation amount is reduced with this;
Step 3: Threshold segmentation, filtering processing and Mathematical Morphology are carried out to pretreatment image using image segmentation module Processing, and the segmented image that treated obtains is transmitted to PC machine, Threshold segmentation is carried out using adaptive mean shift algorithm Image segmentation first carries out expansion process to the image after segmentation after Threshold segmentation so that image difference regional connectivity and to its into The certain error compensation of row, is finally filtered and Mathematical Morphology is handled;
Step 4: analyzing segmented image data using PC machine, and differentiation detects that cotton seeds quality results are reported, And result is exported.
Embodiment three
According to Fig. 1, the present embodiment proposes that a kind of cotton seeds detection system based on machine vision, including image are adopted Collect module and upper computer module, described image acquisition module connects upper computer module, and the upper computer module includes that image is located in advance Module, image segmentation module and PC machine are managed, described image acquisition module connects image pre-processing module, described as acquisition module is adopted Collect cotton seeds image, then is pre-processed by image of the image pre-processing module to acquisition, described image preprocessing module Image segmentation module is connected, described image divides module to pretreated carrying out image threshold segmentation, then carries out histogram analysis, examines Cotton seeds quality is surveyed, described image preprocessing module connects PC machine with image segmentation module, and the PC machine is for receiving pre- place Module and image segmentation module are managed treated data, is analyzed, show that cotton seeds quality measurements are exported.
Memory is embedded in the PC machine, the memory connects image capture module, and the memory is deposited for Flash Reservoir, the memory in the form of BMP files for storing the cotton seeds image of image capture module acquisition.The figure As acquisition module is the image capture module for carrying out Image Acquisition using sweep optical square.Described image acquisition module further includes mending Optical module, the supplementary lighting module carry out light filling using coaxial light source, eliminate reflective and phenomenon of giving out light.
A kind of cotton seeds detection method based on machine vision, comprising the following steps:
Step 1: Image Acquisition is carried out to cotton seeds to be detected using image capture module, then carries out image pixel It is worth Screening Treatment, the pixel value of the cotton seeds image of image capture module acquisition is averaged, average value, capture are obtained The cotton seeds image of element value close to average value is transmitted to memory as original image, and by the original image of acquisition, stores Device stores image in the form of BMP files, then by image transmitting to preprocessing module;
Step 2: image conversion process, figure are carried out using cotton seeds original image of the image pre-processing module to acquisition As encoding compression processing, image enhancement and restoration disposal and gray proces, pretreatment image is obtained, when image conversion process can Change the array size of original image using the indirect processing technique of discrete cosine transform, original image calculation amount is reduced with this;
Step 3: Threshold segmentation, filtering processing and Mathematical Morphology are carried out to pretreatment image using image segmentation module Processing, and the segmented image that treated obtains is transmitted to PC machine, Threshold segmentation is carried out using adaptive mean shift algorithm Image segmentation first carries out expansion process to the image after segmentation after Threshold segmentation so that image difference regional connectivity and to its into The certain error compensation of row, is finally filtered and Mathematical Morphology is handled;
Step 4: analyzing segmented image data using PC machine, and differentiation detects that cotton seeds quality results are reported, And result is exported.
It can be concluded that, Fu is used in the present invention when image conversion process according to embodiment one, embodiment two and embodiment three In in leaf transformation, Walsh transformation or discrete cosine transform any one indirect processing technique it is big come the array for changing original image It is small, original image calculation amount can be effectively reduced, shortens detection cycle, effectively increases detection efficiency.
Detection accuracy can be improved by carrying out cotton seeds quality testing based on machine vision, subjective error is small, Detection efficiency is high simultaneously, can effectively save detection cycle, is that image capture module carries out cotton kind by using sweep optical square Subgraph acquisition can be improved the clarity of acquisition image and have adjustable resolution ratio, and color of image is more bright-coloured and edge It does not distort, a stable image basis can be provided for detection, improve Detection accuracy.
The basic principles, main features and advantages of the invention have been shown and described above.The technical staff of the industry should Understand, the present invention is not limited to the above embodiments, and the above embodiments and description only describe originals of the invention Reason, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes and improvements It all fall within the protetion scope of the claimed invention.The claimed scope of the invention is by appended claims and its equivalent circle It is fixed.

Claims (8)

1. a kind of cotton seeds detection system based on machine vision, it is characterised in that: including image capture module and host computer Module, described image acquisition module connect upper computer module, and the upper computer module includes image pre-processing module, image segmentation Module and PC machine, described image acquisition module connect image pre-processing module, and the picture acquisition module acquires cotton seeds image, It is pre-processed again by image of the image pre-processing module to acquisition, described image preprocessing module connects image segmentation mould Block, described image divides module to pretreated carrying out image threshold segmentation, then carries out histogram analysis, detects cotton seeds matter Amount, described image preprocessing module connect PC machine with image segmentation module, and the PC machine is for receiving preprocessing module and image Data after dividing resume module, are analyzed, show that cotton seeds quality measurements are exported.
2. a kind of cotton seeds detection system based on machine vision according to claim 1, it is characterised in that: the PC Memory is embedded in machine, the memory connects image capture module, and the memory is flash storage, the storage Device in the form of BMP files for storing the cotton seeds image of image capture module acquisition.
3. a kind of cotton seeds detection system based on machine vision according to claim 1, it is characterised in that: the figure As acquisition module is the image capture module for carrying out Image Acquisition using sweep optical square.
4. a kind of cotton seeds detection system based on machine vision according to claim 1, it is characterised in that: the figure As acquisition module further includes supplementary lighting module, the supplementary lighting module carries out light filling using coaxial light source, eliminates reflective and phenomenon of giving out light.
5. a kind of cotton seeds detection method based on machine vision, it is characterised in that: the following steps are included:
Step 1: Image Acquisition is carried out to cotton seeds to be detected using image capture module, and by the image transmitting of acquisition To memory, memory stores image in the form of BMP files, then by image transmitting to preprocessing module;
Step 2: using cotton seeds original image of the image pre-processing module to acquisition carries out image conversion process, image is compiled Code compression processing, image enhancement and restoration disposal and gray proces, obtain pretreatment image;
Step 3: carrying out Threshold segmentation, filtering processing and Mathematical Morphology to pretreatment image using image segmentation module and handle, And the segmented image that treated obtains is transmitted to PC machine;
Step 4: analyzing segmented image data using PC machine, and differentiation detects that cotton seeds quality results are reported, and will As a result it is exported.
6. a kind of cotton seeds detection method based on machine vision according to claim 5, it is characterised in that: the step The cotton seeds that image capture module acquires in rapid one are original to need to carry out at image pixel value screening before being transmitted to memory The pixel value of the cotton seeds image of image capture module acquisition is averaged, obtains average value by reason, takes pixel value close The cotton seeds image of average value is as original image.
7. a kind of cotton seeds detection method based on machine vision according to claim 5, it is characterised in that: the step Any one in Fourier transformation, Walsh transformation or discrete cosine transform can be used in rapid two when image conversion process to locate indirectly Reason technology changes the array size of original image, reduces original image calculation amount with this.
8. a kind of cotton seeds detection method based on machine vision according to claim 5, it is characterised in that: the step Threshold segmentation carries out image segmentation using adaptive mean shift algorithm in rapid three, after Threshold segmentation first to the image after segmentation into Row expansion process so that image difference regional connectivity and carry out certain error compensation to it, be finally filtered and Mathematical Morphology processing.
CN201910257413.0A 2019-04-01 2019-04-01 A kind of cotton seeds detection system and its detection method based on machine vision Pending CN109816658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910257413.0A CN109816658A (en) 2019-04-01 2019-04-01 A kind of cotton seeds detection system and its detection method based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910257413.0A CN109816658A (en) 2019-04-01 2019-04-01 A kind of cotton seeds detection system and its detection method based on machine vision

Publications (1)

Publication Number Publication Date
CN109816658A true CN109816658A (en) 2019-05-28

Family

ID=66611158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910257413.0A Pending CN109816658A (en) 2019-04-01 2019-04-01 A kind of cotton seeds detection system and its detection method based on machine vision

Country Status (1)

Country Link
CN (1) CN109816658A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050074146A1 (en) * 2003-09-17 2005-04-07 Advanta Technology, Ltd. Method and apparatus for analyzing quality traits of grain or seed
CN1970173A (en) * 2006-12-13 2007-05-30 中国农业大学 Automated system and method for cotton seed refining
CN101555661A (en) * 2009-04-14 2009-10-14 山东农业大学 Measuring method and system for weight of cotton foreign fiber based on machine vision technique
CN106053479A (en) * 2016-07-21 2016-10-26 湘潭大学 System for visually detecting workpiece appearance defects based on image processing
CN106483135A (en) * 2016-10-12 2017-03-08 河北农业大学 Based on iblet detection identifying device and method under the complex background of machine vision

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050074146A1 (en) * 2003-09-17 2005-04-07 Advanta Technology, Ltd. Method and apparatus for analyzing quality traits of grain or seed
CN1970173A (en) * 2006-12-13 2007-05-30 中国农业大学 Automated system and method for cotton seed refining
CN101555661A (en) * 2009-04-14 2009-10-14 山东农业大学 Measuring method and system for weight of cotton foreign fiber based on machine vision technique
CN106053479A (en) * 2016-07-21 2016-10-26 湘潭大学 System for visually detecting workpiece appearance defects based on image processing
CN106483135A (en) * 2016-10-12 2017-03-08 河北农业大学 Based on iblet detection identifying device and method under the complex background of machine vision

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
全胜: "基于机器视觉的蔬菜种子质量检测系统的设计与实现", 《中国优秀硕士学位论文全文数据库 农业科技辑》 *
孙宏佳: "基于机器视觉的花生种子自动识别系统设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
李振: "基于机器视觉技术的蔬菜种子质量检测方法研究及系统设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
郑小东等: "机器视觉在玉米籽粒品质检测中的应用研究", 《中国粮油学报》 *

Similar Documents

Publication Publication Date Title
CN205538740U (en) Intelligence timber surface defect detection system
CN103456021B (en) A kind of Fabric Defect detection method based on morphological analysis
CN106097368B (en) A kind of recognition methods in veneer crack
CN104297160A (en) Congou black tea fermentation appropriate degree discrimination method and device
CN109190441A (en) Female genital tract cells pathology intelligent method for classifying, diagnostic equipment and storage medium
CN101944231A (en) Method for extracting wheatear morphological parameters
CN115641364B (en) Embryo division period intelligent prediction system and method based on embryo dynamics parameters
CN107122597B (en) Intelligent diagnosis system for corneal damage
CN115239715B (en) Method, system, equipment and storage medium for predicting development result of blastocyst
CN103698341A (en) System for detecting cotton rolling quality and method for detecting cotton rolling quality based on image
CN112014413A (en) Mobile phone glass cover plate window area defect detection method based on machine vision
CN109145848A (en) A kind of wheat head method of counting
CN110378887A (en) Screen defect inspection method, apparatus and system, computer equipment and medium
CN115131346B (en) Fermentation tank processing procedure detection method and system based on artificial intelligence
CN110689958A (en) Cancer pathology auxiliary diagnosis method based on artificial intelligence technology
CN102788806B (en) Fruit peel defect detection method based on spheroidic brightness transformation
CN109509173A (en) A kind of method of counting and counting device of bacterial clump
Chen et al. Real-time grain breakage sensing for rice combine harvesters using machine vision technology
CN109816658A (en) A kind of cotton seeds detection system and its detection method based on machine vision
CN106501278B (en) Surface of the light tube defect classification method and system based on invariable rotary textural characteristics
CN117330582A (en) Polymer PE film surface crystal point detecting system
US20230252630A1 (en) Cell image analysis method and non-transitory storage medium
CN110837823A (en) Method for generating seed variety identification model, identification method and device
CN115103096A (en) Artificial intelligence machine vision image acquisition system
CN110633720A (en) Corn disease identification method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190528