CN115111970B - A firework molding detection device and detection method that integrates 2D and 3D visual perception - Google Patents
A firework molding detection device and detection method that integrates 2D and 3D visual perception Download PDFInfo
- Publication number
- CN115111970B CN115111970B CN202210781973.8A CN202210781973A CN115111970B CN 115111970 B CN115111970 B CN 115111970B CN 202210781973 A CN202210781973 A CN 202210781973A CN 115111970 B CN115111970 B CN 115111970B
- Authority
- CN
- China
- Prior art keywords
- bright bead
- image
- bright
- particles
- edge contour
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 58
- 230000016776 visual perception Effects 0.000 title claims abstract description 15
- 238000000465 moulding Methods 0.000 title claims description 5
- 239000011324 bead Substances 0.000 claims abstract description 162
- 238000000034 method Methods 0.000 claims abstract description 39
- 230000008569 process Effects 0.000 claims abstract description 27
- 238000004519 manufacturing process Methods 0.000 claims abstract description 26
- 239000002245 particle Substances 0.000 claims description 128
- 238000012549 training Methods 0.000 claims description 23
- 238000000605 extraction Methods 0.000 claims description 16
- 238000012360 testing method Methods 0.000 claims description 15
- 238000009826 distribution Methods 0.000 claims description 7
- 230000004927 fusion Effects 0.000 claims description 4
- 239000011159 matrix material Substances 0.000 claims description 4
- 238000003709 image segmentation Methods 0.000 claims description 3
- 238000007500 overflow downdraw method Methods 0.000 claims 1
- 230000009466 transformation Effects 0.000 claims 1
- 239000003814 drug Substances 0.000 abstract description 5
- 229940079593 drug Drugs 0.000 abstract description 5
- 239000000843 powder Substances 0.000 description 8
- 239000003721 gunpowder Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000000926 separation method Methods 0.000 description 4
- 230000015572 biosynthetic process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 239000000853 adhesive Substances 0.000 description 2
- 230000001070 adhesive effect Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000000691 measurement method Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000005507 spraying Methods 0.000 description 2
- LFQSCWFLJHTTHZ-UHFFFAOYSA-N Ethanol Chemical compound CCO LFQSCWFLJHTTHZ-UHFFFAOYSA-N 0.000 description 1
- 241000282412 Homo Species 0.000 description 1
- 239000000654 additive Substances 0.000 description 1
- 230000000996 additive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 238000001125 extrusion Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005498 polishing Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000007921 spray Substances 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F42—AMMUNITION; BLASTING
- F42B—EXPLOSIVE CHARGES, e.g. FOR BLASTING, FIREWORKS, AMMUNITION
- F42B4/00—Fireworks, i.e. pyrotechnic devices for amusement, display, illumination or signal purposes
- F42B4/30—Manufacture
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F42—AMMUNITION; BLASTING
- F42B—EXPLOSIVE CHARGES, e.g. FOR BLASTING, FIREWORKS, AMMUNITION
- F42B35/00—Testing or checking of ammunition
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/24—Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N15/00—Investigating characteristics of particles; Investigating permeability, pore-volume or surface-area of porous materials
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Dispersion Chemistry (AREA)
- Manufacturing & Machinery (AREA)
- Image Analysis (AREA)
Abstract
本发明公开了一种融合2D与3D视觉感知的烟花成型检测装置,RGBD相机固定安装于光源相机调整座上,RGBD相机位于面光源的开孔处;光源相机调整座安装于检测装置支架上;工业控制电脑分别与RGBD相机、造粒机通过导线相连。本发明还公开了上述烟花成型检测装置的检测方法。实现对烟花亮珠成型过程的智能化检测,达到人药分离的目的,消除烟花亮珠生产过程中的安全隐患,提高成品烟花亮珠产品质量。
The invention discloses a firework forming detection device that integrates 2D and 3D visual perception. An RGBD camera is fixedly installed on the light source camera adjustment seat. The RGBD camera is located at the opening of the surface light source; the light source camera adjustment seat is installed on the detection device bracket; The industrial control computer is connected to the RGBD camera and the granulator through wires. The invention also discloses a detection method of the above-mentioned fireworks forming detection device. Realize intelligent detection of the forming process of fireworks beads to achieve the purpose of separating human and drug, eliminate safety hazards in the production process of fireworks beads, and improve the quality of finished fireworks beads products.
Description
技术领域Technical field
本发明属于自动检测技术领域,涉及一种融合2D与3D视觉感知的烟花成型检测装置及其检测方法。The invention belongs to the field of automatic detection technology, and relates to a firework forming detection device and a detection method that integrates 2D and 3D visual perception.
背景技术Background technique
目前,我国是全球最大的烟花生产、出口和消费国,烟花产量占到全球产量的90%,约占世界贸易量的80%。然而,烟花生产属于典型的劳动密集型和高危制造行业,在生产过程中,烟火药容易受到意外能量激发,产生爆炸事故,给人民生命财产造成重大损失。近些年来,在政府和企业的努力下,大力推进烟花生产行业机械化,实现人药分离,有效降低了恶性人员伤亡安全事故的发生。但是烟花生产过程中仍存在着在线质量检测及控制缺失、产品一致性差、自动化程度低等诸多问题,对安全、高效、可靠的在线检测与控制技术有着迫切的需求。At present, my country is the world's largest producer, exporter and consumer of fireworks. Fireworks production accounts for 90% of global production and approximately 80% of world trade volume. However, fireworks production is a typical labor-intensive and high-risk manufacturing industry. During the production process, pyrotechnic powder is easily excited by unexpected energy, causing explosion accidents and causing heavy losses to people's lives and property. In recent years, with the efforts of the government and enterprises, the mechanization of the fireworks production industry has been vigorously promoted to achieve the separation of humans and drugs, effectively reducing the occurrence of vicious safety accidents involving casualties. However, there are still many problems in the fireworks production process, such as lack of online quality detection and control, poor product consistency, and low automation. There is an urgent need for safe, efficient, and reliable online detection and control technology.
烟花亮珠成型是烟花生产工序中涉药量较大、危险系数较高、安全事故频繁发生的环节。目前烟花亮珠成型的具体过程是将料仓中的按照特定配比混合的火药粉料通过出料口送入一个倾斜放置(倾斜角度为40~60度)、绕中心轴高速旋转的造粒机中(直径1~1.5米,转速为15~30转/分),松散的火药粉在倾斜且旋转的造粒机中受到重力、离心力和摩擦力共同作用一起转动,当达到一定高度时粉料因重力作用下滑,在此过程中,喷浆装置间断式将雾状的黏合剂(主要是酒精)喷入到火药粉表面。火药粉在黏合剂的作用下相互粘合滚动,逐渐长大成球状亮珠。当亮珠粒径达到一定要求时,停止送粉和喷浆,但是将亮珠在造粒机内继续滚动一定时间,进行抛光,以提高其机械强度与似圆度。最后,粒径合格亮珠由传送带送入烘干工序。The molding of fireworks beads is a link in the fireworks production process that involves a large amount of chemicals, a high risk factor, and frequent safety accidents. At present, the specific process of forming fireworks beads is to send the gunpowder powder mixed according to a specific ratio in the silo through the discharge port into a granulator that is tilted (the tilt angle is 40 to 60 degrees) and rotates at high speed around the central axis. In the machine (diameter 1~1.5 meters, rotation speed 15~30 rpm), loose gunpowder powder rotates together under the combined action of gravity, centrifugal force and friction in the inclined and rotating granulator. When it reaches a certain height, the powder The material slides down due to gravity. During this process, the spraying device intermittently sprays mist-like adhesive (mainly alcohol) onto the surface of the gunpowder powder. The gunpowder powder sticks to each other and rolls under the action of the adhesive, and gradually grows into a spherical bright bead. When the particle size of the bright beads reaches a certain requirement, the powder feeding and spraying are stopped, but the bright beads continue to roll in the granulator for a certain period of time and are polished to improve their mechanical strength and roundness. Finally, the bright beads with qualified particle size are sent to the drying process by the conveyor belt.
目前烟花亮珠成型过程的工况识别与控制主要依靠现场操作工人的观察,凭经验对亮珠状态(亮珠粒径、亮珠生长速率、表面光滑度等)进行判定并手动调整亮珠过程参数(喷浆量、送粉速度、抛光时间等),使生产出的烟花亮珠质量符合要求。但是这种以人工对烟花亮珠成型过程进行操作控制的生产方式劳动强度大、主观性强、误差大、效率低,难以实现对工况进行客观评价与统一认知,导致亮珠过程生产工况波动大,亮珠质量和产量无法满足生产要求,并且工人直接接触火药生产,容易操作不当引起重大生产安全事故。综上所述,亟需一种烟花亮珠成型自动检测方法与装置来解决这些问题。At present, the working condition identification and control of the fireworks bead forming process mainly rely on the observation of on-site operators, who judge the state of the beads (bead particle size, bead growth rate, surface smoothness, etc.) based on experience and manually adjust the bead process. Parameters (shotting volume, powder feeding speed, polishing time, etc.) ensure that the quality of the fireworks beads produced meets the requirements. However, this production method, which relies on manual operation and control of the fireworks bead forming process, is highly labor-intensive, subjective, error-prone, and low-efficiency. It is difficult to achieve objective evaluation and unified understanding of the working conditions, resulting in the production process of the beads being difficult to achieve. The situation fluctuates greatly, the quality and output of bright beads cannot meet production requirements, and workers are directly exposed to gunpowder production, which can easily lead to major production safety accidents due to improper operation. To sum up, there is an urgent need for an automatic detection method and device for the formation of fireworks beads to solve these problems.
发明内容Contents of the invention
为实现上述目的,本发明提供一种融合2D与3D视觉感知的烟花成型检测装置及其检测方法,实现对烟花亮珠成型过程的智能化检测,达到人药分离的目的,消除烟花亮珠生产过程中的安全隐患,提高成品烟花亮珠产品质量。In order to achieve the above objectives, the present invention provides a firework forming detection device and a detection method that integrates 2D and 3D visual perception to realize intelligent detection of the fireworks bead forming process, achieve the purpose of human and drug separation, and eliminate the production of fireworks beading potential safety hazards in the process and improve the quality of finished fireworks beads.
本发明实施例所采用的技术方案是,一种融合2D与3D视觉感知的烟花成型检测装置,包括:RGBD相机、面光源、光源相机调整座、检测装置支架以及工业控制电脑;所述RGBD相机固定安装于光源相机调整座上,RGBD相机位于面光源的开孔处;光源相机调整座安装于检测装置支架上;工业控制电脑分别与RGBD相机、造粒机通过导线相连。The technical solution adopted in the embodiment of the present invention is a firework forming detection device that integrates 2D and 3D visual perception, including: an RGBD camera, a surface light source, a light source camera adjustment seat, a detection device bracket and an industrial control computer; the RGBD camera It is fixedly installed on the light source camera adjustment seat, and the RGBD camera is located at the opening of the surface light source; the light source camera adjustment seat is installed on the detection device bracket; the industrial control computer is connected to the RGBD camera and the granulator through wires.
本发明实施例所采用的另一技术方案是,一种利用融合2D与3D视觉感知的烟花成型检测装置的检测方法,包括以下步骤:Another technical solution adopted in the embodiment of the present invention is a detection method using a fireworks forming detection device that integrates 2D and 3D visual perception, including the following steps:
步骤S1、烟花亮珠成型过程2D与3D图像采集:使用RGBD相机(101)采集烟花亮珠成型过程中造粒机(106)内亮珠颗粒图像并将其发送至工业控制电脑(105);Step S1, 2D and 3D image collection of the fireworks bead forming process: Use the RGBD camera (101) to collect images of the bright bead particles in the granulator (106) during the fireworks bead forming process and send them to the industrial control computer (105);
步骤S2、亮珠颗粒图像边缘轮廓训练样本与测试样本制作:利用采集的2D烟花亮珠颗粒图像制作训练样本与测试样本;Step S2. Production of training samples and test samples for edge contours of bright bead particle images: use the collected 2D fireworks bright bead particle images to create training samples and test samples;
步骤S3、亮珠颗粒图像边缘轮廓提取网络训练与测试:利用制作好的亮珠颗粒图像训练样本对Transformer-UNet网络模型进行训练,在网络模型训练完成后,将测试样本中的2D亮珠颗粒图像输入网络模型中提取其边缘轮廓;Step S3. Bright bead particle image edge contour extraction network training and testing: Use the prepared bright bead particle image training samples to train the Transformer-UNet network model. After the network model training is completed, the 2D bright bead particles in the test sample are The image is input into the network model to extract its edge contour;
步骤S4、亮珠颗粒遮挡识别判定:在提取亮珠颗粒图像边缘轮廓的基础上,利用采集的3D图像信息,对亮珠颗粒之间存在的遮挡进行识别判断,去除被遮挡亮珠颗粒对检测结果的干扰;Step S4. Identification and determination of occlusion of bright bead particles: On the basis of extracting the edge contour of the image of bright bead particles, use the collected 3D image information to identify and judge the occlusion between bright bead particles, and remove the blocked bright bead particles for detection. interference with results;
步骤S5、亮珠颗粒图像分割与特征提取:在对亮珠颗粒图像进行边缘轮廓提取与遮挡识别判定后,利用提取的边缘轮廓信息对单个亮珠颗粒图像分割,并从2D图像中对其形状特征与灰度特征信息分别进行提取;Step S5. Bright bead particle image segmentation and feature extraction: After edge contour extraction and occlusion recognition are performed on the bright bead particle image, the extracted edge contour information is used to segment a single bright bead particle image, and its shape is obtained from the 2D image. Feature and grayscale feature information are extracted separately;
步骤S6、根据亮珠颗粒图像特征信息的统计,对亮珠成型过程工况进行判定并及时调整参数。Step S6: Based on the statistics of bright bead particle image characteristic information, determine the working conditions of the bright bead forming process and adjust parameters in a timely manner.
本发明的有益效果是:通过2D 和3D 的结合将3D 技术引用到烟花亮珠成形,实现对烟花亮珠成型过程的快捷与智能化检测,替代现有人工检测的方式,能够实现对亮珠成型过程中工况的变化情况进行快速反馈,提高成品烟花亮珠产品质量。该检测方法与装置能够在烟花生产过程的亮珠成型工艺过程中实现人药分离,消除烟花亮珠生产过程中的安全隐患,遏制重大生产事故的发生。The beneficial effects of the present invention are: through the combination of 2D and 3D, 3D technology is introduced into the formation of fireworks beads, thereby realizing fast and intelligent detection of the fireworks beads forming process, replacing the existing manual detection method, and enabling the detection of fireworks beads. Provide quick feedback on changes in working conditions during the molding process to improve the quality of finished fireworks beads. The detection method and device can realize the separation of human and drug during the bright bead forming process in the fireworks production process, eliminate safety hazards in the production process of fireworks bright beads, and curb the occurrence of major production accidents.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1是本发明实施例的检测装置示意图。Figure 1 is a schematic diagram of a detection device according to an embodiment of the present invention.
图2是本发明实施例的Transformer-UNet网络结构示意图。Figure 2 is a schematic structural diagram of the Transformer-UNet network according to the embodiment of the present invention.
图3是本发明实施例的正视原理示意图。Figure 3 is a schematic front view of the embodiment of the present invention.
图4是本发明实施例的检测方法流程图。Figure 4 is a flow chart of the detection method according to the embodiment of the present invention.
图5是本发明实施的融合2D与3D信息进行亮珠颗粒遮挡识别判断结果图(遮挡亮珠颗粒为轮廓区域)。Figure 5 is a diagram showing the results of merging 2D and 3D information to identify and determine the occlusion of bright bead particles implemented in the present invention (the occlusion of the bright bead particles is the outline area).
图6是本发明实施的检测方法与人工测量方法对亮珠颗粒粒径分布进行检测的对比结果图。Figure 6 is a diagram showing the comparative results of detecting the particle size distribution of bright beads using the detection method implemented in the present invention and the manual measurement method.
图7是仅采用2D图像检测方法与人工测量方法对亮珠颗粒粒径分布进行检测的对比结果。Figure 7 is the comparison result of detecting the particle size distribution of bright beads using only 2D image detection method and manual measurement method.
图1中,101.RGBD相机,102.光源相机调整座,103.面光源,104.检测装置支架,105.工业控制电脑,106.造粒机。In Figure 1, 101. RGBD camera, 102. Light source camera adjustment seat, 103. Surface light source, 104. Detection device bracket, 105. Industrial control computer, 106. Granulator.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
如图1所示,本发明提供了一种融合2D与3D视觉感知的烟花成型检测装置,包括:RGBD相机101、面光源103、光源相机调整座102、检测装置支架104以及工业控制电脑105。其中RGBD相机101对造粒机106内亮珠颗粒进行图像采集并将采集的图像信息发送给工业控制电脑105,采集的图像包括亮珠颗粒的2D与3D信息图像;面光源103用于提高采集亮珠颗粒图像的灰度强度,克服外部环境光线的干扰,保证采集亮珠颗粒图像的稳定性,此外通过在面光源103中央进行开孔,将RGBD相机101安装在孔内,避免RGBD相机101被遮挡以至于在图像中产生阴影;光源相机调整座102用于对面光源103与RGBD相机101的位置高度以及倾斜角度进行调整,以便与不同高度烟花造粒机106匹配以及使得RGBD相机拍摄方向与造粒机106水平面垂直;检测装置支架104主要用于固定光源相机调整座102;工业控制电脑105主要对采集的亮珠颗粒图像信息进行处理并根据处理结果形成决策信息,发送到造粒机106的控制系统对亮珠成型过程工况进行及时调整。As shown in Figure 1, the present invention provides a fireworks forming detection device that integrates 2D and 3D visual perception, including: RGBD camera 101, surface light source 103, light source camera adjustment seat 102, detection device bracket 104 and industrial control computer 105. Among them, the RGBD camera 101 collects images of the bright bead particles in the granulator 106 and sends the collected image information to the industrial control computer 105. The collected images include 2D and 3D information images of the bright bead particles; the surface light source 103 is used to improve the collection The grayscale intensity of the bright bead particle image overcomes the interference of external ambient light and ensures the stability of collecting the bright bead particle image. In addition, a hole is made in the center of the surface light source 103 and the RGBD camera 101 is installed in the hole to avoid the RGBD camera 101 is blocked so as to produce shadows in the image; the light source camera adjustment seat 102 is used to adjust the position, height and tilt angle of the light source 103 and the RGBD camera 101 to match the fireworks granulator 106 of different heights and to make the RGBD camera shooting direction consistent with The horizontal plane of the granulator 106 is vertical; the detection device bracket 104 is mainly used to fix the light source camera adjustment seat 102; the industrial control computer 105 mainly processes the collected bright bead particle image information and forms decision-making information based on the processing results, which is sent to the granulator 106 The control system makes timely adjustments to the working conditions of the bright bead forming process.
本发明还提供了一种利用融合2D与3D视觉感知的烟花成型检测装置的检测方法,包括以下步骤:The invention also provides a detection method using a fireworks forming detection device that integrates 2D and 3D visual perception, including the following steps:
S1、烟花亮珠成型过程2D与3D图像采集:采集烟花亮珠成型过程中造粒机106内亮珠颗粒图像;S1. 2D and 3D image collection of fireworks bright bead forming process: collect images of bright bead particles in the granulator 106 during the fireworks bright bead forming process;
S2、亮珠颗粒图像边缘轮廓训练样本与测试样本制作:利用采集的2D烟花亮珠颗粒图像制作训练样本与测试样本;S2. Production of training samples and test samples for edge contours of bright bead particle images: use the collected 2D fireworks bright bead particle images to create training samples and test samples;
S3、亮珠颗粒图像边缘轮廓提取网络训练与测试:利用制作好的亮珠颗粒图像训练样本对Transformer-UNet网络模型进行训练,在网络模型训练完成后,将测试样本中的2D亮珠颗粒图像输入网络模型中即可获得其边缘轮廓;S3. Bright bead particle image edge contour extraction network training and testing: Use the prepared bright bead particle image training samples to train the Transformer-UNet network model. After the network model training is completed, the 2D bright bead particle image in the test sample is By inputting it into the network model, its edge contour can be obtained;
S4、亮珠颗粒遮挡识别判定:在提取亮珠颗粒图像边缘轮廓的基础上,利用采集的3D图像信息,对亮珠颗粒之间存在的遮挡进行识别判断,去除被遮挡亮珠颗粒对检测结果的干扰;S4. Identification and determination of bright bead particle occlusion: On the basis of extracting the edge contour of the bright bead particle image, use the collected 3D image information to identify and judge the occlusion between bright bead particles, and remove the blocked bright bead particles to improve the detection results. interference;
S5、亮珠颗粒图像分割与特征提取:在对亮珠颗粒图像进行边缘轮廓提取与遮挡识别判定后,可以利用提取的边缘轮廓信息对单个亮珠颗粒图像分割,并从2D图像中对其形状特征与灰度特征信息分别进行提取;S5. Bright bead particle image segmentation and feature extraction: After edge contour extraction and occlusion recognition are performed on the bright bead particle image, the extracted edge contour information can be used to segment a single bright bead particle image, and its shape can be obtained from the 2D image. Feature and grayscale feature information are extracted separately;
S6、根据亮珠颗粒图像特征信息的统计,对亮珠成型过程工况进行判定并及时调整参数。S6. Based on the statistics of bright bead particle image characteristic information, determine the working conditions of the bright bead forming process and adjust parameters in a timely manner.
在一些实施方式中,步骤S1中,使用RGBD相机101以同时采集亮珠颗粒的RGB图像(2D)与深度图像(3D),为后续2D与3D视觉感知信息融合进行亮珠颗粒特征的提取奠定基础。In some embodiments, in step S1, the RGBD camera 101 is used to simultaneously collect RGB images (2D) and depth images (3D) of bright bead particles, laying the foundation for the subsequent fusion of 2D and 3D visual perception information to extract the characteristics of bright bead particles. Base.
在一些实施方式中,步骤S2中,训练样本为2D亮珠颗粒边缘轮廓图像,其制作过程中对亮珠颗粒边缘轮廓像素点用灰度值255进行标记,其余像素点用灰度值0进行标记。In some embodiments, in step S2, the training sample is a 2D bright bead particle edge contour image. During the production process, the bright bead particle edge contour pixels are marked with a grayscale value of 255, and the remaining pixels are marked with a grayscale value of 0. mark.
进一步,所述步骤S3中,由于烟花亮珠成型过程中,亮珠颗粒由于遮挡挤压等现象,导致颗粒之间的边缘模糊、晦暗、甚至缺失,传统基于边缘检测或者阈值分割的图像处理算法难以实现对这类粒弱边缘的准确提取,容易造成过分割与欠分割现象产生。本发明提供了一种基于深度学习网络的边缘轮廓点提取方法:Transformer-UNet,该网络如图2所示,主要由两部分组成,其中右边虚线框为UNet网络结构,该网络为整个Transformer-UNet网络的骨架结构;左边虚线框为特征提取Transformer,该部分共有3层由6个Transformer层构成,其中每层由两个Transformer层顺次连接组成。Furthermore, in the step S3, due to phenomena such as occlusion and extrusion of the bright bead particles during the formation of fireworks beads, the edges between the particles are blurred, dark, or even missing. Traditional image processing algorithms based on edge detection or threshold segmentation It is difficult to accurately extract the weak edges of such grains, and it is easy to cause over-segmentation and under-segmentation. The present invention provides an edge contour point extraction method based on a deep learning network: Transformer-UNet. The network is shown in Figure 2 and mainly consists of two parts. The dotted box on the right is the UNet network structure, and the network is the entire Transformer-UNet. The skeleton structure of the UNet network; the dotted box on the left is the feature extraction Transformer. This part has a total of 3 layers consisting of 6 Transformer layers, where each layer is composed of two Transformer layers connected in sequence.
Transformer-UNet网络优势在于骨架结构UNet网络中采用全卷积网络替代全连接层,网络能够满足小样本训练的要求,且训练过程和测试过程耗时较少。但是由于Unet无法对图像中距离较远的特征的上下文关系进行建模,实现对图像中的全局特征信息进行提取。因此,本发明利用Transformer强大的自注意力机制对图像中的全局特征进行提取,即分别利用UNet网络的卷积层(Convolutional layer)和Transformer层作为Encoder分别对图像的局部特征信息和全局特征信息进行提取,并将提取到的局部特征信息和全局特征信息以相加方式进行图像特征的融合(Fusion),并输入到UNet骨架网络的 Decoder层,对图像特征信息进行恢复,最后得到亮珠颗粒边缘轮廓点的输出图像。The advantage of the Transformer-UNet network is that the skeleton structure UNet network uses a fully convolutional network instead of a fully connected layer. The network can meet the requirements of small sample training, and the training and testing processes are less time-consuming. However, because Unet cannot model the contextual relationship of distant features in the image, it can extract the global feature information in the image. Therefore, the present invention uses the powerful self-attention mechanism of Transformer to extract global features in the image, that is, the convolutional layer (Convolutional layer) and Transformer layer of the UNet network are used as Encoder to extract the local feature information and global feature information of the image respectively. Extract, and fuse the extracted local feature information and global feature information in an additive manner (Fusion) of the image features, and input them into the Decoder layer of the UNet skeleton network to restore the image feature information, and finally obtain the bright bead particles. Output image of edge contour points.
进一步地,步骤S4中,在S3实现对亮珠颗粒边缘轮廓提取的基础上,针对颗粒之间 存在遮挡造成后续特征提取出现误差的现象,提出利用深度图像(3D)对颗粒遮挡进行识别 判断。具体如图3所示,在目标亮珠颗粒边缘轮廓上提取固定数量的边缘点,以边缘点 为例,以其为切点,并沿该边缘方向指向目标亮珠颗粒的法向量方向作半径为5像素点 的圆,其中为目标亮珠颗粒与的交叉区域。同样以边缘点为切点, 并沿该边缘方向指向相邻亮珠颗粒的法向量方向作半径为5像素点的圆,其中为相邻亮珠颗粒与的交叉区域。利用采集的深度图像(3D)信息,将深度 信息转换为亮珠颗粒的高度信息,分别对交叉区域与中像素点计算其平均高度值和,其中为中像素点的平均高度值,为中像素点的平均高度值;如果则说明目标亮珠颗粒没有被该相邻颗粒遮挡,通过搜索并计算所有目标亮珠颗粒 边缘轮廓点,均满足则判断该目标亮珠颗粒没有被遮挡,反之如果则说 明目标亮珠颗粒被该相邻颗粒遮挡。 Furthermore, in step S4, based on the extraction of the edge contours of bright bead particles in S3, in view of the phenomenon that occlusion between particles causes errors in subsequent feature extraction, it is proposed to use depth images (3D) to identify and judge particle occlusion. As shown in Figure 3, in the target bright bead particles Extract a fixed number of edge points on the edge contour to edge points For example, take it as the tangent point and point to the target bright bead particle along the edge direction. The direction of the normal vector is a circle with a radius of 5 pixels. ,in Target bright bead particles and intersection area. Also with edge points is the tangent point, and points to the adjacent bright bead particles along the edge direction. The direction of the normal vector is a circle with a radius of 5 pixels. ,in for adjacent bright bead particles and intersection area. Using the collected depth image (3D) information, the depth information is converted into the height information of the bright bead particles, and the intersection areas are analyzed respectively. and Calculate the average height value of the middle pixel and ,in for The average height value of the middle pixels, for The average height value of pixels in the middle; if It means that the target bright bead particle is not blocked by the adjacent particle. By searching and calculating the edge contour points of all target bright bead particles, all of them satisfy Then it is judged that the target bright bead particles are not blocked, otherwise if This means that the target bright bead particle is blocked by the adjacent particle.
进一步,步骤S5中,在S4实现对亮珠颗粒图像进行边缘轮廓提取与遮挡识别判定的基础上,去除被遮挡亮珠颗粒,消除其对后续统计带来误差,对未遮挡的亮珠颗粒提取其边缘轮廓点,首先基于亮珠颗粒呈圆形状的先验知识,对边缘轮廓点进行最小二乘圆拟合,计算其半径,然后计算边缘轮廓点围成连通区域的灰度共生矩阵,最后统计所有未遮挡亮珠颗粒的半径分布值(形状特征)以及灰度共生矩阵平均值(灰度特征),完成图像特征信息的统计提取。Further, in step S5, based on the edge contour extraction and occlusion recognition of the bright bead particle image in S4, the blocked bright bead particles are removed to eliminate the errors they bring to subsequent statistics, and the unoccluded bright bead particles are extracted. For its edge contour points, firstly, based on the prior knowledge that the bright bead particles are circular, perform least square circle fitting on the edge contour points, calculate their radius, and then calculate the gray level co-occurrence matrix of the connected area surrounded by the edge contour points, and finally The radius distribution values (shape features) and gray-level co-occurrence matrix averages (gray-level features) of all unobstructed bright bead particles are counted to complete the statistical extraction of image feature information.
进一步,步骤S6中,在S5中统计的亮珠颗粒图像特征信息基础上,将亮珠颗粒图像特征信息发送到造粒机106的控制决策系统,对亮珠成型过程工况进行判定并及时调整参数,使亮珠颗粒符合质量要求。Further, in step S6, based on the bright bead particle image characteristic information collected in S5, the bright bead particle image characteristic information is sent to the control decision-making system of the granulator 106 to determine the bright bead forming process working conditions and make timely adjustments. Parameters to make the bright beads particles meet the quality requirements.
实施例1Example 1
如图4所示,按照以下步骤进行:As shown in Figure 4, follow these steps:
S1、检测前准备工作包括:1、RGBD相机101参数调整,物理与像素坐标标定;2、面光源103高度与角度调整,使得面光源与亮珠颗粒表层保持平行,亮珠颗粒之间不会产生阴影;3、面光源103亮度调整,提高采集亮珠颗粒图像的灰度强度,克服外部环境光线的干扰,保证采集亮珠颗粒图像的稳定性;4、采集亮珠颗粒2D图像,制作边缘轮廓训练样本图像,利用训练样本对Transformer-UNet网络模型进行训练,完成边缘轮廓提取网络的训练。S1. Preparation work before detection includes: 1. RGBD camera 101 parameter adjustment, physical and pixel coordinate calibration; 2. Adjustment of the height and angle of the surface light source 103 so that the surface light source and the surface of the bright bead particles remain parallel, and there is no gap between the bright bead particles. Generate shadows; 3. Adjust the brightness of the surface light source 103 to increase the grayscale intensity of the bright bead particle image, overcome the interference of external ambient light, and ensure the stability of the bright bead particle image collection; 4. Collect the 2D image of the bright bead particle and create edges Contour training sample images, use the training samples to train the Transformer-UNet network model, and complete the training of the edge contour extraction network.
S2、对检测装置进行上电启动。S2. Power on the detection device.
S3、RGBD相机101采集亮珠颗粒2D与3D图像信息。S3, RGBD camera 101 collects 2D and 3D image information of bright bead particles.
S4、利用训练好的Transformer-UNet网络提取2D亮珠颗粒图像边缘轮廓信息。S4. Use the trained Transformer-UNet network to extract edge contour information of the 2D bright bead particle image.
S5、利用采集的3D亮珠颗粒图像信息结合2D边缘轮廓点信息对遮挡亮珠颗粒进行识别。S5. Use the collected 3D bright bead particle image information combined with the 2D edge contour point information to identify the occluded bright bead particles.
S6、去除遮挡亮珠颗粒后,对未遮挡亮珠颗粒边缘轮廓利用最小二乘圆拟合方法计算其半径,并计算其围成连通区域的灰度共生矩阵。S6. After removing the occluded bright bead particles, use the least squares circle fitting method to calculate the radius of the edge contour of the unobstructed bright bead particles, and calculate the gray level co-occurrence matrix surrounding the connected area.
S7、统计亮珠颗粒图像信息并将其发送到造粒机控制决策系统,对工况参数进行调整;S7. Statistics of bright bead particle image information and sends it to the granulator control decision-making system to adjust working condition parameters;
S8、结束检测,准备进入下一批次检测。S8. End the testing and prepare to enter the next batch of testing.
如图5所示为利用本发明中提供的融合2D与3D图像信息的方法对遮挡亮珠颗粒进行后的结果,其中轮廓区域判别为存在遮挡的亮珠颗粒。图6与图7为本发明实施的检测方法与人工检测方法以及仅采用2D图像检测方法对亮珠颗粒粒径分布进行检测的对比结果。可以看出,采用本发明中的检测方法对存在遮挡的亮珠颗粒进行识别判定后,得到的粒径分布百分比结果与粒径分布累积百分比结果,比仅采用2D图像检测方法得到的测量结果更接近人工检测方法结果。Figure 5 shows the result of using the method of fusing 2D and 3D image information provided in the present invention to detect occluded bright bead particles, in which the outline area is determined to be occluded bright bead particles. Figures 6 and 7 show the comparison results of the detection method implemented in the present invention, the manual detection method, and the comparison results of the detection of bright bead particle size distribution using only the 2D image detection method. It can be seen that after using the detection method in the present invention to identify and determine the blocked bright bead particles, the obtained particle size distribution percentage results and particle size distribution cumulative percentage results are better than the measurement results obtained by only using the 2D image detection method. The results are close to the manual detection method.
上述实施方式具有非接触式检测、检测精度高、检测速度快等特点,能够替代现有人工检测的方法,快速对烟花亮珠成型过程进行进行检测,并及时对工况变化情况进行反馈,以便造粒机控制系统对亮珠成型过程参数进行调整控制,提高成品烟花亮珠产品质量,并能够在烟花亮珠生产工艺过程中实现人药分离,消除烟花亮珠生产过程中的安全隐患,避免重大安全事故的发生。The above-mentioned embodiment has the characteristics of non-contact detection, high detection accuracy, and fast detection speed. It can replace the existing manual detection method, quickly detect the fireworks bead forming process, and provide timely feedback on changes in working conditions, so as to The granulator control system adjusts and controls the parameters of the bright bead forming process to improve the quality of the finished fireworks bead products, and can realize the separation of human and drug during the fireworks bead production process, eliminate safety hazards in the fireworks bead production process, and avoid The occurrence of major safety accidents.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210781973.8A CN115111970B (en) | 2022-07-05 | 2022-07-05 | A firework molding detection device and detection method that integrates 2D and 3D visual perception |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210781973.8A CN115111970B (en) | 2022-07-05 | 2022-07-05 | A firework molding detection device and detection method that integrates 2D and 3D visual perception |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115111970A CN115111970A (en) | 2022-09-27 |
CN115111970B true CN115111970B (en) | 2023-11-10 |
Family
ID=83330590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210781973.8A Active CN115111970B (en) | 2022-07-05 | 2022-07-05 | A firework molding detection device and detection method that integrates 2D and 3D visual perception |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115111970B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117058218B (en) * | 2023-07-13 | 2024-06-07 | 湖南工商大学 | Image-depth-based online measurement method for filling rate of disc-type pelletizing granule powder |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2225017A1 (en) * | 1997-01-09 | 1998-07-09 | The Boeing Company | Method and apparatus for rapidly rendering computer generated images of complex structures |
KR100974413B1 (en) * | 2009-03-18 | 2010-08-05 | 부산대학교 산학협력단 | A method for estimation 3d bounding solid based on monocular vision |
EP2680228A1 (en) * | 2012-06-25 | 2014-01-01 | Softkinetic Software | Improvements in or relating to three dimensional close interactions. |
CN108920643A (en) * | 2018-06-26 | 2018-11-30 | 大连理工大学 | Weight the fine granularity image retrieval algorithm of multiple features fusion |
CN109934297A (en) * | 2019-03-19 | 2019-06-25 | 广东省农业科学院农业生物基因研究中心 | A kind of rice species test method based on deep learning convolutional neural networks |
JP2019174931A (en) * | 2018-03-27 | 2019-10-10 | 日本製鉄株式会社 | Contour extraction device and contour extraction method |
CN210163356U (en) * | 2017-09-29 | 2020-03-20 | 浏阳市鸿安机械制造有限公司 | Detection control device for firework granulating and medicine wrapping machine |
RU2726160C1 (en) * | 2019-04-29 | 2020-07-09 | Самсунг Электроникс Ко., Лтд. | Repeated synthesis of image using direct deformation of image, pass discriminator and coordinate-based remodelling |
WO2021198343A1 (en) * | 2020-04-03 | 2021-10-07 | Kverneland Group Nieuw-Vennep B.V. | Method and measurement system for determining characteristics of particles of a bulk material |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10577912B2 (en) * | 2014-11-12 | 2020-03-03 | Helmerich & Payne Technologies, Llc | System and method for measuring characteristics of cuttings and fluid front location during drilling operations with computer vision |
-
2022
- 2022-07-05 CN CN202210781973.8A patent/CN115111970B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2225017A1 (en) * | 1997-01-09 | 1998-07-09 | The Boeing Company | Method and apparatus for rapidly rendering computer generated images of complex structures |
KR100974413B1 (en) * | 2009-03-18 | 2010-08-05 | 부산대학교 산학협력단 | A method for estimation 3d bounding solid based on monocular vision |
EP2680228A1 (en) * | 2012-06-25 | 2014-01-01 | Softkinetic Software | Improvements in or relating to three dimensional close interactions. |
CN210163356U (en) * | 2017-09-29 | 2020-03-20 | 浏阳市鸿安机械制造有限公司 | Detection control device for firework granulating and medicine wrapping machine |
JP2019174931A (en) * | 2018-03-27 | 2019-10-10 | 日本製鉄株式会社 | Contour extraction device and contour extraction method |
CN108920643A (en) * | 2018-06-26 | 2018-11-30 | 大连理工大学 | Weight the fine granularity image retrieval algorithm of multiple features fusion |
CN109934297A (en) * | 2019-03-19 | 2019-06-25 | 广东省农业科学院农业生物基因研究中心 | A kind of rice species test method based on deep learning convolutional neural networks |
RU2726160C1 (en) * | 2019-04-29 | 2020-07-09 | Самсунг Электроникс Ко., Лтд. | Repeated synthesis of image using direct deformation of image, pass discriminator and coordinate-based remodelling |
WO2021198343A1 (en) * | 2020-04-03 | 2021-10-07 | Kverneland Group Nieuw-Vennep B.V. | Method and measurement system for determining characteristics of particles of a bulk material |
Also Published As
Publication number | Publication date |
---|---|
CN115111970A (en) | 2022-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112052797B (en) | MaskRCNN-based video fire disaster identification method and MaskRCNN-based video fire disaster identification system | |
CN110717455B (en) | Method for classifying and detecting grades of scrap steel in storage | |
WO2021135372A1 (en) | Product defect detection method, device and system | |
CN105118044A (en) | Method for automatically detecting defects of wheel-shaped cast product | |
CN109785378B (en) | Online ore granularity detection equipment based on atlas image algorithm analysis technology | |
CN102967586B (en) | Device for online automatically classifying pearl color and gloss based on monocular multi-view machine vision | |
CN111709935B (en) | Real-time coal gangue positioning and identifying method for ground moving belt | |
CN107621435A (en) | An aggregate online monitoring device | |
CN109241983A (en) | A kind of cigarette image-recognizing method of image procossing in conjunction with neural network | |
CN115111970B (en) | A firework molding detection device and detection method that integrates 2D and 3D visual perception | |
CN102298698A (en) | Remote sensing image airplane detection method based on fusion of angle points and edge information | |
CN111222478A (en) | Construction site safety protection detection method and system | |
CN101620060A (en) | Automatic detection method of particle size distribution | |
CN108182674B (en) | Granularity detection analysis method based on U-Net deep learning network | |
CN113870235A (en) | Defect detection method of circular stamping parts based on arc edge extraction of quantum fireworks | |
CN111695478B (en) | Target detection method and device | |
CN112337810B (en) | Vision guiding pearl sorting robot and sorting method thereof | |
CN107314957A (en) | A kind of measuring method of rock fragmentation Size Distribution | |
CN108985337A (en) | A kind of product surface scratch detection method based on picture depth study | |
CN118464725A (en) | Intelligent vision online granularity analysis system based on AI algorithm technology | |
CN110310275A (en) | A kind of chain conveyor defect inspection method based on image procossing | |
CN117351001A (en) | A method for identifying surface defects of recycled aluminum alloy templates | |
CN115797361B (en) | Aluminum template surface defect detection method | |
CN113566704A (en) | Bearing assembly ball size detection method based on machine vision | |
CN104966302B (en) | A kind of detection localization method of any angle laser cross |
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 |