CN110135256B - Method and apparatus for judging horizontal smoke - Google Patents
Method and apparatus for judging horizontal smoke Download PDFInfo
- Publication number
- CN110135256B CN110135256B CN201910295284.4A CN201910295284A CN110135256B CN 110135256 B CN110135256 B CN 110135256B CN 201910295284 A CN201910295284 A CN 201910295284A CN 110135256 B CN110135256 B CN 110135256B
- Authority
- CN
- China
- Prior art keywords
- value
- comparison
- gray
- image
- judging
- 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
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B65—CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
- B65B—MACHINES, APPARATUS OR DEVICES FOR, OR METHODS OF, PACKAGING ARTICLES OR MATERIALS; UNPACKING
- B65B57/00—Automatic control, checking, warning, or safety devices
- B65B57/10—Automatic control, checking, warning, or safety devices responsive to absence, presence, abnormal feed, or misplacement of articles or materials to be packaged
- B65B57/14—Automatic control, checking, warning, or safety devices responsive to absence, presence, abnormal feed, or misplacement of articles or materials to be packaged and operating to control, or stop, the feed of articles or material to be packaged
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B65—CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
- B65B—MACHINES, APPARATUS OR DEVICES FOR, OR METHODS OF, PACKAGING ARTICLES OR MATERIALS; UNPACKING
- B65B57/00—Automatic control, checking, warning, or safety devices
- B65B57/18—Automatic control, checking, warning, or safety devices causing operation of audible or visible alarm signals
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B65—CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
- B65G—TRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
- B65G47/00—Article or material-handling devices associated with conveyors; Methods employing such devices
- B65G47/22—Devices influencing the relative position or the attitude of articles during transit by conveyors
- B65G47/24—Devices influencing the relative position or the attitude of articles during transit by conveyors orientating the articles
- B65G47/256—Devices influencing the relative position or the attitude of articles during transit by conveyors orientating the articles removing incorrectly orientated articles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/10—Terrestrial scenes
Abstract
The invention discloses a method and equipment for judging horizontal smoke, wherein the method comprises the following steps: an image taking step: acquiring a cigarette image; a pretreatment step: preprocessing the cigarette image to obtain a characteristic image; a comparison step: at least one comparison mode of gray scale comparison, edge feature comparison and connected domain area comparison is included; a judging step: and if any one comparison mode in the comparison step is marked as the occurrence of the transverse smoke, judging that the transverse smoke occurs. Can discern the horizontal cigarette in the production process, in time discover the emergence of horizontal cigarette, avoid influencing production efficiency to and avoid a cigarette extrusion to cause the defective rate of product to rise.
Description
Technical Field
The invention relates to a method and equipment for judging horizontal smoke.
Background
In cigarette enterprises, cigarettes are produced from a cigarette making machine, and in the process of conveying the cigarettes from the cigarette making machine to a packing machine through a production line (conveying chain plate), cigarettes can be transversely placed due to the fact that the cigarettes are clamped, or cigarettes are transversely disordered due to reasons such as improper operation during manual cigarette adding.
If the appearance of horizontal cigarette is not found in time, take one's place and cause the product jam, the production line is shut down, influences production efficiency, and simultaneously, the jam still can make a cigarette appear extrudeing, the fold influences the product percent of pass.
Disclosure of Invention
The invention aims to provide a method and equipment for judging horizontal smoke, which can find the appearance of the horizontal smoke in time so as to improve the efficiency of subsequent horizontal smoke treatment.
The method for judging horizontal smoke of the present invention comprises: an image taking step: acquiring a cigarette image; a pretreatment step: preprocessing the cigarette image to obtain a characteristic image, wherein the preprocessing sequentially comprises the following steps: gray level treatment, corrosion drying removal and expansion restoration; a comparison step: at least one comparison mode of gray scale comparison, edge feature comparison and connected domain area comparison is included; the gray scale ratio is as follows: extracting features of the feature image to obtain a gray level histogram, judging whether the gray level of the corresponding part is higher than a gray level threshold value, and marking the part as the occurrence of the cross smoke if the gray level of the corresponding part is higher than the gray level threshold value; the edge feature comparison is as follows: judging whether the edge of the characteristic image is a straight line or not, and if so, marking that the characteristic image has a rectangular area with a pixel value exceeding a first pixel threshold value; the connected domain area ratio is as follows: judging whether pixels of the regions communicated with the characteristic image exceed a second pixel threshold value or not, and if so, marking the pixels as the occurrence of the horizontal smoke; a judging step: and if any one comparison mode in the comparison step is marked as the occurrence of the transverse smoke, judging that the transverse smoke occurs.
The method for judging horizontal smoke as described above, wherein, when performing the gray scale processing, the original RGB values of the cigarette image are obtained first, and then each color component is assigned again to form a gray scale RGB value, where the gray scale R value is gray scale G value — gray scale B value — gray scale R value α + original G value β + original B value γ; the value range of alpha is 0.1-0.5; the value range of beta is 0.4-0.99; the value range of gamma is 0.05-0.25.
The method for judging horizontal smoke as described above, wherein the numeric area of α is 0.3; the value range of beta is 0.59; the value range of γ is 0.11.
In the above-described lateral smoke determination method, the method of obtaining the gradation histogram in the gradation comparison includes: extracting the features of the feature image to obtain the total pixel value quantity a of the feature image; obtaining the gray value b of each pixel, and counting the number c of pixels with the same gray value a; calculating gray value b data of each pixel through P (b) ═ ac to obtain the gray histogram; and the gray value b of any pixel is calculated to exceed the gray threshold value through P (b) ═ ac, and then the pixel is marked as the occurrence of the horizontal smoke.
The present invention provides a horizontal smoke judging apparatus, comprising: the image capturing device is used for acquiring cigarette images; and the processing equipment is used for preprocessing the cigarette image and performing at least one of gray scale comparison, edge feature comparison and connected domain area comparison.
The method and the equipment for judging the transverse cigarettes can identify the transverse cigarettes in the production process, find the transverse cigarettes in time, avoid influencing the production efficiency and avoid the increase of the reject ratio of products caused by cigarette extrusion.
Drawings
FIG. 1 is a logic block diagram of the method for determining horizontal smoke according to the present invention
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
The invention discloses a method for judging horizontal smoke, which is shown in figure 1 and comprises the following steps: an image capturing step S1, a preprocessing step S2, a comparing step S3, and a judging step S4.
Image capture step S1: the cigarette image is acquired, and a camera can be used for photographing, and preferably 30 single-frame images per minute are taken at the photographing speed.
Preprocessing step S2: preprocessing the cigarette image to obtain a characteristic image, wherein the preprocessing sequentially comprises the following steps: gray scale processing S21, etch drying S22, and dilation recovery S23.
Comparison step S3: the method comprises at least one of gray scale comparison S31, edge characteristic comparison S32 and connected domain area comparison S33. Generally, all three modes can be adopted, and only one mode can be used. Each of the comparison methods will be described below.
Grayscale comparison S31: and extracting the features of the feature image to obtain a gray level histogram, judging whether the gray level of the corresponding part is higher than a gray level threshold value, and marking that the transverse smoke occurs if the gray level of the corresponding part is higher than the gray level threshold value.
Edge feature comparison S32: and judging whether the edge of the characteristic image is a straight line or not, and if so, marking that the edge is a rectangular area with the pixel value exceeding the first pixel threshold value.
Comparing the area of the S33 connected domain: and judging whether the pixels of the regions connected with the characteristic image exceed a second pixel threshold value, if so, marking that the horizontal smoke occurs.
Determination step S4: and if any one comparison mode in the comparison step is marked as the occurrence of the transverse smoke, judging that the transverse smoke occurs.
When the gray level processing is carried out, the original RGB value of the cigarette image is obtained, then each color component is assigned again to form a gray level RGB value, wherein the gray level R value is the gray level G value, the gray level B value is the gray level R value alpha + the original G value beta + the original B value gamma;
the value range of alpha is 0.1-0.5;
the value range of beta is 0.4-0.99;
the value range of gamma is 0.05-0.25.
Preferably, the value range of alpha is 0.3;
the value range of beta is 0.59;
the value range of γ is 0.11.
In the gray scale comparison, the method for obtaining the gray scale histogram comprises the following steps:
extracting the features of the feature image to obtain the total pixel value quantity a of the feature image; obtaining the gray value b of each pixel, and counting the number c of pixels with the same gray value a;
calculating gray value b data of each pixel through P (b) ═ ac to obtain a gray histogram;
the gray value b of any pixel is calculated to exceed the gray threshold value by P (b) ═ ac, and then the pixel is marked as the occurrence of the horizontal smoke.
The present invention also provides a lateral smoke judging apparatus comprising:
the image capturing device is used for acquiring cigarette images; general view finding equipment is the camera, can include two cameras that are parallel to each other, and two the camera all faces the assembly line.
And the processing equipment is used for preprocessing the cigarette image and performing at least one of gray scale comparison, edge characteristic comparison and connected domain area comparison.
Preferably, the device for judging the cross smoke further comprises an alarm for giving out a cross smoke alarm. The simultaneous processing equipment is still connected with and picks up equipment for reject horizontal cigarette, it has manipulator and arm to pick up the utensil, the manipulator is used for picking up horizontal cigarette, the arm drives the manipulator is in a parallel with the direction of assembly line operation is gone up and is moved, and still drives the manipulator is at the perpendicular to the direction of assembly line operation is moved.
The construction, features and functions of the present invention are described in detail in the embodiments illustrated in the drawings, which are only preferred embodiments of the present invention, but the present invention is not limited by the drawings, and all equivalent embodiments modified or changed according to the idea of the present invention should fall within the protection scope of the present invention without departing from the spirit of the present invention covered by the description and the drawings.
Claims (3)
1. A method for judging horizontal smoke, comprising:
an image taking step: acquiring a cigarette image;
a pretreatment step: preprocessing the cigarette image to obtain a characteristic image, wherein the preprocessing sequentially comprises the following steps: gray level treatment, corrosion drying removal and expansion restoration;
a comparison step: at least one comparison mode of gray scale comparison, edge feature comparison and connected domain area comparison is included; the gray scale ratio is as follows: extracting features of the feature image to obtain a gray level histogram, judging whether the gray level of the corresponding part is higher than a gray level threshold value, and marking the part as the occurrence of the cross smoke if the gray level of the corresponding part is higher than the gray level threshold value; the edge feature comparison is as follows: judging whether the edge of the characteristic image is a straight line or not, and if so, marking that the characteristic image has a rectangular area with a pixel value exceeding a first pixel threshold value; the connected domain area ratio is as follows: judging whether pixels of the regions communicated with the characteristic image exceed a second pixel threshold value or not, and if so, marking the pixels as the occurrence of the horizontal smoke;
a judging step: if any one comparison mode in the comparison step is marked as the occurrence of the transverse smoke, judging that the transverse smoke occurs;
in the gray scale comparison, the method for obtaining the gray scale histogram comprises the following steps:
extracting the features of the feature image to obtain the total pixel value quantity a of the feature image; obtaining the gray value b of each pixel, and counting the number c of pixels with the same gray value b;
obtaining gray value b data of each pixel through P (b) = ac calculation to obtain the gray histogram;
and (3) marking that the gray value b of any pixel exceeds the gray threshold value through P (b) = ac calculation as the occurrence of the horizontal smoke.
2. The method for judging horizontal smoke according to claim 1,
when the gray level processing is carried out, the original RGB value of the cigarette image is obtained, then each color component is assigned again to form a gray level RGB value, wherein,
gray scale R value = gray scale G value = gray scale B value = original R value α + original G value β + original B value γ;
the value range of alpha is 0.1-0.5;
the value range of beta is 0.4-0.99;
the value range of gamma is 0.05-0.25.
3. The method for judging horizontal smoke according to claim 2,
the value range of alpha is 0.3;
the value range of beta is 0.59;
the value range of γ is 0.11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910295284.4A CN110135256B (en) | 2019-04-12 | 2019-04-12 | Method and apparatus for judging horizontal smoke |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910295284.4A CN110135256B (en) | 2019-04-12 | 2019-04-12 | Method and apparatus for judging horizontal smoke |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110135256A CN110135256A (en) | 2019-08-16 |
CN110135256B true CN110135256B (en) | 2021-06-01 |
Family
ID=67569747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910295284.4A Active CN110135256B (en) | 2019-04-12 | 2019-04-12 | Method and apparatus for judging horizontal smoke |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110135256B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6226078B1 (en) * | 1998-04-21 | 2001-05-01 | Focke & Co. (Gmbh & Co.) | Device for checking units composed of a plurality of individual objects, material layers or the like |
CN106697377A (en) * | 2017-01-12 | 2017-05-24 | 龙岩烟草工业有限责任公司 | Transverse cigarette detection method, device and system for cigarette conveying channel |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102507598A (en) * | 2011-11-02 | 2012-06-20 | 苏州科技学院 | High-speed unordered capsule defect detecting system |
CN103010531B (en) * | 2012-11-22 | 2014-08-20 | 湖南中烟工业有限责任公司 | System and method for detecting arrangement confusion and inverted arrangement of cigarettes in cigarette warehouse |
CA2985532A1 (en) * | 2015-08-14 | 2017-02-23 | Philip Morris Products S.A. | An electrically operated smoking device including a system for identifying smoking articles in the device |
CN205022961U (en) * | 2015-10-09 | 2016-02-10 | 安徽理工大学 | Anti - cigarette detecting system of indiscriminate cigarette based on PLC and vision sensing |
CN107203764B (en) * | 2016-03-18 | 2020-08-07 | 北大方正集团有限公司 | Long microblog picture identification method and device |
-
2019
- 2019-04-12 CN CN201910295284.4A patent/CN110135256B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6226078B1 (en) * | 1998-04-21 | 2001-05-01 | Focke & Co. (Gmbh & Co.) | Device for checking units composed of a plurality of individual objects, material layers or the like |
CN106697377A (en) * | 2017-01-12 | 2017-05-24 | 龙岩烟草工业有限责任公司 | Transverse cigarette detection method, device and system for cigarette conveying channel |
Also Published As
Publication number | Publication date |
---|---|
CN110135256A (en) | 2019-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109870461B (en) | Electronic components quality detection system | |
CN108714003B (en) | Fixed desktop maintenance system based on gray measurement | |
CN115239704B (en) | Accurate detection and repair method for wood surface defects | |
CN114937055A (en) | Image self-adaptive segmentation method and system based on artificial intelligence | |
CN107490582B (en) | Assembly line workpiece detection system | |
CN107402221A (en) | A kind of defects of display panel recognition methods and system based on machine vision | |
CN110675443A (en) | Coal briquette area detection method for underground coal conveying image | |
CN110567969B (en) | Image recognition method and system for detecting fabric defects | |
WO2021135675A1 (en) | Automatic bar counting method and apparatus | |
CN109584175B (en) | Image processing method and device | |
CN107563985A (en) | A kind of detection method of infrared image moving air target | |
CN112318485A (en) | Image processing method and device of object sorting system and object sorting system | |
CN112508944A (en) | Leakage detection method applied to underground water supply pipeline of coal mine | |
JP2014119363A (en) | Automatic unevenness detecting device and automatic unevenness detecting method for flat-panel display | |
CN111539927A (en) | Detection process and algorithm of automobile plastic assembly fastening buckle lack-assembly detection device | |
CN112686890A (en) | Artificial board surface defect detection method based on singular value decomposition | |
CN115065708A (en) | Industrial Internet of things based on machine vision detection and control method | |
CN110135256B (en) | Method and apparatus for judging horizontal smoke | |
CN108805854B (en) | Method for rapidly counting tablets and detecting completeness of tablets in complex environment | |
CN109784357B (en) | Image rephotography detection method based on statistical model | |
CN112561875A (en) | Photovoltaic cell panel coarse grid detection method based on artificial intelligence | |
CN109596620A (en) | Product surface shape defect detection method and system based on machine vision | |
CN105427276A (en) | Camera detection method based on image local edge characteristics | |
CN112233111A (en) | Tunnel gap detection method based on digital image processing | |
CN113610185B (en) | Wood color sorting method based on dominant hue identification |
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 |