Cigar quality detection system and detection method

文档序号:1562962 发布日期:2020-01-24 浏览:26次 中文

阅读说明:本技术 雪茄烟质量检测系统及检测方法 (Cigar quality detection system and detection method ) 是由 顾昌铃 陆文君 金怀国 潘捷 张�杰 于 2019-10-15 设计创作,主要内容包括:本发明提供一种雪茄烟质量检测系统及检测方法,用于检测雪茄烟包装过程中可能出现的缺支、反支、残支、偏移,以及铝箔纸偏移、褶皱、破损等问题;在雪茄烟烟支进入烟盒以及铝箔纸包装成型的位置处各安装了一个图像采集模块,分别对烟盒内烟支与铝箔纸上表面进行拍照,并综合了三种检测方法,实现了雪茄烟质量的检测;在检测到缺陷时,向PLC控制柜发送剔除信号,由PLC控制柜在相应位置将缺陷烟包剔除。具有检测方式直观、准确,操作简便,处理速度快,检测全面,应用空间广泛等优点。(The invention provides a cigar quality detection system and a detection method, which are used for detecting the problems of missing, reverse, residual and offset, fold, damage and the like of aluminum foil paper which may occur in the cigar packaging process; the image acquisition modules are respectively installed at the positions where the cigar cigarettes enter the cigarette case and the aluminum foil paper is packaged and formed, the cigar cigarettes in the cigarette case and the upper surface of the aluminum foil paper are respectively photographed, and the three detection methods are integrated, so that the cigar quality detection is realized; and when the defects are detected, a rejection signal is sent to the PLC control cabinet, and the defective cigarette packets are rejected at corresponding positions by the PLC control cabinet. The method has the advantages of visual and accurate detection mode, simple and convenient operation, high processing speed, comprehensive detection, wide application space and the like.)

1. A cigar quality detection system, comprising:

the image acquisition modules are respectively arranged at detection positions of the cigar cigarettes entering the cigarette case and the aluminum foil paper after packaging and forming so as to acquire the cigarettes entering the cigarette case and the aluminum foil paper images after packaging and forming;

the control device is connected with the image acquisition module, processes the image acquired by the image acquisition module and obtains a corresponding cigarette packet rejection signal through image recognition;

and the PLC control cabinet is connected with the control device, sends a control instruction for acquiring images to the control device, and removes defective tobacco packets based on the tobacco packet removing signals sent by the control device.

2. The cigar quality detection system of claim 1, wherein: the image acquisition module comprises an industrial camera, and the industrial camera is arranged right above the cigarette packet to be detected.

3. The cigar quality detection system of claim 2, wherein: the image acquisition module is still including setting up the camera support of industry camera, camera support includes upper and lower regulation portion and controls the regulation portion.

4. The cigar quality detection system according to claim 2 or 3, wherein: the image acquisition module further comprises a light source, and the light source is arranged above the cigarette packet to be detected.

5. The cigar quality detection system of claim 4, wherein: the light source adopts an LED lamp.

6. The cigar quality detection system of claim 1, wherein: the control device comprises an input/output circuit and an industrial control computer; the input and output circuit is connected with the PLC control cabinet, the image acquisition module and the industrial control computer for signal transmission; the industrial control computer is connected with the image acquisition module, and acquires and processes the acquired image.

7. The cigar quality detection system of claim 6, wherein: the control device also comprises a human-computer interaction unit connected with the industrial control computer, and the human-computer interaction unit is used for setting parameters and displaying images of the industrial control computer.

8. A cigar quality detection method is characterized by comprising the following steps:

11) acquiring an image of a cigarette packet to be tested after cigar cigarettes enter the cigarette packet to obtain an upper surface image of a cigarette in the cigarette packet to be tested, performing gray processing on the upper surface image of the cigarette to obtain a gray image, and calculating a vertical projection curve of the gray image;

12) scanning the vertical projection curve from the background to the cigarette direction to determine the end face position of the cigarette based on the gray level difference between the background and the cigarette in the gray level image, and calculating the cigarette offset based on the template image;

13) if the cigarette offset exceeds a preset range, rejecting the cigarette packet to be detected, and ending the detection process; if the cigarette offset is within a preset range, executing the next step;

14) performing gray threshold segmentation on the gray image based on the color characteristics of cigarettes to obtain a target gray area corresponding to the cigarette paper, calculating the number of pixels in the target gray area to determine the area of the target gray area, and comparing the area of the target gray area with a standard area to judge whether the cigarette defects exist or not;

15) if no defect exists, the tobacco bale to be detected enters the next packaging process, and the detection process is ended; and if the cigarette packet to be detected has defects, rejecting the cigarette packet to be detected and ending the detection process.

9. The cigar quality detection method of claim 8, wherein: the method for obtaining the vertical projection curve comprises the step of calculating the average gray scale of each column of pixels of the gray scale image to serve as the vertical projection curve.

10. The cigar quality detection method of claim 8, wherein: in the step 13), if the cigarette offset is within a preset range, compensating the cigarette offset; and step 14) performing gray threshold segmentation on the compensated gray image.

11. The cigar quality detection method of claim 8, wherein: the cigarette defects comprise at least one of defective cigarettes, reverse cigarettes and defective cigarettes.

12. A cigar quality detection method is characterized by comprising the following steps:

21) the method comprises the steps of carrying out image acquisition on a cigarette packet to be detected after packaging and forming of aluminum foil paper, obtaining an upper surface image of the aluminum foil paper in the cigarette packet to be detected, carrying out gray processing on the upper surface image of the aluminum foil paper to obtain a gray image, and calculating a vertical projection curve and a horizontal projection curve of the gray image;

22) scanning the vertical projection curve and the horizontal projection curve from the background to the aluminum foil paper direction based on the gray difference between the background and the aluminum foil paper in the gray image, and calculating the offset of the aluminum foil paper based on the template image;

23) if the offset of the aluminum foil paper exceeds a preset range, rejecting the tobacco bale to be detected, and ending the detection process; if the offset of the aluminum foil paper is within a preset range, executing the next step;

24) calculating the multi-level gray scale of the aluminum foil in the gray scale image, and comparing the multi-level gray scale with the template image to judge whether the aluminum foil has defects;

25) if no defect exists, the tobacco bale to be detected enters the next packaging process, and the detection process is ended; and if the cigarette packet to be detected has defects, rejecting the cigarette packet to be detected and ending the detection process.

13. The cigar quality detection method of claim 12, wherein: the method for obtaining the vertical projection curve comprises the steps of calculating the average gray scale of each column of pixels of the gray scale image, and taking the average gray scale as the vertical projection curve; the method for obtaining the horizontal projection curve comprises the step of calculating the average gray scale of each line of pixels of the gray scale image to serve as the horizontal projection curve.

14. The cigar quality detection method of claim 12, wherein: in the step 33), if the offset of the aluminum-foil paper is within a preset range, compensating the offset of the aluminum-foil paper; and 24) calculating the multi-level gray scale of the aluminum foil paper on the compensated gray scale image.

15. The cigar quality detection method of claim 12, wherein: the aluminum foil paper defect comprises at least one of fold and breakage.

Technical Field

The invention relates to the field of tobacco production, in particular to a cigar quality detection system and a cigar quality detection method.

Background

With the progress of cigarette technology and the aggravation of market competition, cigarette enterprises have higher and higher requirements on cigarette quality. In the actual production process, the defects of missing, reverse, residual and offset of small cigarette packets, offset, fold, damage and the like of aluminum foil paper cannot be avoided, and the product quality is seriously influenced. Once the defective cigarette packet flows into the market, the benefits of consumers are damaged, and the image of the cigarette enterprise is adversely affected.

At present, the detection of the shortage of cigars is mainly realized by using a photoelectric technology in China, but the detection of the reverse branch, the residual branch and the offset cannot be well realized. Meanwhile, the detection position of the photoelectric detection device is a long distance away from the cigar feeding cigarette case, so that the defects of residual cigarette, deviation and the like are likely to be generated again in the process, and the quality of the cigar cigarette can not be completely ensured. And no effective detection equipment exists for the defects of displacement, folds, breakage and the like of the cigar aluminum foil paper.

Therefore, how to comprehensively detect the defects of cigar cigarettes and aluminum-foil paper and improve the detection reliability has become one of the problems to be solved urgently by the technical personnel in the field.

Disclosure of Invention

In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a cigar quality detection system and method, which are used to solve the problems of incomplete cigar detection, low detection reliability, etc. in the prior art.

To achieve the above and other related objects, the present invention provides a cigar quality detection system including:

the image acquisition modules are respectively arranged at detection positions of the cigar cigarettes entering the cigarette case and the aluminum foil paper after packaging and forming so as to acquire the cigarettes entering the cigarette case and the aluminum foil paper images after packaging and forming;

the control device is connected with the image acquisition module, processes the image acquired by the image acquisition module and obtains a corresponding cigarette packet rejection signal through image recognition;

and the PLC control cabinet is connected with the control device, sends a control instruction for acquiring images to the control device, and removes defective tobacco packets based on the tobacco packet removing signals sent by the control device.

Optionally, the image acquisition module includes an industrial camera, and the industrial camera is disposed right above the cigarette packet to be tested.

More optionally, the image capturing module further includes a camera support for the industrial camera, and the camera support includes an up-down adjusting portion and a left-right adjusting portion.

More optionally, the image acquisition module further comprises a light source, and the light source is arranged above the cigarette packet to be tested.

More optionally, the light source adopts an LED lamp.

Optionally, the control device comprises an input/output circuit and an industrial control computer; the input and output circuit is connected with the PLC control cabinet, the image acquisition module and the industrial control computer for signal transmission; the industrial control computer is connected with the image acquisition module, and acquires and processes the acquired image.

More optionally, the control device further comprises a human-computer interaction unit connected with the industrial control computer, and the human-computer interaction unit performs parameter setting and image display on the industrial control computer.

In order to achieve the above and other related objects, the present invention also provides a cigar quality detection method, including:

11) acquiring an image of a cigarette packet to be tested after cigar cigarettes enter the cigarette packet to obtain an upper surface image of a cigarette in the cigarette packet to be tested, performing gray processing on the upper surface image of the cigarette to obtain a gray image, and calculating a vertical projection curve of the gray image;

12) scanning the vertical projection curve from the background to the cigarette direction to determine the end face position of the cigarette based on the gray level difference between the background and the cigarette in the gray level image, and calculating the cigarette offset based on the template image;

13) if the cigarette offset exceeds a preset range, rejecting the cigarette packet to be detected, and ending the detection process; if the cigarette offset is within a preset range, executing the next step;

14) performing gray threshold segmentation on the gray image based on the color characteristics of cigarettes to obtain a target gray area corresponding to the cigarette paper, calculating the number of pixels in the target gray area to determine the area of the target gray area, and comparing the area of the target gray area with a standard area to judge whether the cigarette defects exist or not;

15) if no defect exists, the tobacco bale to be detected enters the next packaging process, and the detection process is ended; and if the cigarette packet to be detected has defects, rejecting the cigarette packet to be detected and ending the detection process.

Optionally, the method for obtaining the vertical projection curve includes calculating an average gray scale of each column of pixels of the gray scale image as the vertical projection curve.

Optionally, in step 13), if the cigarette offset is within a preset range, compensating the cigarette offset; and step 14) performing gray threshold segmentation on the compensated gray image.

Optionally, the cigarette defects comprise at least one of missing cigarette, reverse cigarette and incomplete cigarette.

In order to achieve the above and other related objects, the present invention also provides a cigar quality detection method, including:

21) the method comprises the steps of carrying out image acquisition on a cigarette packet to be detected after packaging and forming of aluminum foil paper, obtaining an upper surface image of the aluminum foil paper in the cigarette packet to be detected, carrying out gray processing on the upper surface image of the aluminum foil paper to obtain a gray image, and calculating a vertical projection curve and a horizontal projection curve of the gray image;

22) scanning the vertical projection curve and the horizontal projection curve from the background to the aluminum foil paper direction based on the gray difference between the background and the aluminum foil paper in the gray image, and calculating the offset of the aluminum foil paper based on the template image;

23) if the offset of the aluminum foil paper exceeds a preset range, rejecting the tobacco bale to be detected, and ending the detection process; if the offset of the aluminum foil paper is within a preset range, executing the next step;

24) calculating the multi-level gray scale of the aluminum foil in the gray scale image, and comparing the multi-level gray scale with the template image to judge whether the aluminum foil has defects;

25) if no defect exists, the tobacco bale to be detected enters the next packaging process, and the detection process is ended; and if the cigarette packet to be detected has defects, rejecting the cigarette packet to be detected and ending the detection process.

Optionally, the method for obtaining the vertical projection curve includes calculating an average gray scale of each column of pixels of the gray scale image as the vertical projection curve; the method for obtaining the horizontal projection curve comprises the step of calculating the average gray scale of each line of pixels of the gray scale image to serve as the horizontal projection curve.

Optionally, in step 33), if the offset of the aluminum-foil paper is within a preset range, compensating the offset of the aluminum-foil paper; and 24) calculating the multi-level gray scale of the aluminum foil paper on the compensated gray scale image.

Optionally, the aluminum foil defects include at least one of wrinkles and tears.

As described above, the cigar quality detection system and method of the present invention have the following advantages:

the cigar quality detection system and the cigar quality detection method adopt the machine vision technology, the detection mode is visual and accurate, the defect image can be stored and recorded, and a user can analyze the running state of the machine conveniently.

The cigar quality detection system and the cigar quality detection method realize image processing through the image processing algorithm, and have the advantages of simple and convenient operation and high processing speed.

The cigar quality detection system and the cigar quality detection method can comprehensively detect the defects of missing cigarettes, reversed cigarettes, residual cigarettes, offset, aluminum foil paper offset, folds, damage and the like in the cigar packaging process, are suitable for cigar packaging machines used in the current market, can effectively prevent defective cigarettes from flowing into the market, and have wide application space.

Drawings

FIG. 1 is a schematic structural diagram of the cigar quality detection system of the present invention.

Fig. 2 shows a cross-sectional view of an image acquisition module of the present invention.

Fig. 3 shows a cross-sectional view of the control device of the present invention.

FIG. 4 is a schematic view showing the process of detecting cigarettes by the cigar quality detection method of the present invention.

FIG. 5 is a schematic view showing the process of detecting aluminum foil paper by the cigar quality detection method of the present invention.

Description of the element reference numerals

1 cigar quality detection system

11 first image acquisition module

111 industry camera

112 camera support

112a up-down adjusting part

112b left-right adjusting part

113 light source

114 casing

115 hexagonal nut

116 socket interface

117 inner hexagon screw

118 light source bracket

119 glass window

12 second image acquisition module

13 control device

131 input/output circuit

132 industrial control computer

133 human-computer interaction unit

133a color liquid crystal display panel

133b control box panel

134 case shell

135 cable socket interface

136 mounting bracket

137 heat sink

14 PLC switch board

2 cigarette

3 aluminum foil paper

Detailed Description

The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention.

Please refer to fig. 1 to 5. It should be noted that the drawings provided in the present embodiment are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种棉签自动包装机

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!