Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 2.52 KB

README.md

File metadata and controls

45 lines (37 loc) · 2.52 KB

File Description

File Name Function Description
obj_detect.py Obtains regions of interest through rice detection.
white_detect.py White spot detection module.
yellow_detect.py Yellow rice detection module.
fracture_detect.py Fracture detection module.
fenzhi.py Implements functions for calculating the convex hull length and analyzing the largest/second-largest contours.
get_xy.py Displays the mouse-clicked coordinates on an image.
grayscale.py Provides different methods for converting RGB images to grayscale images.
main.py Performs various image processing operations, including rice target region extraction, contour drawing, white spot detection, yellow rice detection, cross-section detection, etc.
may.py Implements functions for calculating the convex hull length and analyzing the largest/second-largest contours.
rice_detect.py Detects target regions in rice images, draws bounding boxes, and labels, etc.
test_canny.py Uses the Canny algorithm for image edge detection and dynamically adjusts parameters to display results.
test_contrast_stretching.py Performs contrast stretching on images to enhance their contrast.
test_findContours.py Detects contours in images and draws the contours and their bounding rectangles.
test_gray.py Implements grayscale processing for images, including various methods and channel-based grayscale conversion.
test_open.py Uses the opening operation for background extraction and displays the foreground image.
test_subtract.py Obtains the image foreground by subtracting the image after the opening operation.

Code Execution Results

1. main.py

Rice target detection

raw main main main main main

White Spot Detection

white white

Yellow Rice Detector

yellow

Fracture Detection

fracture fracture