Cotton detection, segmentation and counting method and system
A counting method and cotton technology, applied in the field of computer vision recognition, can solve the problems of flexibility in difficult application scenarios, low recognition rate, large model size, etc., and achieve the effect of avoiding repeated operations, good robustness, and improving effect.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] Embodiment 1 of the present invention provides a cotton detection, segmentation and counting system, the system includes:
[0064] The segmentation module is used to combine the color features, calculate the h channel histogram, obtain the mask image matrix of the image background and the foreground, initialize the grabCut algorithm, and perform segmentation;
[0065] The extraction module is used to perform preliminary morphological processing on the segmented picture, filter out smaller areas, and fill closed holes in the area, and extract the relevant attributes of each connected domain;
[0066] The merging module is used for region merging, and for two connected domains that meet the conditions, it is merged into one region;
[0067] The splitting module is used for region splitting, splitting the connected domain whose area is greater than the preset first area threshold and the ratio of the long-short axis is greater than the preset long-short axis ratio threshol...
Embodiment 2
[0104] In order to improve the segmentation and detection effect of white cotton in the mature stage under natural field conditions, this embodiment 2 provides a white cotton segmentation, detection and counting method based on color and morphological characteristics, which can further improve the efficiency, speed and efficiency of cotton segmentation and detection and counting. robustness.
[0105] Such as figure 1 As shown, the method described in Embodiment 2 can be roughly divided into 4 steps:
[0106] Step 1. Combining the color features, calculate the h-channel histogram, obtain the mask image matrix of the image background and foreground, initialize the grabCut algorithm, and perform segmentation.
[0107] Step 2. Perform preliminary morphological processing on the segmented image, filter out smaller areas, and fill in small closed holes in the area, and then extract the relevant attributes of each connected area.
[0108] Step 3, region merging, for two connected reg...
Embodiment 3
[0144] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium includes instructions for executing a cotton detection, segmentation and counting method, the method includes:
[0145] Combining the color features, calculate the h-channel histogram, obtain the mask image matrix of the image background and foreground, initialize the grabCut algorithm, and perform segmentation;
[0146] Perform preliminary morphological processing on the segmented image, filter out smaller areas, fill in closed holes in the area, and extract the relevant attributes of each connected domain;
[0147] Region merging, for two connected domains that meet the conditions, merge them into one region;
[0148] Region splitting, splitting a connected domain whose area is greater than the preset first area threshold and whose ratio of the long and short axes is greater than the preset ratio threshold of the long an...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com