CN112291547B - An impurity removal system with image recognition function - Google Patents
An impurity removal system with image recognition function Download PDFInfo
- Publication number
- CN112291547B CN112291547B CN202011184658.4A CN202011184658A CN112291547B CN 112291547 B CN112291547 B CN 112291547B CN 202011184658 A CN202011184658 A CN 202011184658A CN 112291547 B CN112291547 B CN 112291547B
- Authority
- CN
- China
- Prior art keywords
- image
- image sensor
- tank
- img
- impurities
- 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
- 239000012535 impurity Substances 0.000 title claims abstract description 79
- 238000012545 processing Methods 0.000 claims abstract description 48
- 238000012937 correction Methods 0.000 claims abstract description 45
- 239000000428 dust Substances 0.000 claims abstract description 20
- 239000002245 particle Substances 0.000 claims abstract description 20
- 238000000034 method Methods 0.000 claims description 27
- 230000008569 process Effects 0.000 claims description 17
- 230000001105 regulatory effect Effects 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000006835 compression Effects 0.000 claims description 3
- 238000007906 compression Methods 0.000 claims description 3
- 230000001276 controlling effect Effects 0.000 claims description 3
- 239000010813 municipal solid waste Substances 0.000 claims 3
- 239000000356 contaminant Substances 0.000 claims 1
- 238000005286 illumination Methods 0.000 claims 1
- 230000000149 penetrating effect Effects 0.000 claims 1
- 230000005855 radiation Effects 0.000 claims 1
- 239000004071 soot Substances 0.000 description 57
- 241000208125 Nicotiana Species 0.000 description 32
- 235000002637 Nicotiana tabacum Nutrition 0.000 description 32
- 235000019504 cigarettes Nutrition 0.000 description 18
- 239000002699 waste material Substances 0.000 description 18
- 230000000694 effects Effects 0.000 description 16
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 8
- 238000005316 response function Methods 0.000 description 8
- 230000003044 adaptive effect Effects 0.000 description 6
- 238000004140 cleaning Methods 0.000 description 6
- 238000003860 storage Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000007547 defect Effects 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 238000012216 screening Methods 0.000 description 3
- 238000000926 separation method Methods 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 238000011897 real-time detection Methods 0.000 description 2
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 1
- 238000003854 Surface Print Methods 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 238000012850 discrimination method Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000000227 grinding Methods 0.000 description 1
- 125000001475 halogen functional group Chemical group 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012886 linear function Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 210000001747 pupil Anatomy 0.000 description 1
- 238000010845 search algorithm Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000001931 thermography Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000004584 weight gain Effects 0.000 description 1
- 235000019786 weight gain Nutrition 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/646—Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B08—CLEANING
- B08B—CLEANING IN GENERAL; PREVENTION OF FOULING IN GENERAL
- B08B17/00—Methods preventing fouling
- B08B17/02—Preventing deposition of fouling or of dust
- B08B17/04—Preventing deposition of fouling or of dust by using removable coverings
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
- G06T5/92—Dynamic range modification of images or parts thereof based on global image properties
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/70—Circuits for processing colour signals for colour killing
- H04N9/71—Circuits for processing colour signals for colour killing combined with colour gain control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/73—Colour balance circuits, e.g. white balance circuits or colour temperature control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种具备图像识别功能的除杂系统,包括剔除装置、图像传感器、微机控制器;剔除装置包括倾斜设置且能上下震荡运动的振槽、嵌入振槽中心底部的拦截网及其控制组件、嵌入到振槽中部的除杂管路;图像传感器设置在振槽的边缘,用于采集图像;微机控制器对采集图像依次进行渐晕矫正处理、自动增益处理以及白平衡处理后识别图像中大颗粒杂质,依据识别结果生成控制信号并发送至拦截网控制组件;振槽上下震荡运动以使振槽内杂质向中部运动,拦截网控制组件依据控制信号控制拦截网升起,将振槽中部的大颗粒杂质拦截在拦截网内,并通过除杂管路剔除,透过拦截网的粉尘杂质通过振槽端部的输送槽排出。能够满足单组或多组除杂机在线除杂需要。
The invention discloses an impurity removal system with image recognition function, which comprises a rejection device, an image sensor and a microcomputer controller; the rejection device comprises a vibrating groove arranged obliquely and capable of oscillating up and down, an intercepting net embedded in the bottom of the center of the vibrating groove, and the like. Control components, impurity removal pipeline embedded in the middle of the vibrating tank; the image sensor is arranged on the edge of the vibrating tank to collect images; the microcomputer controller sequentially performs vignetting correction processing, automatic gain processing and white balance processing on the acquired images. The large particles of impurities in the image will generate a control signal according to the recognition result and send it to the intercepting net control component; the vibration tank vibrates up and down to make the impurities in the vibration tank move to the middle, and the intercepting net control component controls the intercepting net to rise according to the control signal, and the vibration tank is moved up and down. The large particles of impurities in the middle of the tank are intercepted in the intercepting net and removed through the impurity removal pipeline, and the dust and impurities passing through the intercepting net are discharged through the conveying trough at the end of the vibrating tank. It can meet the needs of online impurity removal of single or multiple groups of impurity removal machines.
Description
技术领域technical field
本发明属于除尘相关技术领域,具体涉及一种具备图像识别功能的除杂系统。The invention belongs to the technical field of dust removal, and in particular relates to an impurity removal system with an image recognition function.
背景技术Background technique
风送除尘是目前国内烟草企业烟丝除尘的主流技术,风送除尘是通过风机产生的负压吸风将卷烟机生产过程中产生的烟灰等废弃物通过除杂管道输送至除杂机并进行下一步筛选和除杂工作。卷烟机在高速运行过程中,不可避免的会夹带着少量烟梗和烟灰块状物一同随烟灰进入下游除杂机,这些烟梗和烟灰块状物由于体积庞大,不仅容易堵塞除尘管道,而且会加重除杂机的工作负荷,缩短除杂机的使用寿命。Air-delivered dust removal is currently the mainstream technology of tobacco dust removal in domestic tobacco companies. Air-delivered dust removal is to transport the soot and other wastes generated in the production process of cigarette machines through the impurities removal pipeline to the impurities removal machine through the negative pressure suction generated by the fan. One-step screening and cleaning work. During the high-speed operation of the cigarette machine, it is inevitable that a small amount of tobacco stems and soot lumps will enter the downstream cleaning machine along with the soot. These tobacco stems and soot lumps are not only easy to block the dust removal pipeline due to their large size, but also It will increase the workload of the cleaning machine and shorten the service life of the cleaning machine.
传统的卷烟除杂系统是采用筛选结构,即将卷烟机生产过程中产生的烟灰等废弃物首先通过负压吸风经除尘管道进入末端除杂机的振槽,然后通过除杂机振槽的反复抖振,将粉状烟灰、小颗粒烟梗或小块状烟灰通过振槽筛网掉落至下方收集袋中,最后再由收集袋集中废弃物中的粉状烟灰利用负压吸风将其全部吸入除杂机内,废弃物中的小颗粒烟梗或小块状烟灰则被吸入抽梗机,由抽梗机粉碎后打包。The traditional cigarette impurity removal system adopts a screening structure, that is, the soot and other wastes generated in the production process of the cigarette machine first enter the vibration tank of the terminal impurity remover through the negative pressure suction air through the dust removal pipe, and then pass through the repeated vibration tank of the impurity remover. Buffeting, drop the powdered soot, small particles of tobacco stems or small pieces of soot into the lower collection bag through the vibrating slot screen, and finally collect the powdered soot in the waste by the collection bag by negative pressure suction. All of them are sucked into the impurity removal machine, and the small particles of tobacco stems or small pieces of soot in the waste are sucked into the stem extraction machine, which is crushed by the stem extraction machine and then packed.
采用这种结构的除杂系统有明显的弊端:一是该结构不能保证烟灰、烟梗等废弃物能够完全分离,由于振槽筛网的筛孔孔径是固定的,在对烟梗和烟灰作简单分离时,小段烟梗会一起被振落至收集袋中,造成除杂机除杂不彻底,甚至硬质烟梗会造成除杂机内部零件损坏。二是该结构不能保证烟灰块状物能够有效振落,由于烟灰块状物大多呈黏性团状,振槽的抖振并不能有效振落烟灰块状物,这些烟灰块状物随烟梗进入抽梗机后,就会粘结在抽梗机内壁上,严重影响抽梗机内部电机正常运行或堵塞抽梗通道。三是该结构不能保证除杂机内负压吸风长时间保持顺畅,除尘管内的烟灰、烟梗等废弃物是通过负压吸风带动并最终流向除杂机,由于该结构内的振槽筛网不能有效分离小段烟梗和烟灰块状物,长此以往,小段烟梗和烟灰块状物会堆积在筛网表面,阻碍筛网附近的负压吸风流动,引起负压吸风口堵塞,造成吸风过小,而该处的负压吸风与除尘管网内的负压吸风是一路气源,这些就会连带影响除尘管道内负压吸风顺畅,极易造成除尘管道内堵塞,一旦堵塞,就会耗费大量人和物力进行破管排堵。The impurity removal system using this structure has obvious drawbacks: First, the structure cannot guarantee the complete separation of soot, tobacco stems and other wastes. During simple separation, the small pieces of tobacco stems will be vibrated and dropped into the collection bag together, resulting in incomplete removal of impurities by the impurity remover, and even the hard tobacco stems will cause damage to the internal parts of the impurity remover. Second, this structure cannot ensure that the soot lumps can be effectively shaken off. Since most of the soot lumps are in the form of viscous lumps, the buffeting of the vibrating groove cannot effectively shake off the soot lumps. These soot lumps follow the tobacco stems. After entering the stemmer, it will stick to the inner wall of the stemmer, which will seriously affect the normal operation of the internal motor of the stemmer or block the stemmer channel. Third, this structure cannot ensure that the negative pressure suction in the cleaning machine remains smooth for a long time. The soot, tobacco stems and other wastes in the dust removal pipe are driven by the negative pressure suction and finally flow to the cleaning machine. Due to the vibration groove in the structure The screen cannot effectively separate the small pieces of tobacco stems and ash lumps. In the long run, the small pieces of tobacco stems and soot lumps will accumulate on the surface of the screen, hindering the flow of negative pressure suction near the screen, causing the negative pressure suction port to be blocked, resulting in The suction air is too small, and the negative pressure suction air there and the negative pressure suction air in the dust removal pipe network are one air source, which will jointly affect the smooth negative pressure suction air in the dust removal pipe, and it is easy to cause blockage in the dust removal pipe. Once blocked, it will consume a lot of human and material resources to break the pipe to remove the blockage.
因此,需要一种可以快速检测并准确剔除大块异物的除杂系统。参考国内其它类似的资料,对此提出的方法有很多,例如:华南师范大学(魏燕达.基于机器视觉的IC卡面印刷缺陷检测系统的设计与实现[D].华南师范大学硕士论文,2015)设计了一种基于图像差异区分方法的印刷图像缺陷检测方案,该方案分为预处理和实时检测两步,预处理主要纠正镜头的畸变、设定各种图像检测参数与阈值以及制作标准模板,实时检测综合应用了中值滤波、图像灰度化、图像配准、图像差分、图像分割、数学形态学处理、Blob分析等多种图像处理算法。烟台大学(赵俊冉.基于机器视觉的玻璃边部磨削缺陷检测的研究与应用[D].山东烟台大学硕士论文,2018)采用机器视觉技术,将工业CCD相机的成像原理,图像处理技术(降噪、锐化、分割、边缘检测、数学形态学以及文件存储格式)相结合,并研究出了玻璃加工过程中的亮斑、爆边和白线的特征提取方法。陕西科技大学(韦逸野.基于图像处理技术的纸张功能信息识别研究[D].陕西科技大学硕士论文,2018)提出一种基于ORB的改进算法,采用BBF搜索算法加速最近距离比匹配准则来完成匹配,并使用RANSAC算法去除误匹配点后,对计算透视变换矩阵来标记识别。华北电力大学(郭铁桥.基于图像处理技术的条形码识别系统的研究[D].华北电力大学硕士论文,2014)运用带CCD图像传感器的数码相机,采用最大类间法对条形码图像进行识别,并采用伽马校正算法对图像进行校正。Therefore, there is a need for an impurity removal system that can quickly detect and accurately remove large foreign objects. Referring to other similar materials in China, there are many methods proposed for this, such as: South China Normal University (Wei Yanda. Design and implementation of IC card surface printing defect detection system based on machine vision [D]. South China Normal University Master Thesis, 2015) A printing image defect detection scheme based on image difference discrimination method is designed. The scheme is divided into two steps: preprocessing and real-time detection. Preprocessing mainly corrects lens distortion, sets various image detection parameters and thresholds, and makes standard templates. The real-time detection comprehensively applies a variety of image processing algorithms such as median filtering, image grayscale, image registration, image difference, image segmentation, mathematical morphology processing, and Blob analysis. Yantai University (Zhao Junran. Research and Application of Glass Edge Grinding Defect Detection Based on Machine Vision [D]. Master Thesis of Shandong Yantai University, 2018) adopts machine vision technology to combine the imaging principle of industrial CCD camera, image processing technology (reduced noise, sharpening, segmentation, edge detection, mathematical morphology, and file storage format), and researched a feature extraction method for bright spots, burst edges and white lines in glass processing. Shaanxi University of Science and Technology (Wei Yiye. Research on Recognition of Paper Function Information Based on Image Processing Technology [D]. Master Thesis of Shaanxi University of Science and Technology, 2018) proposed an improved algorithm based on ORB, using BBF search algorithm to speed up the closest distance ratio matching criterion to After completing the matching and using the RANSAC algorithm to remove the mismatched points, the perspective transformation matrix is calculated to mark the identification. North China Electric Power University (Guo Tieqiao. Research on Barcode Recognition System Based on Image Processing Technology [D]. Master Thesis of North China Electric Power University, 2014) Using a digital camera with a CCD image sensor, the maximum inter-class method is used to identify the barcode image, and using The gamma correction algorithm corrects the image.
上述方法是通过扫描条形码并采用相应的算法来提高扫描精度,该方法无法适用于烟灰、烟梗等固化物。或通过对拍摄场景补光、增加图像传感器等方法来最大拾取图像中的亮斑、爆边和白线的特征量,从而加强获取图像的清晰度和辨识度。或通过对比标准设置或模板进行差异化调整,这种调整是固定的,对环境和场景的适应性较弱。因此,这些方法对于识别流动的烟灰、烟梗等废弃物均具有一定的局限性。The above method is to improve the scanning accuracy by scanning the barcode and adopting a corresponding algorithm, and this method cannot be applied to cured products such as soot and tobacco stems. Or by adding light to the shooting scene, adding an image sensor, etc., to maximize the feature quantity of bright spots, burst edges and white lines in the image, so as to enhance the clarity and recognition of the acquired image. Or make differential adjustments by comparing standard settings or templates, which are fixed and less adaptable to the environment and scene. Therefore, these methods have certain limitations in identifying wastes such as flowing soot and tobacco stems.
发明内容SUMMARY OF THE INVENTION
鉴于上述,本发明提供一种具备图像识别功能的除杂系统,通过图像传感器扫描并识别烟灰、烟梗等废弃物,并通过剔除装置有效剔除小段烟梗和烟灰块状物,能够满足单组或多组除杂机在线除杂需要。In view of the above, the present invention provides an impurity removal system with an image recognition function, which scans and recognizes wastes such as soot and tobacco stems through an image sensor, and effectively removes small segments of tobacco stems and soot lumps through a rejecting device, which can meet the requirements of a single group Or multiple groups of impurity removal machines are required for online impurity removal.
本发明的技术方案为:The technical scheme of the present invention is:
一种具备图像识别功能的除杂系统,包括剔除装置、图像传感器、信号处理器;An impurity removal system with image recognition function, comprising a removal device, an image sensor, and a signal processor;
所述剔除装置包括倾斜设置且能上下震荡运动的振槽、嵌入振槽中心底部的拦截网及其控制组件、嵌入到振槽中部的除杂管路;The rejecting device includes a vibrating groove that is inclined and can oscillate up and down, an intercepting net and its control assembly embedded in the bottom of the center of the vibrating groove, and an impurity-removing pipeline embedded in the middle of the vibrating groove;
所述图像传感器设置在振槽的边缘,用于采集图像;The image sensor is arranged on the edge of the vibrating groove and is used for collecting images;
所述信号处理器对采集图像依次进行渐晕矫正处理、自动增益处理以及白平衡处理后识别图像中大颗粒杂质,依据识别结果生成控制信号并发送至拦截网控制组件;The signal processor sequentially performs vignetting correction processing, automatic gain processing and white balance processing on the captured image, and then identifies large particles of impurities in the image, generates a control signal according to the identification result, and sends it to the interception network control component;
所述振槽上下震荡运动以使振槽内杂质向中部运动,所述拦截网控制组件依据控制信号控制拦截网升起,将振槽中部的大颗粒杂质拦截在拦截网内,并通过除杂管路剔除,透过拦截网的粉尘杂质通过振槽端部的输送槽排出。The vibrating tank vibrates up and down to move the impurities in the vibrating tank to the middle, and the intercepting net control component controls the lifting of the intercepting net according to the control signal, intercepts the large particles of impurities in the middle of the vibrating tank in the intercepting net, and removes impurities by removing impurities. The pipeline is removed, and the dust and impurities passing through the intercepting net are discharged through the conveying trough at the end of the vibrating tank.
优选地,所述拦截网组件包括通信模块、与拦截网连接的顶升杆、与顶升杆连接的气阀、与气阀连接的进气管和出气管、以及控制气阀膨胀压缩的空气阀岛,通过通信模块接收到控制信号后,空气阀岛依据控制信号控制气阀膨胀以带动顶升杆升起进而升起拦截网,以实现对大颗粒杂质的连接。Preferably, the intercepting net assembly includes a communication module, a jacking rod connected with the intercepting net, an air valve connected with the jacking rod, an air inlet pipe and an air outlet pipe connected with the air valve, and an air valve for controlling the expansion and compression of the air valve. The island, after receiving the control signal through the communication module, the air valve island controls the expansion of the air valve according to the control signal to drive the jacking rod to rise and then raise the intercepting net to realize the connection of large particles of impurities.
优选地,所述除杂管路包括设置在振槽底部的剔除口、连接剔除口的输送管路,输送管路上沿输送方向依次设有阀门、过滤网、气压调节阀,气压调节阀连接有负压吸风管,用于吸收经过滤网过滤的粉尘杂质,在阀门和过滤网之间的输送管路上还没有疏通管,疏通管设有负压吸风,用于吸收大颗粒杂质。Preferably, the impurity removal pipeline includes a rejection port arranged at the bottom of the vibrating tank and a conveying line connected to the rejection port. The conveying line is provided with a valve, a filter screen and an air pressure regulating valve in sequence along the conveying direction, and the air pressure regulating valve is connected with a The negative pressure suction pipe is used to absorb the dust and impurities filtered by the filter screen. There is no dredging pipe on the conveying pipeline between the valve and the filter screen. The dredging pipe is equipped with negative pressure suction to absorb large particles of impurities.
优选地,所述输送管路上还设有阀门电机,用于控制阀门打开或关闭。Preferably, a valve motor is also provided on the conveying pipeline to control the opening or closing of the valve.
优选地,所述除杂系统还包括光源,该光源可以为频闪灯。Preferably, the impurity removal system further includes a light source, and the light source may be a strobe light.
优选地,所述振槽周围均匀分布设有至少1对振槽底脚,振槽底脚通过弹簧实现上下震荡运动进而带动振槽上下震荡运动,所述图像传感器为至少1对,均匀分布安装在振槽边缘。Preferably, at least one pair of vibrating groove feet is evenly distributed around the vibrating groove, and the vibrating groove base feet realize up and down oscillating motion through springs and then drive the vibrating groove to oscillate up and down. The image sensors are at least one pair, and are installed evenly on the edge of the vibrating groove.
其中,对采集图像进行渐晕矫正处理过程为:Among them, the vignetting correction processing process for the acquired image is as follows:
首先,建立一致的白色光源,利用图像传感器采集该白色光源在较低镜面反射的参考目标上的输入强度级,此时图像传感器指向参考表面,记录每个像素位置的响应值,然后根据下式计算每个像素位置的校正因子:First, establish a consistent white light source, and use the image sensor to collect the input intensity level of the white light source on the reference target with lower specular reflection. At this time, the image sensor points to the reference surface, records the response value of each pixel position, and then according to the following formula Calculate the correction factor for each pixel location:
其中,IREF(x,y)为杂质在像素位置(x,y)处的灰度因子,x和y趋向于正无穷大的整数值,JLT(x,y)为相应校正因子集合,其存储于查找表;Among them, I REF (x, y) is the gray factor of the impurity at the pixel position (x, y), x and y tend to positive infinity integer values, J LT (x, y) is the corresponding correction factor set, which stored in a lookup table;
然后,针对图像传感器在同一个角度的采集图像,将图像像素值与查找表中相应校正因子相乘来实现渐晕校正:Then, for the image captured by the image sensor at the same angle, the image pixel value is multiplied by the corresponding correction factor in the lookup table to achieve vignetting correction:
IMG(x,y)=H(x,y)*JLT(x,y)IMG(x,y)=H(x,y)*J LT (x,y)
其中,IMG(x,y)表示渐晕矫正后图像,H(x,y)表示采集图像在位置(x,y)处的像素值。Among them, IMG(x, y) represents the image after vignetting correction, and H(x, y) represents the pixel value of the acquired image at the position (x, y).
其中,对渐晕矫正后图像进行自动增益处理过程为:Among them, the automatic gain processing process for the image after vignetting correction is as follows:
依据辐射照度和曝光系统对渐晕矫正后图像采用以下公式进行自动增益处理:According to the irradiance and exposure system, the image after vignetting correction is processed by the following formula for automatic gain processing:
IMG'(x,y)=kL(x,y)+k(1-α)IMG'(x,y)=kL(x,y)+k(1-α)
其中,IMG'(x,y)表示自动增益后图像,L(x,y)为图像IMG'(x,y)对应的的辐射照度值,k表示图像传感器采集图像时的曝光系数(k为常量),α表示图像传感器的分辨率。Among them, IMG'(x,y) represents the image after automatic gain, L(x,y) is the irradiance value corresponding to the image IMG'(x,y), k represents the exposure coefficient when the image sensor collects the image (k is constant), α represents the resolution of the image sensor.
其中,对自动增益后图像进行白平衡处理过程为:Among them, the white balance processing process of the image after automatic gain is as follows:
IMG'BAL(x,y)=R'BAL(x,y)*G'BAL(x,y)*B'BAL(x,y)IMG' BAL (x,y)=R' BAL (x,y)*G' BAL (x,y)*B' BAL (x,y)
其中,IMG'BAL(x,y)表示白平衡后图像,R'BAL(x,y)、G'BAL(x,y)、B'BAL(x,y)分别为经过白平衡处理后RGB三通道图像,具体过程为:Among them, IMG' BAL (x, y) represents the image after white balance, R' BAL (x, y), G' BAL (x, y), B' BAL (x, y) respectively represent the RGB after white balance processing Three-channel image, the specific process is:
其中,r表示调整参数,r∈[0,99],L(xk,yk)表示含有曝光系数k的图像IMG'(x,y)的辐射照度值,分别表示加权增益像素,其计算公式为:Among them, r represents the adjustment parameter, r∈[0,99], L(x k ,y k ) represents the irradiance value of the image IMG'(x,y) with the exposure coefficient k, respectively represent the weighted gain pixels, and the calculation formula is:
其中,k表示图像传感器采集图像时的曝光系数,R(xk,yk)表示含有曝光系数k的R增益像素,B(xk,yk)表示含有曝光系数k的B增益像素,G(xk,yk)表示含有曝光系数k的G增益像素, Among them, k represents the exposure coefficient when the image sensor captures the image, R(x k , y k ) represents the R gain pixel with the exposure coefficient k, B(x k , y k ) represents the B gain pixel with the exposure coefficient k, G (x k , y k ) denotes the G-gain pixel with exposure coefficient k,
优选地,自动增益后图像进行白平衡处理过程中,加权增益像素采用自适应加权增益像素分别为:Preferably, during the white balance processing of the image after automatic gain, the weighted gain pixels are adaptive weight gain pixel They are:
与现有技术相比,本发明具有的有益效果至少包括:Compared with the prior art, the beneficial effects of the present invention at least include:
本发明实施例提供的具备图像识别功能的除杂系统,用过图像传感器采集图像,通过处理器对采集图像依次进行渐晕矫正处理、自动增益处理以及白平衡处理后识别出中大颗粒杂质并生成控制信号,剔除装置依据该控制信号实现除杂,除杂效率高,效果好。The impurity removal system with the image recognition function provided by the embodiment of the present invention uses an image sensor to collect images, and sequentially performs vignetting correction processing, automatic gain processing, and white balance processing on the collected images through a processor. A control signal is generated, and the removing device realizes impurity removal according to the control signal, with high impurity removal efficiency and good effect.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动前提下,还可以根据这些附图获得其他附图。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments or the prior art. 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 also be obtained from these drawings without creative efforts.
图1是实施例提供的具备图像识别功能的除杂系统的结构示意图;1 is a schematic structural diagram of an impurity removal system with an image recognition function provided by an embodiment;
图2是实施例提供的拦截网及其控制组件的结构示意图;2 is a schematic structural diagram of an interception network and a control component thereof provided by an embodiment;
图3是实施例提供的剔除口顶盖关闭状态图;Fig. 3 is the closed state diagram of the top cover of the rejection opening provided by the embodiment;
图4是实施例提供的剔除口顶盖打开状态图;Fig. 4 is the open state diagram of the top cover of the rejection opening provided by the embodiment;
图5是实施例提供的筛网结构示意图;5 is a schematic diagram of the screen structure provided by the embodiment;
图6是实施例提供的图像渐晕校正过程原理图;6 is a schematic diagram of an image vignetting correction process provided by an embodiment;
图7是实施例提供的自动增益实现过程示意图;7 is a schematic diagram of an automatic gain implementation process provided by an embodiment;
图8是实施例提供的图像白平衡过程示意图。FIG. 8 is a schematic diagram of an image white balance process provided by an embodiment.
具体实施方式Detailed ways
为使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不限定本发明的保护范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, and do not limit the protection scope of the present invention.
图1是实施例提供的具备图像识别功能的除杂系统的结构示意图。图2是实施例提供的拦截网及其控制组件的结构示意图。如图1和图2所示,实施例提供的除杂系统包括:频闪灯1、剔除装置2、图像传感器3、微机控制器4、信号处理器5、PLC控制器11、。其中,频闪灯1采用LED频闪灯,给图像传感3感光元件补光时,LED频闪灯的闪光持续时间在4ms以内,补光时的闪光持续时间取决于场景拍摄像素要求,1000万像素为80ms,800万像素为60ms,500万像素为28ms,能够满足在各种光线条件下,LED频闪灯的闪光持续时间可设定,以满足图像传感器3的补光需要。FIG. 1 is a schematic structural diagram of an impurity removal system with an image recognition function provided by an embodiment. FIG. 2 is a schematic structural diagram of an interception network and a control component thereof provided by an embodiment. As shown in FIG. 1 and FIG. 2 , the impurity removal system provided by the embodiment includes: a
剔除装置2包括倾斜设置且呈现椭圆漏斗状的振槽6,嵌入振槽中心底部的拦截网及其控制组件7、嵌入到振槽中部的除杂管路8、振槽底脚9以及振槽6边缘端的烟灰输送槽10,其中,振槽底脚9为4个,均匀分布在振槽6周围,通过弹簧实现上下震荡运动进而带动振槽6上下震荡运动,图像传感器3也为4个,均匀分布安装在振槽6边缘,用于采集图像。The rejecting
如图2所示,拦截网及其控制组件7包括拦截网71、通信模块72、顶升杆73、气阀74、进气管75、出气管76、空气阀岛77以及电源开关78,顶升杆73与拦截网连接,气阀74一端与顶升杆73连接、进气管75和出气管76同时与气阀74另一端连接、空气阀岛76用于控制气阀膨胀压缩,通过通信模块72接收到控制信号后,空气阀岛77依据控制信号控制气阀74膨胀以带动顶升杆73升起进而升起拦截网71,以实现对大颗粒杂质的连接。As shown in FIG. 2 , the interception net and its
实施例中,拦截网71为椭圆形带边金属200目纱网,通过下方的正压空气作上下振动,用来阻隔块状烟灰、烟杆,并使之聚集在剔除口81附近。In the embodiment, the intercepting
除杂管路8包括设置在振槽底部的剔除口81、连接剔除口81的输送管路82,输送管路上沿输送方向依次设有阀门83、过滤网84、气压调节阀85,气压调节阀85连接有负压吸风管86,用于吸收经过滤网过滤的粉尘杂质,在阀门83和过滤网84之间的输送管路上还没有疏通管87,疏通管设有负压吸风,用于吸收大颗粒杂质,输送管路82上还设有阀门电机88,用于控制阀门打开或关闭,打开或关闭信号由振槽的PLC控制器11统一控制。除杂管路8主要用来将块状烟灰、烟杆等大颗粒杂质或灰尘经疏通管87负压吸风剔除并送入收集袋中,另外将松散烟灰经另一道负压吸风管86剔除并送入其它收集袋中。The
本实施例中,剔除口81前端位置可调节并微微突起,可有效吸取烟灰、烟梗等废弃物。且剔除口81通过顶盖弹簧撑支撑有顶盖89,顶盖关闭和打开状态图如图3和图4所示。In this embodiment, the position of the front end of the
PLC控制器11采用西门子S7-300系统控制器,具备在高温高湿环境下稳定运行的特点微机控制器4采用西门子427D系列微机控制器,具有高运行可靠性和接口丰富的优点。图像传感器3的采集图像发送至微机控制器4。微机控制器4对采集图像依次进行渐晕矫正处理、自动增益处理以及白平衡处理后识别图像中大颗粒杂质,依据识别结果生成控制信号并发送至拦截网控制组件7。拦截网控制组件7依据控制信号控制拦截网71升起,将振槽6中部的大颗粒杂质拦截在拦截网71内,并通过除杂管路8剔除,透过拦截网71的粉尘杂质通过振槽端部的输送槽排出。PLC controller 11 adopts Siemens S7-300 system controller, which has the characteristics of stable operation in high temperature and high humidity environment. Microcomputer controller 4 adopts Siemens 427D series microcomputer controller, which has the advantages of high operation reliability and rich interfaces. The captured image of the
在除杂系统中,烟梗、烟灰等废弃物经剔除装置进入除杂机前会被图像传感器逐一进行识别,而识别的光源来自于安装在剔除装置出口位置的频闪灯,但频闪灯发出的亮光是漫发射的,它并不能均匀的将光亮照在烟梗和烟灰上,这就造成光照量到达图像传感器凸面时光强度的衰减,也就是在成像外围部分的亮度会减弱,光强度随烟梗和烟灰位置的这种变化称为渐晕效应,通常有以下几个影响因素:(1)孔径效应:图像传感器的光圈遮挡了部分光线就产生了孔径效应,光圈有效孔径越大,渐晕效应越明显。(2)瞳差:频闪灯漫发射的光线有部分受周围物体(如除尘管壁)的折射,也会导致穿过图像传感器光圈上的光线分布非常不均匀。In the impurity removal system, tobacco stems, soot and other wastes will be identified by the image sensor one by one before entering the impurity remover through the rejecting device, and the light source identified comes from the strobe light installed at the exit of the rejecting device, but the stroboscopic light The light emitted is diffusely emitted, and it cannot uniformly illuminate the tobacco stems and soot, which causes the attenuation of the light intensity when the light reaches the convex surface of the image sensor. This change with the position of tobacco stems and soot is called vignetting effect, which usually has the following influence factors: (1) Aperture effect: The aperture effect of the image sensor blocks part of the light, and the aperture effect is generated. Vignetting effect is more obvious. (2) Pupil aberration: The light diffusely emitted by the strobe light is partly refracted by surrounding objects (such as the wall of the dust removal tube), which will also result in a very uneven distribution of light passing through the aperture of the image sensor.
由于频闪灯光照量分布不均匀造成图像传感器产生渐晕效应,所以应进行渐晕校正。具体地,如图6所示,对采集图像进行渐晕矫正处理过程为:Vignetting correction should be performed due to the vignetting effect of the image sensor caused by the uneven distribution of the strobe light. Specifically, as shown in FIG. 6 , the vignetting correction processing process for the captured image is as follows:
首先,建立一致的白色光源,利用图像传感器采集该白色光源在较低镜面反射的参考目标上的输入强度级,此时图像传感器指向参考表面,记录每个像素位置的响应值,然后根据下式计算每个像素位置的校正因子:First, establish a consistent white light source, and use the image sensor to collect the input intensity level of the white light source on the reference target with lower specular reflection. At this time, the image sensor points to the reference surface, records the response value of each pixel position, and then according to the following formula Calculate the correction factor for each pixel location:
其中,IREF(x,y)为杂质在像素位置(x,y)处的灰度因子,x和y趋向于正无穷大的整数值,JLT(x,y)为相应校正因子集合,其存储于查找表;Among them, I REF (x, y) is the gray factor of the impurity at the pixel position (x, y), x and y tend to positive infinity integer values, J LT (x, y) is the corresponding correction factor set, which stored in a lookup table;
然后,针对图像传感器在同一个角度的采集图像,将图像像素值与查找表中相应校正因子相乘来实现渐晕校正:Then, for the image captured by the image sensor at the same angle, the image pixel value is multiplied by the corresponding correction factor in the lookup table to achieve vignetting correction:
IMG(x,y)=H(x,y)*JLT(x,y)IMG(x,y)=H(x,y)*J LT (x,y)
其中,IMG(x,y)表示渐晕矫正后图像,H(x,y)表示采集图像在位置(x,y)处的像素值。Among them, IMG(x, y) represents the image after vignetting correction, and H(x, y) represents the pixel value of the acquired image at the position (x, y).
通过对采集图像进行渐晕矫正处理,能够减弱或消除图像采集过程中产生的渐晕效应,自动实现渐晕校正效果,使图像具备在暗光场景中实现高质量的图像采集。By performing vignetting correction processing on the collected images, the vignetting effect generated during the image collection process can be weakened or eliminated, and the vignetting correction effect can be automatically realized, so that the images can achieve high-quality image collection in dark light scenes.
烟灰、烟梗等废弃物在除尘管内是一直流动的,图像传感器所获取场景的动态范围是有限的,所以在动态场景内最大限度地对采集图像进行图像压缩,然后再对图像进行扩边,实现自动增益效果,使采集图像具备在高速流动状态下实现最大范围的采集。如图7所示,对图像传感器的场景动态范围进行压缩时,在图像位置(x,y)的像素值H(x,y)和图像辐射照度L(x,y)之间引入非线性关系,该非线性关系可描述为:Wastes such as soot and tobacco stems flow all the time in the dust removal pipe, and the dynamic range of the scene captured by the image sensor is limited. Therefore, in the dynamic scene, compress the captured image to the maximum extent, and then expand the edge of the image. The automatic gain effect is realized, so that the collected images can achieve the largest range of collection under the high-speed flow state. As shown in Figure 7, when compressing the scene dynamic range of the image sensor, a nonlinear relationship is introduced between the pixel value H(x,y) at the image position (x,y) and the image irradiance L(x,y) , the nonlinear relationship can be described as:
H(x,y)=kL(x,y)H(x,y)=kL(x,y)
其中,k表示图像传感器获取图像时的曝光系数,通常在剔除装置内,烟灰、烟梗等废弃物在快速流动时,图像传感器对采集图像在动态范围进行压缩后容易失帧,造成图像质量下降,所以需要对图像进行自动增益。Among them, k represents the exposure coefficient when the image sensor acquires the image. Usually in the rejection device, when the waste such as soot and tobacco stems flow rapidly, the image sensor will easily lose frames after compressing the dynamic range of the acquired image, resulting in the deterioration of the image quality. , so it is necessary to perform automatic gain on the image.
自动增益是通过图像传感器热成像中的快速增益变化来获得,假设在图像传感器不同曝光设置下并渐晕校正过的图像IMG1(x,y)和IMG2(x,y),通过设计一个含参模型来表征曝光变化前后像素值之间的一致性,这样就生成了与曝光变化前后像素值相关的函数,称之为曝光响应函数,在图像传感器捕捉图像并成相过程中,采用仿射变换构造曝光响应函数,如下:Automatic gain is obtained by rapid gain changes in image sensor thermal imaging, assuming vignetting corrected images IMG 1 (x,y) and IMG 2 (x,y) at different exposure settings of the image sensor, by designing a The parameter model is used to characterize the consistency between the pixel values before and after the exposure change, so that a function related to the pixel values before and after the exposure change is generated, which is called the exposure response function. The exposure response function is constructed by the shot transformation, as follows:
C2(x,y)=(choose(IMG1(x,y),IMG2(x,y)))C 2 (x,y)=(choose(IMG 1 (x,y),IMG 2 (x,y)))
f(x,y)=compare(C1(x,y),C2(x,y))f(x,y)=compare(C 1 (x,y),C 2 (x,y))
其中,α表示图像传感器的分辨率,β表示图像传感器灵敏度,r表示图像传感器工作波长,C1表示图像在位置(x,y)处曝光前的像素值,C2表示图像在位置(x,y)处曝光后的像素值,f(x,y)表示曝光响应函数,输出0或1,0表示图像像素曝光前后没有变化,1表示图像像素曝光前后发生变化。C2(x,y)表示系统会随机首先选取IMG1(x,y)或IMG2(x,y)两张图像中的任何一张进行接下来的比较,等这个图像比较完后再将另一张图像进行比较,所以用choose命令,这样就可以在每次比较只会选取一张图像,因为图像像素之间的比较非常浪费计算机内存和花费大量时间,所以每次只采用一张图进行比较就可以节约内存和时间where α represents the resolution of the image sensor, β represents the sensitivity of the image sensor, r represents the operating wavelength of the image sensor, C 1 represents the pixel value of the image before exposure at position (x, y), and C 2 represents the image at position (x, y) y) is the pixel value after exposure, f(x, y) represents the exposure response function, and
对于仿射变换,当图像传感器工作波长r=1时,f(x,y)与f(kx,ky)相关的曝光响应函数为线性函数,如下:For affine transformation, when the working wavelength of the image sensor is r=1, the exposure response function related to f(x,y) and f(kx,ky) is a linear function, as follows:
f(kx,ky)=kf(x,y)+α(1-k)f(kx,ky)=kf(x,y)+α(1-k)
图像传感器的工作波长是一个变化值,波长范围一般为0.2-1范围内,只有当图像传感器波长达到最大范围时,曝光响应函数才为线性关系,但前提是图像传感器当前获取的图像必须是渐晕校正的图像,即f(x,y)=chooseIMG(x,y),这时图像传感器的曝光度最高,也就是自动增益效果最为明显。The working wavelength of the image sensor is a variable value, and the wavelength range is generally in the range of 0.2-1. Only when the wavelength of the image sensor reaches the maximum range, the exposure response function is linear, but the premise is that the image currently obtained by the image sensor must be gradual. The halo corrected image, that is, f(x,y)=chooseIMG(x,y), at this time, the exposure of the image sensor is the highest, that is, the automatic gain effect is the most obvious.
当图像传感器的波长达到最大范围,图像传感器的自动增益效果最为明显,那么在当前位置的烟灰、烟梗等废弃物的渐晕校正且自动增益图像为:When the wavelength of the image sensor reaches the maximum range, the automatic gain effect of the image sensor is the most obvious, then the vignetting correction and automatic gain image of wastes such as soot and tobacco stems at the current position are:
IMG'(x,y)=kL(x,y)+k(1-α)IMG'(x,y)=kL(x,y)+k(1-α)
其中,IMG'(x,y)表示自动增益后图像,L(x,y)为图像IMG'(x,y)对应的的辐射照度值,k表示图像传感器采集图像时的曝光系数,k为常量,α表示图像传感器的分辨率。Among them, IMG'(x,y) represents the image after automatic gain, L(x,y) is the irradiance value corresponding to the image IMG'(x,y), k represents the exposure coefficient when the image sensor collects the image, and k is Constant, α represents the resolution of the image sensor.
如果同一场景中,烟灰、烟梗在流动状态被图像传感器连续捕捉到两幅图像,并经过渐晕校正和自动增益,则两幅图像的灰度级有以下关系:If in the same scene, two images of soot and tobacco stems are continuously captured by the image sensor in the flowing state, and after vignetting correction and automatic gain, the gray levels of the two images have the following relationship:
IMG'2(x,y)=T*IMG'1(x,y)IMG' 2 (x,y)=T*IMG' 1 (x,y)
式中,T称为灰度转移函数,通常T都是经过原点的单调递增函数,T的函数值大小决定了图像被转换过渡时的平滑和细腻程度,并且T的函数值大小也决定了图像存储大小。自动增益实现过程如图7所示。In the formula, T is called the grayscale transfer function. Usually, T is a monotonically increasing function passing through the origin. The function value of T determines the smoothness and fineness of the image when it is converted, and the function value of T also determines the image. storage size. The automatic gain realization process is shown in Figure 7.
在图像传感器获取烟灰、烟梗等废弃物的图像时,除了采用单色图像外,还可采用彩色图像。彩色图像可以更加直观的识别和扫描废弃物大小、颜色和形状等,但是彩色图像的输入颜色是不同的,这与图像获取时的频闪灯光照情况密切相关,不同光源具有不同的光谱特性,因此对于场景光源,需要对获取图像进行调整才能使图像颜色尽可能还原本色。为此引入白平衡技术。When the image sensor acquires images of wastes such as soot and tobacco stems, in addition to monochrome images, color images can also be used. Color images can more intuitively identify and scan the size, color and shape of waste, but the input color of color images is different, which is closely related to the strobe lighting conditions when the image is acquired. Different light sources have different spectral characteristics. Therefore, for the scene light source, it is necessary to adjust the acquired image to make the color of the image as true as possible. White balance technology is introduced for this purpose.
白平衡就是一种自动调节图像颜色的方法,通过寻找图像中的类白区域(类白区域就是指烟灰、烟梗在流动状态下被图像传感器获取,并且获取的图像中有部分区域的图像颜色接近真实图像颜色)来设置参数,进而调整图像其余部分的颜色来接近或达到类白区域的图像颜色。White balance is a method of automatically adjusting the color of the image. By looking for the off-white area in the image (the off-white area refers to the soot and tobacco stems that are acquired by the image sensor in a flowing state, and the acquired image has some areas of image color close to the real image color) to set the parameters, and then adjust the color of the rest of the image to approach or reach the color of the image in the near-white area.
定义IMG’(x,y)为进行过渐晕校正和自动增益的图像,大小为M×N(M为长度,N为宽度),那么白平衡旨在调整IMG’(x,y)的颜色来生成色彩均衡的RGB图像,即彩色图像,生成IMG’BAL图像,其各分量组成为R'BAL(x,y)、G'BAL(x,y)、B'BAL(x,y),即:Define IMG'(x,y) as an image that has undergone vignetting correction and automatic gain, and the size is M×N (M is the length, N is the width), then the white balance aims to adjust the color of IMG'(x,y) To generate a color-balanced RGB image, that is, a color image, generate an IMG' BAL image, and its components are composed of R' BAL (x, y), G' BAL (x, y), B' BAL (x, y), which is:
IMG'BAL(x,y)=R'BAL(x,y)*G'BAL(x,y)*B'BAL(x,y)IMG' BAL (x,y)=R' BAL (x,y)*G' BAL (x,y)*B' BAL (x,y)
由于在彩色图像中,灰度模式的波长是最短的,波长的长短直接决定图像存储大小,所以选择RGB图像(即彩色图像)的灰度模式,这样就能很好的兼顾了图像质量和存储大小。在选择RGB图像的灰度模式后,在进行图像白平衡时,采用灰度模式的白平衡算法,通过下式生成R'BAL(x,y)、G'BAL(x,y)、B'BAL(x,y),即In the color image, the wavelength of the grayscale mode is the shortest, and the length of the wavelength directly determines the image storage size, so the grayscale mode of the RGB image (that is, the color image) is selected, so that the image quality and storage can be well balanced. size. After selecting the grayscale mode of the RGB image, when performing the image white balance, the white balance algorithm of the grayscale mode is used to generate R' BAL (x,y), G' BAL (x,y), B' by the following formulas BAL (x,y), i.e.
其中,r表示调整参数,r∈[0,99],L(xk,yk)表示含有曝光系数k的图像IMG'(x,y)的辐射照度值,分别表示加权增益像素,其计算公式为:Among them, r represents the adjustment parameter, r∈[0,99], L(x k ,y k ) represents the irradiance value of the image IMG'(x,y) with the exposure coefficient k, respectively represent the weighted gain pixels, and the calculation formula is:
其中,k表示图像传感器采集图像时的曝光系数,R(xk,yk)表示含有曝光系数k的R增益像素,B(xk,yk)表示含有曝光系数k的B增益像素,G(xk,yk)表示含有曝光系数k的G增益像素, Among them, k represents the exposure coefficient when the image sensor captures the image, R(x k , y k ) represents the R gain pixel with the exposure coefficient k, B(x k , y k ) represents the B gain pixel with the exposure coefficient k, G (x k , y k ) denotes the G-gain pixel with exposure coefficient k,
加权增益像素均是彩色图像为灰度模式下进行运算求得,但是这种运算结果通常比较费时,搜索彩色图像中的类白区域需要花费较长时间。为此,需要将这种算法进行改进,使其运算结果可以全覆盖,从而提高搜索速度。这种改进算法称为自适应白平衡算法。Weighted Gain Pixels All color images are obtained by operation in grayscale mode, but the result of this operation is usually time-consuming, and it takes a long time to search for white-like regions in color images. Therefore, this algorithm needs to be improved so that its operation results can be fully covered, thereby improving the search speed. This improved algorithm is called an adaptive white balance algorithm.
自适应白平衡算法是输入图像中所有像素来代替R、G、B三个像素,在这种算法中,允许和作任意变化,既可加权增益,也可加权渐晕,从而适应所有像素。彩色图像在灰度模式下的自适应白平衡算法为:The adaptive white balance algorithm is to replace the three pixels of R, G, and B with all pixels in the input image. In this algorithm, it is allowed to and Arbitrary changes can be made to weight both gain and vignetting to accommodate all pixels. The adaptive white balance algorithm for color images in grayscale mode is:
其中,分别为RGB三通道自适应加权增益像素,相应的,在自适应白平衡算法中,通过下式生成R’BAL(x,y)、G’BAL(x,y)和B’BAL(x,y)分别为:in, They are RGB three-channel adaptive weighted gain pixels, correspondingly, in the adaptive white balance algorithm, R' BAL (x, y), G' BAL (x, y) and B' BAL (x, y) are generated by the following formulas y) are:
式中,r为获得最优结果可调整的常数值,对于24位输入图像(彩色)普通模式下,r选值为r∈[100,300],对于24位输入图像(彩色)灰度模式下,r选值为r∈[0,99]。图像白平衡过程如图8所示,可以看出r值选值大小与图像白平衡效果相关,在选择r值时必须一个相对应的值,而不是越大越好,否则图像在经过自适应加权增益时会超出波长范围,造成失真。In the formula, r is a constant value that can be adjusted to obtain the optimal result. For a 24-bit input image (color) in normal mode, r is selected as r∈[100,300], and for a 24-bit input image (color) in grayscale mode, The chosen value of r is r∈[0,99]. The image white balance process is shown in Figure 8. It can be seen that the r value selection is related to the image white balance effect. When selecting the r value, a corresponding value must be selected, rather than the larger the better, otherwise the image will be adaptively weighted. The gain will exceed the wavelength range, causing distortion.
对经过渐晕矫正处理和自动增益处理后图像进行白平衡处理,可实现对样本进行单色或彩色图像采集,自动实现白平衡效果,同时采用彩色图像的灰度模式,兼具图像采集质量最优和图像存储大小最小。The white balance processing of the image after vignetting correction and automatic gain processing can realize the acquisition of monochrome or color image of the sample, and automatically realize the white balance effect. Excellent and minimal image storage size.
微机控制器对采集图像依次进行渐晕矫正处理、自动增益处理以及白平衡处理后识别图像中大颗粒杂质,也就是烟梗等,依据识别结果生成控制信号并发送至拦截网控制组件以控制拦截网71升起以实现对大颗粒杂质的拦截,并通过除杂管路剔除。The microcomputer controller sequentially performs vignetting correction processing, automatic gain processing and white balance processing on the captured image to identify large particles of impurities in the image, that is, tobacco stems, etc., and generates a control signal according to the recognition result and sends it to the interception network control component to control interception. The net 71 is raised to intercept large particles of impurities, and they are removed through the impurity removal pipeline.
上述具备图像识别功能的除杂系统的工作过程为:The working process of the above-mentioned impurity removal system with image recognition function is as follows:
当烟灰、烟梗等杂质进入振槽6时,频闪灯1开始工作,提供振槽6内进行拍摄的采光光源和各种光线条件下的补光需要。图像传感器3共四个分别安装在振槽6的四周,用来识别烟灰中夹杂的块状烟灰和烟杆,由于振槽6是倾斜的,在振槽6表面设置筛网,可以用来层层输送,当振槽6上下运动时的块状烟灰、烟杆和松散烟灰,并对它们进行简单的分离,分离原理为:因为块状烟灰、烟杆较重,松散烟灰较轻,受筛网表面呈阶梯状结构(如图5所示)的作用,所以可在运动过程中作简单分离,精确分离还得依靠后续的图像识别进行筛选,即当振槽6通过底部的四个振槽底脚9上下运动时,块状烟灰、烟杆和松散烟灰会逐渐由图中B点经过振槽运动到达C点最后到达A点,在由B点到达C点的过程中,振槽6四周的图像传感器3会不断采集图像,图像信息经信号处理器5数字化处理(渐晕矫正处理、自动增益处理以及白平衡处理)后生成控制信号传输至微机控制器4,此时微机控制器4执行已将控制策略方法编译的控制策略程序,程序执行完毕后输出筛选信息至PLC控制器11,PLC控制器11控制筛网下端的拦截网71作顶起动作,以拦截被识别出的块状烟灰和烟杆,此时这些块状烟灰和烟杆聚集在C区无法再运动到A点,拦截的这些块状烟灰和烟杆会逐步聚集到剔除口81附近,当负压吸风打开时,受负压吸风作用,剔除口81端的顶盖会向下翻,这些块状烟灰和烟杆就会顺势被剔除口吸取;而松散烟灰经过时,拦截网71作下降动作,剔除口81的负压吸风关闭,剔除口的顶盖由弹簧撑作用自动向上翻而保证松散烟灰不会掉落进剔除口,松散烟灰由图中C点在经过已闭合的剔除口后到达图中A点并经由烟灰输送槽(烟灰输送槽也有负压吸风)输送出。剔除口81采用三管圆口状,从而提高吸取范围。当块状烟灰和烟杆顺着剔除口径直向下经过阀门83,此时阀门83受阀门电机88控制开合。块状烟灰和烟杆继续向下,经过过滤网84,此时块状烟灰和烟杆被过滤网84拦截,并被疏通管87吸出管体。气压调节阀85用来调节负压吸风至合适大小,因为吸风过大会导致过滤网84磨损过快,吸风过小会引起剔除口81内块状烟灰和烟杆堵塞。吸风管采用软管,末端连接真空泵。When impurities such as soot and tobacco stems enter the vibrating tank 6, the
总体来说,实施例提供的渐晕校正步骤为:首先频闪灯会提供一致且光色均匀的白色光源,该光源会保证烟灰、烟杆等废弃物即使在较暗环境下仍然能够被照射到,此时安装在振槽四周的图像传感器会识别出夹杂在这些烟灰中的块状烟灰和烟杆,并生成像素位置,然后由系统记录下每个像素位置的响应值,再经过换算得到每个像素位置的校正因子,最后图像传感器在同一个角度获取的后续图像就可以通过将图像像素值与相应校正因子相乘来实现渐晕校正。In general, the vignetting correction steps provided by the embodiment are as follows: first, the strobe light will provide a white light source with a consistent and uniform light color, and the light source will ensure that wastes such as soot and cigarette rods can still be irradiated even in a dark environment. At this time, the image sensor installed around the vibrating tank will identify the block soot and cigarette rods mixed in these soot, and generate the pixel position, and then the system records the response value of each pixel position, and then converts to obtain each pixel position. A correction factor for each pixel position, and finally the subsequent images obtained by the image sensor at the same angle can be corrected by multiplying the image pixel value by the corresponding correction factor to achieve vignetting correction.
总体来说,实施例提供的自动增益步骤为:首先通过图像传感器捕捉处于动态场景中的烟灰、烟杆等废弃物图像,在图像成像后再经过系统渐晕校正,然后系统会自动生成对应的曝光响应函数,在曝光响应函数中包括一个波长范围(变化值),最后波长范围取值大小决定了曝光响应函数的线性关系,也即决定了系统的自动增益效果是否明显,另外波长范围取值大小也决定了图像存储大小。In general, the steps of automatic gain provided by the embodiment are: first, capture images of wastes such as soot, cigarette rods, etc. in a dynamic scene through an image sensor, and then perform vignetting correction by the system after the image is imaged, and then the system will automatically generate corresponding images. The exposure response function includes a wavelength range (change value) in the exposure response function. The value of the final wavelength range determines the linear relationship of the exposure response function, that is, determines whether the automatic gain effect of the system is obvious. In addition, the value of the wavelength range Size also determines the image storage size.
总体来说,实施例提供的白平衡步骤为:首先通过图像传感器捕捉处于动态场景中的烟灰、烟杆等废弃物图像,在图像成像后系统先后进行渐晕校正和自动增益,然后系统通过寻找图像中的类白区域来设置一个参数,最后系统通过这个参数来调整图像其余部分的颜色来接近或达到类白区域的图像颜色,即使图像颜色接近于还原本色。In general, the white balance steps provided by the embodiments are: first, capture images of wastes such as soot, cigarette rods, etc. in a dynamic scene through an image sensor, and after the image is imaged, the system performs vignetting correction and automatic gain successively, and then the system searches for A parameter is set for the off-white area in the image, and finally the system uses this parameter to adjust the color of the rest of the image to approach or reach the image color of the off-white area, even if the image color is close to the original color.
本实施例中,渐晕校正、自动增益和白平衡三种处理过程之间存在相互依赖,不可分割的关系,并且这三种处理过程的实施先后顺序不可颠倒。In this embodiment, the three processing procedures of vignetting correction, automatic gain and white balance are mutually dependent and inseparable, and the order of implementation of these three processing procedures cannot be reversed.
上述提供的具备图像识别功能的除杂系统,用过图像传感器采集图像,通过处理器对采集图像依次进行渐晕矫正处理、自动增益处理以及白平衡处理后识别出中大颗粒杂质并生成控制信号,剔除装置依据该控制信号实现除杂,除杂效率高,效果好。The above-mentioned impurity removal system with image recognition function uses an image sensor to collect images, and performs vignetting correction processing, automatic gain processing, and white balance processing on the collected images in sequence through a processor, after which medium and large particles of impurities are identified and a control signal is generated. , the removing device realizes the impurity removal according to the control signal, the impurity removal efficiency is high, and the effect is good.
以上所述的具体实施方式对本发明的技术方案和有益效果进行了详细说明,应理解的是以上所述仅为本发明的最优选实施例,并不用于限制本发明,凡在本发明的原则范围内所做的任何修改、补充和等同替换等,均应包含在本发明的保护范围之内。The above-mentioned specific embodiments describe in detail the technical solutions and beneficial effects of the present invention. It should be understood that the above-mentioned embodiments are only the most preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, additions and equivalent substitutions made within the scope shall be included within the protection scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011184658.4A CN112291547B (en) | 2020-10-29 | 2020-10-29 | An impurity removal system with image recognition function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011184658.4A CN112291547B (en) | 2020-10-29 | 2020-10-29 | An impurity removal system with image recognition function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112291547A CN112291547A (en) | 2021-01-29 |
CN112291547B true CN112291547B (en) | 2022-01-04 |
Family
ID=74352550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011184658.4A Active CN112291547B (en) | 2020-10-29 | 2020-10-29 | An impurity removal system with image recognition function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112291547B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112896924B (en) * | 2021-03-29 | 2025-07-15 | 河南中烟工业有限责任公司 | A tobacco stem package visual recognition system and method |
CN113317548B (en) * | 2021-06-10 | 2022-09-13 | 广东中烟工业有限责任公司 | A device, method, equipment and medium for threshing and redrying impurity removal |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4829379A (en) * | 1986-03-31 | 1989-05-09 | Mitsubishi Denki Kabushiki Kaisha | Picture image signal compensation device |
CN1184498A (en) * | 1995-03-20 | 1998-06-10 | 东陶机器株式会社 | Method of photocatalytically making the surface of base material ultrahydrophilic, base material having ultrahydraphilic and photocatalytic surface, and process for producing said material |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1030912A (en) * | 1963-05-14 | 1966-05-25 | Deltech Eng Inc | Improvements in or relating to the filtering of gaseous fluids |
GB2197220B (en) * | 1986-11-12 | 1991-01-16 | Pall Corp | Filter device |
DE8717960U1 (en) * | 1986-12-22 | 1991-10-17 | AG für industrielle Elektronik AGIE Losone bei Locarno, Losone | Labyrinth filters for the dielectric of EDM systems |
JP2003037765A (en) * | 2001-07-24 | 2003-02-07 | Matsushita Electric Ind Co Ltd | Iris imaging device |
CN103817083A (en) * | 2014-02-24 | 2014-05-28 | 三星高新电机(天津)有限公司 | Tiny product high-speed screening device |
CN111767871A (en) * | 2020-06-30 | 2020-10-13 | 武汉轻工大学 | Grain cleaning machine screen surface cleaning system and method |
-
2020
- 2020-10-29 CN CN202011184658.4A patent/CN112291547B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4829379A (en) * | 1986-03-31 | 1989-05-09 | Mitsubishi Denki Kabushiki Kaisha | Picture image signal compensation device |
CN1184498A (en) * | 1995-03-20 | 1998-06-10 | 东陶机器株式会社 | Method of photocatalytically making the surface of base material ultrahydrophilic, base material having ultrahydraphilic and photocatalytic surface, and process for producing said material |
Also Published As
Publication number | Publication date |
---|---|
CN112291547A (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112291547B (en) | An impurity removal system with image recognition function | |
CN107309181B (en) | An intelligent pearl sorting system based on machine vision | |
CN105699258B (en) | A kind of fine aggregate on-line measuring device and method | |
CN110766702A (en) | Agaricus bisporus grading judgment method | |
CN108107049A (en) | Combined harvester tanker seed percentage of impurity and percentage of damage real-time monitoring device and method | |
CN112014399B (en) | Device and method for detecting broken rate and impurity content of belt-type grain in grain tank | |
CN111389745B (en) | Intelligent sorting method based on machine vision | |
CN109876569A (en) | Device, system and method for on-line detection of purified gas index of bag filter | |
CN113624645B (en) | Device and method for detecting particle flow distribution | |
CN110218824A (en) | A kind of blast furnace slag centrifugal granulation droplet measurement system and method based on image recognition | |
CN102521648A (en) | Method and device for automatically counting components | |
CN113552028B (en) | Mixture visual analysis device, and method and system for detecting granularity composition of mixture | |
CN211185838U (en) | Tobacco leaf rapid detection grading plant based on image and spectral characteristics | |
CN107976447A (en) | A kind of accessory detection method and system based on machine vision | |
CN111968173A (en) | Method and system for analyzing granularity of mixture | |
CN207850944U (en) | Combined harvester tanker seed percentage of impurity and percentage of damage real-time monitoring device | |
CN110068518A (en) | Machine-made Sand quality detection apparatus and its detection method | |
CN107511339A (en) | A kind of machine based on machine vision and neural network algorithm adopts green tea classification test platform | |
CN113458004A (en) | Seed sorting device and method based on machine vision | |
CN112674381A (en) | Tobacco stem head removing device and method | |
CN210136151U (en) | A kind of machine-made sand quality testing equipment | |
CN205538564U (en) | Broken on -line monitoring system of cereal in combine grain tank | |
CN208613093U (en) | A kind of mandarin orange class fruit color sorting grading plant | |
CN111804604B (en) | High-precision material color sorting device | |
CN212936746U (en) | A kind of grain impurity and broken information monitoring device and harvester |
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 |