[go: up one dir, main page]

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

Rice damage detection device and detection method Download PDF

Info

Publication number
CN114839197A
CN114839197A CN202210350465.4A CN202210350465A CN114839197A CN 114839197 A CN114839197 A CN 114839197A CN 202210350465 A CN202210350465 A CN 202210350465A CN 114839197 A CN114839197 A CN 114839197A
Authority
CN
China
Prior art keywords
paddy
rice
module
light
target frame
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.)
Granted
Application number
CN202210350465.4A
Other languages
Chinese (zh)
Other versions
CN114839197B (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

Images

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

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

Abstract

本申请涉及稻谷内部损伤检测技术领域,尤其涉及一种稻谷损伤检测装置及检测方法,该装置采用供料模块驱使稻谷朝向排序模块的方向移动;排序模块对稻谷进行单粒轴向排队,排序模块上设有光孔;光源模块向所述光孔发射光线;视觉传感器模块获取经过所述排序模块的稻谷在所述光线下的图像;并采用主控单元根据所述图像信息检测稻谷的内部损伤情况,这样,通过各模块的配合工作,可以自动实现对稻谷内部损伤情况的检测,能够准确获取较大数量稻谷的内部损伤率。

Figure 202210350465

The present application relates to the technical field of paddy internal damage detection, and in particular, to a paddy damage detection device and a detection method. The device adopts a feeding module to drive the paddy to move toward the direction of the sorting module; A light hole is arranged on the light source; the light source module emits light to the light hole; the visual sensor module acquires 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 according to the image information. In this way, through the cooperative work of each module, the detection of the internal damage of the paddy can be automatically realized, and the internal damage rate of a large amount of paddy can be accurately obtained.

Figure 202210350465

Description

一种稻谷损伤检测装置及检测方法A kind of rice damage detection device and detection method

技术领域technical field

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

背景技术Background technique

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

发明内容SUMMARY OF THE INVENTION

本申请提供了一种稻谷损伤检测装置及检测方法,以解决现有技术中在检测稻谷时难以实现准确获取较大数量稻谷的内部损伤率的问题。The present application provides a paddy 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 amount of paddy when detecting paddy.

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

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

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

所述排序模块用于对稻谷进行单粒轴向排队,所述排序模块上设有光孔;The sorting module is used for single-grain axial queuing of the rice, and the sorting module is provided with light holes;

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

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

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

可选地,所述供料模块包括底座、第一弹片组、第二弹片组、电磁激振器、送料槽、衔铁以及料斗,所述第一弹片组的一端与所述送料槽连接,所述第一弹片组的另一端与所述底座连接,所述第二弹片组与所述第一弹片组相背对设置,所述第二弹片组的一端与所述送料槽连接,所述第二弹片组的另一端与所述底座连接,所述衔铁设于所述第一弹片组上,所述电磁激振器设于所述底座上,且所述电磁激振器正对所述衔铁设置,所述料斗设于所述料槽上,且位于所述料槽的一端,所述料槽的另一端与所述排序模块连接。Optionally, the feeding module includes a base, a first elastic sheet group, a second elastic sheet group, an electromagnetic exciter, a feeding chute, an armature and a hopper, and one end of the first elastic sheet group is connected to the feeding chute, so the The other end of the first elastic sheet group is connected with the base, the second elastic sheet group is arranged opposite to the first elastic sheet group, one end of the second elastic sheet group is connected with the feeding chute, and the first elastic sheet group is connected to the feeding slot. The other end of the second elastic plate group is connected to the base, the armature is arranged on the first elastic plate group, the electromagnetic vibration exciter is arranged on the base, and the electromagnetic vibration exciter is facing the armature The hopper is arranged on the material trough, and is located at one end of the material trough, and the other end of the material trough is connected with 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, and each channel includes a first side surface and a second side surface, and all of the N channels are V-shaped channels. An end of the first side face close to the feeding module is provided with a first blanking port, an end of the second side face close to the feeding module is provided with a second blanking port, and the first blanking port is provided. Both the opening and the second blanking opening are arranged in a direction away from the bottom edge of the V shape to form a reserved channel, the width of the first blanking opening is smaller than the width of the first side surface, and the second blanking opening The width of the second side is smaller than the width of the second side, wherein the width of the reserved passage is greater than the size of a single grain of rice and less than the size of a double-grained rice;

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

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

可选地,所述光源模块包括导光条和冷光源组件,所述冷光源组件包括遮光罩和设于所述遮光罩内部的冷光源,所述遮光罩上设有第二通光孔,所述导光条的一端连接所述第一通光孔,所述导光条的另一端连接所述第二通光孔。Optionally, the light source module includes a light guide strip 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, and the light shield is provided with a second light through hole, One end of the light guide strip is connected to the first light through hole, and the other end of the light guide strip is connected to the second light through hole.

可选地,还包括盖板、底板以及支撑架,所述支撑架的一端与所述盖板连接,且所述支撑架的另一端与所述底板连接以形成密闭容腔以收容所述排序模块和所述光源模块。Optionally, it also 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 paddy detection subunit and a classification counting subunit, and the paddy detection subunit is used to identify the image, obtain the target frame corresponding to the paddy, and also be used to determine the target frame. The target frame coordinates and target frame type, the target frame coordinates are used to indicate the position of the paddy in the image, the target frame type is used to indicate the type of paddy in the image, and the paddy type includes internally damaged paddy or no internal paddy. damaged rice;

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

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

供料模块驱使稻谷朝向排序模块的方向移动;The feeding module drives the paddy to move towards the direction of the sorting module;

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

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

视觉传感器模块获取经过所述排序模块的稻谷在所述光线下的图像;The visual sensor module acquires the image of the rice grains 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 paddy detection subunit and a classification counting subunit, and the main control unit detects the internal damage of the paddy according to the image information, including:

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

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

有益效果:Beneficial effects:

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

附图说明Description of drawings

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

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

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

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

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

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

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

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

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

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

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

附图标记:Reference number:

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 shrapnel group; 1-3, hopper; 1-4, feeding chute; 1-5, first shrapnel group; 1-6, armature; 1 -7. Electromagnetic exciter; 2. Cover plate; 3. Vision sensor mounting frame; 4. Vision sensor module; 5. Light source module; 3-1, Sorting module; 3-2, Light guide strip; 3-3, Cold light source assembly; 3-1-1, channel; 3-1-2, first light-passing hole; 3-1-3, collecting trough; 3-1-4, first blanking port; 3-3- 1. Cold light source; 3-3-2, hood; 3-3-3, second light hole; 6, bottom plate; 7, support frame; 8, main control unit; 201, light source; 202, cutting template; 203, rice; 204, crack.

具体实施方式Detailed ways

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

除非另作定义,本申请中使用的技术术语或者科学术语应当为本申请所属领域内具有一般技能的人士所理解的通常意义。本申请中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。同样,“一个”或者“一”等类似词语也不表示数量限制,而是表示存在至少一个。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。“上”、“下”、“左”、“右”等仅用于表示相对位置关系,当被描述对象的绝对位置改变后,则该相对位置关系也相应地改变。Unless otherwise defined, technical or scientific terms used in this application shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. As used in this application, "first", "second" and similar words do not denote any order, quantity, or importance, but are merely used to distinguish the various components. Likewise, "a" or "an" and the like do not denote a quantitative limitation, but rather denote the presence of at least one. Words like "connected" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "Down", "Left", "Right", etc. are only used to represent the relative positional relationship, and 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与所述视觉传感器连接;Please refer to FIG. 1-FIG. 3. A paddy damage detection device provided by 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. The sorting module 3-1 is connected to the feeding module 1, the light source module 5 is arranged on the opposite side of the sorting module 3-1, the visual sensor is arranged on the opposite side of the sorting module 3-1, and the 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 in the direction of the sorting module 3-1;

所述排序模块3-1用于对稻谷进行单粒轴向排队,所述排序模块3-1上设有光孔;The sorting module 3-1 is used for single-grain axial queuing of rice, and the sorting module 3-1 is provided with a light hole;

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

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

所述主控单元8用于根据所述图像信息检测稻谷的内部损伤情况。The main control unit 8 is used for detecting the internal damage of the paddy 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 FIG. 4 , it is assumed that the paddy 203 is an ellipsoid-shaped entity, which is composed of outer chaff and inner rice, the paddy 203 is placed on the cutting board 202 , and the optical properties of the paddy 203 are used to make the paddy 203 A light source 201 is arranged at the bottom of one end, a part of the light is reflected, and the other part of the light enters the inside of the rice 203 through the husk, and the light is transmitted and refracted inside the rice 203. From the top of the rice 203, the internal conditions of the rice 203 can be observed and identified, and the rice is complete and without damage. The overall brightness of 203 is uniform and transparent, and the damaged area of rice 203 with internal cracks 204 can be observed in areas with darker brightness than those without damage. This is because the light that penetrates into the interior of rice 203 is damaged by cracks 204 and other damages. There will be strong reflection when the surface is damaged, the light intensity on the other side of the damaged area will be significantly weakened, and the brightness on both sides of the damaged area will have obvious contrast.

本实施例中,视觉传感器模块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 in a position facing the rice through the visual sensor mounting bracket 3 , and the visual sensor module 4 can adopt a 1080p, 30f/s, high-definition camera with ten times optical zoom, and is arranged on the sorting module 3 Right above the first light-passing hole 3-1-2 on -1, the image information of the rice after being irradiated by cold light in the three V-shaped channels 3-1-1 is collected in real time, and transmitted to the main control unit 8 for detection. During the first inspection process, the rice collected in the collecting trough 3-1-3 of the sorting module 3-1 should be added to the hopper 1-3 of the feeding module 1 again, until all the rice is removed from the sorting module 3-1 v-channel 3-1 Pass through the light hole of -1 to complete the image acquisition.

上述的稻谷损伤检测装置,通过各模块的配合工作,将需检测的稻谷排序依次通过有光源照射的检测区,利用稻谷光学特性,实现内部损伤稻谷特征的无损显现,检测区视觉传感装置在线获取稻谷图像并传输至主控单元8,利用设于主控单元8内的训练好的深度学习目标检测与计数模型对内部损伤稻谷和无损伤稻谷进行目标检测与分类计数,计算损伤率,可以自动实现对稻谷内部损伤情况的检测,能够准确获取较大数量稻谷的内部损伤率。The above-mentioned paddy damage detection device, through the cooperation of each module, sorts the paddy to be detected through the detection area illuminated by the light source, and utilizes the optical characteristics of the paddy to realize the non-destructive display of the characteristics of the inner damaged paddy, and the visual sensing device in the detection area is online. Obtain the rice image and transmit it to the main control unit 8, use the trained deep learning target detection and counting model set in the main control unit 8 to perform target detection, classification and counting on the internally damaged paddy and the non-damaged paddy, and calculate the damage rate. The detection of the internal damage of the paddy is automatically realized, and the internal damage rate of a large amount 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 FIG. 5 , the feeding module 1 includes a base 1-1, a first elastic sheet group 1-5, a second elastic sheet group 1-2, an electromagnetic vibration exciter 1-7, and a feeding slot 1-4 , armature 1-6 and hopper 1-3, one end of the first elastic plate group 1-5 is connected with the feeding slot 1-4, and the other end of the first elastic plate group 1-5 is connected with the base 1- 1 connection, the second elastic sheet group 1-2 is arranged opposite to the first elastic sheet group 1-5, one end of the second elastic sheet group 1-2 is connected with the feeding slot 1-4, the The other end of the second elastic plate group 1-2 is connected to the base 1-1, the armature 1-6 is arranged on the first elastic plate group 1-5, and the electromagnetic vibration exciter 1-7 is arranged on the on the base 1-1, and the electromagnetic vibration exciter 1-7 is arranged facing the armature 1-6, the hopper 1-3 is arranged on the material trough, and is located at one end of the material trough, 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 periodic pulse electromagnetic force through the half-wave rectified unidirectional pulse current, and cooperates with the first elastic sheet group 1-5 and the second elastic sheet group 1-2 to drive the feeding chute 1- 4. Do reciprocating vibration, so that the rice grains move forward directionally along the feeding trough 1-4, in this way, the process of automatic feeding can be realized without manual operation, which reduces the labor cost.

可选地,请参见图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, please refer to FIG. 6 , the sorting module 3-1 includes N channels 3-1-1 and collecting troughs 3-1-3 arranged in parallel, where N is a positive integer, and the N channels 3- 1-1 are all V-shaped channels 3-1-1, each channel 3-1-1 includes a first side and a second side, and the end of the first side close to the feeding module 1 is provided with a first side. A blanking port 3-1-4, the end of the second side face close to the feeding module 1 is provided with a second blanking port, and the first blanking port 3-1-4 and the first blanking port The two blanking openings are both set away from the V-shaped bottom edge to form a reserved channel 3-1-1. The width of the first blanking opening 3-1-4 is smaller than the width of the first side surface. The width of the second blanking 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 of rice and smaller than the size of a double-grained rice;

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

且,每一通道3-1-1远离供料模块1的一端设有第一通光孔3-1-2,所述第一通光孔3-1-2与所述光源模块5相对设置。Moreover, one end of each channel 3-1-1 away from the feeding module 1 is provided with a first light-passing hole 3-1-2, and the first light-passing hole 3-1-2 is disposed 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 FIG. 7 , the light source module 5 includes a light guide strip 3-2 and a cold light source assembly 3-3, and the cold light source assembly 3-3 includes a light shield 3-3-2 and a The cold light source 3-3-1 inside the hood 3-3-2 is provided with a second light hole 3-3-3 on the hood 3-3-2. As shown in FIG. 8, the light guide One end of the strip 3-2 is connected to the first light-passing hole 3-1-2, and the other end of the light-guiding strip 3-2 is connected to the second light-passing hole 3-3-3. The schematic cross-sectional view A-A is the same as that in FIG. 7 .

本实施例中,排序模块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 chute 1-4 of the feeding module 1. Specifically, the sorting module 3-1 is configured with three v-shaped channels 3-1-1, and the v-shaped channel 3-1 is configured with three v-shaped channels 3-1-1. -1 There are two blanking openings on both sides of the front end, and the two blanking openings are arranged in the direction away from the bottom edge of the V shape to form a reserved channel 3-1-1, which can ensure that the Only a single grain of rice can be arranged axially through the reserved channel 3-1-1 in turn, and the excess rice falls from the blanking port into the lower collecting trough 3-1-3, and each V-shaped channel 3-1-1 opens downward. There is a first light-passing hole 3-1-2; the light source module 5 is mainly composed of a cold light source 3-3-1 and an opaque hood 3-3-2. Two light holes 3-3-3 are connected to the first light hole 3-1-2 on the v-shaped channel 3-1-1 of the sorting module 3-1 and the light hood 3 on the light source module 5 through the light guide bar 3-2 - The second light hole 3-3-3 on 3-2, the light generated by the cold light source 3-3-1 goes down from the v-shaped channel 3-1-1 of the sorting module 3-1 along the light guide bar 3-2 The light aperture shines upwards.

可选地,上述的稻谷损伤检测装置还包括盖板2、底板6以及支撑架7,所述支撑架7的一端与所述盖板2连接,且所述支撑架7的另一端与所述底板6连接以形成密闭容腔以收容所述排序模块3-1和所述光源模块5。这样,通过形成密闭容腔,可以保证光源发射的光线照向稻谷时不受外界光线的影响。Optionally, the above-mentioned paddy damage detection device further includes 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 The bottom plate 6 is connected to form a closed cavity for accommodating 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 irradiates the rice.

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

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

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

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

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

在一示例中,稻谷检测子单元中设有稻谷检测子模型,分类计数子单元中设有分类计数子模型,首先,基于稻谷检测子模型确定图像中的稻谷类型,稻谷类型包括内部有损伤稻谷或者内部无损伤稻谷;锁定图像中的稻谷区域,生成稻谷区域对应的目标框,并确定目标框的目标框坐标和目标框类型,目标框坐标用于指示稻谷在图像中的位置,目标框类型用于指示图像中的稻谷类型;采用分类计数子模型根据同一稻谷在相邻两帧图像中的目标框的坐标和类型确定检测结果。In an example, the rice detection sub-unit is provided with a rice detection sub-model, and the classification counting sub-unit is provided with a classification counting sub-model. First, the rice type in the image is determined based on the rice detection sub-model, and the rice type includes internally damaged rice. Or internal damage-free paddy; lock the paddy area in the image, generate the target frame corresponding to the paddy area, and determine the target frame coordinates and target frame type of the target frame. The target frame coordinates are used to indicate the position of the paddy in the image, and the target frame type It is used to indicate the type of rice in the image; the classification and 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 determination method of the target frame is determined according to the size of the paddy and the position in the image. In other words, the target frame is used to frame the paddy in the image, and the target of the paddy in two adjacent frames Box coordinates and target box types can be used to reflect changes in the position of the rice.

这样,采用分类计数子模型根据同一稻谷在相邻两帧图像中的目标框坐标和目标框类型确定检测结果,可以快速判断稻谷的变化是否符合正常情况,进而避免某一帧图像出现误差而影响检测结果的情况。In this way, the classification and 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 change of the rice is in line with the normal situation, thereby avoiding the influence of errors in a certain frame of images. test results.

具体而言,可以采用分类计数子模型根据同一稻谷在相邻两帧图像中的目标框的坐标和类型确定检测结果,具体步骤包括:若稻谷在当前帧中的目标框和上一帧中的目标框之间的关系满足第一预设条件,则记为内部有损伤稻谷数量加1,若稻谷在当前帧中的目标框和上一帧中的目标框之间的关系满足第二预设条件,则记为内部无损伤稻谷数量加1,若稻谷在当前帧中的目标框和上一帧中的目标框之间的关系满足第三预设条件,则稻谷数量的计数不变。Specifically, the classification and counting sub-model 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 target frame of the rice in the current frame and the target frame in the previous frame The relationship between the target boxes satisfies the first preset condition, then it is recorded as the number of damaged paddy inside plus 1. If the relationship between the target frame in the current frame and the target frame in the previous frame satisfies the second preset If the relationship between the target frame in the current frame and the target frame in the previous frame satisfies the third preset condition, the count of the quantity of paddy 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 quickly realized.

请参见图9,稻谷移动方向与坐标值变大的方向相反,即,目标框坐标的值逐帧减小,YOLOv4从某一粒稻谷左端进入光源开始识别检测直至稻谷右端离开光源,期间会连续获取若干帧稻谷图像,并识别其中稻谷类型,标出目标检测框类型,因为稻谷是由右往左移动,故获取的同一粒稻谷图像中的目标检测坐标会逐帧减小,因此比较前后两帧图像中目标检测框坐标大小,当某一帧图像中目标检测框坐标大于前一帧,说明图像中的稻谷出现在前一帧图像中稻谷右边,则可以判定为新的一粒稻谷开始经过检测区,此时根据目标检测框类型,将对应类型稻谷计数加1。Please refer to Figure 9, the direction of movement of the paddy 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 recognize and detect from the left end of a grain of rice entering the light source until the right end of the paddy leaves the light source. Obtain several frames of rice images, identify the type of rice in them, and mark the type of the target detection frame. Because the rice moves from right to left, the target detection coordinates in the same obtained image of rice will decrease frame by frame, so compare the two frames before and after. The size of the target detection frame coordinates in the frame image. When the target detection frame coordinates in a certain frame image are greater than the previous frame, it means that the rice in the image appears to the right of the rice in the previous frame image, and it can be determined that a new grain of rice begins to pass through. In the detection area, at this time, according to the type of the target detection frame, the count of the corresponding type of rice is incremented by 1.

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

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

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

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

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

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

具体而言,还可以采用分类计数子模型根据同一稻谷在相邻两帧图像中的目标框的坐标和类型确定检测结果,具体步骤包括:Specifically, the classification and counting sub-model can also 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, and the specific steps include:

稻谷为内部有损伤稻谷的情况下,若稻谷在当前帧中的目标框坐标的值小于或等于稻谷在上一帧中的目标框坐标的值,且稻谷在当前帧中的目标框类型与稻谷在上一帧中的目标框类型不相同,则将内部有损伤稻谷数量加1,将内部无损伤稻谷数量减1。When the paddy is internally damaged paddy, if the value of the target frame coordinate of the paddy in the current frame is less than or equal to the value of the target frame coordinate of the paddy in the previous frame, and the target frame type of the paddy in the current frame is the same as that of the paddy. If the target box types in the previous frame are not the same, the number of damaged paddies inside is increased by 1, and the number of internal non-damaged paddies is decreased by 1.

需要说明的是,存在少数内部有损伤稻谷初始几帧图像没有显现损伤特性,稻谷移动过程中,其目标框类型会由内部无损伤类型变为内部有损伤类型,按上述计数原理可能出现两种类型稻谷计数都加1的情况。为避免这一问题,对于坐标小于前一帧的内部有损伤类型目标框,增加与前一帧目标框类型的比较,如前后两帧目标框类型不同,则说明出现了上述情况,将内部有损伤稻谷计数加1,内部无损伤稻谷计数减1(该粒稻谷第一帧图像误加1)。It should be noted that there are a small number of internally damaged paddies that do not show damage characteristics in the first few frames. During the movement of the paddy, the type of the target frame will change from the internal damage type to the internal damage type. According to the above counting principle, there may be two types. Type paddy counts are incremented by 1. In order 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. The count of damaged paddy is increased by 1, and the count of internal non-damaged paddy is decreased by 1 (the first frame image of this grain of paddy is mistakenly increased by 1).

在一示例中,可以通过可视化窗口对检测过程与计数进行监控,检测完成后输出内部有损伤稻谷数量与内部无损伤稻谷数量、两类稻谷的总数、内部损伤稻谷比例;另外,检测计数过程中,还可以将每粒稻谷对应的图片被实时分类保存于计算机,方便后续对检测结果进行复核。In an example, the detection process and counting can be monitored through the visualization window, and after the detection is completed, the number of internally damaged paddy and the number of internal non-damaged paddy, the total number of two types of paddy, and the ratio of internally damaged paddy are output; , and the pictures corresponding to each grain of rice can be classified and saved in the computer in real time, so as to facilitate the 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 embodiments, please refer to FIG. 10-FIG. 11, the working principle of the rice damage detection device provided by the present application is described by taking a complete work flow as an example. The hoppers 1-3 above are added, and the electromagnetic exciters 1-7 on the feeding module 1 generate periodic pulse electromagnetic force through the half-wave rectified unidirectional pulse current, which acts on the armature on the first shrapnel group 1-5 On 1-6, drive the first shrapnel group 1-5 to do reciprocating vibration, and the first shrapnel group 1-5 drives the feeding chute 1-4 to do reciprocating vibration, so that the rice grains move forward along the feeding chute 1-4; After reaching the sorting module 3-1, in each V-shaped channel 3-1-1, only a single grain of rice is axially lined up to pass in sequence, and the excess rice falls from the blanking port into the lower collecting trough 3-1-3; The visual sensing module collects in real time the image information of the rice after being irradiated by cold light in the three V-shaped channels 3-1-1, and transmits it to the main control unit 8 for detection. In each inspection process, the rice collected in the collecting trough 3-1-3 should be added to the hopper 1-3 of the feeding module 1 again, until all the rice is removed from the first place in the channel 3-1-1 of the sorting module 3-1. Through the light hole, the real-time acquisition of all images is completed.

视觉传感模块将检测区稻谷图像信息实时传输至主控单元8后,检测软件系统对其进行目标检测与分类计数,本申请的检测软件系统由目标检测与分类计数两部分组成,目标检测部分采用深度学习目标检测模型YOLO V4,对采集传输过来的视频进行实时目标检测,识别其中的稻谷类型(内部有损伤、内部无损伤),并标出目标框,获取每个目标框坐标信息,本申请正式使用前先采集样本,制作训练集,对目标检测模型进行训练与优化直至得满足要求的检测准确度。为实现检测目标的动态分类计数,本申请在训练好的YOLOV4目标检测算法中加入分类计数算法,实现对两类稻谷(内有损伤稻谷、内部无损伤稻谷)进行目标识别检测同时分类计数。After the visual sensing module transmits the image information of the rice in the detection area to the main control unit 8 in real time, the detection software system performs target detection and classification and counting on it. The detection software system of the present application consists of two parts: target detection and classification and counting. The deep learning target detection model YOLO V4 is used to perform real-time target detection on the collected and transmitted video, identify the type of rice in it (with internal damage, no internal damage), and mark the target frame to obtain the coordinate information of each target frame. Before applying for official use, collect samples, create a training set, and train and optimize the target detection model until the required detection accuracy is met. In order to realize the dynamic classification and counting of detection targets, the present application adds a classification and counting algorithm to the trained YOLOV4 target detection algorithm, so as to realize target recognition and detection of two types of paddy (internally damaged paddy and internally non-damaged paddy) and simultaneously classify and count.

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

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

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

光源模块5向所述光孔发射光线;The light source module 5 emits light to 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 paddy damage detection method can implement the various embodiments of the above-mentioned paddy damage detection device, and can achieve the same beneficial effects, which will not be repeated here.

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

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

Claims (8)

1.一种稻谷损伤检测装置,其特征在于,包括:供料模块、排序模块、光源模块、视觉传感器模块以及主控单元,所述排序模块与所述供料模块连接,所述光源模块设于所述排序模块的相对下方,所述视觉传感器设于所述排序模块的相对上方,且所述视觉传感器和所述光源模块位于同一垂直轴线上,所述主控单元与所述视觉传感器连接;1. A paddy damage detection device, characterized in that it comprises: a feeding module, a sorting module, a light source module, a visual sensor module and a main control unit, the sorting module is connected with the feeding module, and the light source module is provided with Below the sorting module, the visual sensor is arranged 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 paddy to move towards the direction of the sorting module; 所述排序模块用于对稻谷进行单粒轴向排队,所述排序模块上设有第一通光孔;The sorting module is used for single-grain axial queuing of the rice, and the sorting module is provided with a first light-passing hole; 光源模块用于向所述光孔发射光线;The light source module is used for emitting light to the light hole; 所述视觉传感器模块用于获取经过所述排序模块的稻谷在所述光线下的图像;The visual sensor module is used for acquiring the image of the rice grains passing through the sorting module under the light; 所述主控单元用于根据所述图像信息检测稻谷的内部损伤情况。The main control unit is used for detecting the internal damage of the rice according to the image information. 2.根据权利要求1所述的稻谷损伤检测装置,其特征在于,所述供料模块包括底座、第一弹片组、第二弹片组、电磁激振器、送料槽、衔铁以及料斗,所述第一弹片组的一端与所述送料槽连接,所述第一弹片组的另一端与所述底座连接,所述第二弹片组与所述第一弹片组相背对设置,所述第二弹片组的一端与所述送料槽连接,所述第二弹片组的另一端与所述底座连接,所述衔铁设于所述第一弹片组上,所述电磁激振器设于所述底座上,且所述电磁激振器正对所述衔铁设置,所述料斗设于所述料槽上,且位于所述料槽的一端,所述料槽的另一端与所述排序模块连接。2 . The rice damage detection device according to claim 1 , wherein the feeding module comprises a base, a first shrapnel group, a second shrapnel group, an electromagnetic vibration exciter, a feeding trough, an armature and a hopper, 2 . One end of the first elastic sheet group is connected with the feeding chute, the other end of the first elastic sheet group is connected with the base, the second elastic sheet group is arranged opposite to the first elastic sheet group, and the second elastic sheet group is opposite to the first elastic sheet group. One end of the shrapnel group is connected to the feeding chute, the other end of the second shrapnel group is connected to the base, the armature is arranged on the first shrapnel group, and the electromagnetic exciter is arranged on the base and the electromagnetic vibration exciter is arranged facing the armature, the hopper is arranged on the material trough, and is located at one end of the material trough, and the other end of the material trough is connected to the sorting module. 3.根据权利要求1所述的稻谷损伤检测装置,其特征在于,所述排序模块包括并列设置的N条通道和集料槽,N为正整数,所述N条通道均为V形通道,每一通道包括第一侧面和第二侧面,且所述第一侧面的靠近所述供料模块的一端设有第一落料口,所述第二侧面的靠近所述供料模块的一端设有第二落料口,且所述第一落料口和所述第二落料口均朝向远离V形底边的方向设置以形成预留通道,所述第一落料口的宽度小于所述第一侧面的宽度,所述第二落料口的宽度小于所述第二侧面的宽度,其中,所述预留通道的宽度大于单粒稻谷的尺寸且小于双粒稻谷的尺寸;3 . The paddy damage detection device according to claim 1 , wherein the sorting module comprises N channels and collecting troughs arranged in parallel, N is a positive integer, and the N channels are all V-shaped channels, 4 . Each channel includes a first side surface and a second side surface, and the end of the first side surface close to the feeding module is provided with a first blanking port, and the end of the second side surface close to the feeding module is provided with a first blanking port. There is a second blanking port, and both the first blanking port and the second blanking port are arranged in the direction away from the V-shaped bottom edge to form a reserved channel, and the width of the first blanking port is smaller than the width of the first blanking port. The width of the first side, the width of the second blanking port is less than the width of the second side, wherein, the width of the reserved channel is greater than the size of a single grain of rice and smaller than the size of two grains of rice; 所述集料槽设于所述第一落料口和所述第二落料口的下方以收集从所述第一落料口和所述第二落料口掉落的稻谷;the collecting trough is arranged below the first blanking opening and the second blanking opening to collect the rice grains dropped from the first blanking opening and the second blanking opening; 且,每一通道远离供料模块的一端设有所述第一通光孔,所述第一通光孔与所述光源模块相对设置。In addition, one end of each channel away from the feeding module is provided with the first light-passing hole, and the first light-passing hole is disposed opposite to the light source module. 4.根据权利要求3所述的稻谷损伤检测装置,其特征在于,所述光源模块包括导光条和冷光源组件,所述冷光源组件包括遮光罩和设于所述遮光罩内部的冷光源,所述遮光罩上设有第二通光孔,所述导光条的一端连接所述第一通光孔,所述导光条的另一端连接所述第二通光孔。4 . The rice damage detection device according to claim 3 , wherein the light source module comprises a light guide strip and a cold light source assembly, and the cold light source assembly comprises a light shield and a cold light source arranged inside the light shield. 5 . The light shield is provided with a second light-passing hole, one end of the light guide strip is connected to the first light-passing hole, and the other end of the light-guiding strip is connected to the second light-passing hole. 5.根据权利要求1所述的稻谷损伤检测装置,其特征在于,还包括盖板、底板以及支撑架,所述支撑架的一端与所述盖板连接,且所述支撑架的另一端与所述底板连接以形成密闭容腔以收容所述排序模块和所述光源模块。5 . The rice damage detection device according to claim 1 , further comprising 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 cover plate. 6 . The bottom plate is connected to form a closed cavity for accommodating the sorting module and the light source module. 6.根据权利要求1所述的稻谷损伤检测装置,其特征在于,所述主控单元包括稻谷检测子单元和分类计数子单元,所述稻谷检测子单元用于对所述图像进行识别,得到所述稻谷对应的目标框,还用于确定目标框的目标框坐标和目标框类型,所述目标框坐标用于指示稻谷在图像中的位置,所述目标框类型用于指示图像中的稻谷类型,所述稻谷类型包括内部有损伤稻谷或者内部无损伤稻谷;6 . The paddy damage detection device according to claim 1 , wherein the main control unit comprises a paddy detection subunit and a classification counting subunit, and the paddy detection subunit is used to identify the image and obtain the The target frame corresponding to the rice is also used to determine the target frame coordinates and 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 rice in the image. type, the type of paddy includes internally damaged paddy or internally non-damaged paddy; 所述分类计数子单元用于基于目标框坐标和目标框类型进行分类处理得到稻谷的内部损伤情况,所述稻谷的内部损伤情况包括内部有损伤稻谷数量、内部无损伤稻谷数量以及损伤率。The classification counting subunit is used for classifying and processing based on the target frame coordinates and the target frame type to obtain the internal damage of the paddy, where the internal damage of the paddy includes the quantity of internally damaged paddy, the quantity of internal non-damaged paddy and the damage rate. 7.一种稻谷损伤检测方法,应用于上述权利要求1-6中任一所述的稻谷损伤检测装置,其特征在于,所述方法包括:7. A method for detecting damage to rice, applied to the device for detecting damage to rice according to any one of claims 1-6, wherein the method comprises: 供料模块驱使稻谷朝向排序模块的方向移动;The feeding module drives the paddy to move towards the direction of the sorting module; 排序模块对稻谷进行单粒轴向排队,所述排序模块上设有光孔;The sorting module arranges single grains of rice axially, and the sorting module is provided with light holes; 光源模块向所述光孔发射光线;The light source module emits light to the light hole; 视觉传感器模块获取经过所述排序模块的稻谷在所述光线下的图像;The visual sensor module acquires the image of the rice grains passing through the sorting module under the light; 主控单元根据所述图像信息检测稻谷的内部损伤情况。The main control unit detects the internal damage of the rice according to the image information. 8.根据权利要求7所述的稻谷损伤检测方法,其特征在于,所述主控单元包括稻谷检测子单元和分类计数子单元,主控单元根据所述图像信息检测稻谷的内部损伤情况,包括:8 . The rice damage detection method according to claim 7 , wherein the main control unit comprises a rice detection subunit and a classification counting subunit, and the main control unit detects the internal damage of the rice according to the image information, comprising: 8 . : 稻谷检测子单元对所述图像进行识别,得到所述稻谷对应的目标框,并确定目标框的目标框坐标和目标框类型,所述目标框坐标用于指示稻谷在图像中的位置,所述目标框类型用于指示图像中的稻谷类型,所述稻谷类型包括内部有损伤稻谷或者内部无损伤稻谷;The rice detection subunit identifies the image, obtains the target frame corresponding to the rice, and determines the target frame coordinates and target frame type of the target frame, and the target frame coordinates are used to indicate the position of the rice in the image. The target box type is used to indicate the type of paddy in the image, and the paddy type includes inner damaged paddy or inner non-damaged paddy; 分类计数子单元基于目标框坐标和目标框类型进行分类处理得到稻谷的内部损伤情况,所述稻谷的内部损伤情况包括内部有损伤稻谷数量、内部无损伤稻谷数量以及损伤率。The classification counting subunit performs classification processing based on the coordinates of the target frame and the type of the target frame to obtain the internal damage condition of the paddy, where the internal damage condition of the paddy includes the quantity of internally damaged paddy, the quantity of internal non-damaged paddy 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 true CN114839197A (en) 2022-08-02
CN114839197B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117969520A (en) * 2024-03-28 2024-05-03 安徽高哲信息技术有限公司 Visual acquisition system for single grain discharging
CN119240248A (en) * 2024-09-29 2025-01-03 安徽农业大学 A high-throughput intelligent detection method and system for germinating wheat seeds

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110201911A (en) * 2019-07-03 2019-09-06 合肥泰禾光电科技股份有限公司 Paddy sorting unit and equipment
US20190388940A1 (en) * 2018-04-23 2019-12-26 Xiangnong Intelligent Technologies Co., Ltd. Automatic Magnetic Core Sorting System Based on Machine Vision
CN210753887U (en) * 2019-07-03 2020-06-16 合肥泰禾光电科技股份有限公司 Corn sorting unit and equipment

Family Cites Families (1)

* 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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190388940A1 (en) * 2018-04-23 2019-12-26 Xiangnong Intelligent Technologies Co., Ltd. Automatic Magnetic Core Sorting System Based on Machine Vision
CN110201911A (en) * 2019-07-03 2019-09-06 合肥泰禾光电科技股份有限公司 Paddy sorting unit and equipment
CN210753887U (en) * 2019-07-03 2020-06-16 合肥泰禾光电科技股份有限公司 Corn sorting unit and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐立章;李耀明;王显仁;: "基于小波变换的多尺度边缘检测用于稻谷内部损伤的检测", 中国粮油学报, no. 04, 25 July 2008 (2008-07-25) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117969520A (en) * 2024-03-28 2024-05-03 安徽高哲信息技术有限公司 Visual acquisition system for single grain discharging
CN119240248A (en) * 2024-09-29 2025-01-03 安徽农业大学 A high-throughput intelligent detection method and system for germinating wheat seeds

Also Published As

Publication number Publication date
CN114839197B (en) 2024-08-27

Similar Documents

Publication Publication Date Title
CN100506401C (en) Pearl real-time detection and grading system based on machine vision
CN106733701B (en) Potato multi-stage combination dysnusia detecting system and detection method
CN100495032C (en) A method and device for detecting poultry egg surface quality
CN103286081B (en) Monocular multi-perspective machine vision-based online automatic sorting device for steel ball surface defect
CN102928431B (en) Device for automatically grading pearls on line according to size and shape on basis of monocular multi-view machine vision
CN1485616A (en) Equipment and method for non-destructive automatic detection and grading of poultry egg quality
CN201041551Y (en) A real-time pearl detection and grading system based on machine vision
CN106548480B (en) A fast measuring device and method for measuring the volume of agricultural products based on machine vision
CN102937583B (en) Pearl smooth-finish online automatic grading device based on monocular multi-view machine vision
CN111340798A (en) Application of deep learning in product appearance flaw detection
CN106238342A (en) The sorting of panoramic vision Rhizoma Solani tuber osi and defect detecting device and sorting detection method thereof
CN102967586B (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
CN110146516A (en) Fruit grading device based on orthogonal binocular machine vision
CN110108726A (en) A fully automatic optical inspection system for chip inspection
CN104749190A (en) Online visual inspection device and online visual inspection method for cracks on surface of poultry eggs
CN102680414A (en) Automatic grading device for red globe grapes based on machine vision and method thereof
CN106370667A (en) Visual detection apparatus and method for quality of corn kernel
CN114723668A (en) A method and system for quality detection of cathode copper based on area scan camera
CN104132945A (en) On-line surface quality visual inspection device for bar based on optical fiber conduction
CN105154988A (en) Apparatus automatically extracting down feather and extracting method
CN111079831A (en) Intelligent optical detection sample characteristic and flaw automatic marking method and device
CN111701886A (en) A sorting device and sorting method for surface defects of sleeve parts
CN114839197A (en) Rice damage detection device and detection method
CN118536854A (en) Method and device for intelligently detecting and screening quality of pasture 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