Cotton image segmentation method and system based on morphological reconstruction and adaptive threshold
A technology based on morphology and adaptive threshold, which is applied in the field of image processing, can solve the problems of long model training time, large amount of calculation, and difficulty in accurately segmenting cotton, so as to eliminate the influence of lighting factors, uniform grayscale characteristics, and increase The effect of contrast
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] This embodiment provides a cotton image segmentation method based on morphological reconstruction and adaptive threshold;
[0034] Such as figure 1 As shown, the cotton image segmentation method based on morphological reconstruction and adaptive threshold includes:
[0035] S101: Acquire the cotton image to be processed; convert the cotton image to be processed from the RGB color space to the HSV color space;
[0036] S102: Extract the saturation S component of the cotton image in the HSV color space;
[0037] S103: Perform filtering processing on the saturation component image to remove random noise in the image;
[0038] S104: perform morphological reconstruction on the filtered image to remove dark spots and blemishes in the image;
[0039] S105: Perform grayscale transformation on the image after morphological reconstruction to enhance the contrast between the cotton area and the background area;
[0040] S106: Perform threshold segmentation on the image after t...
Embodiment 2
[0098] The present embodiment provides a cotton image segmentation system based on morphological reconstruction and adaptive threshold;
[0099] Cotton image segmentation system based on morphological reconstruction and adaptive threshold, including:
[0100] The acquisition module is configured to: acquire the cotton image to be processed; convert the cotton image to be processed from the RGB color space to the HSV color space;
[0101] A saturation component extraction module configured to: extract the saturation S component of the cotton image in the HSV color space;
[0102] A filtering module configured to: filter the saturation component image to remove random noise in the image;
[0103] A morphological reconstruction module configured to: perform morphological reconstruction on the filtered image to remove dark spots and blemishes in the image;
[0104] A grayscale transformation module configured to: perform grayscale transformation on the image after morphological ...
Embodiment 3
[0110]This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein, the processor is connected to the memory, and the one or more computer programs are programmed Stored in the memory, when the electronic device is running, the processor executes one or more computer programs stored in the memory, so that the electronic device executes the method described in Embodiment 1 above.
[0111] It should be understood that in this embodiment, the processor can be a central processing unit CPU, and the processor can also be other general-purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate array FPGA or other programmable logic devices , discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or...
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