CN109570051A - Chinese chestnut small holes caused by worms detection device based on machine vision, laser and acoustics - Google Patents
Chinese chestnut small holes caused by worms detection device based on machine vision, laser and acoustics Download PDFInfo
- Publication number
- CN109570051A CN109570051A CN201910038085.5A CN201910038085A CN109570051A CN 109570051 A CN109570051 A CN 109570051A CN 201910038085 A CN201910038085 A CN 201910038085A CN 109570051 A CN109570051 A CN 109570051A
- Authority
- CN
- China
- Prior art keywords
- chestnut
- module
- conveyor belt
- laser
- detection
- 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
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B07—SEPARATING SOLIDS FROM SOLIDS; SORTING
- B07C—POSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
- B07C5/00—Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
- B07C5/02—Measures preceding sorting, e.g. arranging articles in a stream orientating
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B07—SEPARATING SOLIDS FROM SOLIDS; SORTING
- B07C—POSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
- B07C5/00—Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
- B07C5/34—Sorting according to other particular properties
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B07—SEPARATING SOLIDS FROM SOLIDS; SORTING
- B07C—POSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
- B07C5/00—Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
- B07C5/36—Sorting apparatus characterised by the means used for distribution
- B07C5/361—Processing or control devices therefor, e.g. escort memory
- B07C5/362—Separating or distributor mechanisms
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
基于机器视觉、激光和声学的板栗虫眼检测装置,包括机架,机架上自左向右依次设置有提升输送带和水平输送带,提升输送带呈左低右高倾斜设置,机架上自左向右依次设置有位于水平输送带上方的拍照暗室检测模块、激光检测模块、声学检测模块和分选装置,机架侧部设置有电控模块、板栗定位装置和板栗解锁装置。本发明通过机器视觉、声学检测和激光检测的多级联合智能信息融合下,可实现高精度的板栗虫眼检测,一方面可以有效提升检测的智能化水平,另外一方面通过多级联合智能检测,提升分选准确率,并降低装置成本。本发明能用于板栗农产品虫眼在线实时检测,对于提升我国板栗农产品深加工的发展具有重要的意义,而且市场应用前景较好。
A chestnut worm eye detection device based on machine vision, laser and acoustics, including a frame, a lifting conveyor belt and a horizontal conveyor belt are arranged in sequence from left to right on the frame. The camera darkroom detection module, the laser detection module, the acoustic detection module and the sorting device are arranged on the top of the horizontal conveyor belt in order from left to right. The side of the frame is provided with an electric control module, a chestnut positioning device and a chestnut unlocking device. Through the multi-level joint intelligent information fusion of machine vision, acoustic detection and laser detection, the present invention can realize high-precision chestnut worm eye detection. On the one hand, the intelligent level of detection can be effectively improved. Improve sorting accuracy and reduce device cost. The invention can be used for on-line real-time detection of insect eyes of chestnut agricultural products, has important significance for promoting the development of deep processing of chestnut agricultural products in my country, and has good market application prospects.
Description
技术领域technical field
本发明属于农业领域内使用的农产品外观品质检测技术领域,具体涉及基于机器视觉、激光和声学的板栗虫眼检测装置,根据板栗的外观特征,对板栗进行机器视觉、激光和声学的多级联合检测,从而完成板栗虫眼的实时检测与分选。The invention belongs to the technical field of appearance quality detection of agricultural products used in the agricultural field, and in particular relates to a chestnut worm-eye detection device based on machine vision, laser and acoustics. , so as to complete the real-time detection and sorting of chestnut worm eyes.
背景技术Background technique
板栗素有“干果之王”的美誉,板栗的营养丰富,果实中含糖和淀粉达70.1%,蛋白质7%。此外,还含脂肪、钙、磷、铁、多种维他命和微量元素,特别是维他命C、B1和胡萝卜素的含量较一般干果都高,栗子营养丰富,除富含淀粉外,还含有单糖与双糖、胡罗卜素、硫胺素、核黄素、尼克酸、抗坏血酸、蛋白质、脂肪、无机盐类等营养物质。但是,在板栗的种植过程中,经常会遇到各种病虫害的袭击,因而板栗的虫眼检测对于提升板栗的品级非常关键。Chestnut is known as the "king of dried fruits". Chestnut is rich in nutrients. The fruit contains 70.1% sugar and starch, and 7% protein. In addition, it also contains fat, calcium, phosphorus, iron, various vitamins and trace elements, especially the content of vitamin C, B1 and carotene is higher than that of ordinary dried fruits. Chestnuts are rich in nutrients. In addition to being rich in starch, they also contain simple sugars. With disaccharide, carotene, thiamine, riboflavin, niacin, ascorbic acid, protein, fat, inorganic salts and other nutrients. However, in the process of chestnut planting, various pests and diseases are often attacked, so the detection of chestnut insect eyes is very important to improve the quality of chestnut.
目前,板栗虫眼的检测大部分还停留在靠人工感官进行识别判断阶段,存在诸多不便。依靠人工手挑方式完成板栗虫眼的分选,一是浪费大量劳动力,随着收获季节而出现用工荒,二是容易存在漏检,检测结果一致性差、效率低, 难以满足高标准分级的要求, 不利于实现自动化。随着人工智能技术的加速进步,利用多源信息智能融合的多级联合检测可提升虫眼检测的准确率。At present, most of the detection of chestnut worm eyes is still in the stage of identification and judgment by artificial senses, and there are many inconveniences. Relying on manual hand picking to complete the sorting of chestnut worm eyes, firstly, it wastes a lot of labor, and there is a shortage of labor with the harvest season, and secondly, it is prone to missed inspections, the consistency of test results is poor, the efficiency is low, and it is difficult to meet the requirements of high-standard classification. Not conducive to automation. With the accelerated progress of artificial intelligence technology, multi-level joint detection using intelligent fusion of multi-source information can improve the accuracy of insect eye detection.
虽然现在基于计算机视觉的板栗分级方法和设备逐渐成为热点,但一般只限于实验室研究或者采用摄像机对其拍照,采用的技术手段较为单一。在虫眼较小,或者形状、位置较复杂的情况下,无法准确的进行判断,存在漏检的风险;或者采用高光谱成像技术对待检板栗进行检测,但是增加检测装置的成本及其复杂性。Although the chestnut grading method and equipment based on computer vision has gradually become a hot spot, it is generally limited to laboratory research or taking pictures of it with a camera, and the technical means used are relatively simple. In the case of small insect eyes, or complex shapes and positions, accurate judgment cannot be made, and there is a risk of missed detection; or hyperspectral imaging technology is used to detect the chestnut to be inspected, but the cost and complexity of the detection device are increased.
为了解决现有板栗虫眼分选装置的缺陷,提出了一种基于机器视觉、激光和声学的多级联合板栗虫眼智能检测方法及其装置。In order to solve the defects of the existing chestnut worm-eye sorting device, a multi-level combined chestnut worm-eye intelligent detection method and device based on machine vision, laser and acoustics are proposed.
通过国内专利文献检索发现有一些相关专利文献报道,主要有以下一些:Through the domestic patent literature search, we found some relevant patent literature reports, mainly including the following:
1、公告号为CN 108801971 A,名称为“基于高光谱成像技术的霉菌侵染板栗的检测方法” 发明专利,提出了一种基于高光谱成像技术的霉菌侵染板栗的检测方法,但所采用单一高光谱成像的技术方案,不能实现板栗虫眼的高精度检测。1. The publication number is CN 108801971 A, the invention patent titled "Detection Method for Mold Infested Chestnut Based on Hyperspectral Imaging Technology", proposes a detection method for mold infested chestnut based on hyperspectral imaging technology, but the A single hyperspectral imaging technical solution cannot achieve high-precision detection of chestnut worm eyes.
2、公告号为CN 107350173 A,名称为“一种板栗自动分拣装置和分拣方法” 发明专利,采用多个摄像头、计算机、PLC和电磁阀等,利用机器视觉的算法,对板栗进行识别及其分拣,根据板栗的表面彩色照片,进行滤波和轮廓提取,获取破损板栗面积的有效比例,实现待分级板栗的分选,但该分类装置在虫眼较小,或者形状、位置较复杂的情况下,无法准确的进行判断。2. The announcement number is CN 107350173 A, and the name is "an automatic sorting device and sorting method for chestnuts". The invention patent uses multiple cameras, computers, PLCs and solenoid valves, etc., and uses machine vision algorithms to identify chestnuts And sorting, according to the color photos of the chestnut surface, filtering and contour extraction are performed to obtain the effective proportion of the damaged chestnut area, so as to realize the sorting of the chestnut to be classified, but the classification device is small in insect eyes, or the shape and location are more complex. In this case, an accurate judgment cannot be made.
3、公告号为 CN 108620338 A,名称为“多信息融合的电磁履带式板栗检测筛选装置”发明专利,设计一种多信息融合的电磁履带式板栗检测筛选装置,融合红外光谱和机器视觉的方法,实现多信息融合下的电磁履带式板栗检测筛选,但是该装置主要采用机器视觉和红外光谱完成板栗破损和发霉的检测,但对于细微虫眼的检测,存在漏检的可能性。3. The publication number is CN 108620338 A, and the invention patent is entitled "Multi-information fusion electromagnetic crawler chestnut detection and screening device", a multi-information fusion electromagnetic crawler chestnut detection and screening device is designed, which integrates infrared spectroscopy and machine vision. , to realize the detection and screening of electromagnetic crawler chestnut under multi-information fusion, but the device mainly uses machine vision and infrared spectroscopy to complete the detection of chestnut damage and mildew, but for the detection of tiny insect eyes, there is a possibility of missed detection.
上述专利虽然提出了板栗的分拣方法和分级装置,有些设备虽然能按照外观特征进行分级,但由于只采用机器视觉方法,或者融合有高光谱、红外光谱技术,能实现板栗破损和发霉的检测。但是,对于板栗虫眼的检测不全面,特别是面对虫眼较小,或者形状、位置较复杂的情况下,存在漏检的概率。Although the above-mentioned patent proposes a sorting method and grading device for chestnuts, although some equipment can be graded according to the appearance characteristics, because only the machine vision method is used, or the hyperspectral and infrared spectroscopy technologies are combined, the chestnut damage and mildew detection can be realized. . However, the detection of chestnut worm eyes is not comprehensive, especially when the worm eyes are small, or the shape and location are complex, there is a probability of missed detection.
发明内容SUMMARY OF THE INVENTION
本发明为了解决现有技术中的不足之处,提供一种进一步提升虫眼检测的准确率、降低漏检率的基于机器视觉、激光和声学的板栗虫眼检测装置。In order to solve the deficiencies in the prior art, the present invention provides a chestnut worm-eye detection device based on machine vision, laser and acoustics, which further improves the accuracy of worm-eye detection and reduces the missed detection rate.
为解决上述技术问题,本发明采用如下技术方案:基于机器视觉、激光和声学的板栗虫眼检测装置,包括机架1,机架1上自左向右依次设置有提升输送带2和水平输送带4,提升输送带2呈左低右高倾斜设置,机架1上自左向右依次设置有位于水平输送带4上方的拍照暗室检测模块3、激光检测模块5、声学检测模块6和分选装置7,机架1侧部设置有电控模块9、板栗定位装置和板栗解锁装置,板栗定位装置的工作部位于提升输送带2上方,板栗解锁装置的工作部位于水平输送带4上方的声学检测模块6和分选装置7之间。In order to solve the above-mentioned technical problems, the present invention adopts the following technical solutions: a chestnut worm-eye detection device based on machine vision, laser and acoustics, including a frame 1, and a lifting conveyor belt 2 and a horizontal conveyor belt are sequentially arranged on the frame 1 from left to right. 4. The hoisting conveyor belt 2 is inclined at a low left and a high right. The frame 1 is provided with a camera darkroom detection module 3, a laser detection module 5, an acoustic detection module 6 and a sorting system located above the horizontal conveyor belt 4 in order from left to right. Device 7, the side of the frame 1 is provided with an electric control module 9, a chestnut positioning device and a chestnut unlocking device, the working part of the chestnut positioning device is located above the lifting conveyor belt 2, and the working part of the chestnut unlocking device is located above the horizontal conveyor belt 4 Acoustic between the detection module 6 and the sorting device 7 .
提升输送带2和水平输送带4均由金属热导体材料制成,提升输送带2和水平输送带4上表面沿左右方向间隔5~8cm均匀开设有用于存放待输送板栗的凹槽54,提升输送带2和水平输送带4组合为一个完整传送带。The lifting conveyor belt 2 and the horizontal conveyor belt 4 are both made of metal thermal conductor materials. The upper surfaces of the lifting conveyor belt 2 and the horizontal conveyor belt 4 are evenly spaced 5 to 8 cm in the left-right direction with grooves 54 for storing the chestnuts to be transported. Conveyor belt 2 and horizontal conveyor belt 4 are combined into a complete conveyor belt.
拍照暗室检测模块3包括空腔箱体10、环形LED灯11和工业照相机12,空腔箱体10底部敞口并垂直向下朝向水平输送带4,空腔箱体10左右两侧均通过螺钉固定在机架1上,空腔箱体10底部边沿的左侧和右侧均留有便于板栗的水平输送矩形缺口;环形LED灯11和工业照相机12安装在空腔箱体10内的顶部中央位置。The camera darkroom detection module 3 includes a cavity box 10 , a ring LED light 11 and an industrial camera 12 . The bottom of the cavity box 10 is open and faces the horizontal conveyor belt 4 vertically downward. The left and right sides of the cavity box 10 are screwed through. Fixed on the rack 1, the left and right sides of the bottom edge of the cavity box 10 are left with rectangular gaps for the horizontal transportation of chestnuts; the ring LED light 11 and the industrial camera 12 are installed in the top center of the cavity box 10. Location.
激光检测模块5包括第一X向步进电机13、第一X向运动丝杆14、第一X向支架15、第一Y向步进电机16、第一Y向运动丝杆17、第一Y向导轨18、激光检测夹具19和激光检测子模块20;The laser detection module 5 includes a first X-direction stepping motor 13, a first X-direction moving screw 14, a first X-direction bracket 15, a first Y-direction stepping motor 16, a first Y-direction moving screw 17, a first Y-direction guide rail 18, laser detection fixture 19 and laser detection sub-module 20;
X向为左右水平方向,Y向为前后水平方向,机架1上在水平输送带4的前后两侧分别设置有一条沿X向布置且呈矩形框的第一支撑导轨55,每条第一支撑导轨55内均设置有一个所述的第一X向运动丝杆14,第一X向运动丝杆14的一端转动连接在第一支撑导轨55上,第一X向运动丝杆14的另一端与所述的第一X向步进电机13传动连接,第一X向运动丝杆14上螺纹连接有沿第一支撑导轨55滑动的所述的第一X向支架15,第一Y向导轨18的前后两端固定连接在两个第一X向支架15的上端,第一Y向导轨18为中空杆状结构,第一Y向运动丝杆17沿前后方向设置在第一Y向导轨18内部,第一Y向运动丝杆17的一端转动连接在第一Y向导轨18内部一端,第一Y向运动丝杆17的另一端与所述的第一Y向步进电机16传动连接,激光检测夹具19螺纹连接在第一Y向运动丝杆17上且沿第一Y向导轨18滑动设置,激光检测子模块20安装在激光检测夹具19上并朝向凹槽54照射。The X direction is the left and right horizontal direction, and the Y direction is the front and rear horizontal direction. The frame 1 is provided with a first support guide rail 55 arranged along the X direction and in the shape of a rectangular frame on the front and rear sides of the horizontal conveyor belt 4 respectively. Each of the support guide rails 55 is provided with the first X-direction moving screw 14, one end of the first X-direction moving screw 14 is rotatably connected to the first support guide rail 55, and the other side of the first X-direction moving screw 14 is rotatably connected to the first support guide rail 55. One end is drivingly connected with the first X-direction stepping motor 13, the first X-direction moving screw 14 is threadedly connected with the first X-direction bracket 15 sliding along the first support guide rail 55, the first Y-direction The front and rear ends of the guide rail 18 are fixedly connected to the upper ends of the two first X-direction brackets 15, the first Y-direction guide rail 18 is a hollow rod-shaped structure, and the first Y-direction moving screw 17 is arranged in the front-rear direction on the first Y-direction guide rail. 18, one end of the first Y-direction moving screw 17 is rotatably connected to one end of the first Y-direction guide rail 18, and the other end of the first Y-direction moving screw 17 is drivingly connected to the first Y-direction stepping motor 16. , the laser detection fixture 19 is screwed on the first Y-direction moving screw 17 and slides along the first Y-direction guide rail 18 .
声学检测模块6包括第二X向步进电机21、第二X向运动丝杆22、第二X向支架23、第二Y向步进电机24、第二Y向运动丝杆25、第二Y向导轨26、滑动架、C轴运动电机27、C轴减速机28、高压气针29、高压气管30、声学传感器31和第一电磁阀51;X向为左右水平方向,Y向为前后水平方向;The acoustic detection module 6 includes a second X-direction stepping motor 21, a second X-direction moving screw 22, a second X-direction bracket 23, a second Y-direction stepping motor 24, a second Y-direction moving screw 25, a second Y-direction guide rail 26, sliding frame, C-axis motion motor 27, C-axis reducer 28, high-pressure gas needle 29, high-pressure gas pipe 30, acoustic sensor 31 and first solenoid valve 51; X-direction is the left-right horizontal direction, Y-direction is front and rear horizontal direction;
机架1上在水平输送带4的前后两侧分别设置有一条沿X向布置且呈矩形框的第二支撑导轨56,每条第二支撑导轨56内均设置有一个所述的第二X向运动丝杆22,第二X向运动丝杆22的一端转动连接在第二支撑导轨56上,第二X向运动丝杆22的另一端与所述的第二X向步进电机21传动连接,第二X向运动丝杆22上螺纹连接有沿第二支撑导轨56滑动的所述的第二X向支架23,第二Y向导轨26的前后两端固定连接在两个第二X向支架23的上端,第二Y向导轨26为中空杆状结构,第二Y向运动丝杆25沿前后方向设置在第二Y向导轨26内部,第二Y向运动丝杆25的一端转动连接在第二Y向导轨26内部一端,第二Y向运动丝杆25的另一端与所述的第二Y向步进电机24传动连接,C轴运动电机27和C轴减速机28设置在滑动架内部,滑动架螺纹连接在第二Y向运动丝杆25上且沿第二Y向导轨26滑动设置,C轴运动电机27的动力输出端与C轴减速机28的动力输入端传动连接,高压气针29安装在C轴减速机28的动力输出轴上,C轴减速机28的动力输出轴的沿左右方向水平设置,高压气针29与C轴减速机28的动力输出轴垂直,高压气针29的进气口与高压气管30的出气口连接,第一电磁阀51设置在高压气管30上,高压气管30的进气口连接有空压机,声学传感器31设置在高压气针29的喷气口处。On the frame 1, a second support guide rail 56 arranged along the X direction and in the shape of a rectangular frame is respectively provided on the front and rear sides of the horizontal conveyor belt 4, and each second support guide rail 56 is provided with a said second X To the moving screw 22, one end of the second X-direction moving screw 22 is rotatably connected to the second support guide rail 56, and the other end of the second X-direction moving screw 22 is driven with the second X-direction stepping motor 21. Connection, the second X-direction moving screw 22 is threadedly connected with the second X-direction bracket 23 sliding along the second support guide rail 56, and the front and rear ends of the second Y-direction guide rail 26 are fixedly connected to the two second X-direction brackets 23. To the upper end of the bracket 23, the second Y-direction guide rail 26 is a hollow rod-shaped structure, the second Y-direction moving screw 25 is arranged inside the second Y-direction guide rail 26 in the front-rear direction, and one end of the second Y-direction moving screw 25 rotates Connected to one end of the second Y-direction guide rail 26, the other end of the second Y-direction moving screw 25 is connected to the second Y-direction stepping motor 24, the C-axis moving motor 27 and the C-axis reducer 28 are arranged in Inside the sliding frame, the sliding frame is threaded on the second Y-direction moving screw 25 and is slidably arranged along the second Y-direction guide rail 26 , and the power output end of the C-axis motion motor 27 is drive-connected with the power input end of the C-axis reducer 28 , the high-pressure gas needle 29 is installed on the power output shaft of the C-axis reducer 28, the power output shaft of the C-axis reducer 28 is arranged horizontally along the left-right direction, and the high-pressure gas needle 29 is perpendicular to the power output shaft of the C-axis reducer 28, The air inlet of the high pressure air needle 29 is connected with the air outlet of the high pressure air pipe 30, the first solenoid valve 51 is arranged on the high pressure air pipe 30, the air compressor is connected to the air inlet of the high pressure air pipe 30, and the acoustic sensor 31 is arranged on the high pressure air needle 29 at the jet port.
分选装置7包括分选支撑板32、分选气缸33、分选杆34、分选杆头35和滑道36;滑道36通过螺栓连接安装在机架1右前侧位置;分选支撑板32通过螺栓连接垂直安装在机架1右后侧位置,分选气缸33固定安装在分选支撑板32左侧面,分选气缸33的伸缩杆与分选杆34同轴向连接,分选杆34沿左右方向水平设置。The sorting device 7 includes a sorting support plate 32, a sorting cylinder 33, a sorting rod 34, a sorting rod head 35 and a slideway 36; the slideway 36 is installed on the right front side of the frame 1 by bolting; the sorting support plate 32 is vertically installed on the right rear position of the frame 1 through bolt connection, and the sorting cylinder 33 is fixedly installed on the left side of the sorting support plate 32. The rods 34 are arranged horizontally in the left-right direction.
板栗定位装置为并排设置在提升输送带2上方的冷气喷管37和滴水管,滴水管位于冷气喷管37左侧,滴水管的滴水孔和冷气喷管37的喷口均朝下设置并朝向经过的凹槽54;冷气喷管37上设置有第二电磁阀52;The chestnut positioning device is a cold air nozzle 37 and a water drip pipe arranged side by side above the lifting conveyor belt 2. The water drip pipe is located on the left side of the cold air nozzle 37. the groove 54; the cold air nozzle 37 is provided with a second solenoid valve 52;
板栗解锁装置为设置在水平输送带4上方的热气喷管38,热气喷管38的喷口朝下设置并朝向经过的凹槽54,热气喷管38上设置有第三电磁阀53。The chestnut unlocking device is a hot gas nozzle 38 arranged above the horizontal conveyor belt 4 , the nozzle of the hot gas nozzle 38 is set downward and faces the passing groove 54 , and a third solenoid valve 53 is provided on the hot gas nozzle 38 .
电控模块9包括嵌入式ARM单片机、输入/输出子模块、工业以太网通信子模块、显示子模块、灯光警示子模块;嵌入式ARM单片机通过片内总线与输入/输出子模块相连接;The electronic control module 9 includes an embedded ARM single-chip microcomputer, an input/output sub-module, an industrial Ethernet communication sub-module, a display sub-module, and a light warning sub-module; the embedded ARM single-chip microcomputer is connected to the input/output sub-module through an on-chip bus;
嵌入式ARM单片机通过工业以太网通信子模块分别与工业照相机12和激光检测子模块20相连接;工业以太网通信子模块内置双工业以太网网口,输入/输出子模块分别与第一X向步进电机13、第一Y向步进电机16、第二X向步进电机21、C轴运动电机27、第二Y向步进电机24、分选气缸33通过控制信号线相连接,按照控制流程控制所对应的步进电机有序动作,实现定位和分选;输入/输出子模块还与第一电磁阀51、第二电磁阀52和第三电磁阀53相连接,根据动作流程,打开或者关闭电磁阀,分别实现检测、冷冻和解冻功能;所述的输入/输出子模块还连接并控制环形LED灯11开闭及其亮度;输入/输出子模块还与声学传感器31相连接。The embedded ARM single-chip microcomputer is respectively connected with the industrial camera 12 and the laser detection sub-module 20 through the industrial Ethernet communication sub-module; The stepper motor 13, the first Y-direction stepper motor 16, the second X-direction stepper motor 21, the C-axis motion motor 27, the second Y-direction stepper motor 24, and the sorting cylinder 33 are connected through a control signal line, according to The control process controls the corresponding stepper motor to act in an orderly manner to realize positioning and sorting; the input/output sub-module is also connected with the first solenoid valve 51, the second solenoid valve 52 and the third solenoid valve 53. According to the action flow, Open or close the solenoid valve to realize the functions of detection, freezing and thawing respectively; the input/output sub-module is also connected to and controls the opening and closing of the ring LED light 11 and its brightness; the input/output sub-module is also connected with the acoustic sensor 31 .
采用上述技术方案,基于机器视觉、激光和声学的板栗虫眼检测装置的检测方法,包括以下步骤,Using the above technical solution, the detection method of the chestnut worm eye detection device based on machine vision, laser and acoustics includes the following steps:
(1)提升输送带2和水平输送带4由步进电机带动自左向右移动,将板栗逐个放置到提升输送带2顶部最左侧的凹槽54内,滴水管内的水滴入到正下方的凹槽54内,将板栗逐个由左侧放置在提升输送带2的具有液体水的凹槽54内,提升输送带2和水平输送带4带动板栗向右移动;(1) The lifting conveyor belt 2 and the horizontal conveyor belt 4 are driven by the stepping motor to move from left to right, and the chestnuts are placed one by one into the leftmost groove 54 on the top of the lifting conveyor belt 2, and the water in the drip pipe drops directly below. In the groove 54, the chestnuts are placed one by one in the groove 54 with liquid water of the lifting conveyor belt 2 from the left side, and the lifting conveyor belt 2 and the horizontal conveyor belt 4 drive the chestnuts to move to the right;
(2)当板栗移动到冷气喷管37的喷口下方后,电控模块9控制第二电磁阀52开启,高压冷气喷向具有液体水的凹槽54,液体水受冷结冰使板栗冷冻固定到凹槽54内;(2) When the chestnut moves under the spout of the cold air nozzle 37, the electronic control module 9 controls the second solenoid valve 52 to open, and the high-pressure cold air is sprayed to the groove 54 with liquid water, and the liquid water freezes and freezes to fix the chestnut. into the groove 54;
(3)提升输送带2和水平输送带4带动板栗向右移动到拍照暗室检测模块3内,通过电控模块9的机器视觉方法计算板栗位置,拍照暗室检测模块3的工业照相机12在电控模块9的控制下,对待检测板栗进行拍照,通过工业以太网通信子模块发送到电控模块9,经过嵌入式ARM单片机进行处理,流程为:通过对工业照相机12进行标定,工业照相机12镜头到实物空间的高度H为已知量,采用单目视觉方法,夹角a通过相似三角比例可计算得出,L1为像素的长度,可由图像处理算法得到,从而计算出实物空间中的L2数值,得出待检测板栗在拍照暗室的坐标位置;接着通过图像的特征提取及其分析,获取待检测板栗的大小和疑似虫眼的区域信息;所计算的待检测板栗位置和大小信息,为后续的激光检测模块5和声学检测模块6提供定位信息;(3) The lifting conveyor belt 2 and the horizontal conveyor belt 4 drive the chestnut to move to the right in the camera detection module 3, and the position of the chestnut is calculated by the machine vision method of the electronic control module 9. The industrial camera 12 of the camera detection module 3 is in the electronic control module. Under the control of the module 9, the chestnut to be detected is photographed, sent to the electronic control module 9 through the industrial Ethernet communication sub-module, and processed by the embedded ARM single-chip microcomputer. The height H of the physical space is a known quantity. Using the monocular vision method, the angle a can be calculated by the ratio of similar triangles, and L1 is the length of the pixel, which can be obtained by the image processing algorithm, so as to calculate the L2 value in the physical space, Obtain the coordinate position of the chestnut to be detected in the photographing darkroom; then obtain the size of the chestnut to be detected and the area information of the suspected bug eye through the feature extraction and analysis of the image; the calculated position and size information of the chestnut to be detected are the follow-up laser The detection module 5 and the acoustic detection module 6 provide positioning information;
(4)水平输送带4带动板栗向右移动到激光检测模块5下方,第一X向步进电机13驱动第一X向运动丝杆14转动,从而使与第一X向运动丝杆14的第一X向支架15沿第一支撑导轨55向左或向右移动,第一Y向导轨18、激光检测夹具19和激光检测子模块20也向左或向右移动;第一Y向步进电机16驱动第一Y向运动丝杆17转动,从而使与第一Y向运动丝杆17的激光检测夹具19沿第一Y向导轨18向前或向后移动,激光检测子模块20也向前或向后移动;通过X-Y平面定位将激光检测夹具19移动到待检测板栗的上方,激光检测子模块20对准疑似板栗虫眼区域的垂直正上方;激光检测子模块20检测完成后,将检测的激光反射信号强度和位置高度信息进行处理后,交由电控模块9进行分析;(4) The horizontal conveyor belt 4 drives the chestnut to move to the right under the laser detection module 5 , and the first X-direction stepping motor 13 drives the first X-direction moving screw 14 to rotate, thereby making the first X-direction moving screw 14 rotate. The first X-direction bracket 15 moves to the left or right along the first support guide rail 55, and the first Y-direction guide rail 18, the laser detection fixture 19 and the laser detection sub-module 20 also move to the left or right; the first Y-direction steps The motor 16 drives the first Y-direction moving screw 17 to rotate, so that the laser detection fixture 19 and the first Y-direction moving screw 17 move forward or backward along the first Y-direction guide rail 18, and the laser detection sub-module 20 also moves forward. Move forward or backward; move the laser detection fixture 19 to the top of the chestnut to be detected through the X-Y plane positioning, and the laser detection sub-module 20 is aimed at the vertical top of the suspected chestnut worm-eye area; after the laser detection sub-module 20 is detected, the detection After processing the laser reflected signal intensity and position height information, it is handed over to the electronic control module 9 for analysis;
步骤(4)中激光检测子模块20的具体检测过程为:激光检测子模块20在 X-Y平面定位X方向和Y方向各间隔2mm 对疑似板栗虫眼区域进行扫描,扫描长度和宽度均为14mm,总计8×8=64次,激光检测子模块20获取激光测量高度数据集H64,高度为激光检测子模块中激光发射头到待检测板栗表面距离,如下所示:The specific detection process of the laser detection sub-module 20 in step (4) is as follows: the laser detection sub-module 20 is positioned on the XY plane to scan the suspected chestnut worm eye area with an interval of 2 mm in the X direction and the Y direction, and the scanning length and width are both 14 mm. 8×8=64 times, the laser detection sub-module 20 obtains the laser measurement height data set H 64 , and the height is the distance from the laser emitting head in the laser detection sub-module to the chestnut surface to be detected, as shown below:
进一步,对高度数据集H64中的每个数据沿X方向和Y方向计算平均高度差,如下式所示:Further, the average height difference is calculated along the X direction and the Y direction for each data in the height data set H 64 , as shown in the following formula:
上式中,当高度数据集下标(i或者j)小于等于0或者大于9时,不计平均高度差()中;如果当前测量位置的平均高度差()大于阈值0.18mm,标志当前测量位置为疑似板栗虫眼边缘;再将检测到的疑似板栗虫眼边缘位置(点位置集合),用B样条曲线进行曲面闭合操作,计算疑似板栗虫眼区域的面积,如果所述面积大于阈值15 mm2,则激光检测模块5判断当前待检测板栗存在虫眼缺陷,反之,判断当前待检测板栗不存在虫眼缺陷;In the above formula, when the subscript (i or j) of the height dataset is less than or equal to 0 or greater than 9, the average height difference ( ); if the average height difference at the current measurement location ( ) is greater than the threshold of 0.18mm, indicating that the current measurement position is the edge of the suspected chestnut worm's eye; then the detected edge position of the suspected chestnut worm's eye (point position set) is used to close the surface with a B-spline curve, and the area of the suspected chestnut worm's eye area is calculated, If the area is greater than the threshold value of 15 mm 2 , the laser detection module 5 judges that the chestnut to be tested currently has worm-eye defects, and on the contrary, judges that the chestnut to be tested does not have worm-eye defects;
(5)水平输送带4带动板栗向右移动到声学检测模块6下方后,第二X向步进电机21驱动第二X向运动丝杆22转动,从而使与第二X向运动丝杆22的第二X向支架23沿第二支撑导轨56向左或向右移动,第二Y向导轨26、滑动架、C轴运动电机27、C轴减速机28和高压气针29也向左或向右移动;第二Y向步进电机24驱动第二Y向运动丝杆25转动,从而使与第二Y向运动丝杆25的滑动架沿第二Y向导轨26向前或向后移动,C轴运动电机27、C轴减速机28和高压气针29也向前或向后移动;通过X-Y平面定位将第二C轴减速机28移动到待检测板栗的上方,再通过第二C轴减速机28的回转运动,将高压气针29对准疑似板栗虫眼的垂直正上方;高压气针29喷出气流后,声学传感器31采集疑似板栗虫眼位置的气流回声信号,交由电控模块9进行分析。(5) After the horizontal conveyor belt 4 drives the chestnut to move to the right under the acoustic detection module 6, the second X-direction stepping motor 21 drives the second X-direction moving screw 22 to rotate, so that the second X-direction moving screw 22 rotates. The second X-direction bracket 23 moves to the left or right along the second support guide rail 56, and the second Y-direction guide rail 26, the carriage, the C-axis motion motor 27, the C-axis reducer 28 and the high-pressure gas needle 29 also move left or right. Move to the right; the second Y-direction stepping motor 24 drives the second Y-direction moving screw 25 to rotate, so that the carriage with the second Y-direction moving screw 25 moves forward or backward along the second Y-direction guide rail 26 , the C-axis motion motor 27, the C-axis reducer 28 and the high-pressure gas needle 29 also move forward or backward; move the second C-axis reducer 28 to the top of the chestnut to be detected through the X-Y plane positioning, and then pass the second C-axis The rotary motion of the shaft reducer 28 aligns the high-pressure gas needle 29 at the vertical top of the suspected chestnut worm's eye; after the high-pressure gas needle 29 ejects airflow, the acoustic sensor 31 collects the airflow echo signal at the suspected chestnut worm's eye position, and sends it to the electronic control module 9 for analysis.
步骤(5)中声学检测模块6与电控模块9配合检测的具体过程为:声学检测模块6在电控模块9的控制下,通过X-Y平面定位移动到待检测板栗的上方;通过C轴减速机28的运动,采集三个位置的声学信号数据,位置1为疑似板栗虫眼区域的垂直正上方,位置2为疑似板栗虫眼区域表面的垂线方向,通过所述HX49和HY49数据计算获得,位置3为位置1关于疑似板栗虫眼区域表面的垂线的对称位置;电控模块9打开第一电磁阀51,高压气体通过高压气针29作用在疑似板栗虫眼区域,声学传感器31采集到2秒的数据后,通过输入/输出子模块将数据发送给电控模块9,成功后电控模块9关闭第一电磁阀51;同样,电控模块9对位置2和位置3进行声学信号数据的采集;全部三个位置的声学信号数据采集完成后,电控模块9的嵌入式ARM单片机按以下流程进行处理:In step (5), the specific process of the cooperation of the acoustic detection module 6 and the electronic control module 9 for detection is as follows: under the control of the electronic control module 9, the acoustic detection module 6 moves to the top of the chestnut to be detected through the XY plane positioning; decelerates through the C axis The movement of the machine 28 collects the acoustic signal data of three positions, the position 1 is the vertical directly above the suspected chestnut worm's eye area, and the position 2 is the vertical direction of the surface of the suspected chestnut worm's eye area, which is obtained by calculating the HX 49 and HY 49 data. , position 3 is the symmetrical position of position 1 about the vertical line of the suspected chestnut worm's eye area; the electronic control module 9 opens the first solenoid valve 51, the high-pressure gas acts on the suspected chestnut worm's eye area through the high-pressure gas needle 29, and the acoustic sensor 31 collects 2 After seconds of data, the data is sent to the electronic control module 9 through the input/output sub-module. After the success, the electronic control module 9 closes the first solenoid valve 51; similarly, the electronic control module 9 performs acoustic signal data for position 2 and position 3. Acquisition; After the acquisition of the acoustic signal data of all three positions is completed, the embedded ARM single-chip microcomputer of the electronic control module 9 is processed according to the following process:
A、分别对位置1、位置2和位置3采集到的声学信号数据按流程B~E进行处理;A. The acoustic signal data collected at position 1, position 2 and position 3 are processed according to the procedures B~E;
B、对各个位置采集到的4秒声学信号数据,进行预加重、分帧和加窗(12个短时分析窗)操作;B. Perform pre-emphasis, framing and windowing (12 short-term analysis windows) operations on the 4-second acoustic signal data collected at each location;
C、对每一个短时分析窗,通过FFT得到对应的频谱,所述频谱再通过Mel(梅尔)滤波器组得到Mel(梅尔)频谱;C. For each short-term analysis window, obtain the corresponding frequency spectrum through FFT, and then obtain the Mel (Mel) frequency spectrum through the Mel (Mel) filter bank;
D、在Mel(梅尔)频谱上面进行倒谱分析(取对数, DCT离散余弦变换处理后,取DCT离散余弦变换后的第2个到第13个系数作为MFCC系数),获得12个Mel频率倒谱系数MFCC;D. Perform cepstrum analysis on the Mel (Mel) spectrum (take logarithm, after DCT discrete cosine transform processing, take the 2nd to 13th coefficients after DCT discrete cosine transform as MFCC coefficients), obtain 12 Mel frequency cepstral coefficient MFCC;
E、将上述12个短时分析窗的12个Mel频率倒谱系数MFCC进行256级灰度化处理后,获取梅尔频率倒谱系数(MFCC)特征图,大小为12×12的256级灰度图像;进一步,所述12×12的256级灰度图像送入残差网络中进行辨识,辨识结果为二维向量[P0,P1],当P0大于P1时,声学检测模块标记当前位置为待检测板栗存在虫眼缺陷,反之,判断当前待检测板栗不存在虫眼缺陷;E. After the 12 Mel-frequency cepstral coefficients MFCC of the above 12 short-term analysis windows are subjected to 256-level grayscale processing, a Mel-frequency cepstral coefficient (MFCC) feature map is obtained, with a size of 12×12 256-level gray further, the 12×12 256-level grayscale image is sent to the residual network for identification, and the identification result is a two-dimensional vector [P 0 , P 1 ], when P 0 is greater than P 1 , the acoustic detection module Mark the current position as the chestnut to be tested has worm-eye defects, otherwise, judge that the chestnut to be tested does not have worm-eye defects;
F、汇总分析位置1、位置2和位置3的初步结果,如果其中位置1、位置2和位置3任何一个位置存在虫眼缺陷标记,则声学检测模块判断当前待检测板栗存在虫眼缺陷,反之,当前待检测板栗不存在虫眼缺陷;F. Summarize and analyze the preliminary results of position 1, position 2 and position 3. If there is a worm-eye defect mark in any of the positions of position 1, position 2 and position 3, the acoustic detection module judges that there is a worm-eye defect in the chestnut to be tested. There is no bug eye defect in the chestnut to be tested;
通过拍照视觉、激光和声学三者共同组合检测后最终辨识的结果通过显示子模块进行显示;有虫眼的板栗还通过灯光警示子模块报警显示,以提醒工作人员;显示子模块还能对检测的数据进行统计分析,按小时或者批次显示统计数据,便于人工查看;The final identification result after the combined detection of camera vision, laser and acoustics is displayed through the display sub-module; chestnuts with insect eyes are also displayed in an alarm through the light warning sub-module to remind the staff; the display sub-module can also detect the detected Statistical analysis of data, displaying statistical data by hour or batch, which is convenient for manual viewing;
(6)当检测后的板栗向右输送到热气喷管38的喷口下方时,通过热气将金属热导体的水平输送带4的凹槽54内部的固体冰进行急速加热,使之转变为液体水,便于分选装置7进行分级;(6) When the detected chestnut is transported to the right under the nozzle of the hot air nozzle 38, the solid ice inside the groove 54 of the horizontal conveyor belt 4 of the metal heat conductor is rapidly heated by the hot air, and turned into liquid water. , which is convenient for the sorting device 7 to carry out classification;
(7)当有虫眼的板栗向右输送到与分选装置7前后对应的位置时,分选气缸33带动分选杆34运动,推动分选杆头35将有虫眼缺陷的板栗推出滑道36的入口;分选气缸33与电控模块9连接,在电控模块9的控制下,推动分选杆34运动,从而实现有虫眼缺陷的板栗通过滑道36落入残次品框,合格的板栗,由水平输送带4往右侧方向运输。(7) When the chestnut with worm eyes is transported to the right to the position corresponding to the front and rear of the sorting device 7, the sorting cylinder 33 drives the sorting rod 34 to move, and pushes the sorting rod head 35 to push the chestnut with the worm eye defect out of the chute 36. The sorting cylinder 33 is connected with the electronic control module 9, and under the control of the electronic control module 9, the sorting rod 34 is pushed to move, so that the chestnut with bug eye defect falls into the defective product frame through the slideway 36, and the qualified Chestnuts are transported to the right by the horizontal conveyor belt 4.
所述残差网络包含2个残差块,A1卷积层、A2 Batch Norm层、A3激活层、B1卷积层、B2 Batch Norm层和B3激活层构成第一残差块,所述A1卷积层、A2 Batch Norm层、A3激活层、B1卷积层、B2 Batch Norm层和B3激活层首尾依次相连接,进一步,A1卷积层入口的数据可短路插入到B2 Batch Norm层和B3激活层之间;C1卷积层、C 2 Batch Norm层、C 3激活层、D1卷积层、D2 Batch Norm层和D3激活层构成第二残差块,所述C1卷积层、C2 BatchNorm层、C3激活层、D1卷积层、D2 Batch Norm层和D3激活层首尾依次相连接,进一步,C1卷积层入口的数据可短路插入到D2 Batch Norm层和D3激活层之间;第一残差块和第二残差块首尾依次相连接,所述MFCC灰度图像输入所述残差网络的2个残差块后,进入到E1全连接层,数据再流入到F1软回归层,最终输出辨识结果。The residual network includes 2 residual blocks, the A1 convolutional layer, the A2 Batch Norm layer, the A3 activation layer, the B1 convolutional layer, the B2 Batch Norm layer and the B3 activation layer constitute the first residual block. The A1 volume The accumulation layer, the A2 Batch Norm layer, the A3 activation layer, the B1 convolution layer, the B2 Batch Norm layer and the B3 activation layer are connected in turn. Between layers; the C1 convolutional layer, the C2 Batch Norm layer, the C3 activation layer, the D1 convolutional layer, the D2 Batch Norm layer and the D3 activation layer constitute the second residual block, the C1 convolutional layer, the C2 BatchNorm layer , C3 activation layer, D1 convolution layer, D2 Batch Norm layer and D3 activation layer are connected end to end, further, the data at the entrance of C1 convolution layer can be short-circuit inserted between D2 Batch Norm layer and D3 activation layer; the first residual The difference block and the second residual block are connected end to end in turn. After the MFCC grayscale image is input into the two residual blocks of the residual network, it enters the E1 fully connected layer, and the data flows into the F1 soft regression layer, and finally The identification result is output.
更进一步,所述残差网络通过离线进行训练,总共采集3160个样本的数据进行训练,其中1510个为不存在虫眼缺陷的数据,1650个为存在虫眼缺陷的数据,训练后的模型存入电控模块9的嵌入式ARM单片机内部。Further, the residual network is trained offline, and a total of 3160 samples of data are collected for training, of which 1510 are data without bug eye defects, and 1650 are data with bug eye defects. Inside the embedded ARM microcontroller of the control module 9.
由机器视觉检测结果,获取疑似虫眼的区域信息;由机器视觉检测疑似虫眼位置信息,通过激光检测,获取激光检测结果;由机器视觉检测疑似虫眼位置信息和激光检测板栗疑似虫眼附近曲面信息,通过声学检测,获取声学检测结果;由上述机器视觉结果:疑似虫眼位置和大小信息、激光检测结果和声学检测结果,通过SVM模型进行辨识,输出最终的辨识结果:正常和虫眼,再由显示子模块和灯光警示子模块进行输出。Obtain the area information of suspected insect eyes from the detection results of machine vision; detect the position information of suspected insect eyes by machine vision, and obtain the laser detection results through laser detection; Acoustic detection, obtain the acoustic detection results; from the above machine vision results: the position and size information of the suspected insect eye, the laser detection result and the acoustic detection result, identify through the SVM model, and output the final identification result: normal and insect eye, and then by the display sub-module and the light warning sub-module for output.
所述SVM模型通过离线进行训练,与所述残差网络共用相同的训练样本,也即是对总共采集3160个样本的数据进行训练,其中1510个为不存在虫眼缺陷的数据,1650个为存在虫眼缺陷的数据,训练后的SVM模型参数存入电控模块9的嵌入式ARM单片机内部。The SVM model is trained offline and shares the same training samples with the residual network, that is, training on data collected from a total of 3160 samples, of which 1510 are data without bug eye defects, and 1650 are data with bug eye defects. The data of the bug eye defect and the trained SVM model parameters are stored in the embedded ARM single-chip microcomputer of the electronic control module 9 .
本发明还可以设置为级联操作,两台本发明装置和一台带机器视觉的机器手组合成一套检测单元;所述带机器视觉的机器手处于两台本发明装置中间,利用机器视觉进行辅助定位,实现待检测板栗从一台本发明装置移动到另一台本发明装置上,移动过程中实现板栗翻面,之后再进行检测,可进一步提升检测的准确率。The present invention can also be set to cascade operation, two devices of the present invention and a robot hand with machine vision are combined to form a set of detection units; the robot hand with machine vision is located in the middle of the two devices of the present invention, and machine vision is used for auxiliary positioning , to realize that the chestnut to be detected is moved from one device of the present invention to another device of the present invention, and the chestnut is turned over during the moving process, and then the detection is performed, which can further improve the accuracy of the detection.
综上所述,本发明相对于现有技术具有以下有益效果:To sum up, the present invention has the following beneficial effects relative to the prior art:
本发明通过机器视觉、声学检测和激光检测的多级联合智能信息融合下,可实现高精度的板栗虫眼检测,一方面可以有效提升检测的智能化水平,另外一方面通过多级联合智能检测,提升分选准确率,并降低装置成本。本发明能用于板栗农产品虫眼在线实时检测,对于提升我国板栗农产品深加工的发展具有重要的意义,而且市场应用前景较好。Through the multi-level joint intelligent information fusion of machine vision, acoustic detection and laser detection, the present invention can realize high-precision chestnut worm eye detection. On the one hand, the intelligent level of detection can be effectively improved. Improve sorting accuracy and reduce device cost. The invention can be used for on-line real-time detection of insect eyes of chestnut agricultural products, has important significance for promoting the development of deep processing of chestnut agricultural products in my country, and has good market application prospects.
附图说明Description of drawings
图1是本发明装置在一个视角下的立体结构示意图;Fig. 1 is the three-dimensional structure schematic diagram of the device of the present invention under one viewing angle;
图2是本发明装置在另一个视角下的立体结构示意图;Fig. 2 is the three-dimensional structure schematic diagram of the device of the present invention under another viewing angle;
图3是本发明装置中激光检测模块的俯视结构示意图;3 is a schematic top view of the structure of the laser detection module in the device of the present invention;
图4是图3的左视图;Fig. 4 is the left side view of Fig. 3;
图5是本发明装置中声学检测模块的结构示意图;5 is a schematic structural diagram of an acoustic detection module in the device of the present invention;
图6是本发明装置中分选装置的结构示意图;Fig. 6 is the structural representation of the sorting device in the device of the present invention;
图7是拍照暗室检测模块的仰视示意图;Fig. 7 is the bottom view schematic diagram of photographing darkroom detection module;
图8 是机器视觉板栗位置计算示意图;Figure 8 is a schematic diagram of chestnut position calculation in machine vision;
图9是激光检测模块工作示意图;Fig. 9 is the working schematic diagram of the laser detection module;
图10是声学检测模块工作示意图;Fig. 10 is the working schematic diagram of acoustic detection module;
图11是用于声学信号数据处理的残差网络(ResNet)结构图;Figure 11 is a structural diagram of a residual network (ResNet) used for acoustic signal data processing;
图12是机器视觉、激光和声学的多级联合智能检测流程图;Figure 12 is a flow chart of multi-level joint intelligent detection of machine vision, laser and acoustics;
图13是电控模块结构图。FIG. 13 is a structural diagram of an electronic control module.
具体实施方式Detailed ways
如图1-图6所示,本发明的基于机器视觉、激光和声学的板栗虫眼检测装置,包括机架1,机架1上自左向右依次设置有提升输送带2和水平输送带4,提升输送带2呈左低右高倾斜设置,机架1上自左向右依次设置有位于水平输送带4上方的拍照暗室检测模块3、激光检测模块5、声学检测模块6和分选装置7,机架1侧部设置有电控模块9、板栗定位装置和板栗解锁装置,板栗定位装置的工作部位于提升输送带2上方,板栗解锁装置的工作部位于水平输送带4上方的声学检测模块6和分选装置7之间。As shown in Figures 1 to 6, the chestnut worm eye detection device based on machine vision, laser and acoustics of the present invention includes a frame 1, and the frame 1 is provided with a lifting conveyor belt 2 and a horizontal conveyor belt 4 sequentially from left to right. , the lifting conveyor belt 2 is inclined to the left and right, and the frame 1 is sequentially provided with a camera darkroom detection module 3, a laser detection module 5, an acoustic detection module 6 and a sorting device located above the horizontal conveyor belt 4 from left to right. 7. The side of the frame 1 is provided with an electric control module 9, a chestnut positioning device and a chestnut unlocking device, the working part of the chestnut positioning device is located above the lifting conveyor belt 2, and the working part of the chestnut unlocking device is located above the horizontal conveyor belt 4 Acoustic detection between the module 6 and the sorting device 7 .
提升输送带2和水平输送带4均由金属热导体材料制成,提升输送带2和水平输送带4上表面沿左右方向间隔5~8cm均匀开设有用于存放待输送板栗的凹槽54,提升输送带2和水平输送带4组合为一个完整传送带,待检测板栗可不换输送带凹槽54,实现从提升到分级全过程的运输,所述凹槽54内部存储少量液态水,用于冷冻并固定板栗。The lifting conveyor belt 2 and the horizontal conveyor belt 4 are both made of metal thermal conductor materials. The upper surfaces of the lifting conveyor belt 2 and the horizontal conveyor belt 4 are evenly spaced 5 to 8 cm in the left-right direction with grooves 54 for storing the chestnuts to be transported. The conveyor belt 2 and the horizontal conveyor belt 4 are combined into a complete conveyor belt. The chestnut to be tested can be transported without changing the conveyor belt groove 54 to realize the whole process of transportation from lifting to grading. The groove 54 stores a small amount of liquid water inside for freezing and grading. Fixed chestnuts.
拍照暗室检测模块3包括空腔箱体10、环形LED灯11和工业照相机12,空腔箱体10底部敞口并垂直向下朝向水平输送带4,空腔箱体10左右两侧均通过螺钉固定在机架1上,空腔箱体10底部边沿的左侧和右侧均留有便于板栗的水平输送矩形缺口;环形LED灯11和工业照相机12安装在空腔箱体10内的顶部中央位置。The camera darkroom detection module 3 includes a cavity box 10 , a ring LED light 11 and an industrial camera 12 . The bottom of the cavity box 10 is open and faces the horizontal conveyor belt 4 vertically downward. The left and right sides of the cavity box 10 are screwed through. Fixed on the rack 1, the left and right sides of the bottom edge of the cavity box 10 are left with rectangular gaps for the horizontal transportation of chestnuts; the ring LED light 11 and the industrial camera 12 are installed in the top center of the cavity box 10. Location.
激光检测模块5包括第一X向步进电机13、第一X向运动丝杆14、第一X向支架15、第一Y向步进电机16、第一Y向运动丝杆17、第一Y向导轨18、激光检测夹具19和激光检测子模块20;The laser detection module 5 includes a first X-direction stepping motor 13, a first X-direction moving screw 14, a first X-direction bracket 15, a first Y-direction stepping motor 16, a first Y-direction moving screw 17, a first Y-direction guide rail 18, laser detection fixture 19 and laser detection sub-module 20;
X向为左右水平方向,Y向为前后水平方向,机架1上在水平输送带4的前后两侧分别设置有一条沿X向布置且呈矩形框的第一支撑导轨55,每条第一支撑导轨55内均设置有一个所述的第一X向运动丝杆14,第一X向运动丝杆14的一端转动连接在第一支撑导轨55上,第一X向运动丝杆14的另一端与所述的第一X向步进电机13传动连接,第一X向运动丝杆14上螺纹连接有沿第一支撑导轨55滑动的所述的第一X向支架15,第一Y向导轨18的前后两端固定连接在两个第一X向支架15的上端,第一Y向导轨18为中空杆状结构,第一Y向运动丝杆17沿前后方向设置在第一Y向导轨18内部,第一Y向运动丝杆17的一端转动连接在第一Y向导轨18内部一端,第一Y向运动丝杆17的另一端与所述的第一Y向步进电机16传动连接,激光检测夹具19螺纹连接在第一Y向运动丝杆17上且沿第一Y向导轨18滑动设置,激光检测子模块20安装在激光检测夹具19上并朝向凹槽54照射。The X direction is the left and right horizontal direction, and the Y direction is the front and rear horizontal direction. The frame 1 is provided with a first support guide rail 55 arranged along the X direction and in the shape of a rectangular frame on the front and rear sides of the horizontal conveyor belt 4 respectively. Each of the support guide rails 55 is provided with the first X-direction moving screw 14, one end of the first X-direction moving screw 14 is rotatably connected to the first support guide rail 55, and the other side of the first X-direction moving screw 14 is rotatably connected to the first support guide rail 55. One end is drivingly connected with the first X-direction stepping motor 13, the first X-direction moving screw 14 is threadedly connected with the first X-direction bracket 15 sliding along the first support guide rail 55, the first Y-direction The front and rear ends of the guide rail 18 are fixedly connected to the upper ends of the two first X-direction brackets 15, the first Y-direction guide rail 18 is a hollow rod-shaped structure, and the first Y-direction moving screw 17 is arranged in the front-rear direction on the first Y-direction guide rail. 18, one end of the first Y-direction moving screw 17 is rotatably connected to one end of the first Y-direction guide rail 18, and the other end of the first Y-direction moving screw 17 is drivingly connected to the first Y-direction stepping motor 16. , the laser detection fixture 19 is screwed on the first Y-direction moving screw 17 and slides along the first Y-direction guide rail 18 .
声学检测模块6包括第二X向步进电机21、第二X向运动丝杆22、第二X向支架23、第二Y向步进电机24、第二Y向运动丝杆25、第二Y向导轨26、滑动架、C轴运动电机27、C轴减速机28、高压气针29、高压气管30、声学传感器31和第一电磁阀51;X向为左右水平方向,Y向为前后水平方向;The acoustic detection module 6 includes a second X-direction stepping motor 21, a second X-direction moving screw 22, a second X-direction bracket 23, a second Y-direction stepping motor 24, a second Y-direction moving screw 25, a second Y-direction guide rail 26, sliding frame, C-axis motion motor 27, C-axis reducer 28, high-pressure gas needle 29, high-pressure gas pipe 30, acoustic sensor 31 and first solenoid valve 51; X-direction is the left-right horizontal direction, Y-direction is front and rear horizontal direction;
机架1上在水平输送带4的前后两侧分别设置有一条沿X向布置且呈矩形框的第二支撑导轨56,每条第二支撑导轨56内均设置有一个所述的第二X向运动丝杆22,第二X向运动丝杆22的一端转动连接在第二支撑导轨56上,第二X向运动丝杆22的另一端与所述的第二X向步进电机21传动连接,第二X向运动丝杆22上螺纹连接有沿第二支撑导轨56滑动的所述的第二X向支架23,第二Y向导轨26的前后两端固定连接在两个第二X向支架23的上端,第二Y向导轨26为中空杆状结构,第二Y向运动丝杆25沿前后方向设置在第二Y向导轨26内部,第二Y向运动丝杆25的一端转动连接在第二Y向导轨26内部一端,第二Y向运动丝杆25的另一端与所述的第二Y向步进电机24传动连接,C轴运动电机27和C轴减速机28设置在滑动架内部,滑动架螺纹连接在第二Y向运动丝杆25上且沿第二Y向导轨26滑动设置,C轴运动电机27的动力输出端与C轴减速机28的动力输入端传动连接,高压气针29安装在C轴减速机28的动力输出轴上,C轴减速机28的动力输出轴的沿左右方向水平设置,高压气针29与C轴减速机28的动力输出轴垂直,高压气针29的进气口与高压气管30的出气口连接,第一电磁阀51设置在高压气管30上,高压气管30的进气口连接有空压机,声学传感器31设置在高压气针29的喷气口处。On the frame 1, a second support guide rail 56 arranged along the X direction and in the shape of a rectangular frame is respectively provided on the front and rear sides of the horizontal conveyor belt 4, and each second support guide rail 56 is provided with a said second X To the moving screw 22, one end of the second X-direction moving screw 22 is rotatably connected to the second support guide rail 56, and the other end of the second X-direction moving screw 22 is driven with the second X-direction stepping motor 21. Connection, the second X-direction moving screw 22 is threadedly connected with the second X-direction bracket 23 sliding along the second support guide rail 56, and the front and rear ends of the second Y-direction guide rail 26 are fixedly connected to the two second X-direction brackets 23. To the upper end of the bracket 23, the second Y-direction guide rail 26 is a hollow rod-shaped structure, the second Y-direction moving screw 25 is arranged inside the second Y-direction guide rail 26 in the front-rear direction, and one end of the second Y-direction moving screw 25 rotates Connected to one end of the second Y-direction guide rail 26, the other end of the second Y-direction moving screw 25 is connected to the second Y-direction stepping motor 24, the C-axis moving motor 27 and the C-axis reducer 28 are arranged in Inside the sliding frame, the sliding frame is threaded on the second Y-direction moving screw 25 and is slidably arranged along the second Y-direction guide rail 26 , and the power output end of the C-axis motion motor 27 is drive-connected with the power input end of the C-axis reducer 28 , the high-pressure gas needle 29 is installed on the power output shaft of the C-axis reducer 28, the power output shaft of the C-axis reducer 28 is arranged horizontally along the left-right direction, and the high-pressure gas needle 29 is perpendicular to the power output shaft of the C-axis reducer 28, The air inlet of the high pressure air needle 29 is connected with the air outlet of the high pressure air pipe 30, the first solenoid valve 51 is arranged on the high pressure air pipe 30, the air compressor is connected to the air inlet of the high pressure air pipe 30, and the acoustic sensor 31 is arranged on the high pressure air needle 29 at the jet port.
分选装置7包括分选支撑板32、分选气缸33、分选杆34、分选杆头35和滑道36;滑道36通过螺栓连接安装在机架1右前侧位置;分选支撑板32通过螺栓连接垂直安装在机架1右后侧位置,分选气缸33固定安装在分选支撑板32左侧面,分选气缸33的伸缩杆与分选杆34同轴向连接,分选杆34沿左右方向水平设置。The sorting device 7 includes a sorting support plate 32, a sorting cylinder 33, a sorting rod 34, a sorting rod head 35 and a slideway 36; the slideway 36 is installed on the right front side of the frame 1 by bolting; the sorting support plate 32 is vertically installed on the right rear position of the frame 1 through bolt connection, and the sorting cylinder 33 is fixedly installed on the left side of the sorting support plate 32. The rods 34 are arranged horizontally in the left-right direction.
板栗定位装置为并排设置在提升输送带2上方的冷气喷管37和滴水管,滴水管位于冷气喷管37左侧,滴水管的滴水孔和冷气喷管37的喷口均朝下设置并朝向经过的凹槽54;冷气喷管37上设置有第二电磁阀52;The chestnut positioning device is a cold air nozzle 37 and a water drip pipe arranged side by side above the lifting conveyor belt 2. The water drip pipe is located on the left side of the cold air nozzle 37. the groove 54; the cold air nozzle 37 is provided with a second solenoid valve 52;
板栗解锁装置为设置在水平输送带4上方的热气喷管38,热气喷管38的喷口朝下设置并朝向经过的凹槽54,热气喷管38上设置有第三电磁阀53,第二电磁阀52和第三电磁阀53都与电控模块9相连接,并受其控制。The chestnut unlocking device is a hot air nozzle 38 arranged above the horizontal conveyor belt 4. The nozzle of the hot air nozzle 38 is set downward and faces the groove 54 passing through. The hot air nozzle 38 is provided with a third solenoid valve 53 and a second electromagnetic valve. Both the valve 52 and the third solenoid valve 53 are connected to and controlled by the electronic control module 9 .
如图13所示,电控模块9包括嵌入式ARM单片机、输入/输出子模块、工业以太网通信子模块、显示子模块、灯光警示子模块;嵌入式ARM单片机通过片内总线与输入/输出子模块相连接;嵌入式ARM单片机通过工业以太网通信子模块分别与工业照相机12和激光检测子模块20相连接;工业以太网通信子模块内置双工业以太网网口,输入/输出子模块分别与第一X向步进电机13、第一Y向步进电机16、第二X向步进电机21、C轴运动电机27、第二Y向步进电机24、分选气缸33通过控制信号线相连接,按照控制流程控制所对应的步进电机有序动作,实现定位和分选;输入/输出子模块还与第一电磁阀51、第二电磁阀52和第三电磁阀53相连接,根据动作流程,打开或者关闭电磁阀,分别实现检测、冷冻和解冻功能;所述的输入/输出子模块还连接并控制环形LED灯11开闭及其亮度;输入/输出子模块还与声学传感器31相连接。As shown in Figure 13, the electronic control module 9 includes an embedded ARM single-chip microcomputer, an input/output sub-module, an industrial Ethernet communication sub-module, a display sub-module, and a light warning sub-module; the embedded ARM single-chip microcomputer communicates with the input/output through the on-chip bus The sub-modules are connected; the embedded ARM single-chip microcomputer is respectively connected with the industrial camera 12 and the laser detection sub-module 20 through the industrial Ethernet communication sub-module; the industrial Ethernet communication sub-module has built-in dual industrial Ethernet network ports, and the input/output sub-modules are respectively Through control signals with the first X-direction stepper motor 13, the first Y-direction stepper motor 16, the second X-direction stepper motor 21, the C-axis motion motor 27, the second Y-direction stepper motor 24, and the sorting cylinder 33 The line is connected, and the corresponding stepper motor is controlled in an orderly manner according to the control process to realize positioning and sorting; the input/output sub-module is also connected with the first solenoid valve 51, the second solenoid valve 52 and the third solenoid valve 53 , according to the action flow, open or close the solenoid valve to realize the functions of detection, freezing and thawing respectively; the input/output sub-module is also connected to and controls the opening and closing of the ring LED light 11 and its brightness; the input/output sub-module is also connected with the acoustic The sensor 31 is connected.
基于机器视觉、激光和声学的板栗虫眼检测装置的检测方法,包括以下步骤:The detection method of the chestnut worm eye detection device based on machine vision, laser and acoustics includes the following steps:
(1)提升输送带2和水平输送带4由步进电机带动自左向右移动,将板栗逐个放置到提升输送带2顶部最左侧的凹槽54内,滴水管内的水滴入到正下方的凹槽54内,将板栗逐个由左侧放置在提升输送带2的具有液体水的凹槽54内,提升输送带2和水平输送带4带动板栗向右移动;(1) The lifting conveyor belt 2 and the horizontal conveyor belt 4 are driven by the stepping motor to move from left to right, and the chestnuts are placed one by one into the leftmost groove 54 on the top of the lifting conveyor belt 2, and the water in the drip pipe drops directly below. In the groove 54, the chestnuts are placed one by one in the groove 54 with liquid water of the lifting conveyor belt 2 from the left side, and the lifting conveyor belt 2 and the horizontal conveyor belt 4 drive the chestnuts to move to the right;
(2)当板栗移动到冷气喷管37的喷口下方后,电控模块9控制第二电磁阀52开启,高压冷气喷向具有液体水的凹槽54,液体水受冷结冰使板栗冷冻固定到凹槽54内;(2) When the chestnut moves under the spout of the cold air nozzle 37, the electronic control module 9 controls the second solenoid valve 52 to open, and the high-pressure cold air is sprayed to the groove 54 with liquid water, and the liquid water freezes and freezes to fix the chestnut. into the groove 54;
(3)提升输送带2和水平输送带4由输送步进电机带动(本领域常规技术),输送带每节宽度为30~50mm,由步进电机初步定位,将待检测板栗送入拍照暗室检测模块3内部,再通过电控模块9的机器视觉算法进一步计算位置,驱动步进电机精密定位,使得待检测板栗处于工业照相机12下方区域;(3) The lifting conveyor belt 2 and the horizontal conveyor belt 4 are driven by a conveying stepper motor (conventional technology in the art), the width of each section of the conveyor belt is 30~50mm, and is initially positioned by the stepper motor, and the chestnut to be tested is sent into the camera darkroom Inside the detection module 3, the position is further calculated by the machine vision algorithm of the electronic control module 9, and the stepping motor is driven for precise positioning, so that the chestnut to be detected is in the area below the industrial camera 12;
提升输送带2和水平输送带4带动板栗向右移动到拍照暗室检测模块3内,如图7和图8所示,通过电控模块9的机器视觉方法计算板栗位置,拍照暗室检测模块3的工业照相机12在电控模块9的控制下,对待检测板栗进行拍照,通过工业以太网通信子模块发送到电控模块9,经过嵌入式ARM单片机进行处理,流程为:通过对工业照相机12进行标定,工业照相机12镜头到实物空间的高度H为已知量,采用单目视觉方法,夹角a通过相似三角比例可计算得出,L1为像素的长度,可由图像处理算法得到(本领域常规技术),从而计算出实物空间中的L2数值,得出待检测板栗在拍照暗室的坐标位置;接着通过图像的特征提取及其分析,获取待检测板栗的大小和疑似虫眼的区域信息;所计算的待检测板栗位置和大小信息,为后续的激光检测模块5和声学检测模块6提供定位信息;The lifting conveyor belt 2 and the horizontal conveyor belt 4 drive the chestnut to move to the right in the camera darkroom detection module 3, as shown in Figures 7 and 8, the chestnut position is calculated by the machine vision method of the electronic control module 9, and the photo darkroom detection module 3 Under the control of the electronic control module 9, the industrial camera 12 takes pictures of the chestnut to be detected, and is sent to the electronic control module 9 through the industrial Ethernet communication sub-module, and processed by the embedded ARM single-chip microcomputer. The process is as follows: by calibrating the industrial camera 12 , the height H from the lens of the industrial camera 12 to the physical space is a known quantity, and the monocular vision method is adopted. The angle a can be calculated by the similar triangle ratio, and L1 is the length of the pixel, which can be obtained by an image processing algorithm (conventional technology in the art). ), thereby calculating the L2 value in the physical space, and obtaining the coordinate position of the chestnut to be detected in the photo darkroom; then through the feature extraction and analysis of the image, the size of the chestnut to be detected and the area information of the suspected bug eye are obtained; the calculated The position and size information of the chestnut to be detected provides positioning information for the subsequent laser detection module 5 and acoustic detection module 6;
(4)水平输送带4带动板栗向右移动到激光检测模块5下方,第一X向步进电机13驱动第一X向运动丝杆14转动,从而使与第一X向运动丝杆14的第一X向支架15沿第一支撑导轨55向左或向右移动,第一Y向导轨18、激光检测夹具19和激光检测子模块20也向左或向右移动;第一Y向步进电机16驱动第一Y向运动丝杆17转动,从而使与第一Y向运动丝杆17的激光检测夹具19沿第一Y向导轨18向前或向后移动,激光检测子模块20也向前或向后移动;通过X-Y平面定位将激光检测夹具19移动到待检测板栗的上方,激光检测子模块20对准疑似板栗虫眼区域的垂直正上方;激光检测子模块20检测完成后,将检测的激光反射信号强度和位置高度信息进行处理后,交由电控模块9进行分析;(4) The horizontal conveyor belt 4 drives the chestnut to move to the right under the laser detection module 5 , and the first X-direction stepping motor 13 drives the first X-direction moving screw 14 to rotate, thereby making the first X-direction moving screw 14 rotate. The first X-direction bracket 15 moves to the left or right along the first support guide rail 55, and the first Y-direction guide rail 18, the laser detection fixture 19 and the laser detection sub-module 20 also move to the left or right; the first Y-direction steps The motor 16 drives the first Y-direction moving screw 17 to rotate, so that the laser detection fixture 19 and the first Y-direction moving screw 17 move forward or backward along the first Y-direction guide rail 18, and the laser detection sub-module 20 also moves forward. Move forward or backward; move the laser detection fixture 19 to the top of the chestnut to be detected through the X-Y plane positioning, and the laser detection sub-module 20 is aimed at the vertical top of the suspected chestnut worm-eye area; after the laser detection sub-module 20 is detected, the detection After processing the laser reflected signal intensity and position height information, it is handed over to the electronic control module 9 for analysis;
步骤(4)中激光检测子模块20的具体检测过程为:如图9所示,激光检测子模块20在 X-Y平面定位X方向和Y方向各间隔2mm 对疑似板栗虫眼区域进行扫描,扫描长度和宽度均为14mm,总计8×8=64次,激光检测子模块20获取激光测量高度数据集H64,高度为激光检测子模块中激光发射头到待检测板栗表面距离,如下所示:The specific detection process of the laser detection sub-module 20 in step (4) is as follows: as shown in FIG. 9 , the laser detection sub-module 20 scans the suspected chestnut worm eye area in the X and Y directions of the XY plane at an interval of 2 mm. The widths are all 14mm, with a total of 8×8=64 times. The laser detection sub-module 20 obtains the laser measurement height data set H 64 , and the height is the distance from the laser emitting head in the laser detection sub-module to the chestnut surface to be detected, as shown below:
进一步,对高度数据集H64中的每个数据沿X方向和Y方向计算平均高度差,如下式所示:Further, the average height difference is calculated along the X direction and the Y direction for each data in the height data set H 64 , as shown in the following formula:
上式中,当高度数据集下标(i或者j)小于等于0或者大于9时,不计平均高度差()中;如果当前测量位置的平均高度差()大于阈值0.18mm,标志当前测量位置为疑似板栗虫眼边缘;再将检测到的疑似板栗虫眼边缘位置(点位置集合),用B样条曲线进行曲面闭合操作,计算疑似板栗虫眼区域的面积,如果所述面积大于阈值15 mm2,则激光检测模块5判断当前待检测板栗存在虫眼缺陷,反之,判断当前待检测板栗不存在虫眼缺陷;In the above formula, when the subscript (i or j) of the height dataset is less than or equal to 0 or greater than 9, the average height difference ( ); if the average height difference at the current measurement location ( ) is greater than the threshold of 0.18mm, indicating that the current measurement position is the edge of the suspected chestnut worm's eye; then the detected edge position of the suspected chestnut worm's eye (point position set) is used to close the surface with a B-spline curve, and the area of the suspected chestnut worm's eye area is calculated, If the area is greater than the threshold value of 15 mm 2 , the laser detection module 5 judges that the chestnut to be tested currently has worm-eye defects, and on the contrary, judges that the chestnut to be tested does not have worm-eye defects;
(5)水平输送带4带动板栗向右移动到声学检测模块6下方,第二X向步进电机21驱动第二X向运动丝杆22转动,从而使与第二X向运动丝杆22的第二X向支架23沿第二支撑导轨56向左或向右移动,第二Y向导轨26、滑动架、C轴运动电机27、C轴减速机28和高压气针29也向左或向右移动;第二Y向步进电机24驱动第二Y向运动丝杆25转动,从而使与第二Y向运动丝杆25的滑动架沿第二Y向导轨26向前或向后移动,C轴运动电机27、C轴减速机28和高压气针29也向前或向后移动;通过X-Y平面定位将第二C轴减速机28移动到待检测板栗的上方,再通过第二C轴减速机28的回转运动,将高压气针29对准疑似板栗虫眼的垂直正上方;高压气针29喷出气流后,声学传感器31采集疑似板栗虫眼位置的气流回声信号,交由电控模块9进行分析。(5) The horizontal conveyor belt 4 drives the chestnut to move to the right under the acoustic detection module 6, and the second X-direction stepping motor 21 drives the second X-direction moving screw 22 to rotate, so that the The second X-direction bracket 23 moves to the left or right along the second support guide rail 56 , and the second Y-direction guide rail 26 , the carriage, the C-axis motion motor 27 , the C-axis reducer 28 and the high-pressure gas needle 29 also move to the left or to the right Move to the right; the second Y-direction stepping motor 24 drives the second Y-direction moving screw 25 to rotate, so that the carriage with the second Y-direction moving screw 25 moves forward or backward along the second Y-direction guide rail 26, The C-axis motion motor 27, the C-axis reducer 28 and the high-pressure gas needle 29 also move forward or backward; the second C-axis reducer 28 is moved to the top of the chestnut to be detected through the X-Y plane positioning, and then passes through the second C-axis. The rotary motion of the reducer 28 aligns the high-pressure gas needle 29 at the vertical top of the suspected chestnut worm's eye; after the high-pressure gas needle 29 ejects airflow, the acoustic sensor 31 collects the airflow echo signal at the position of the suspected chestnut worm's eye, and sends it to the electronic control module 9 analysis.
步骤(5)中声学检测模块6与电控模块9配合检测的具体过程为:如图10所示,声学检测模块6在电控模块9的控制下,通过X-Y平面定位移动到待检测板栗的上方;通过C轴减速机28的运动,采集三个位置的声学信号数据,位置1为疑似板栗虫眼区域的垂直正上方,位置2为疑似板栗虫眼区域表面的垂线方向通过所述HX49和HY49数据计算获得,位置3为位置1关于疑似板栗虫眼区域表面的垂线的对称位置;电控模块9打开第一电磁阀51,高压气体通过高压气针29作用在疑似板栗虫眼区域,声学传感器31采集到2秒的数据后,通过输入/输出子模块将数据发送给电控模块9,成功后电控模块9关闭第一电磁阀51;同样,电控模块9对位置2和位置3进行声学信号数据的采集;全部三个位置的声学信号数据采集完成后,电控模块9的嵌入式ARM单片机按以下流程进行处理:In step (5), the specific process of cooperative detection between the acoustic detection module 6 and the electronic control module 9 is as follows: As shown in FIG. Above; through the movement of the C-axis reducer 28, the acoustic signal data of three positions are collected, the position 1 is the vertical right above the suspected chestnut worm's eye region, and the position 2 is the vertical direction of the surface of the suspected chestnut worm's eye region through the HX 49 and HY 49 data is calculated and obtained, position 3 is the symmetrical position of position 1 about the vertical line of the suspected chestnut worm's eye area; the electronic control module 9 opens the first solenoid valve 51, and the high-pressure gas acts on the suspected chestnut worm's eye area through the high-pressure gas needle 29. After the sensor 31 collects the data for 2 seconds, the data is sent to the electronic control module 9 through the input/output sub-module. After the success, the electronic control module 9 closes the first solenoid valve 51; Acoustic signal data collection is performed; after the acoustic signal data collection of all three positions is completed, the embedded ARM single-chip microcomputer of the electronic control module 9 is processed according to the following process:
A、分别对位置1、位置2和位置3采集到的声学信号数据按流程B~E进行处理;A. The acoustic signal data collected at position 1, position 2 and position 3 are processed according to the procedures B~E;
B、对各个位置采集到的4秒声学信号数据,进行预加重、分帧和加窗(12个短时分析窗)操作;B. Perform pre-emphasis, framing and windowing (12 short-term analysis windows) operations on the 4-second acoustic signal data collected at each location;
C、对每一个短时分析窗,通过FFT得到对应的频谱,所述频谱再通过Mel(梅尔)滤波器组得到Mel(梅尔)频谱;C. For each short-term analysis window, obtain the corresponding frequency spectrum through FFT, and then obtain the Mel (Mel) frequency spectrum through the Mel (Mel) filter bank;
D、在Mel(梅尔)频谱上面进行倒谱分析(取对数, DCT离散余弦变换处理后,取DCT离散余弦变换后的第2个到第13个系数作为MFCC系数),获得12个Mel频率倒谱系数MFCC;D. Perform cepstrum analysis on the Mel (Mel) spectrum (take logarithm, after DCT discrete cosine transform processing, take the 2nd to 13th coefficients after DCT discrete cosine transform as MFCC coefficients), obtain 12 Mel frequency cepstral coefficient MFCC;
E、将上述12个短时分析窗的12个Mel频率倒谱系数MFCC进行256级灰度化处理后,获取梅尔频率倒谱系数(MFCC)特征图,大小为12×12的256级灰度图像;进一步,所述12×12的256级灰度图像送入残差网络中进行辨识,辨识结果为二维向量[P0,P1],当P0大于P1时,声学检测模块标记当前位置为待检测板栗存在虫眼缺陷,反之,判断当前待检测板栗不存在虫眼缺陷;E. After the 12 Mel-frequency cepstral coefficients MFCC of the above 12 short-term analysis windows are subjected to 256-level grayscale processing, a Mel-frequency cepstral coefficient (MFCC) feature map is obtained, with a size of 12×12 256-level gray further, the 12×12 256-level grayscale image is sent to the residual network for identification, and the identification result is a two-dimensional vector [P 0 , P 1 ], when P 0 is greater than P 1 , the acoustic detection module Mark the current position as the chestnut to be tested has worm-eye defects, otherwise, judge that the chestnut to be tested does not have worm-eye defects;
F、汇总分析位置1、位置2和位置3的初步结果,如果其中位置1、位置2和位置3任何一个位置存在虫眼缺陷标记,则声学检测模块判断当前待检测板栗存在虫眼缺陷,反之,当前待检测板栗不存在虫眼缺陷;F. Summarize and analyze the preliminary results of position 1, position 2 and position 3. If there is a worm-eye defect mark in any of the positions of position 1, position 2 and position 3, the acoustic detection module judges that there is a worm-eye defect in the chestnut to be tested. There is no bug eye defect in the chestnut to be tested;
通过拍照视觉、激光和声学三者共同组合检测后最终辨识的结果通过显示子模块进行显示;有虫眼的板栗还通过灯光警示子模块报警显示,以提醒工作人员;显示子模块还能对检测的数据进行统计分析,按小时或者批次显示统计数据,便于人工查看;The final identification result after the combined detection of camera vision, laser and acoustics is displayed through the display sub-module; chestnuts with insect eyes are also displayed in an alarm through the light warning sub-module to remind the staff; the display sub-module can also detect the detected Statistical analysis of data, displaying statistical data by hour or batch, which is convenient for manual viewing;
(6)、当检测后的板栗向右输送到热气喷管38的喷口下方时,通过热气将金属热导体的水平输送带4的凹槽54内部的固体冰进行急速加热,使之转变为液体水,便于分选装置7进行分级;(6) When the detected chestnut is transported to the right under the spout of the hot air nozzle 38, the solid ice inside the groove 54 of the horizontal conveyor belt 4 of the metal heat conductor is rapidly heated by the hot air to turn it into liquid. water, which is convenient for classification by the sorting device 7;
(7)、当有虫眼的板栗向右输送到与分选装置7前后对应的位置时,分选气缸33带动分选杆34运动,推动分选杆头35将有虫眼缺陷的板栗推出滑道36的入口;分选气缸33与电控模块9连接,在电控模块9的控制下,推动分选杆34运动,从而实现有虫眼缺陷的板栗通过滑道36落入残次品框,合格的板栗,由水平输送带4往右侧方向运输。(7) When the chestnut with worm eyes is transported to the right to the position corresponding to the front and rear of the sorting device 7, the sorting cylinder 33 drives the sorting rod 34 to move, and pushes the sorting rod head 35 to push the chestnut with the worm eye defect out of the chute. The entrance of 36; the sorting cylinder 33 is connected to the electronic control module 9, and under the control of the electronic control module 9, the sorting rod 34 is pushed to move, so as to realize that the chestnut with bug eye defect falls into the defective product frame through the slideway 36, which is qualified The chestnuts are transported to the right by the horizontal conveyor belt 4.
如图11所示,所述残差网络包含2个残差块,A1卷积层、A2 Batch Norm层、A3激活层、B1卷积层、B2 Batch Norm层和B3激活层构成第一残差块,所述A1卷积层、A2 BatchNorm层、A3激活层、B1卷积层、B2 Batch Norm层和B3激活层首尾依次相连接,进一步,A1卷积层入口的数据可短路插入到B2 Batch Norm层和B3激活层之间;C1卷积层、C 2 BatchNorm层、C 3激活层、D1卷积层、D2 Batch Norm层和D3激活层构成第二残差块,所述C1卷积层、C2 Batch Norm层、C3激活层、D1卷积层、D2 Batch Norm层和D3激活层首尾依次相连接,进一步,C1卷积层入口的数据可短路插入到D2 Batch Norm层和D3激活层之间;第一残差块和第二残差块首尾依次相连接,所述MFCC灰度图像输入所述残差网络的2个残差块后,进入到E1全连接层,数据再流入到F1软回归层,最终输出辨识结果。As shown in Figure 11, the residual network includes two residual blocks, A1 convolution layer, A2 Batch Norm layer, A3 activation layer, B1 convolution layer, B2 Batch Norm layer and B3 activation layer constitute the first residual block, the A1 convolutional layer, A2 BatchNorm layer, A3 activation layer, B1 convolutional layer, B2 Batch Norm layer and B3 activation layer are connected end to end in turn, and further, the data at the entrance of the A1 convolutional layer can be short-circuited and inserted into the B2 Batch Between the Norm layer and the B3 activation layer; the C1 convolutional layer, the C2 BatchNorm layer, the C3 activation layer, the D1 convolutional layer, the D2 Batch Norm layer and the D3 activation layer constitute the second residual block, the C1 convolutional layer , C2 Batch Norm layer, C3 activation layer, D1 convolution layer, D2 Batch Norm layer and D3 activation layer are connected end to end. The first residual block and the second residual block are connected end to end, the MFCC grayscale image is input into the two residual blocks of the residual network, and then enters the E1 fully connected layer, and the data flows into the F1 The soft regression layer finally outputs the recognition result.
更进一步,所述残差网络(Res-Net)通过离线进行训练,总共采集3160个样本的数据进行训练,其中1510个为不存在虫眼缺陷的数据,1650个为存在虫眼缺陷的数据,训练后的模型存入电控模块9的嵌入式ARM单片机内部。Further, the residual network (Res-Net) is trained offline, and a total of 3160 samples of data are collected for training, of which 1510 are data without bug-eye defects, and 1650 are data with bug-eye defects. The model is stored in the embedded ARM microcontroller of the electronic control module 9.
如图12所示,由机器视觉检测结果,获取疑似虫眼的区域信息;由机器视觉检测疑似虫眼位置信息,通过激光检测,获取激光检测结果;由机器视觉检测疑似虫眼位置信息和激光检测板栗疑似虫眼附近曲面信息,通过声学检测,获取声学检测结果;由上述机器视觉结果(疑似虫眼位置和大小信息)、激光检测结果和声学检测结果,通过SVM模型进行辨识,输出最终的辨识结果(正常和虫眼),再由显示子模块和灯光警示子模块进行输出。As shown in Figure 12, the area information of suspected bug eyes is obtained from the detection results of machine vision; the position information of suspected bug eyes is detected by machine vision, and the laser detection results are obtained by laser detection; The surface information near the worm's eye is obtained through acoustic detection to obtain the acoustic detection result; the above-mentioned machine vision results (suspected worm's eye position and size information), laser detection results and acoustic detection results are identified through the SVM model, and the final identification results (normal and insect eyes), and then output by the display sub-module and the light warning sub-module.
所述SVM模型通过离线进行训练,与所述残差网络(Res-Net)共用相同的训练样本,也即是对总共采集3160个样本的数据进行训练(其中1510个为不存在虫眼缺陷的数据,1650个为存在虫眼缺陷的数据),训练后的SVM模型参数存入电控模块9的嵌入式ARM单片机内部。The SVM model is trained offline and shares the same training samples with the Residual Network (Res-Net), that is, training on data collected from a total of 3160 samples (1510 of which are data without bug-eye defects). , 1650 are data with bug eye defects), and the parameters of the SVM model after training are stored in the embedded ARM single-chip microcomputer of the electronic control module 9.
本实施例并非对本发明的形状、材料、结构等作任何形式上的限制,凡是依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均属于本发明技术方案的保护范围。This embodiment does not limit the shape, material, structure, etc. of the present invention in any form. Any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention belong to the protection of the technical solution of the present invention. scope.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910038085.5A CN109570051B (en) | 2019-01-16 | 2019-01-16 | Chinese chestnut wormhole detection device based on machine vision, laser and acoustics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910038085.5A CN109570051B (en) | 2019-01-16 | 2019-01-16 | Chinese chestnut wormhole detection device based on machine vision, laser and acoustics |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109570051A true CN109570051A (en) | 2019-04-05 |
CN109570051B CN109570051B (en) | 2020-09-11 |
Family
ID=65916581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910038085.5A Active CN109570051B (en) | 2019-01-16 | 2019-01-16 | Chinese chestnut wormhole detection device based on machine vision, laser and acoustics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109570051B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290257A (en) * | 2019-07-09 | 2019-09-27 | 北京邮电大学 | Mobile phone back cover visual inspection production line |
CN110679964A (en) * | 2019-11-18 | 2020-01-14 | 合肥市云逸自动化设备有限公司 | Positioning and measuring mechanism for nut opening shell breaking machine |
CN110838107A (en) * | 2019-10-31 | 2020-02-25 | 广东华中科技大学工业技术研究院 | Method and device for intelligent detection of 3C transparent component defects with variable-angle optical video |
CN111601087A (en) * | 2020-05-25 | 2020-08-28 | 广东智源机器人科技有限公司 | Visual inspection equipment and processing apparatus of tableware |
CN113984770A (en) * | 2021-12-30 | 2022-01-28 | 山东蒜都农产品物流园有限公司 | Garlic storage digital management alarm device |
CN114308698A (en) * | 2021-12-23 | 2022-04-12 | 芜湖万联新能源汽车零部件有限公司 | A rapid temperature measurement and sorting device for forging workpieces |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007301545A (en) * | 2006-05-10 | 2007-11-22 | Gana Engineering:Kk | Chestnut sorting apparatus |
CN101592631A (en) * | 2009-07-10 | 2009-12-02 | 浙江大学 | Automatic detection device for quality of brake pad |
CN101603927A (en) * | 2009-07-17 | 2009-12-16 | 南京农业大学 | A device and method for non-destructive detection of Fengshui pear defects |
DE19816881B4 (en) * | 1998-04-17 | 2012-01-05 | Gunther Krieg | Method and device for detecting and distinguishing between contaminations and acceptances as well as between different colors in solid particles |
CN202421173U (en) * | 2012-01-12 | 2012-09-05 | 河南科技大学 | Egg sorting and picture-taking device |
CN104668199A (en) * | 2014-12-02 | 2015-06-03 | 浙江大学 | Automatic fruit grading device based on machine vision and bio-speckle |
CN105251705A (en) * | 2015-11-23 | 2016-01-20 | 上海电机学院 | Red jujube screening device |
CN105675720A (en) * | 2016-04-13 | 2016-06-15 | 浙江大学 | Fruit firmness information online collecting system and method |
CN107336056A (en) * | 2017-08-30 | 2017-11-10 | 无锡鑫旭润科技有限公司 | A kind of fixture based on frozen section technology |
CN107350168A (en) * | 2017-08-28 | 2017-11-17 | 宁夏大学 | A kind of potato Fast nondestructive evaluation self-grading device and method |
CN109129255A (en) * | 2018-10-25 | 2019-01-04 | 天津职业技术师范大学 | Semiconductor Refrigerating suction cup |
-
2019
- 2019-01-16 CN CN201910038085.5A patent/CN109570051B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19816881B4 (en) * | 1998-04-17 | 2012-01-05 | Gunther Krieg | Method and device for detecting and distinguishing between contaminations and acceptances as well as between different colors in solid particles |
JP2007301545A (en) * | 2006-05-10 | 2007-11-22 | Gana Engineering:Kk | Chestnut sorting apparatus |
CN101592631A (en) * | 2009-07-10 | 2009-12-02 | 浙江大学 | Automatic detection device for quality of brake pad |
CN101603927A (en) * | 2009-07-17 | 2009-12-16 | 南京农业大学 | A device and method for non-destructive detection of Fengshui pear defects |
CN202421173U (en) * | 2012-01-12 | 2012-09-05 | 河南科技大学 | Egg sorting and picture-taking device |
CN104668199A (en) * | 2014-12-02 | 2015-06-03 | 浙江大学 | Automatic fruit grading device based on machine vision and bio-speckle |
CN105251705A (en) * | 2015-11-23 | 2016-01-20 | 上海电机学院 | Red jujube screening device |
CN105675720A (en) * | 2016-04-13 | 2016-06-15 | 浙江大学 | Fruit firmness information online collecting system and method |
CN107350168A (en) * | 2017-08-28 | 2017-11-17 | 宁夏大学 | A kind of potato Fast nondestructive evaluation self-grading device and method |
CN107336056A (en) * | 2017-08-30 | 2017-11-10 | 无锡鑫旭润科技有限公司 | A kind of fixture based on frozen section technology |
CN109129255A (en) * | 2018-10-25 | 2019-01-04 | 天津职业技术师范大学 | Semiconductor Refrigerating suction cup |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290257A (en) * | 2019-07-09 | 2019-09-27 | 北京邮电大学 | Mobile phone back cover visual inspection production line |
CN110838107A (en) * | 2019-10-31 | 2020-02-25 | 广东华中科技大学工业技术研究院 | Method and device for intelligent detection of 3C transparent component defects with variable-angle optical video |
CN110838107B (en) * | 2019-10-31 | 2023-02-17 | 广东华中科技大学工业技术研究院 | Method and device for intelligently detecting defects of 3C transparent component by variable-angle optical video |
CN110679964A (en) * | 2019-11-18 | 2020-01-14 | 合肥市云逸自动化设备有限公司 | Positioning and measuring mechanism for nut opening shell breaking machine |
CN111601087A (en) * | 2020-05-25 | 2020-08-28 | 广东智源机器人科技有限公司 | Visual inspection equipment and processing apparatus of tableware |
CN114308698A (en) * | 2021-12-23 | 2022-04-12 | 芜湖万联新能源汽车零部件有限公司 | A rapid temperature measurement and sorting device for forging workpieces |
CN114308698B (en) * | 2021-12-23 | 2023-08-11 | 芜湖万联新能源汽车零部件有限公司 | A rapid temperature measurement and sorting device for forging workpieces |
CN113984770A (en) * | 2021-12-30 | 2022-01-28 | 山东蒜都农产品物流园有限公司 | Garlic storage digital management alarm device |
Also Published As
Publication number | Publication date |
---|---|
CN109570051B (en) | 2020-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109570051B (en) | Chinese chestnut wormhole detection device based on machine vision, laser and acoustics | |
CN109663747B (en) | Intelligent detection method for Chinese chestnut wormholes | |
CN111165228B (en) | A mobile phenotype cabin for field crop phenotype acquisition and analysis | |
CN103323457B (en) | Fruit appearance defect real-time online detection system and detection method | |
WO2019109383A1 (en) | Water stress detection method for tomatoes in seedling stage based on micro-ct and polarization-hyperspectral imaging multi-feature fusion | |
CN1329132C (en) | On-line fruit quality detection and classification apparatus and method based on three camera chains | |
CN101701906B (en) | Method and device for detecting stored-grain insects based on near infrared super-spectral imaging technology | |
CN105300854B (en) | Droplet parameter measuring apparatus and the droplet parameter measurement analysis method for utilizing the device | |
CN102928431B (en) | Device for automatically grading pearls on line according to size and shape on basis of monocular multi-view machine vision | |
CN108981569A (en) | A kind of high-throughput hothouse plants phenotype measuring system based on the fusion of multispectral cloud | |
CN110694921B (en) | Vegetable sorting system and control method thereof | |
CN107957245A (en) | Engine link dimension measuring device and its measuring method based on machine vision | |
CN109738436A (en) | A kind of seed cotton impurity quantitative rapid detection system and method | |
CN115396576B (en) | Device and method for automatically measuring sheep body ruler from side view and overlook double-view images | |
CN109632822A (en) | A kind of quasi-static high-precision road surface breakage intelligent identification device and its method | |
CN102116610A (en) | Automatic on-line detection method and device for size of automobile parts based on machine vision | |
CN103439265A (en) | Real-time monitoring method for growth characters of tea trees in intensive cultivation | |
CN105170485A (en) | Kiwi fruit detecting and grading device | |
CN105548124A (en) | Method and device for detecting citrus canker | |
CN116686545A (en) | Litchi picking robot shade removing method based on machine vision control | |
CN109324051A (en) | A kind of plant moisture detection method and system | |
CN116359228A (en) | Single crystal silicon rod surface flaw detection device and detection system | |
CN118536854A (en) | Method and device for intelligently detecting and screening quality of pasture seeds | |
CN114514914A (en) | Intelligent sensing fertilization and pesticide spraying method and device | |
CN117380558A (en) | Spherical fruit online grading device and method based on machine vision |
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 | ||
CP03 | Change of name, title or address |
Address after: No.5 Dongfeng Road, Jinshui District, Zhengzhou City, Henan Province Patentee after: Zhengzhou University of light industry Country or region after: China Address before: No.5 Dongfeng Road, Jinshui District, Zhengzhou City, Henan Province Patentee before: ZHENGZHOU University OF LIGHT INDUSTRY Country or region before: China |
|
CP03 | Change of name, title or address | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20190405 Assignee: Henan Huazhimei Agricultural Technology Co.,Ltd. Assignor: Zhengzhou University of light industry Contract record no.: X2025980005498 Denomination of invention: Chestnut insect eye detection device based on machine vision, laser, and acoustics Granted publication date: 20200911 License type: Common License Record date: 20250317 |
|
EE01 | Entry into force of recordation of patent licensing contract |