[go: up one dir, main page]

CN114839197B - Rice damage detection device and detection method - Google Patents

Rice damage detection device and detection method Download PDF

Info

Publication number
CN114839197B
CN114839197B CN202210350465.4A CN202210350465A CN114839197B CN 114839197 B CN114839197 B CN 114839197B CN 202210350465 A CN202210350465 A CN 202210350465A CN 114839197 B CN114839197 B CN 114839197B
Authority
CN
China
Prior art keywords
rice
module
light
target frame
paddy
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.)
Active
Application number
CN202210350465.4A
Other languages
Chinese (zh)
Other versions
CN114839197A (en
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.)
Hunan Agricultural University
Original Assignee
Hunan Agricultural University
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 Hunan Agricultural University filed Critical Hunan Agricultural University
Priority to CN202210350465.4A priority Critical patent/CN114839197B/en
Publication of CN114839197A publication Critical patent/CN114839197A/en
Application granted granted Critical
Publication of CN114839197B publication Critical patent/CN114839197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N21/892Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles characterised by the flaw, defect or object feature examined
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A40/00Adaptation technologies in agriculture, forestry, livestock or agroalimentary production
    • Y02A40/80Adaptation technologies in agriculture, forestry, livestock or agroalimentary production in fisheries management
    • Y02A40/81Aquaculture, e.g. of fish

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The application relates to the technical field of rice internal damage detection, in particular to a rice damage detection device and a detection method, wherein a feeding module is adopted to drive rice to move towards a direction of a sequencing module; the sorting module is used for axially queuing the single grains of the rice, and is provided with a light hole; the light source module emits light rays to the light hole; the vision sensor module acquires an image of the paddy passing through the sorting module under the light; and the main control unit is used for detecting the internal damage condition of the paddy according to the image information, so that the detection of the internal damage condition of the paddy can be automatically realized through the cooperation of the modules, and the internal damage rate of a large number of paddy can be accurately obtained.

Description

一种稻谷损伤检测装置及检测方法Rice damage detection device and detection method

技术领域Technical Field

本申请涉及稻谷内部损伤检测技术领域,尤其涉及一种稻谷损伤检测装置及检测方法。The present application relates to the technical field of rice internal damage detection, and in particular to a rice damage detection device and a detection method.

背景技术Background Art

水稻是我国最重要的粮食作物之一,近年来,水稻机械化收获与干燥技术发展迅速,大大提高了生产效率。在采用机械化收获、干燥稻谷时,会不可避免地造成谷粒损伤,谷粒损伤包括外部损伤和内部损伤,外部损伤主要表现为破壳和谷粒破碎,较容易辨别和分选;内部损伤主要表现为谷粒内部的应力裂纹,影响谷粒的存储与加工后大米品质等级,特别是谷粒作为种子时会影响其发芽率,但内部损伤的稻谷其谷壳是完好的,难以直接辨别,传统的检测方法是将稻谷谷壳剥开后借助放大镜、显微镜等仪器进行观察,费事费力,效率低下。随着科学技术的发展,谷物内部损伤的无损检测受到了国内外学者的关注,如相关文献报道的通过计算机视觉技术、Micro-CT扫描方法、声发射法等获取谷物内部图像,再对图像的处理实现了其结构的三维重构和内部损伤表征,为稻谷内部损伤的无损检测提供了思路,但这些处理方式仍主要侧重于单粒谷物内部损伤类型的表征,难以实现较大数量稻谷的连续无损检测,难以获取准确的内部损伤率。Rice is one of the most important food crops in my country. In recent years, the mechanized harvesting and drying technology of rice has developed rapidly, greatly improving production efficiency. When mechanized harvesting and drying of rice is adopted, grain damage will inevitably occur. Grain damage includes external damage and internal damage. External damage mainly manifests as broken shells and broken grains, which are easier to identify and sort; internal damage mainly manifests as stress cracks inside the grains, which affects the storage of grains and the quality grade of rice after processing, especially when the grains are used as seeds, it will affect their germination rate. However, the husk of rice with internal damage is intact and difficult to directly identify. The traditional detection method is to peel the rice husk and observe it with the help of magnifying glasses, microscopes and other instruments, which is time-consuming, laborious and inefficient. With the development of science and technology, non-destructive detection of internal damage of grains has attracted the attention of scholars at home and abroad. For example, relevant literature reports that computer vision technology, Micro-CT scanning methods, acoustic emission methods, etc. are used to obtain internal images of grains, and then the image processing realizes the three-dimensional reconstruction of its structure and the characterization of internal damage, which provides ideas for the non-destructive detection of internal damage of rice. However, these processing methods still mainly focus on the characterization of the internal damage type of a single grain, and it is difficult to achieve continuous non-destructive detection of a large number of rice grains and obtain an accurate internal damage rate.

发明内容Summary of the invention

本申请提供了一种稻谷损伤检测装置及检测方法,以解决现有技术中在检测稻谷时难以实现准确获取较大数量稻谷的内部损伤率的问题。The present application provides a rice damage detection device and a detection method to solve the problem in the prior art that it is difficult to accurately obtain the internal damage rate of a large number of rice grains when detecting rice.

为了实现上述目的,本申请通过如下的技术方案来实现:In order to achieve the above objectives, the present application is implemented through the following technical solutions:

第一方面,本申请提供一种稻谷损伤检测装置,包括:供料模块、排序模块、光源模块、视觉传感器模块以及主控单元,所述排序模块与所述供料模块连接,所述光源模块设于所述排序模块的相对下方,所述视觉传感器设于所述排序模块的相对上方,且所述视觉传感器和所述光源模块位于同一垂直轴线上,所述主控单元与所述视觉传感器连接;In a first aspect, the present application provides a rice damage detection device, comprising: a feeding module, a sorting module, a light source module, a visual sensor module and a main control unit, wherein the sorting module is connected to the feeding module, the light source module is arranged relatively below the sorting module, the visual sensor is arranged relatively above the sorting module, and the visual sensor and the light source module are located on the same vertical axis, and the main control unit is connected to the visual sensor;

所述供料模块用于驱使稻谷朝向排序模块的方向移动;The feeding module is used to drive the rice to move towards the sorting module;

所述排序模块用于对稻谷进行单粒轴向排队,所述排序模块上设有光孔;The sorting module is used to axially arrange the rice grains individually, and a light hole is provided on the sorting module;

光源模块用于向所述光孔发射光线;The light source module is used to emit light to the light hole;

所述视觉传感器模块用于获取经过所述排序模块的稻谷在所述光线下的图像;The visual sensor module is used to obtain the image of the rice passing through the sorting module under the light;

所述主控单元用于根据所述图像信息检测稻谷的内部损伤情况。The main control unit is used to detect the internal damage of the rice according to the image information.

可选地,所述供料模块包括底座、第一弹片组、第二弹片组、电磁激振器、送料槽、衔铁以及料斗,所述第一弹片组的一端与所述送料槽连接,所述第一弹片组的另一端与所述底座连接,所述第二弹片组与所述第一弹片组相背对设置,所述第二弹片组的一端与所述送料槽连接,所述第二弹片组的另一端与所述底座连接,所述衔铁设于所述第一弹片组上,所述电磁激振器设于所述底座上,且所述电磁激振器正对所述衔铁设置,所述料斗设于所述料槽上,且位于所述料槽的一端,所述料槽的另一端与所述排序模块连接。Optionally, the feeding module includes a base, a first spring sheet group, a second spring sheet group, an electromagnetic exciter, a feed trough, an armature and a hopper, one end of the first spring sheet group is connected to the feed trough, the other end of the first spring sheet group is connected to the base, the second spring sheet group is arranged opposite to the first spring sheet group, one end of the second spring sheet group is connected to the feed trough, the other end of the second spring sheet group is connected to the base, the armature is arranged on the first spring sheet group, the electromagnetic exciter is arranged on the base, and the electromagnetic exciter is arranged opposite to the armature, the hopper is arranged on the trough and is located at one end of the trough, and the other end of the trough is connected to the sorting module.

可选地,所述排序模块包括并列设置的N条通道和集料槽,N为正整数,所述N条通道均为V形通道,每一通道包括第一侧面和第二侧面,且所述第一侧面的靠近所述供料模块的一端设有第一落料口,所述第二侧面的靠近所述供料模块的一端设有第二落料口,且所述第一落料口和所述第二落料口均朝向远离V形底边的方向设置以形成预留通道,所述第一落料口的宽度小于所述第一侧面的宽度,所述第二落料口的宽度小于所述第二侧面的宽度,其中,所述预留通道的宽度大于单粒稻谷的尺寸且小于双粒稻谷的尺寸;Optionally, the sorting module includes N channels and collecting troughs arranged in parallel, N is a positive integer, the N channels are all V-shaped channels, each channel includes a first side surface and a second side surface, and an end of the first side surface close to the feeding module is provided with a first drop opening, and an end of the second side surface close to the feeding module is provided with a second drop opening, and the first drop opening and the second drop opening are both arranged in a direction away from the bottom edge of the V-shape to form a reserved channel, the width of the first drop opening is smaller than the width of the first side surface, and the width of the second drop opening is smaller than the width of the second side surface, wherein the width of the reserved channel is larger than the size of a single-grain rice and smaller than the size of a double-grain rice;

所述集料槽设于所述第一落料口和所述第二落料口的下方以收集从所述第一落料口和所述第二落料口掉落的稻谷;The collecting trough is arranged below the first and second dropping openings to collect the rice grains dropped from the first and second dropping openings;

且,每一通道远离供料模块的一端设有第一通光孔,所述第一通光孔与所述光源模块相对设置。Furthermore, a first light-through hole is disposed at one end of each channel away from the feeding module, and the first light-through hole is disposed opposite to the light source module.

可选地,所述光源模块包括导光条和冷光源组件,所述冷光源组件包括遮光罩和设于所述遮光罩内部的冷光源,所述遮光罩上设有第二通光孔,所述导光条的一端连接所述第一通光孔,所述导光条的另一端连接所述第二通光孔。Optionally, the light source module includes a light guide bar and a cold light source assembly, the cold light source assembly includes a light shield and a cold light source arranged inside the light shield, the light shield is provided with a second light through hole, one end of the light guide bar is connected to the first light through hole, and the other end of the light guide bar is connected to the second light through hole.

可选地,还包括盖板、底板以及支撑架,所述支撑架的一端与所述盖板连接,且所述支撑架的另一端与所述底板连接以形成密闭容腔以收容所述排序模块和所述光源模块。Optionally, it further includes a cover plate, a bottom plate and a support frame, one end of the support frame is connected to the cover plate, and the other end of the support frame is connected to the bottom plate to form a closed cavity to accommodate the sorting module and the light source module.

可选地,所述主控单元包括稻谷检测子单元和分类计数子单元,所述稻谷检测子单元用于对所述图像进行识别,得到所述稻谷对应的目标框,还用于确定目标框的目标框坐标和目标框类型,所述目标框坐标用于指示稻谷在图像中的位置,所述目标框类型用于指示图像中的稻谷类型,所述稻谷类型包括内部有损伤稻谷或者内部无损伤稻谷;Optionally, the main control unit includes a rice detection subunit and a classification and counting subunit, the rice detection subunit is used to identify the image, obtain a target frame corresponding to the rice, and is also used to determine a target frame coordinate and a target frame type of the target frame, the target frame coordinate is used to indicate the position of the rice in the image, and the target frame type is used to indicate the type of rice in the image, and the rice type includes rice with internal damage or rice without internal damage;

所述分类计数子单元用于基于目标框坐标和目标框类型进行分类处理得到稻谷的内部损伤情况,所述稻谷的内部损伤情况包括内部有损伤稻谷数量、内部无损伤稻谷数量以及损伤率。The classification counting subunit is used to perform classification processing based on the target frame coordinates and the target frame type to obtain the internal damage status of the rice, wherein the internal damage status of the rice includes the number of internally damaged rice, the number of internally undamaged rice and the damage rate.

第二方面,本申请还提供一种稻谷损伤检测方法,应用于上述第一方面所述的稻谷损伤检测装置,所述方法包括:In a second aspect, the present application further provides a rice damage detection method, which is applied to the rice damage detection device described in the first aspect, and the method comprises:

供料模块驱使稻谷朝向排序模块的方向移动;The feeding module drives the rice toward the sorting module;

排序模块对稻谷进行单粒轴向排队,所述排序模块上设有光孔;The sorting module arranges the rice grains in axial order, and the sorting module is provided with light holes;

光源模块向所述光孔发射光线;The light source module emits light toward the light hole;

视觉传感器模块获取经过所述排序模块的稻谷在所述光线下的图像;The visual sensor module obtains the image of the rice passing through the sorting module under the light;

主控单元根据所述图像信息检测稻谷的内部损伤情况。The main control unit detects the internal damage of the rice according to the image information.

可选地,所述主控单元包括稻谷检测子单元和分类计数子单元,主控单元根据所述图像信息检测稻谷的内部损伤情况,包括:Optionally, the main control unit includes a rice detection subunit and a classification and counting subunit, and the main control unit detects internal damage of the rice according to the image information, including:

稻谷检测子单元对所述图像进行识别,得到所述稻谷对应的目标框,并确定目标框的目标框坐标和目标框类型,所述目标框坐标用于指示稻谷在图像中的位置,所述目标框类型用于指示图像中的稻谷类型,所述稻谷类型包括内部有损伤稻谷或者内部无损伤稻谷;The rice detection subunit identifies the image, obtains a target frame corresponding to the rice, and determines a target frame coordinate and a target frame type of the target frame, wherein the target frame coordinate is used to indicate a position of the rice in the image, and the target frame type is used to indicate a type of rice in the image, wherein the type of rice includes rice with internal damage or rice without internal damage;

分类计数子单元基于目标框坐标和目标框类型进行分类处理得到稻谷的内部损伤情况,所述稻谷的内部损伤情况包括内部有损伤稻谷数量、内部无损伤稻谷数量以及损伤率。The classification counting subunit performs classification processing based on the target frame coordinates and the target frame type to obtain the internal damage status of the rice, wherein the internal damage status of the rice includes the number of internally damaged rice, the number of internally undamaged rice and the damage rate.

有益效果:Beneficial effects:

本申请提供的稻谷损伤检测装置,采用供料模块驱使稻谷朝向排序模块的方向移动;排序模块对稻谷进行单粒轴向排队,排序模块上设有光孔;光源模块向所述光孔发射光线;视觉传感器模块获取经过所述排序模块的稻谷在所述光线下的图像;并采用主控单元根据所述图像信息检测稻谷的内部损伤情况,这样,通过各模块的配合工作,可以自动实现对稻谷内部损伤情况的检测,能够准确获取较大数量稻谷的内部损伤率。The rice damage detection device provided in the present application adopts a feeding module to drive the rice to move toward the sorting module; the sorting module axially arranges the rice grains, and a light hole is provided on the sorting module; the light source module emits light to the light hole; the visual sensor module obtains the image of the rice passing through the sorting module under the light; and the main control unit is used to detect the internal damage of the rice based on the image information. In this way, through the coordinated work of each module, the internal damage of the rice can be automatically detected, and the internal damage rate of a large number of rice grains can be accurately obtained.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请优选实施例的一种稻谷损伤检测装置的主视图;FIG1 is a front view of a rice damage detection device according to a preferred embodiment of the present application;

图2为本申请优选实施例的一种稻谷损伤检测装置的左视图;FIG2 is a left view of a rice damage detection device according to a preferred embodiment of the present application;

图3为本申请优选实施例的一种稻谷损伤检测装置的轴视图;FIG3 is an axial view of a rice damage detection device according to a preferred embodiment of the present application;

图4为本发明优选实施例的稻谷在光线照射下的反射情况示意图;FIG4 is a schematic diagram of the reflection of rice under light irradiation according to a preferred embodiment of the present invention;

图5为本申请优选实施例的供料模块的示意图;FIG5 is a schematic diagram of a feeding module according to a preferred embodiment of the present application;

图6为本申请优选实施例的排序模块的示意图;FIG6 is a schematic diagram of a sorting module according to a preferred embodiment of the present application;

图7为本申请优选实施例的光源模块的示意图;FIG7 is a schematic diagram of a light source module according to a preferred embodiment of the present application;

图8为本发明优选实施例的排序模块与光源模块的连接示意图;FIG8 is a schematic diagram of the connection between the sorting module and the light source module according to a preferred embodiment of the present invention;

图9为本发明优选实施例的稻谷移动方向与坐标值的示意图;9 is a schematic diagram of the movement direction and coordinate values of rice in a preferred embodiment of the present invention;

图10为本发明优选实施例的一种基于深度学习的稻谷损伤检测方法的流程图之一;FIG10 is a flow chart of a rice damage detection method based on deep learning according to a preferred embodiment of the present invention;

图11为本发明优选实施例的一种基于深度学习的稻谷损伤检测方法的流程图之二。FIG11 is a second flowchart of a rice damage detection method based on deep learning according to a preferred embodiment of the present invention.

附图标记:Reference numerals:

1、供料模块;1-1、底座;1-2、第二弹片组;1-3、料斗;1-4、送料槽;1-5、第一弹片组;1-6、衔铁;1-7、电磁激振器;2、盖板;3、视觉传感器安装架;4、视觉传感器模块;5、光源模块;3-1、排序模块;3-2、导光条;3-3、冷光源组件;3-1-1、通道;3-1-2、第一通光孔;3-1-3、集料槽;3-1-4、第一落料口;3-3-1、冷光源;3-3-2、遮光罩;3-3-3、第二通光孔;6、底板;7、支撑架;8、主控单元;201、光源;202、裁样板;203、稻谷;204、裂纹。1. Feeding module; 1-1. Base; 1-2. Second spring piece group; 1-3. Hopper; 1-4. Feeding trough; 1-5. First spring piece group; 1-6. Armature; 1-7. Electromagnetic exciter; 2. Cover plate; 3. Visual sensor mounting bracket; 4. Visual sensor module; 5. Light source module; 3-1. Sorting module; 3-2. Light guide bar; 3-3. Cold light source assembly; 3-1-1. Channel; 3-1-2. First light hole; 3-1-3. Collecting trough; 3-1-4. First drop opening; 3-3-1. Cold light source; 3-3-2. Light shield; 3-3-3. Second light hole; 6. Bottom plate; 7. Support frame; 8. Main control unit; 201. Light source; 202. Cutting plate; 203. Rice; 204. Crack.

具体实施方式DETAILED DESCRIPTION

下面对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solution of the present application is described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

除非另作定义,本申请中使用的技术术语或者科学术语应当为本申请所属领域内具有一般技能的人士所理解的通常意义。本申请中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。同样,“一个”或者“一”等类似词语也不表示数量限制,而是表示存在至少一个。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。“上”、“下”、“左”、“右”等仅用于表示相对位置关系,当被描述对象的绝对位置改变后,则该相对位置关系也相应地改变。Unless otherwise defined, the technical terms or scientific terms used in this application should be understood by people with ordinary skills in the field to which this application belongs. The "first", "second" and similar words used in this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one" or "one" do not indicate quantity restrictions, but indicate the existence of at least one. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship also changes accordingly.

请参见图1-图3,本申请提供的一种稻谷损伤检测装置,包括:供料模块1、排序模块3-1、光源模块5、视觉传感器模块4以及主控单元8,所述排序模块3-1与所述供料模块1连接,所述光源模块5设于所述排序模块3-1的相对下方,所述视觉传感器设于所述排序模块3-1的相对上方,且所述视觉传感器和所述光源模块5位于同一垂直轴线上,所述主控单元8与所述视觉传感器连接;Referring to Figures 1 to 3, a rice damage detection device provided in the present application includes: a feeding module 1, a sorting module 3-1, a light source module 5, a visual sensor module 4 and a main control unit 8, wherein the sorting module 3-1 is connected to the feeding module 1, the light source module 5 is arranged relatively below the sorting module 3-1, the visual sensor is arranged relatively above the sorting module 3-1, and the visual sensor and the light source module 5 are located on the same vertical axis, and the main control unit 8 is connected to the visual sensor;

所述供料模块1用于驱使稻谷朝向排序模块3-1的方向移动;The feeding module 1 is used to drive the rice to move towards the sorting module 3-1;

所述排序模块3-1用于对稻谷进行单粒轴向排队,所述排序模块3-1上设有光孔;The sorting module 3-1 is used to axially arrange the rice grains, and a light hole is provided on the sorting module 3-1;

光源模块5用于向所述光孔发射光线;The light source module 5 is used to emit light to the light hole;

所述视觉传感器模块4用于获取经过所述排序模块3-1的稻谷在所述光线下的图像;The visual sensor module 4 is used to obtain the image of the rice passing through the sorting module 3-1 under the light;

所述主控单元8用于根据所述图像信息检测稻谷的内部损伤情况。The main control unit 8 is used to detect the internal damage of the rice according to the image information.

需要说明的是,如图4所示,假设稻谷203是一个椭球型实体,由外部谷壳与内部大米组成,将稻谷203放置于裁样板202上,利用稻谷203的光学特性,在稻谷203一端底部布置光源201,一部分光线被反射,另一部分光线透过谷壳进入稻谷203内部,光线在稻谷203内部经透射、折射,从稻谷203上方可观察辨别稻谷203内部情况,完整无损伤的稻谷203整体亮度均匀通透,而内部有裂纹204等损伤的稻谷203在其损伤处可观测到亮度较无损伤处要暗的区域,这是因为透入到稻谷203内部的光线经裂纹204等损伤面时会伴有较强烈的反射,损伤区域另一侧的光强会明显减弱,损伤区域两侧的亮度有明显的反差。It should be noted that, as shown in Figure 4, assuming that the rice 203 is an ellipsoidal entity, consisting of an outer husk and an inner rice, the rice 203 is placed on the cutting board 202, and the optical properties of the rice 203 are used to arrange a light source 201 at the bottom of one end of the rice 203, so that part of the light is reflected, and the other part of the light passes through the husk to enter the inside of the rice 203. The light is transmitted and refracted inside the rice 203, and the internal situation of the rice 203 can be observed from above the rice 203. The overall brightness of the intact and undamaged rice 203 is uniform and transparent, while the rice 203 with internal damage such as cracks 204 can be observed at the damaged area as an area with darker brightness than the undamaged area. This is because the light penetrating into the rice 203 will be accompanied by stronger reflection when passing through the damaged surface such as cracks 204, and the light intensity on the other side of the damaged area will be significantly weakened, and there is a clear contrast in brightness on both sides of the damaged area.

本实施例中,视觉传感器模块4可以通过视觉传感器安装架3安装于正对稻谷的位置,视觉传感器模块4可以采用1080p、30f/s、可十倍光学变焦的高清摄像头,布置在排序模块3-1上的第一通光孔3-1-2正上方,实时采集三条v形通道3-1-1中依次经过冷光照射后稻谷的图像信息,并传输至主控单元8进行检测,每次检测过程中排序模块3-1的集料槽3-1-3中收集的稻谷要再次加入供料模块1的料斗1-3中,直至所有稻谷从排序模块3-1v型通道3-1-1的光孔上通过,完成图像采集。In this embodiment, the visual sensor module 4 can be installed at a position directly opposite to the rice through the visual sensor mounting frame 3. The visual sensor module 4 can use a 1080p, 30f/s, ten-fold optical zoom high-definition camera, which is arranged directly above the first light hole 3-1-2 on the sorting module 3-1, and real-time image information of the rice after being irradiated with cold light in the three V-shaped channels 3-1-1 in turn is collected, and transmitted to the main control unit 8 for detection. During each detection process, the rice collected in the collecting trough 3-1-3 of the sorting module 3-1 is added again to the hopper 1-3 of the feeding module 1 until all the rice passes through the light hole of the V-shaped channel 3-1-1 of the sorting module 3-1 to complete the image acquisition.

上述的稻谷损伤检测装置,通过各模块的配合工作,将需检测的稻谷排序依次通过有光源照射的检测区,利用稻谷光学特性,实现内部损伤稻谷特征的无损显现,检测区视觉传感装置在线获取稻谷图像并传输至主控单元8,利用设于主控单元8内的训练好的深度学习目标检测与计数模型对内部损伤稻谷和无损伤稻谷进行目标检测与分类计数,计算损伤率,可以自动实现对稻谷内部损伤情况的检测,能够准确获取较大数量稻谷的内部损伤率。The above-mentioned rice damage detection device, through the coordinated work of each module, sorts the rice to be detected and passes it through the detection area illuminated by the light source in turn, and uses the optical properties of the rice to achieve non-destructive display of the characteristics of the internally damaged rice. The visual sensing device in the detection area obtains the rice image online and transmits it to the main control unit 8. The trained deep learning target detection and counting model provided in the main control unit 8 is used to perform target detection and classification counting on the internally damaged rice and the undamaged rice, and the damage rate is calculated. The internal damage of the rice can be automatically detected, and the internal damage rate of a large number of rice can be accurately obtained.

可选地,请参见图5,所述供料模块1包括底座1-1、第一弹片组1-5、第二弹片组1-2、电磁激振器1-7、送料槽1-4、衔铁1-6以及料斗1-3,所述第一弹片组1-5的一端与所述送料槽1-4连接,所述第一弹片组1-5的另一端与所述底座1-1连接,所述第二弹片组1-2与所述第一弹片组1-5相背对设置,所述第二弹片组1-2的一端与所述送料槽1-4连接,所述第二弹片组1-2的另一端与所述底座1-1连接,所述衔铁1-6设于所述第一弹片组1-5上,所述电磁激振器1-7设于所述底座1-1上,且所述电磁激振器1-7正对所述衔铁1-6设置,所述料斗1-3设于所述料槽上,且位于所述料槽的一端,所述料槽的另一端与所述排序模块3-1连接。Optionally, please refer to Figure 5, the feeding module 1 includes a base 1-1, a first spring sheet group 1-5, a second spring sheet group 1-2, an electromagnetic exciter 1-7, a feeding trough 1-4, an armature 1-6 and a hopper 1-3, one end of the first spring sheet group 1-5 is connected to the feeding trough 1-4, the other end of the first spring sheet group 1-5 is connected to the base 1-1, the second spring sheet group 1-2 is arranged opposite to the first spring sheet group 1-5, one end of the second spring sheet group 1-2 is connected to the feeding trough 1-4, the other end of the second spring sheet group 1-2 is connected to the base 1-1, the armature 1-6 is arranged on the first spring sheet group 1-5, the electromagnetic exciter 1-7 is arranged on the base 1-1, and the electromagnetic exciter 1-7 is arranged opposite to the armature 1-6, the hopper 1-3 is arranged on the trough, and is located at one end of the trough, and the other end of the trough is connected to the sorting module 3-1.

本实施例中,电磁激振器1-7通过半波整流后的单向脉冲电流产生周期性脉冲电磁力,配合第一弹片组1-5和第二弹片组1-2驱动送料槽1-4做往复振动,使稻谷沿送料槽1-4向前定向移动,这样,可以实现自动送料的过程,无需人工操作,减少了人力成本。In this embodiment, the electromagnetic exciter 1-7 generates a periodic pulse electromagnetic force through a unidirectional pulse current after half-wave rectification, and cooperates with the first spring group 1-5 and the second spring group 1-2 to drive the feeding trough 1-4 to vibrate reciprocatingly, so that the rice moves forward in a directional manner along the feeding trough 1-4. In this way, the automatic feeding process can be realized without manual operation, reducing labor costs.

可选地,请参见图6,所述排序模块3-1包括并列设置的N条通道3-1-1和集料槽3-1-3,N为正整数,所述N条通道3-1-1均为V形通道3-1-1,每一通道3-1-1包括第一侧面和第二侧面,且所述第一侧面的靠近所述供料模块1的一端设有第一落料口3-1-4,所述第二侧面的靠近所述供料模块1的一端设有第二落料口,且所述第一落料口3-1-4和所述第二落料口均朝向远离V形底边的方向设置以形成预留通道3-1-1,所述第一落料口3-1-4的宽度小于所述第一侧面的宽度,所述第二落料口的宽度小于所述第二侧面的宽度,其中,所述预留通道3-1-1的宽度大于单粒稻谷的尺寸且小于双粒稻谷的尺寸;Optionally, referring to FIG6 , the sorting module 3-1 includes N channels 3-1-1 and a collecting trough 3-1-3 arranged in parallel, N is a positive integer, the N channels 3-1-1 are all V-shaped channels 3-1-1, each channel 3-1-1 includes a first side surface and a second side surface, and the first side surface is provided with a first drop opening 3-1-4 at one end close to the feeding module 1, and the second side surface is provided with a second drop opening at one end close to the feeding module 1, and the first drop opening 3-1-4 and the second drop opening are both arranged in a direction away from the bottom edge of the V-shape to form a reserved channel 3-1-1, the width of the first drop opening 3-1-4 is smaller than the width of the first side surface, and the width of the second drop opening is smaller than the width of the second side surface, wherein the width of the reserved channel 3-1-1 is larger than the size of a single-grain rice and smaller than the size of a double-grain rice;

所述集料槽3-1-3设于所述第一落料口3-1-4和所述第二落料口的下方以收集从所述第一落料口3-1-4和所述第二落料口掉落的稻谷;The collecting trough 3-1-3 is arranged below the first drop opening 3-1-4 and the second drop opening to collect the rice dropped from the first drop opening 3-1-4 and the second drop opening;

且,每一通道3-1-1远离供料模块1的一端设有第一通光孔3-1-2,所述第一通光孔3-1-2与所述光源模块5相对设置。Furthermore, a first light-through hole 3 - 1 - 2 is provided at one end of each channel 3 - 1 - 1 away from the feeding module 1 , and the first light-through hole 3 - 1 - 2 is arranged opposite to the light source module 5 .

可选地,请参见图7,所述光源模块5包括导光条3-2和冷光源组件3-3,所述冷光源组件3-3包括遮光罩3-3-2和设于所述遮光罩3-3-2内部的冷光源3-3-1,所述遮光罩3-3-2上设有第二通光孔3-3-3,如图8所示,所述导光条3-2的一端连接所述第一通光孔3-1-2,所述导光条3-2的另一端连接所述第二通光孔3-3-3,其中,图8的A-A剖视示意图与图7一致。Optionally, referring to FIG7 , the light source module 5 includes a light guide bar 3-2 and a cold light source assembly 3-3, the cold light source assembly 3-3 includes a light shield 3-3-2 and a cold light source 3-3-1 disposed inside the light shield 3-3-2, the light shield 3-3-2 is provided with a second light through hole 3-3-3, as shown in FIG8 , one end of the light guide bar 3-2 is connected to the first light through hole 3-1-2, and the other end of the light guide bar 3-2 is connected to the second light through hole 3-3-3, wherein the A-A cross-sectional schematic diagram of FIG8 is consistent with FIG7 .

本实施例中,排序模块3-1安装在供料模块1送料槽1-4前端,具体而言,排序模块3-1配置有三条v形通道3-1-1,v形通道3-1-1前端两侧开有两个落料口,两个落料口朝向远离V形底边的方向设置以形成预留通道3-1-1,可保证每条通道3-1-1中的稻谷只能单粒轴向排队依次通过预留通道3-1-1,多余稻谷从落料口落入下方的集料槽3-1-3,每条v形通道3-1-1下开有第一通光孔3-1-2;光源模块5主要由冷光源3-3-1与不透光的遮光罩3-3-2构成,遮光罩3-3-2顶部同样开有第二通光孔3-3-3,通过导光条3-2连接排序模块3-1v形通道3-1-1上的第一通光孔3-1-2与光源模块5上遮光罩3-3-2上的第二通光孔3-3-3,冷光源3-3-1产生的光沿导光条3-2从排序模块3-1的v形通道3-1-1下的光孔向上照射。In this embodiment, the sorting module 3-1 is installed at the front end of the feeding trough 1-4 of the feeding module 1. Specifically, the sorting module 3-1 is configured with three V-shaped channels 3-1-1. Two drop openings are opened on both sides of the front end of the V-shaped channel 3-1-1. The two drop openings are arranged in a direction away from the bottom edge of the V shape to form a reserved channel 3-1-1, which can ensure that only single grains of rice in each channel 3-1-1 can be axially queued and pass through the reserved channel 3-1-1 in turn, and the excess rice falls from the drop opening into the collecting trough 3-1-3 below. A first light hole 3-1-2 is provided; the light source module 5 is mainly composed of a cold light source 3-3-1 and an opaque light shield 3-3-2, and a second light hole 3-3-3 is also provided on the top of the light shield 3-3-2. The first light hole 3-1-2 on the V-shaped channel 3-1-1 of the sorting module 3-1 and the second light hole 3-3-3 on the light shield 3-3-2 on the light source module 5 are connected through a light guide bar 3-2. The light generated by the cold light source 3-3-1 is irradiated upward from the light hole under the V-shaped channel 3-1-1 of the sorting module 3-1 along the light guide bar 3-2.

可选地,上述的稻谷损伤检测装置还包括盖板2、底板6以及支撑架7,所述支撑架7的一端与所述盖板2连接,且所述支撑架7的另一端与所述底板6连接以形成密闭容腔以收容所述排序模块3-1和所述光源模块5。这样,通过形成密闭容腔,可以保证光源发射的光线照向稻谷时不受外界光线的影响。Optionally, the rice damage detection device further comprises a cover plate 2, a bottom plate 6 and a support frame 7, one end of the support frame 7 is connected to the cover plate 2, and the other end of the support frame 7 is connected to the bottom plate 6 to form a closed cavity to accommodate the sorting module 3-1 and the light source module 5. In this way, by forming a closed cavity, it can be ensured that the light emitted by the light source is not affected by external light when it shines on the rice.

可选地,所述主控单元8包括稻谷检测子单元和分类计数子单元,所述稻谷检测子单元用于对所述图像进行识别,得到所述稻谷对应的目标框,还用于确定目标框的目标框坐标和目标框类型,所述目标框坐标用于指示稻谷在图像中的位置,所述目标框类型用于指示图像中的稻谷类型,所述稻谷类型包括内部有损伤稻谷或者内部无损伤稻谷;Optionally, the main control unit 8 includes a rice detection subunit and a classification counting subunit, the rice detection subunit is used to identify the image, obtain the target frame corresponding to the rice, and is also used to determine the target frame coordinates and the target frame type of the target frame, the target frame coordinates are used to indicate the position of the rice in the image, and the target frame type is used to indicate the type of rice in the image, and the rice type includes internally damaged rice or internally undamaged rice;

所述分类计数子单元用于基于目标框坐标和目标框类型进行分类处理得到稻谷的内部损伤情况,所述稻谷的内部损伤情况包括内部有损伤稻谷数量、内部无损伤稻谷数量以及损伤率。The classification counting subunit is used to perform classification processing based on the target frame coordinates and the target frame type to obtain the internal damage status of the rice, wherein the internal damage status of the rice includes the number of internally damaged rice, the number of internally undamaged rice and the damage rate.

本实施例中,稻谷检测子模型可以是YOLOv4模型,其主要包括BackBone、Neck、Head三大部分,BackBone采用了跨阶段局部网络CSPDarknet53,其对输入的图像进行卷积处理后进行5次残差网络结构训练;Neck部分包括空间金字塔池化层SPP与路径聚合网络PANe;CSPDarknet53处理得到的最后一层特征层经过3次卷积运算后被导入SPP进行池化和堆叠处理,处理结果再经过3次卷积运算后被导入PANet与CSPDarknet53得到特征层1和特征层2进行多次上采样与下采样,完成特征融合,最后在Head部分利用提取的特征进行预测,从而得到图像的识别结果,本实施例中,图像的识别结果是指识别图像中的稻谷类型,稻谷类型是指图像中的稻谷为内部有损伤稻谷或者内部无损伤稻谷。这样,基于稻谷检测子模型可以快速确定图像中的稻谷类型。In the present embodiment, the rice detection submodel can be a YOLOv4 model, which mainly includes three parts: BackBone, Neck, and Head. BackBone uses a cross-stage local network CSPDarknet53, which performs 5 residual network structure trainings on the input image after convolution processing; the Neck part includes a spatial pyramid pooling layer SPP and a path aggregation network PANe; the last feature layer obtained by CSPDarknet53 is imported into SPP for pooling and stacking processing after 3 convolution operations, and the processing result is imported into PANet and CSPDarknet53 after 3 convolution operations to obtain feature layer 1 and feature layer 2 for multiple upsampling and downsampling, complete feature fusion, and finally predict using the extracted features in the Head part to obtain the recognition result of the image. In the present embodiment, the recognition result of the image refers to the rice type in the recognition image, and the rice type refers to the rice in the image as internally damaged rice or internally undamaged rice. In this way, the rice type in the image can be quickly determined based on the rice detection submodel.

进一步地,在稻谷检测子模型的基础上结合分类计数子模型,实现对两类稻谷(内有损伤稻谷、内部无损伤稻谷)进行目标识别检测同时实现分类计数。Furthermore, based on the rice detection sub-model, the classification and counting sub-model is combined to realize target recognition and detection of two types of rice (damaged rice inside and undamaged rice inside) and classification and counting at the same time.

下面,对主控单元8根据图像信息检测稻谷的内部损伤情况的原理进行详细说明。Next, the principle of the main control unit 8 detecting the internal damage of the rice grains based on the image information will be described in detail.

在一示例中,稻谷检测子单元中设有稻谷检测子模型,分类计数子单元中设有分类计数子模型,首先,基于稻谷检测子模型确定图像中的稻谷类型,稻谷类型包括内部有损伤稻谷或者内部无损伤稻谷;锁定图像中的稻谷区域,生成稻谷区域对应的目标框,并确定目标框的目标框坐标和目标框类型,目标框坐标用于指示稻谷在图像中的位置,目标框类型用于指示图像中的稻谷类型;采用分类计数子模型根据同一稻谷在相邻两帧图像中的目标框的坐标和类型确定检测结果。In one example, a rice detection sub-model is provided in a rice detection sub-unit, and a classification counting sub-model is provided in a classification counting sub-unit. Firstly, the type of rice in the image is determined based on the rice detection sub-model, and the rice type includes rice with internal damage or rice without internal damage. The rice area in the image is locked, a target frame corresponding to the rice area is generated, and the target frame coordinates and the target frame type of the target frame are determined. The target frame coordinates are used to indicate the position of the rice in the image, and the target frame type is used to indicate the type of rice in the image. The classification counting sub-model is used to determine the detection result according to the coordinates and type of the target frame of the same rice in two adjacent frames of images.

其中,目标框可以是矩形框,目标框的确定方式根据稻谷的大小和在图像中的位置确定,换言之,目标框用于框选出图像中的稻谷,稻谷在相邻两帧图像中的目标框坐标和目标框类型可以用于体现稻谷的位置变化。Among them, the target frame can be a rectangular frame, and the target frame is determined according to the size of the rice and its position in the image. In other words, the target frame is used to select the rice in the image, and the target frame coordinates and target frame type of the rice in two adjacent frames of images can be used to reflect the position change of the rice.

这样,采用分类计数子模型根据同一稻谷在相邻两帧图像中的目标框坐标和目标框类型确定检测结果,可以快速判断稻谷的变化是否符合正常情况,进而避免某一帧图像出现误差而影响检测结果的情况。In this way, the classification counting sub-model is used to determine the detection result according to the target frame coordinates and target frame type of the same rice in two adjacent frames of images, which can quickly determine whether the changes in the rice are normal, thereby avoiding the situation where errors in a certain frame of image affect the detection result.

具体而言,可以采用分类计数子模型根据同一稻谷在相邻两帧图像中的目标框的坐标和类型确定检测结果,具体步骤包括:若稻谷在当前帧中的目标框和上一帧中的目标框之间的关系满足第一预设条件,则记为内部有损伤稻谷数量加1,若稻谷在当前帧中的目标框和上一帧中的目标框之间的关系满足第二预设条件,则记为内部无损伤稻谷数量加1,若稻谷在当前帧中的目标框和上一帧中的目标框之间的关系满足第三预设条件,则稻谷数量的计数不变。Specifically, a classification counting submodel can be used to determine the detection result according to the coordinates and type of the target frame of the same rice in two adjacent frames of images. The specific steps include: if the relationship between the target frame of the rice in the current frame and the target frame in the previous frame meets the first preset condition, it is recorded as the number of damaged rice inside plus 1; if the relationship between the target frame of the rice in the current frame and the target frame in the previous frame meets the second preset condition, it is recorded as the number of undamaged rice inside plus 1; if the relationship between the target frame of the rice in the current frame and the target frame in the previous frame meets the third preset condition, the count of the number of rice remains unchanged.

这样,通过设定第一预设条件、第二预设条件以及第三预设条件,可以快速实现对不同类型的稻谷的计数。In this way, by setting the first preset condition, the second preset condition and the third preset condition, the counting of different types of rice can be achieved quickly.

请参见图9,稻谷移动方向与坐标值变大的方向相反,即,目标框坐标的值逐帧减小,YOLOv4从某一粒稻谷左端进入光源开始识别检测直至稻谷右端离开光源,期间会连续获取若干帧稻谷图像,并识别其中稻谷类型,标出目标检测框类型,因为稻谷是由右往左移动,故获取的同一粒稻谷图像中的目标检测坐标会逐帧减小,因此比较前后两帧图像中目标检测框坐标大小,当某一帧图像中目标检测框坐标大于前一帧,说明图像中的稻谷出现在前一帧图像中稻谷右边,则可以判定为新的一粒稻谷开始经过检测区,此时根据目标检测框类型,将对应类型稻谷计数加1。Please refer to Figure 9. The direction of rice movement is opposite to the direction in which the coordinate value increases, that is, the value of the target frame coordinate decreases frame by frame. YOLOv4 starts to identify and detect when the left end of a certain rice grain enters the light source until the right end of the rice grain leaves the light source. During this period, several frames of rice images will be continuously acquired, and the rice type will be identified and the target detection frame type will be marked. Because the rice grain moves from right to left, the target detection coordinates in the same rice grain image acquired will decrease frame by frame. Therefore, the target detection frame coordinates in the previous and next two frames are compared. When the target detection frame coordinates in a certain frame are greater than those in the previous frame, it means that the rice in the image appears on the right side of the rice in the previous frame. It can be determined that a new rice grain begins to pass through the detection area. At this time, according to the target detection frame type, the count of the corresponding type of rice is increased by 1.

其中,第一预设条件包括:The first preset condition includes:

稻谷为内部有损伤稻谷的情况下,稻谷在当前帧中的目标框坐标的值大于稻谷在上一帧中的目标框坐标的值;或者,稻谷为内部有损伤稻谷的情况下,稻谷在当前帧中的目标框坐标的值小于或等于稻谷在上一帧中的目标框坐标的值,且稻谷在当前帧中的目标框类型与稻谷在上一帧中的目标框类型不同。When the rice is damaged inside, the value of the target frame coordinates of the rice in the current frame is greater than the value of the target frame coordinates of the rice in the previous frame; or, when the rice is damaged inside, the value of the target frame coordinates of the rice in the current frame is less than or equal to the value of the target frame coordinates of the rice in the previous frame, and the target frame type of the rice in the current frame is different from the target frame type of the rice in the previous frame.

第二预设条件包括:The second precondition includes:

稻谷为内部无损伤稻谷的情况下,稻谷在当前帧中的目标框坐标的值大于稻谷在上一帧中的目标框坐标的值。When the rice is internally intact, the value of the target frame coordinate of the rice in the current frame is greater than the value of the target frame coordinate of the rice in the previous frame.

第三预设条件包括:The third precondition includes:

稻谷为内部有损伤稻谷的情况下,稻谷在当前帧中的目标框坐标的值小于或等于稻谷在上一帧中的目标框坐标的值,且稻谷在当前帧中的目标框类型与稻谷在上一帧中的目标框类型相同;或者,稻谷为内部无损伤稻谷的情况下,稻谷在当前帧中的目标框坐标的值小于或等于稻谷在上一帧中的目标框坐标的值。When the rice is damaged inside, the value of the target frame coordinates of the rice in the current frame is less than or equal to the value of the target frame coordinates of the rice in the previous frame, and the target frame type of the rice in the current frame is the same as the target frame type of the rice in the previous frame; or, when the rice is undamaged inside, the value of the target frame coordinates of the rice in the current frame is less than or equal to the value of the target frame coordinates of the rice in the previous frame.

具体而言,还可以采用分类计数子模型根据同一稻谷在相邻两帧图像中的目标框的坐标和类型确定检测结果,具体步骤包括:Specifically, the classification counting sub-model can also be used to determine the detection result according to the coordinates and types of the target boxes of the same rice in two adjacent frames of images. The specific steps include:

稻谷为内部有损伤稻谷的情况下,若稻谷在当前帧中的目标框坐标的值小于或等于稻谷在上一帧中的目标框坐标的值,且稻谷在当前帧中的目标框类型与稻谷在上一帧中的目标框类型不相同,则将内部有损伤稻谷数量加1,将内部无损伤稻谷数量减1。In the case where the rice is damaged inside, if the value of the target frame coordinates of the rice in the current frame is less than or equal to the value of the target frame coordinates of the rice in the previous frame, and the target frame type of the rice in the current frame is different from the target frame type of the rice in the previous frame, then the number of damaged rice inside is increased by 1, and the number of undamaged rice inside is decreased by 1.

需要说明的是,存在少数内部有损伤稻谷初始几帧图像没有显现损伤特性,稻谷移动过程中,其目标框类型会由内部无损伤类型变为内部有损伤类型,按上述计数原理可能出现两种类型稻谷计数都加1的情况。为避免这一问题,对于坐标小于前一帧的内部有损伤类型目标框,增加与前一帧目标框类型的比较,如前后两帧目标框类型不同,则说明出现了上述情况,将内部有损伤稻谷计数加1,内部无损伤稻谷计数减1(该粒稻谷第一帧图像误加1)。It should be noted that there are a few rice grains with internal damage that do not show damage characteristics in the first few frames of images. During the movement of the rice grains, their target frame type will change from the internal non-damaged type to the internal damaged type. According to the above counting principle, the counts of both types of rice grains may be increased by 1. To avoid this problem, for the target frame with internal damage type whose coordinates are smaller than the previous frame, the comparison with the target frame type of the previous frame is added. If the target frame types of the previous and next frames are different, it means that the above situation has occurred, and the count of the rice grain with internal damage is increased by 1, and the count of the rice grain with internal non-damaged is reduced by 1 (the first frame image of the rice grain is mistakenly increased by 1).

在一示例中,可以通过可视化窗口对检测过程与计数进行监控,检测完成后输出内部有损伤稻谷数量与内部无损伤稻谷数量、两类稻谷的总数、内部损伤稻谷比例;另外,检测计数过程中,还可以将每粒稻谷对应的图片被实时分类保存于计算机,方便后续对检测结果进行复核。In one example, the detection process and counting can be monitored through a visualization window. After the detection is completed, the number of damaged rice grains and the number of undamaged rice grains, the total number of the two types of rice, and the proportion of damaged rice grains are output. In addition, during the detection and counting process, the pictures corresponding to each grain of rice can be classified and saved in real time on the computer to facilitate subsequent review of the detection results.

在其他可行的实施方式中,请参见图10-图11,以一完整的工作流程为例对本申请提供的稻谷损伤检测装置的工作原理进行说明,工作时,待检测的稻谷从供料模块1上的料斗1-3加入,供料模块1上的电磁激振器1-7通过半波整流后的单向脉冲电流产生周期性脉冲电磁力,作用在第一弹片组1-5上的衔铁1-6上,驱动第一弹片组1-5做往复振动,第一弹片组1-5再驱动送料槽1-4做往复振动,使稻谷沿送料槽1-4向前定向移动;稻谷移动至排序模块3-1上后,每条V形通道3-1-1中均只有单粒稻谷轴向排队依次通过,多余稻谷从落料口落入下方的集料槽3-1-3;视觉传感模块实时采集三条V形通道3-1-1中依次经过冷光照射后稻谷的图像信息,并传输至主控单元8进行检测。每次检测过程中集料槽3-1-3中收集的稻谷要再次加入供料模块1的料斗1-3中,直至所有稻谷从排序模块3-1的通道3-1-1的第一光孔上通过,完成全部图像实时采集。In other feasible implementations, please refer to Figures 10-11, and take a complete workflow as an example to illustrate the working principle of the rice damage detection device provided by the present application. During operation, the rice to be detected is added from the hopper 1-3 on the feeding module 1, and the electromagnetic exciter 1-7 on the feeding module 1 generates a periodic pulse electromagnetic force through a unidirectional pulse current after half-wave rectification, which acts on the armature 1-6 on the first spring group 1-5, driving the first spring group 1-5 to perform reciprocating vibration, and the first spring group 1-5 then drives the feeding trough 1-4 to perform reciprocating vibration, so that the rice moves forward along the feeding trough 1-4 in a directional manner; after the rice moves to the sorting module 3-1, only a single grain of rice is axially queued and passed in turn in each V-shaped channel 3-1-1, and the excess rice falls from the drop port into the collecting trough 3-1-3 below; the visual sensing module collects the image information of the rice after being irradiated with cold light in the three V-shaped channels 3-1-1 in real time, and transmits it to the main control unit 8 for detection. During each detection process, the rice collected in the collecting trough 3-1-3 is added to the hopper 1-3 of the feeding module 1 again until all the rice passes through the first light hole of the channel 3-1-1 of the sorting module 3-1, completing the real-time acquisition of all images.

视觉传感模块将检测区稻谷图像信息实时传输至主控单元8后,检测软件系统对其进行目标检测与分类计数,本申请的检测软件系统由目标检测与分类计数两部分组成,目标检测部分采用深度学习目标检测模型YOLO V4,对采集传输过来的视频进行实时目标检测,识别其中的稻谷类型(内部有损伤、内部无损伤),并标出目标框,获取每个目标框坐标信息,本申请正式使用前先采集样本,制作训练集,对目标检测模型进行训练与优化直至得满足要求的检测准确度。为实现检测目标的动态分类计数,本申请在训练好的YOLOV4目标检测算法中加入分类计数算法,实现对两类稻谷(内有损伤稻谷、内部无损伤稻谷)进行目标识别检测同时分类计数。After the visual sensing module transmits the detection area rice image information to the main control unit 8 in real time, the detection software system performs target detection and classification counting on it, and the detection software system of the present application is composed of target detection and classification counting two parts, and the target detection part adopts the deep learning target detection model YOLO V4, and the video transmitted by the collection is carried out real-time target detection, and the rice type (inside with damage, inside without damage) is identified, and the target frame is marked, and each target frame coordinate information is obtained. Samples are first collected before the formal use of the present application, and a training set is made, and the target detection model is trained and optimized until the detection accuracy that meets the requirements is obtained. To realize the dynamic classification counting of the detection target, the present application adds a classification counting algorithm in the trained YOLOV4 target detection algorithm, and realizes that two types of rice (inside with damaged rice, inside without damage rice) are carried out to target identification detection and classification counting simultaneously.

本申请还提供一种稻谷损伤检测方法,应用于上述的稻谷损伤检测装置,所述方法包括:The present application also provides a rice damage detection method, which is applied to the above-mentioned rice damage detection device, and the method comprises:

供料模块1驱使稻谷朝向排序模块3-1的方向移动;The feeding module 1 drives the rice to move towards the sorting module 3-1;

排序模块3-1对稻谷进行单粒轴向排队,所述排序模块3-1上设有光孔;The sorting module 3-1 performs axial arrangement of individual rice grains, and the sorting module 3-1 is provided with light holes;

光源模块5向所述光孔发射光线;The light source module 5 emits light toward the light hole;

视觉传感器模块4获取经过所述排序模块3-1的稻谷在所述光线下的图像;The visual sensor module 4 obtains the image of the rice grains passing through the sorting module 3-1 under the light;

主控单元8根据所述图像信息检测稻谷的内部损伤情况。The main control unit 8 detects the internal damage of the rice according to the image information.

该稻谷损伤检测方法可以实现上述的稻谷损伤检测装置的各个实施例,且能达到相同的有益效果,此处,不做赘述。The rice damage detection method can implement the various embodiments of the above-mentioned rice damage detection device and can achieve the same beneficial effects, which will not be described in detail here.

本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上所述的方法步骤。该可读存储介质可以实现上述的方法的各个实施例,且能达到相同的有益效果,此处,不做赘述。The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method steps described above are implemented. The computer-readable storage medium can implement various embodiments of the above method and achieve the same beneficial effects, which will not be described in detail here.

以上详细描述了本申请的较佳具体实施例。应当理解,本领域的普通技术人员无需创造性劳动就可以根据本申请的构思作出诸多修改和变化。因此,凡本技术领域中技术人员依本申请的构思在现有技术的基础上通过逻辑分析、推理或者有限的实验可以得到的技术方案,皆应在由权利要求书所确定的保护范围内。The preferred specific embodiments of the present application are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present application without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art based on the concept of the present application through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.

Claims (8)

1. A rice damage detection device, comprising: the device comprises a feeding module, a sequencing module, a light source module, a vision sensor module and a main control unit, wherein the sequencing module is connected with the feeding module, the light source module is arranged below the sequencing module, the vision sensor is arranged above the sequencing module, the vision sensor and the light source module are positioned on the same vertical axis, and the main control unit is connected with the vision sensor;
The feeding module is used for driving the rice to move towards the direction of the sequencing module;
the sorting module is used for axially queuing the single grains of the rice, and a first light through hole is formed in the sorting module;
The light source module is used for emitting light rays to the light hole;
the visual sensor module is used for acquiring images of the paddy passing through the sorting module under the light rays;
the main control unit is used for detecting internal damage conditions of the paddy according to the image information.
2. The rice damage detection device according to claim 1, wherein the feeding module comprises a base, a first elastic sheet group, a second elastic sheet group, an electromagnetic vibration exciter, a feeding groove, an armature and a hopper, one end of the first elastic sheet group is connected with the feeding groove, the other end of the first elastic sheet group is connected with the base, the second elastic sheet group is oppositely arranged with the first elastic sheet group, one end of the second elastic sheet group is connected with the feeding groove, the other end of the second elastic sheet group is connected with the base, the armature is arranged on the first elastic sheet group, the electromagnetic vibration exciter is arranged on the base and is opposite to the armature, the hopper is arranged on the feeding groove and is positioned at one end of the feeding groove, and the other end of the feeding groove is connected with the sorting module.
3. The device for detecting damage to rice as recited in claim 1, wherein the sequencing module includes N channels and a collecting tank arranged in parallel, N is a positive integer, the N channels are all V-shaped channels, each channel includes a first side surface and a second side surface, a first blanking port is arranged at one end of the first side surface, which is close to the feeding module, a second blanking port is arranged at one end of the second side surface, which is close to the feeding module, and the first blanking port and the second blanking port are both arranged in a direction away from the bottom edge of the V-shape, so as to form a reserved channel, the width of the first blanking port is smaller than the width of the first side surface, and the width of the second blanking port is smaller than the width of the second side surface, wherein the width of the reserved channel is larger than the size of single-grain rice and smaller than the size of double-grain rice;
the collecting groove is arranged below the first blanking port and the second blanking port to collect rice falling from the first blanking port and the second blanking port;
And one end of each channel far away from the feeding module is provided with a first light through hole, and the first light through hole is arranged opposite to the light source module.
4. A rice damage detection device according to claim 3, wherein the light source module comprises a light guide bar and a cold light source assembly, the cold light source assembly comprises a light shield and a cold light source arranged in the light shield, a second light through hole is arranged on the light shield, one end of the light guide bar is connected with the first light through hole, and the other end of the light guide bar is connected with the second light through hole.
5. A rice damage detection device as recited in claim 1, further comprising a cover plate, a bottom plate, and a support frame, wherein one end of the support frame is connected to the cover plate, and the other end of the support frame is connected to the bottom plate to form a closed cavity for accommodating the sequencing module and the light source module.
6. A device for detecting damage to rice as recited in claim 1, wherein the main control unit includes a rice detection subunit and a classification count subunit, the rice detection subunit is configured to identify the image to obtain a target frame corresponding to the rice, and is further configured to determine a target frame coordinate of the target frame and a target frame type, the target frame coordinate is configured to indicate a position of the rice in the image, the target frame type is configured to indicate a type of the rice in the image, and the type of the rice includes damaged rice or non-damaged rice inside;
the classifying and counting subunit is used for classifying and processing based on the target frame coordinates and the target frame types to obtain the internal damage condition of the paddy, wherein the internal damage condition of the paddy comprises the number of the internal damaged paddy, the number of the internal non-damaged paddy and the damage rate.
7. A method for detecting damage to rice as recited in any one of claims 1 to 6, comprising:
The feeding module drives the rice to move towards the direction of the sequencing module;
the sorting module is used for axially queuing the single grains of the rice, and the sorting module is provided with a unthreaded hole;
the light source module emits light rays to the light hole;
The vision sensor module acquires an image of the paddy passing through the sorting module under the light;
The main control unit detects the internal damage condition of the paddy according to the image information.
8. A rice damage detection method as recited in claim 7, wherein the main control unit includes a rice detection subunit and a classification count subunit, and wherein the main control unit detects an internal damage condition of the rice based on the image information, and includes:
The method comprises the steps that a paddy detection subunit identifies the image to obtain a target frame corresponding to the paddy, and determines a target frame coordinate and a target frame type of the target frame, wherein the target frame coordinate is used for indicating the position of the paddy in the image, the target frame type is used for indicating the paddy type in the image, and the paddy type comprises internal damaged paddy or internal non-damaged paddy;
The classifying and counting subunit performs classifying treatment based on the target frame coordinates and the target frame types to obtain internal damage conditions of the rice, wherein the internal damage conditions of the rice comprise the number of the damaged rice, the number of the non-damaged rice and the damage rate.
CN202210350465.4A 2022-04-02 2022-04-02 Rice damage detection device and detection method Active CN114839197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210350465.4A CN114839197B (en) 2022-04-02 2022-04-02 Rice damage detection device and detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210350465.4A CN114839197B (en) 2022-04-02 2022-04-02 Rice damage detection device and detection method

Publications (2)

Publication Number Publication Date
CN114839197A CN114839197A (en) 2022-08-02
CN114839197B true CN114839197B (en) 2024-08-27

Family

ID=82563350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210350465.4A Active CN114839197B (en) 2022-04-02 2022-04-02 Rice damage detection device and detection method

Country Status (1)

Country Link
CN (1) CN114839197B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117969520B (en) * 2024-03-28 2024-07-09 安徽高哲信息技术有限公司 Visual acquisition system for single grain discharging
CN119240248B (en) * 2024-09-29 2025-04-15 安徽农业大学 High-flux intelligent detection method and system for germinated wheat seeds

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BRPI0502132A (en) * 2005-05-20 2007-01-23 Isuzuki Softwares Ltda rice grain grading system
CN110201911A (en) * 2019-07-03 2019-09-06 合肥泰禾光电科技股份有限公司 Paddy sorting unit and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108465648A (en) * 2018-04-23 2018-08-31 苏州香农智能科技有限公司 A kind of magnetic core Automated Sorting System based on machine vision
CN210753887U (en) * 2019-07-03 2020-06-16 合肥泰禾光电科技股份有限公司 Corn sorting unit and equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BRPI0502132A (en) * 2005-05-20 2007-01-23 Isuzuki Softwares Ltda rice grain grading system
CN110201911A (en) * 2019-07-03 2019-09-06 合肥泰禾光电科技股份有限公司 Paddy sorting unit and equipment

Also Published As

Publication number Publication date
CN114839197A (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN114839197B (en) Rice damage detection device and detection method
CN106733701B (en) Potato multi-stage combination dysnusia detecting system and detection method
CN106238342B (en) Panoramic vision potato sorts and defect detecting device and its sorting detection method
CN100506401C (en) Pearl real-time detection and grading system based on machine vision
CN111443028B (en) Automatic monitoring equipment and method for floating algae based on AI technology
CN101701915B (en) Device and method for detecting stored-grain insects based on visible light-near infrared binocular machine vision
CN107309181B (en) An intelligent pearl sorting system based on machine vision
CN102928431B (en) Device for automatically grading pearls on line according to size and shape on basis of monocular multi-view machine vision
CN108655021B (en) Online damaged discernment sorter of maize seed based on machine vision
WO2019114380A1 (en) Wood board identification method, machine learning method and device for wood board identification, and electronic device
CN104749190B (en) The online vision inspection apparatus and its method of a kind of birds, beasts and eggs face crack
JP2016505836A (en) System and method for classification of particles in a fluid sample
CN111340798A (en) Application of deep learning in product appearance flaw detection
CN1804620A (en) Method and apparatus for detecting surface quality of egg
CN102967586A (en) Device for online automatically classifying pearl color and gloss based on monocular multi-view machine vision
CN111879781A (en) Test paper quality detection system based on machine vision
CN118536854A (en) Method and device for intelligently detecting and screening quality of pasture seeds
CN207516257U (en) A kind of wheat seed Image-capturing platform based on machine vision
CN113012244A (en) Egg freshness detection method based on inclusion module and Attention mechanism
CN105154988A (en) Apparatus automatically extracting down feather and extracting method
CN111079831A (en) Intelligent optical detection sample characteristic and flaw automatic marking method and device
CN109934297B (en) Rice seed test method based on deep learning convolutional neural network
CN117647492A (en) Online detection device and method for quality of corn seeds by cooperative air suction of mechanical arm
CN116441190A (en) Longan detection system, method, equipment and storage medium
CN103048274A (en) Method for determining colors and sizes of rape seeds

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
GR01 Patent grant
GR01 Patent grant