CN113776996A - Rice appearance detection system and method - Google Patents

Rice appearance detection system and method Download PDF

Info

Publication number
CN113776996A
CN113776996A CN202110858943.8A CN202110858943A CN113776996A CN 113776996 A CN113776996 A CN 113776996A CN 202110858943 A CN202110858943 A CN 202110858943A CN 113776996 A CN113776996 A CN 113776996A
Authority
CN
China
Prior art keywords
rice
shape
drawn
detected
black
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
CN202110858943.8A
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.)
Shenzhen Maidao Zhilian Technology Co ltd
Original Assignee
Shenzhen Maidao Zhilian Technology Co ltd
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 Shenzhen Maidao Zhilian Technology Co ltd filed Critical Shenzhen Maidao Zhilian Technology Co ltd
Priority to CN202110858943.8A priority Critical patent/CN113776996A/en
Publication of CN113776996A publication Critical patent/CN113776996A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N15/00Investigating characteristics of particles; Investigating permeability, pore-volume or surface-area of porous materials
    • G01N15/02Investigating particle size or size distribution
    • G01N15/0205Investigating particle size or size distribution by optical means
    • G01N15/0227Investigating particle size or size distribution by optical means using imaging; using holography
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/02Food
    • G01N33/10Starch-containing substances, e.g. dough
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biochemistry (AREA)
  • Analytical Chemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Food Science & Technology (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Medicinal Chemistry (AREA)
  • Dispersion Chemistry (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a rice appearance detection system, which acquires black and white photos of a plurality of groups of rice to be detected in the current batch through a photographing module, sends the black and white photos of the rice to be detected to a describing module, the describing module receives the black and white photos of the rice to be detected and describes and numbers the shape of the rice, sends the shape and the number of the described rice to a detecting module, the detecting module receives the shape and the number of the described rice and measures and numbers the length and the width of the described rice shape, compares the measuring result with the length and the width of preset rice, classifies the rice according to the comparison result, calculates the proportion of the qualified described rice shape to all the described rice shapes according to the classification result, and judges that the appearance quality of the rice in the current batch is qualified when the proportion is not less than a threshold value, the automatic detection of the appearance of the rice is realized, the manual workload is greatly reduced, trouble and labor are saved, and the detection efficiency is high.

Description

Rice appearance detection system and method
Technical Field
The invention relates to the technical field of rice appearance detection, in particular to a rice appearance detection system and method.
Background
Rice is one of the major food sources worldwide and is staple food for nearly half of the world and about two thirds of the population in our country. In recent years, with the development of socioeconomic, the main problem of food supply has been changed from "full" to "good", and more people look to improve the quality of rice, which depends on the development and progress of rice quality detection technology.
The traditional rice appearance quality detection method mainly depends on manual work, usually selects several complete rice from a batch of rice at random, detects the appearance of the rice one by one through manual work, and then analyzes the detection result, the appearance detection analysis results of the several rice can represent the appearance quality of the batch of rice, and the detection method is troublesome and labor-consuming and has low detection efficiency.
Disclosure of Invention
The present invention is directed to a system and a method for detecting appearance of rice, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
a rice appearance detection system, the system comprising:
a photographing module: the system comprises a drawing module, a black-and-white photo acquisition module and a control module, wherein the drawing module is used for acquiring black-and-white photos of a plurality of groups of rice to be detected in the current batch and sending the black-and-white photos of the rice to be detected to the drawing module;
a rendering module: the detection module is used for receiving the black and white picture of the rice to be detected, locking the shape of the rice to be detected according to the black and white picture of the rice to be detected, describing the shape of the rice in the black and white picture of the rice to be detected, numbering the described shape of the rice, and sending the described shape and number of the rice to the detection module;
a detection module: the rice shape measuring device is used for receiving the drawn rice shape and the serial number, measuring the length and the width of the drawn rice shape, numbering the measuring result according to the serial number of the drawn rice shape, comparing the measuring result with the length and the width of preset rice, classifying the drawn rice shape according to the comparison result, calculating the proportion of the qualified drawn rice shape to all the drawn rice shapes according to the classification result, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is not less than a threshold value.
Further, the description module specifically includes:
a drawing unit: the device is used for receiving the black and white photograph of the rice to be detected, locking the shape of the rice to be detected according to the black and white photograph of the rice to be detected and describing the shape of the rice in the black and white photograph of the rice to be detected;
numbering unit: and the detection module is used for numbering the drawn rice shapes and sending the drawn rice shapes and numbers to the detection module.
Further, the detection module specifically includes:
a measurement unit: the rice shape measuring device is used for receiving the described rice shape and the serial number, measuring the length and the width of the described rice shape, and numbering the measuring result according to the serial number of the described rice shape;
a comparison and classification unit for comparing the measurement result with the length and width of preset rice and classifying the shape of the drawn rice according to the comparison result
A calculation judgment unit: and the rice shape classifying device is used for calculating the proportion of the qualified depicted rice shape to all the depicted rice shapes according to the classification result, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is greater than a threshold value.
Further, the depiction unit specifically includes:
a first receiving subunit: the device is used for receiving black and white photos of the rice to be detected;
positioning and drawing subunit: and the device is used for detecting the shape of the white area in the black and white picture of the rice to be detected and drawing the shape of the rice in the black and white picture of the rice to be detected according to the shape of the white area.
Further, the measurement unit specifically includes:
a second receiving subunit: for receiving the delineated rice shape and number;
a measurement subunit: and a measuring rule for locking the farthest points at both ends of the drawn rice shape and the farthest points at both sides of the drawn rice shape, measuring the distance between the farthest points at both ends of the drawn rice shape and the distance between the farthest points at both sides of the drawn rice shape, and numbering the measurement results according to the number of the drawn rice shape.
Further, the comparison classification unit specifically includes:
a comparison subunit: the length and the width of the drawn rice shape are respectively compared with the length and the width of preset rice one by one according to the measurement result, and if the difference between the length or the width of the drawn rice shape and the length or the width of the preset rice is smaller than a threshold value, the length or the width of the drawn rice shape meets the standard;
a classification subunit: and the rice shape classification module is used for classifying the drawn rice shape according to whether the length and the width of the drawn rice shape both meet the standard or not according to the comparison result, if the length and the width of the drawn rice shape both meet the standard, the drawn rice shape is classified into a qualified type, and if not, the drawn rice shape is classified into an unqualified type.
Further, the calculation and judgment unit specifically includes:
a calculation subunit: the rice shape quantity which is described in the qualified type is counted according to the classification result, and the proportion of the rice shape quantity which is described in the qualified type to the quantity of all the described rice shapes is calculated;
a judgment subunit: and the device is used for judging the size of the proportion and the threshold value, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is not less than the threshold value.
A rice appearance detection method, comprising:
obtaining black and white photos of a plurality of groups of rice to be detected in the current batch;
locking the shape of the rice to be detected according to the black and white picture of the rice to be detected, describing the shape of the rice in the black and white picture of the rice to be detected, and numbering the described shape of the rice;
measuring the length and the width of the drawn rice shape, numbering the measuring result according to the number of the drawn rice shape, comparing the measuring result with the length and the width of preset rice, classifying the drawn rice shape according to the comparison result, calculating the proportion of the qualified drawn rice shape to all the drawn rice shapes according to the classification result, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is not less than a threshold value.
Further, the step of locking the shape of the rice to be detected according to the black and white photograph of the rice to be detected and describing the shape of the rice in the black and white photograph of the rice to be detected specifically comprises:
receiving black and white photos of the rice to be detected;
and detecting the shape of the white area in the black and white picture of the rice to be detected, and drawing the shape of the rice in the black and white picture of the rice to be detected according to the shape of the white area.
Further, the specific steps of measuring the length and width of the depicted rice shape and numbering the measurement results according to the number of the depicted rice shape include:
receiving the depicted rice shape and number;
locking the farthest points at both ends of the drawn rice shape and the farthest points at both sides of the drawn rice shape, measuring the distance between the farthest points at both ends of the drawn rice shape and the distance between the farthest points at both sides of the drawn rice shape by a measuring tape, and numbering the measurement results according to the number of the drawn rice shape.
Compared with the prior art, the invention has the beneficial effects that:
the invention obtains black and white photos of a plurality of groups of rice to be detected in the current batch through a photographing module, sends the black and white photos of the rice to be detected to a drawing module, the drawing module receives the black and white photos of the rice to be detected, locks the shape of the rice to be detected according to the black and white photos of the rice to be detected, draws the shape of the rice in the black and white photos of the rice to be detected, numbers the drawn shape of the rice, sends the drawn shape and the number of the rice to a detection module, the detection module receives the drawn shape and the number of the rice, measures the length and the width of the drawn shape of the rice, numbers the measurement result according to the drawn shape number of the rice, compares the measurement result with the length and the width of preset rice, and classifies the drawn shape of the rice according to the comparison result, and calculating the proportion of the qualified depicted rice shapes to all the depicted rice shapes according to the classification result, and judging that the appearance quality of the rice of the current batch is qualified when the proportion is not less than a threshold value, so that the automatic detection of the rice appearance is realized, the manual workload is greatly reduced, the trouble and the labor are saved, and the detection efficiency is high.
Drawings
Fig. 1 is a schematic structural view of a rice appearance inspection system according to the present invention.
FIG. 2 is a schematic diagram of the structure of the modules depicted in the present invention.
FIG. 3 is a schematic structural diagram of a detection module according to the present invention.
FIG. 4 is a schematic diagram of the structure of the depiction unit in the present invention.
FIG. 5 is a schematic view of a measuring unit according to the present invention.
FIG. 6 is a schematic diagram of a comparative classification unit according to the present invention.
FIG. 7 is a schematic diagram of a calculation and determination unit according to the present invention.
Fig. 8 is a flowchart of a rice appearance inspection method according to the present invention.
Fig. 9 is a flow chart depicting the shape of rice in the present invention.
Fig. 10 is a flow chart for measuring the length and width of the depicted rice shape in accordance with the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Fig. 1 is a schematic structural diagram of a rice appearance detection system according to an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of description.
In an embodiment of the present invention, a rice appearance detection system 1000 includes a photographing module 1100, a depicting module 1200, and a detecting module 1300.
The photographing module 1100 is configured to obtain black and white photographs of a plurality of groups of rice to be detected in a current batch, and send the black and white photographs of the rice to be detected to the depicting module.
In the embodiment of the invention, the step of obtaining the black-and-white pictures of the multiple groups of rice to be detected in the current batch can be to photograph the multiple groups of rice to be detected, the photograph formed by photographing is the black-and-white picture, the Beijing of the photograph is black, and the color displayed on the photograph of the rice is white.
The drawing module 1200 is configured to receive the black-and-white photograph of the rice to be detected, lock the shape of the rice to be detected according to the black-and-white photograph of the rice to be detected, draw the shape of the rice in the black-and-white photograph of the rice to be detected, number the drawn shape of the rice, and send the drawn shape and number to the detection module.
In this embodiment, the locking of the shape of the rice to be detected according to the black-and-white photograph of the rice to be detected and the drawing of the shape of the rice in the black-and-white photograph of the rice to be detected may be performed by first detecting the black-and-white photograph of the rice to be detected, detecting a white area in the black-and-white photograph of the rice to be detected, where the detected white area is the shape of the rice, then drawing according to the shape of the white area, that is, the shape drawn according to the white area is the shape of the rice to be detected, and then numbering the drawn shape of the rice so as to distinguish the drawn shape of the rice from a subsequent shape of the rice.
The detection module 1300 is configured to receive the depicted rice shape and the serial number, measure the length and the width of the depicted rice shape, number the measurement result according to the serial number of the depicted rice shape, compare the measurement result with a preset length and width of rice, classify the depicted rice shape according to the comparison result, calculate a proportion of the qualified depicted rice shape to all the depicted rice shapes according to the classification result, and determine that the appearance quality of the rice in the current batch is qualified when the proportion is not less than a threshold value.
In this embodiment, the length and width of the drawn rice shape may be measured by first determining two points farthest from both ends of the drawn rice shape and two points farthest from both sides of the drawn rice shape on the drawn rice shape, that is, a distance between two points farthest from both ends of the drawn rice shape is a length of the drawn rice shape, that is, a distance between two points farthest from both sides of the drawn rice shape is a width of the drawn rice shape; and numbering the measurement results according to the number of the drawn rice shape may be numbering the measurement results of the length and width of the drawn rice shape, and the number of the drawn rice shape measurement results is identical to the number of the drawn rice shape, for example, if the number of the drawn rice is 1, the number of the drawn rice shape measurement results is 1; the comparing the measurement result with the length and width of the preset rice may be comparing the measured length and width of the drawn rice shape with the preset length and width of the rice one by one, comparing the difference between the two sets of values, that is, comparing the difference between the length of the drawn rice shape and the preset length of the rice, comparing the difference between the width of the drawn rice shape and the preset width of the rice, and comparing the difference with a preset threshold value, if the difference is smaller than the threshold value, the length of the drawn rice shape is in accordance with a standard, otherwise, the length of the drawn rice shape is not in accordance with the standard.
In this embodiment, the step of classifying the drawn rice shapes according to the comparison result may be that the drawn rice shapes are classified according to the comparison result, and the drawn rice shapes are classified according to whether the length and the width of the drawn rice shapes both meet the standard, that is, the drawn rice shapes are classified into a qualified type if the length and the width of the drawn rice shapes both meet the standard, and classified into an unqualified type if one group of the drawn rice shapes do not meet the standard or two groups of the drawn rice shapes do not meet the standard; the step of calculating the proportion of the qualified drawn rice shapes to the total drawn rice shapes according to the classification result may be that the number of the drawn rice shapes in the qualified type and the number of the total drawn rice shapes are counted according to the classification result, the proportion of the number of the drawn rice shapes in the qualified type to the number of the total drawn rice shapes is calculated according to a formula N (the number of the drawn rice shapes in the qualified type)/N (the number of the total drawn rice shapes), the comparison is performed according to the calculated proportion and a preset threshold value, if the calculated proportion is not less than the preset threshold value, the appearance quality of the rice in the current batch is judged to be qualified, otherwise, the rice in the current batch is judged to be unqualified.
Fig. 2 is a schematic structural diagram of a drawing module according to an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of description.
In the embodiment of the present invention, the drawing module 1200 includes a drawing unit 1210 and a numbering unit 1220.
The drawing unit 1210 is configured to receive the black-and-white photograph of the rice to be detected, lock the shape of the rice to be detected according to the black-and-white photograph of the rice to be detected, and draw the shape of the rice in the black-and-white photograph of the rice to be detected.
In this embodiment, the locking of the shape of the rice to be detected according to the black-and-white photograph of the rice to be detected and the drawing of the shape of the rice in the black-and-white photograph of the rice to be detected may be performed by first detecting the black-and-white photograph of the rice to be detected, detecting a white area in the black-and-white photograph of the rice to be detected, where the detected white area is the shape of the rice, and then drawing according to the shape of the white area, that is, drawing according to the shape of the white area is the shape of the rice to be detected.
The numbering unit 1220 is configured to number the drawn rice shape and send the drawn rice shape and the number to the detection module.
Fig. 3 is a schematic structural diagram of a detection module according to an embodiment of the present invention, and only a portion related to the embodiment of the present invention is shown for convenience of description.
In the embodiment of the present invention, the detection module 1300 includes a measurement unit 1310, a comparison and classification unit 1320, and a calculation and determination unit 1330.
A measuring unit 1310 for receiving the drawn rice shape and the number, measuring the length and the width of the drawn rice shape, and numbering the measurement result according to the number of the drawn rice shape.
In the present embodiment, the length and width of the drawn rice shape may be measured by determining two points farthest from both ends of the drawn rice shape and two points farthest from both sides of the drawn rice shape on the drawn rice shape, that is, a distance in a horizontal direction between two points farthest from both ends of the drawn rice shape is a length of the drawn rice shape, that is, a distance in a vertical direction between two points farthest from both sides of the drawn rice shape is a width of the drawn rice shape; the numbering of the measurement results according to the drawn rice shape number may be that the measurement results of the length and width of the drawn rice shape are numbered, and the drawn rice shape measurement result number coincides with the drawn rice shape number, for example, if the drawn rice number is 1, the drawn rice shape measurement result number is 1.
And a comparison classification sheet 1320 for comparing the measurement result with a preset length and width of rice, and classifying the drawn shape of rice according to the comparison result.
In this embodiment, the comparing the measurement result with the length and width of the preset rice may be comparing the measured length and width of the drawn rice shape with the preset length and width of the rice one by one, comparing the difference between the two sets of values, that is, comparing the difference between the length of the drawn rice shape and the preset length of the rice, comparing the difference between the width of the drawn rice shape and the preset width of the rice, and comparing the difference with a preset threshold value, if the difference is smaller than the threshold value, the length of the drawn rice shape is in accordance with a standard, otherwise, the length of the drawn rice shape is not in accordance with the standard; the step of classifying the drawn rice shapes according to the comparison result may be a step of classifying the drawn rice shapes according to the comparison result, and a step of classifying according to whether the length and the width of the drawn rice shapes both meet the standards, that is, the drawn rice shapes are classified as a qualified type if the length and the width both meet the standards, and classified as an unqualified type if one or two of the drawn rice shapes do not meet the standards.
A calculating and judging unit 1330, configured to calculate, according to the classification result, a ratio of the qualified depicted rice shapes to all the depicted rice shapes, and when the ratio is greater than a threshold value, judge that the appearance quality of the rice in the current batch is qualified.
In this embodiment, the step of calculating the proportion of the qualified drawn rice shapes to the total drawn rice shapes according to the classification result may be that the number of the drawn rice shapes in the qualified type and the number of the total drawn rice shapes are counted according to the classification result, the proportion of the number of the drawn rice shapes in the qualified type to the number of the total drawn rice shapes is calculated by a formula N (the number of the drawn rice shapes in the qualified type)/N (the number of the total drawn rice shapes), and the comparison with a preset threshold value is performed according to the calculated proportion.
Fig. 4 is a schematic structural diagram of a drawing unit provided in an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of description.
In the embodiment of the present invention, the tracing unit 1210 includes a first receiving subunit 1211 and a positioning tracing subunit 1212.
A first receiving subunit 1211, configured to receive black and white photographs of the rice to be detected.
And the positioning and drawing subunit 1212 is configured to detect a shape of a white area in the black-and-white picture of the rice to be detected, and draw the shape of the rice in the black-and-white picture of the rice to be detected according to the shape of the white area.
In this embodiment, detecting the shape of the white area in the black-and-white photograph of the rice to be detected may be detecting the black-and-white photograph of the rice to be detected, detecting the white area in the black-and-white photograph of the rice to be detected, and drawing the shape of the rice in the black-and-white photograph of the rice to be detected according to the shape of the white area may be drawing the shape of the closed loop formed by the boundaries of the white area, that is, drawing the shape of the rice in the black-and-white photograph of the rice to be detected according to the white area as the shape of the rice to be detected.
Fig. 5 is a schematic structural diagram of a measurement unit according to an embodiment of the present invention, and only a portion related to the embodiment of the present invention is shown for convenience of description.
In this embodiment of the present invention, the measurement unit 1310 includes a second receiving subunit 1311 and a measurement subunit 1312.
A second receiving subunit 1311, configured to receive the depicted rice shape and number.
A measuring unit 1312 for locking the farthest points at both ends of the drawn rice shape and the farthest points at both sides of the drawn rice shape, measuring the distance between the farthest points at both ends of the drawn rice shape and the distance between the farthest points at both sides of the drawn rice shape by a measuring tape, and numbering the measurement results according to the number of the drawn rice shape.
In this embodiment, the two points farthest from both ends of the drawn rice shape and the points farthest from both sides of the drawn rice shape are determined on the drawn rice shape, and then measured with a ruler, that is, the distance in the horizontal direction between the two points farthest from both ends of the drawn rice shape is the length of the drawn rice shape, that is, the distance in the vertical direction between the two points farthest from both sides of the drawn rice shape is the width of the drawn rice shape; the numbering of the measurement results according to the drawn rice shape number may be that the measurement results of the length and width of the drawn rice shape are numbered, and the drawn rice shape measurement result number coincides with the drawn rice shape number, for example, if the drawn rice number is 1, the drawn rice shape measurement result number is 1.
Fig. 6 is a schematic structural diagram of a comparison classification unit provided in an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of description.
In the embodiment of the present invention, the comparing and classifying unit 1320 includes a comparing subunit 1321 and a classifying subunit 1322.
A comparison subunit 1321, configured to compare the length and the width of the drawn rice shape with the length and the width of preset rice one by one according to the measurement result, and if the difference between the length or the width of the drawn rice shape and the length or the width of the preset rice is smaller than a threshold value, the length or the width of the drawn rice shape meets a standard.
In this embodiment, the comparing the length and the width of the drawn rice shape with the length and the width of the preset rice one by one according to the measurement result may be comparing the length of the drawn rice shape with the length of the preset rice according to the measurement result, comparing the difference between the length of the drawn rice shape and the length of the preset rice, comparing the width of the drawn rice shape with the width of the preset rice according to the measurement result, comparing the difference between the width of the drawn rice shape and the width of the preset rice, comparing the difference with a preset threshold, if the difference is smaller than the threshold, the length or the width of the drawn rice shape meets the standard, otherwise, the length or the width of the drawn rice shape does not meet the standard.
A classifying subunit 1322, configured to classify the drawn rice shape according to whether the length and the width of the drawn rice shape both meet the standard according to the comparison result, and if the length and the width of the drawn rice shape both meet the standard, classify the drawn rice shape into a qualified type, otherwise classify the drawn rice shape into an unqualified type.
Fig. 7 is a schematic structural diagram of a calculation determination unit according to an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of description.
In this embodiment of the present invention, the calculation and judgment unit 1330 includes a calculation subunit 1331 and a judgment subunit 1332.
A calculating subunit 1331, configured to count the number of the depicted rice shapes in the qualified type according to the classification result, and calculate a ratio of the number of the depicted rice shapes in the qualified type to the number of all the depicted rice shapes.
In the present embodiment, the calculation of the ratio of the number of drawn rice shapes to the number of all the drawn rice shapes in the qualified type may be a calculation of a ratio of the number of drawn rice shapes to the number of all the drawn rice shapes in the qualified type by a formula N (the number of drawn rice shapes in the qualified type)/N (the number of all the drawn rice shapes).
And the judgment sub-list 1332 is used for judging the sizes of the proportion and the threshold value, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is not less than the threshold value.
Fig. 8 is a flowchart of a rice appearance detection method according to an embodiment of the present invention, which is described in detail below.
In the embodiment of the invention, the rice appearance detection method is applied to computer equipment with a display screen, and comprises the following specific steps:
s100, acquiring black and white photos of a plurality of groups of rice to be detected in the current batch;
step S200, locking the shape of the rice to be detected according to the black and white picture of the rice to be detected, describing the shape of the rice in the black and white picture of the rice to be detected, and numbering the described shape of the rice;
step S300, measuring the length and the width of the drawn rice shape, numbering the measuring result according to the number of the drawn rice shape, comparing the measuring result with the length and the width of preset rice, classifying the drawn rice shape according to the comparison result, calculating the proportion of the qualified drawn rice shape to all the drawn rice shapes according to the classification result, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is not less than a threshold value.
Fig. 9 is a flowchart of a method for locking a shape of rice to be detected according to a black-and-white photograph of the rice to be detected and depicting a shape of the rice in the black-and-white photograph of the rice to be detected according to an embodiment of the present invention, where the method specifically includes:
step S210, receiving black and white photos of the rice to be detected;
step S220, detecting the shape of a white area in the black and white picture of the rice to be detected, and drawing the shape of the rice in the black and white picture of the rice to be detected according to the shape of the white area;
fig. 10 is a flowchart of a method for measuring the length and width of the depicted rice shape and numbering the measurement result according to the number of the depicted rice shape according to an embodiment of the present invention, where the method specifically includes the steps of:
step S310, receiving the shape and the number of the depicted rice;
and a step S320 of locking the farthest points at both ends of the drawn rice shape and the farthest points at both sides of the drawn rice shape, measuring the distance between the farthest points at both ends of the drawn rice shape and the distance between the farthest points at both sides of the drawn rice shape by a measuring tape, and numbering the measurement results according to the number of the drawn rice shape.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in various embodiments may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (10)

1. A rice appearance inspection system, the system comprising:
a photographing module: the system comprises a drawing module, a black-and-white photo acquisition module and a control module, wherein the drawing module is used for acquiring black-and-white photos of a plurality of groups of rice to be detected in the current batch and sending the black-and-white photos of the rice to be detected to the drawing module;
a rendering module: the detection module is used for receiving the black and white picture of the rice to be detected, locking the shape of the rice to be detected according to the black and white picture of the rice to be detected, describing the shape of the rice in the black and white picture of the rice to be detected, numbering the described shape of the rice, and sending the described shape and number of the rice to the detection module;
a detection module: the rice shape measuring device is used for receiving the drawn rice shape and the serial number, measuring the length and the width of the drawn rice shape, numbering the measuring result according to the serial number of the drawn rice shape, comparing the measuring result with the length and the width of preset rice, classifying the drawn rice shape according to the comparison result, calculating the proportion of the qualified drawn rice shape to all the drawn rice shapes according to the classification result, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is not less than a threshold value.
2. The rice appearance detection system of claim 1, wherein the delineation module specifically comprises:
a drawing unit: the device is used for receiving the black and white photograph of the rice to be detected, locking the shape of the rice to be detected according to the black and white photograph of the rice to be detected and describing the shape of the rice in the black and white photograph of the rice to be detected;
numbering unit: and the detection module is used for numbering the drawn rice shapes and sending the drawn rice shapes and numbers to the detection module.
3. The rice appearance detection system according to claim 1, wherein the detection module specifically comprises:
a measurement unit: the rice shape measuring device is used for receiving the described rice shape and the serial number, measuring the length and the width of the described rice shape, and numbering the measuring result according to the serial number of the described rice shape;
a comparison and classification unit for comparing the measurement result with the length and width of preset rice and classifying the shape of the drawn rice according to the comparison result
A calculation judgment unit: and the rice shape classifying device is used for calculating the proportion of the qualified depicted rice shape to all the depicted rice shapes according to the classification result, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is greater than a threshold value.
4. The rice appearance detection system according to claim 2, wherein the depiction unit specifically comprises:
a first receiving subunit: the device is used for receiving black and white photos of the rice to be detected;
positioning and drawing subunit: and the device is used for detecting the shape of the white area in the black and white picture of the rice to be detected and drawing the shape of the rice in the black and white picture of the rice to be detected according to the shape of the white area.
5. The rice appearance detecting system according to claim 3, wherein the measuring unit specifically comprises:
a second receiving subunit: for receiving the delineated rice shape and number;
a measurement subunit: and a measuring rule for locking the farthest points at both ends of the drawn rice shape and the farthest points at both sides of the drawn rice shape, measuring the distance between the farthest points at both ends of the drawn rice shape and the distance between the farthest points at both sides of the drawn rice shape, and numbering the measurement results according to the number of the drawn rice shape.
6. The rice appearance detection system according to claim 3, wherein the comparison classification unit specifically comprises:
a comparison subunit: the length and the width of the drawn rice shape are respectively compared with the length and the width of preset rice one by one according to the measurement result, and if the difference between the length or the width of the drawn rice shape and the length or the width of the preset rice is smaller than a threshold value, the length or the width of the drawn rice shape meets the standard;
a classification subunit: and the rice shape classification module is used for classifying the drawn rice shape according to whether the length and the width of the drawn rice shape both meet the standard or not according to the comparison result, if the length and the width of the drawn rice shape both meet the standard, the drawn rice shape is classified into a qualified type, and if not, the drawn rice shape is classified into an unqualified type.
7. The rice appearance detection system according to claim 3, wherein the calculation and judgment unit specifically comprises:
a calculation subunit: the rice shape quantity which is described in the qualified type is counted according to the classification result, and the proportion of the rice shape quantity which is described in the qualified type to the quantity of all the described rice shapes is calculated;
a judgment subunit: and the device is used for judging the size of the proportion and the threshold value, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is not less than the threshold value.
8. A rice appearance detection method is characterized by comprising the following steps:
obtaining black and white photos of a plurality of groups of rice to be detected in the current batch;
locking the shape of the rice to be detected according to the black and white picture of the rice to be detected, describing the shape of the rice in the black and white picture of the rice to be detected, and numbering the described shape of the rice;
measuring the length and the width of the drawn rice shape, numbering the measuring result according to the number of the drawn rice shape, comparing the measuring result with the length and the width of preset rice, classifying the drawn rice shape according to the comparison result, calculating the proportion of the qualified drawn rice shape to all the drawn rice shapes according to the classification result, and judging that the appearance quality of the rice in the current batch is qualified when the proportion is not less than a threshold value.
9. The rice appearance detection method according to claim 8, wherein the step of locking the shape of the rice to be detected according to the black-and-white photograph of the rice to be detected and describing the shape of the rice in the black-and-white photograph of the rice to be detected specifically comprises:
receiving black and white photos of the rice to be detected;
and detecting the shape of the white area in the black and white picture of the rice to be detected, and drawing the shape of the rice in the black and white picture of the rice to be detected according to the shape of the white area.
10. The rice appearance detecting method according to claim 8, wherein the specific steps of measuring the length and width of the drawn rice shape and numbering the measurement results according to the number of the drawn rice shape include:
receiving the depicted rice shape and number;
locking the farthest points at both ends of the drawn rice shape and the farthest points at both sides of the drawn rice shape, measuring the distance between the farthest points at both ends of the drawn rice shape and the distance between the farthest points at both sides of the drawn rice shape by a measuring tape, and numbering the measurement results according to the number of the drawn rice shape.
CN202110858943.8A 2021-07-28 2021-07-28 Rice appearance detection system and method Pending CN113776996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110858943.8A CN113776996A (en) 2021-07-28 2021-07-28 Rice appearance detection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110858943.8A CN113776996A (en) 2021-07-28 2021-07-28 Rice appearance detection system and method

Publications (1)

Publication Number Publication Date
CN113776996A true CN113776996A (en) 2021-12-10

Family

ID=78836246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110858943.8A Pending CN113776996A (en) 2021-07-28 2021-07-28 Rice appearance detection system and method

Country Status (1)

Country Link
CN (1) CN113776996A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009045035A1 (en) * 2007-10-01 2009-04-09 Rural Development Administration White and brown rice appearance characteristics measurement system and method
CN101957313A (en) * 2010-09-21 2011-01-26 吉林大学 Method and device for computer visual inspection classification of quality of fresh corn ears
CN104484653A (en) * 2014-12-16 2015-04-01 郑州大河智信科技股份公司 Bad corn kernel detecting method based on image recognition technology
CN109211740A (en) * 2018-10-31 2019-01-15 江南大学 It is a kind of based on image recognition to the rapid detection method of broken rice rate
CN111879735A (en) * 2020-07-22 2020-11-03 武汉大学 Rice appearance quality detection method based on image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009045035A1 (en) * 2007-10-01 2009-04-09 Rural Development Administration White and brown rice appearance characteristics measurement system and method
CN101957313A (en) * 2010-09-21 2011-01-26 吉林大学 Method and device for computer visual inspection classification of quality of fresh corn ears
CN104484653A (en) * 2014-12-16 2015-04-01 郑州大河智信科技股份公司 Bad corn kernel detecting method based on image recognition technology
CN109211740A (en) * 2018-10-31 2019-01-15 江南大学 It is a kind of based on image recognition to the rapid detection method of broken rice rate
CN111879735A (en) * 2020-07-22 2020-11-03 武汉大学 Rice appearance quality detection method based on image

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴永美 等: "作物品种巧选巧用", 30 June 2008, 中国社会出版社, pages: 80 *
张颖: "飞行高炉熔渣颗粒几何形态的可视化测量", 《节能技术》, vol. 38, no. 1, 26 January 2020 (2020-01-26), pages 21 - 25 *

Similar Documents

Publication Publication Date Title
Demant et al. Microcracks in silicon wafers I: Inline detection and implications of crack morphology on wafer strength
CN111047655B (en) High-definition camera cloth defect detection method based on convolutional neural network
CN106056597B (en) Object visible detection method and device
CN106412573A (en) Method and device for detecting lens stain
CN106937109B (en) The method that low cost judges resolution ratio of camera head level
CN115797299B (en) Defect detection method of optical composite film
CN116559183A (en) Method and system for improving defect judging efficiency
CN113960075A (en) Security check equipment, article size determination method, storage medium and equipment
CN105447863B (en) A kind of remnant object detection method based on improvement VIBE
CN103514460B (en) Video monitoring multi-view-angle vehicle detecting method and device
CN113792725B (en) Component detection device and method
CN105915785A (en) Double-camera shadedness determining method and device, and terminal
CN116573366B (en) Belt deviation detection method, system, equipment and storage medium based on vision
CN113776996A (en) Rice appearance detection system and method
CN111337512B (en) Defect extraction method for AOI defect detection
CN105427303B (en) A kind of vision measurement and method of estimation of substation's legacy
CN102288619A (en) Method and system for detecting defects of three-dimensional optical film
CN104268536B (en) A kind of image method for detecting human face
CN116128853A (en) Production line assembly detection method, system, computer and readable storage medium
CN111556192B (en) Mobile phone photo dragging comparison sorting method and system
CN106340037A (en) Image color cast detection method based on ratio of chroma center to chroma eccentric distance
CN114062934A (en) Rechargeable battery capacity detection method based on machine vision
CN109934305A (en) Image-recognizing method and device based on image recognition model
CN113686261A (en) Silicon wafer suede testing method and device, electronic equipment and readable storage medium
CN109862348A (en) A kind of picture system parsing power test judgement method and device

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