Red date long diameter detection method based on OpenCV

A detection method and technology for jujubes, applied in image analysis, image enhancement, instruments, etc., can solve the problems of low efficiency, single sorting standard, complicated processing methods, etc., to improve detection accuracy, improve recognition rate, and improve detection Efficient effect

Pending Publication Date: 2022-06-28
XIJING UNIV
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Most of the sorting jujubes currently on the market pass through mesh slopes or drum sieves. This sorting method can only sort jujubes of different sizes. The sorting standard is single, and the efficiency is not high, wasting time, and it is impossible Precise grading of red dates during sorting
Patent application CN106423895A discloses a jujube grading method. After the jujube image is collected, constructing the jujube mask image includes binarizing the image using a threshold, and then performing morphological opening and filling operations to remove the noise interference in the target. The illumination-reflection model uses low-pass filtering to obtain the brightness of the R component image and uses the brightness component to correct the brightness of the component image after removing the background. The processing method is more complicated, and the detection rate of defective products is not high.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Red date long diameter detection method based on OpenCV
  • Red date long diameter detection method based on OpenCV
  • Red date long diameter detection method based on OpenCV

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be further described in detail below with reference to the accompanying drawings.

[0035] A method for detecting the long diameter of red dates based on OpenCV, which specifically includes the following steps:

[0036] 1. Use an industrial camera to capture the red date image B1 on the conveyor belt, and grayscale the image through the cvColor function to obtain image B2;

[0037] 2. Perform mean filtering on image B2 through the cv2.blur function to obtain image B3;

[0038] 3. Binarize the image B3 through the cv2.threshold function to obtain the image B4;

[0039] 4. Find the minimum circumscribed rectangle of each contour of the image B4 and draw the image B5, specifically:

[0040] 4.1) Calculate the minimum circumscribed rectangle of each contour through the cv2.minAreaRect function;

[0041] 4.2) Draw the center point of the minimum circumscribed rectangle through the cvCircle function;

[0042] 4.3) Obtain the coordinates of the 4...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a red date long diameter detection method based on OpenCV, and the method can effectively obtain the size of the long diameter of a red date through the combination and improvement of an OpenCV open source library minimum enclosing rectangle algorithm, and in combination with a Matplotlib drawing library. Firstly, red dates are placed on a conveying belt, and images of the red dates are collected through an industrial camera installed above the conveying belt; graying processing is carried out on the collected image, mean filtering and binarization processing are carried out, coordinates of a central point and four vertexes of a minimum enclosing rectangle of each contour are solved, each side of the rectangles is drawn by using a Matplotlib drawing library, and the maximum pixel value in each side of the rectangles is solved, namely the size of the long-diameter pixel size value of the red dates; and finally, determining the size of the long diameter of the red date according to the relation between the pixel size value of the long diameter of the red date linearly fitted by the least square method and the actually measured long diameter value. The detection efficiency and precision can be greatly improved, and then accurate grading of the red dates is achieved.

Description

technical field [0001] The invention relates to a method for sorting and detecting fruits, in particular to a method for detecting the long diameter of red dates based on OpenCV. Background technique [0002] At present, most of the sorting red dates on the market pass through meshed slopes or drum sieves. This sorting method can only sort red dates of different sizes. The sorting standard is single, and the efficiency is not high. Red dates are accurately graded during the sorting process. Patent application CN106423895A discloses a jujube classification method. After the jujube image collection is completed, the construction of a jujube mask image includes using a threshold to binarize the image, and then performing morphological opening and filling operations to remove the noise interference in the target. The illumination-reflection model uses low-pass filtering to obtain the brightness of the R component image and uses the brightness component to correct the brightness...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T7/00G06T7/62G06T5/00
CPCG06T7/0002G06T7/62G06T5/002G06T2207/10004G06T2207/30188
Inventor 张宁张斯宇侯成阳殷新燕许超彭采
Owner XIJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products