A device and method for detecting genuine and fake cigarettes based on outer packaging
By designing an automated cigarette recognition detection device and a random forest decision tree algorithm, the problem of inefficient identification of cigarettes in the prior art is solved, and efficient and accurate identification of authenticity and false cigarette packaging paper is achieved.
Patent Information
- Application Number
- CN202010717363.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-23
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2040-07-23
AI Technical Summary
In the prior art, the identification of authenticity between cigarette strips and box wrapping paper requires a lot of manual participation, the detection efficiency is low, and the printing pattern characteristics of different grades are complicated, which makes it difficult to distinguish artificially.
A real and fake cigarette identification and detection device based on outer packaging is designed, including a transmission component, a cigarette transport component and a barcode detector. It uses an automatic sample delivery device and a random forest decision tree algorithm to automatically identify the barcode detection data.
It improves the detection efficiency, reduces manual participation, and improves the accuracy of identifying authentic and fake cigarette strips and box wrapping paper.
Smart Images

Figure CN111891691B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of genuine and fake cigarette identification, and in particular to a genuine and fake cigarette identification and detection device based on outer packaging and a method thereof. Background Art
[0002] Since the production and sale of counterfeit cigarettes has high profits, there are a large number of counterfeit cigarettes produced and sold every year, thereby seeking huge profits. However, commercial activities that do not comply with the law are not allowed. The cigarette strips and box packaging paper trademarks are registered trademarks, and it is not allowed to be printed privately without the permission of the trademark owner. Due to the differences in printing stereotypes, printing equipment, printing inks, and printing processes, there are differences in strips and box packaging paper printed by different printing manufacturers. The printing characteristics can be used to identify the authenticity of strips and box packaging paper.
[0003] In the prior art, the authenticity of cigarette strips and box wrapping paper is mainly distinguished by manual analysis of the color difference, printed font difference, overprint deviation, pattern clarity and other features of the strips and box wrapping paper. However, manual comprehensive analysis of the features of cigarette strips and box wrapping paper is required, and the printed pattern features of the wrapping paper of different brands of strips and boxes of cigarettes are complex, making manual identification difficult. Summary of the invention
[0004] The purpose of the present invention is to provide a genuine and fake cigarette identification and detection device based on outer packaging and a method thereof, so as to solve the problem that the existing cigarette detection consumes a lot of manpower and has low detection efficiency.
[0005] To achieve the above purpose, the present invention mainly provides the following technical solutions:
[0006] In a first aspect, the present invention provides a device for detecting genuine and fake cigarettes based on outer packaging.
[0007] Preferably, the device includes: a conveying component, a cigarette transfer component, a barcode detector and a controller, wherein the conveying component is used to continuously convey cigarettes during the detection process; the cigarette conveying and transfer component is used to perform cigarette picking and transfer; the barcode detector is used to detect the barcode on the outer packaging of cigarettes; and the controller is used to control the orderly operation of the conveying component, the cigarette transfer component and the barcode detector.
[0008] Preferably, the conveying assembly includes a conveyor belt and a first motor, the first motor controls the start and stop of the conveyor belt, and the first motor is connected to a controller.
[0009] Preferably, the cigarette transport assembly comprises: a rotating shaft, a transmission shaft and a rack, the rotating shaft is connected to the transmission shaft via a connecting rod, a gear assembly is provided at the bottom of the transmission shaft, and the gear assembly is meshed with the rack.
[0010] Preferably, a vacuum suction cup is provided on the side of the rack, and the vacuum suction cup is used to absorb the cigarette.
[0011] Preferably, the rotating shaft is connected to a second motor, and the second motor is electrically connected to a controller.
[0012] Preferably, the device further comprises a sample recovery box, and the sample recovery box is used to collect the tested cigarettes.
[0013] In the second aspect, the present invention also provides a method for identifying and detecting genuine and fake cigarettes based on outer packaging, the method comprising: transporting the cigarette pack to be tested to a designated position, and the suction cup sucking up the cigarette pack; the gear assembly drives the rack to move along the axis to take out the cigarette pack; the rotating shaft drives the rack to rotate, and the cigarette pack is transferred to a barcode detection station for barcode detection; after the detection is completed, the rotating shaft drives the rack to continue rotating until the sample recovery station, the suction cup is released, and the device returns to the initial position, and one process is completed, and a reciprocating cycle is performed.
[0014] Preferably, the method for performing barcode detection includes: obtaining barcode detection data of genuine and fake cigarettes detected by a barcode detector; training a random forest decision tree algorithm based on the genuine and fake cigarette detection data to obtain an initial recognition model for genuine and fake cigarette packages; and identifying the barcode of the cigarette package to be detected based on the initial recognition model for genuine and fake cigarette packages to obtain a recognition result.
[0015] The technical solution provided by the present invention has at least the following advantages:
[0016] The present invention provides a genuine and fake cigarette identification and detection device and method based on outer packaging, which utilizes an automatic sample feeding device to automatically take samples and load samples, extracts and trains barcode detection data through automatic data collection, and accurately draws a conclusion on the authenticity of cigarette strips and box packaging paper through a random forest decision tree algorithm, which can greatly improve sample detection efficiency, reduce labor, and improve the accuracy of identifying genuine and fake cigarette strips and box packaging paper. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic structural diagram of a genuine and fake cigarette identification and detection device based on outer packaging provided by the present invention.
[0018] Figure 2 A schematic diagram of the operating state of a genuine and fake cigarette identification and detection device based on outer packaging provided by the present invention.
[0019] Figure 3 This is a schematic diagram of the electrical connection relationship of some devices of a genuine and fake cigarette identification and detection device based on outer packaging provided by the present invention.
[0020] In the figure: conveyor belt 1, rack 2, suction cup 3, rotating shaft 4, second motor 5, transmission shaft 6, gear assembly 7, connecting rod 8, barcode detector 9, sample recovery box 10, cigarette pack to be tested 11, controller 12, first motor 13. DETAILED DESCRIPTION
[0021] The following is a description of the implementation of the present invention by means of specific embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification.
[0022] In the following description, specific details such as specific system structures, interfaces, and technologies are provided for illustration rather than limitation so that the present invention is thoroughly understood. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0023] It has been verified through experiments that the barcode detector can be used to detect the barcode on the cigarette packaging to identify the authenticity. The barcode detection data reflects the differences in printing plates, printing equipment, printing processes and printing inks of different printing manufacturers. However, when using the barcode detector to build a model, there are thousands of cigarette samples and brands across the country, and each sample needs to be tested with hundreds of batches of authentic and fake cigarette samples as data training models. The barcode detector needs to manually hold the samples and test them one by one, which consumes a lot of manpower and time.
[0024] Therefore, this embodiment provides a genuine and fake cigarette identification and detection device based on outer packaging, referring to Figure 1 The device mainly includes: a conveying component, a cigarette transfer component, a barcode detector 9 and a controller 12. The conveying component is used to continuously convey cigarettes during the detection process; the cigarette transfer component is used to perform cigarette picking and transfer; the barcode detector 9 is used to detect the barcode on the cigarette outer packaging; the controller 12 is used to control the orderly operation of the conveying component, the cigarette transfer component and the barcode detector 9. The above outer packaging includes carton-packed cigarettes and box-packed cigarettes.
[0025] Specifically, refer to Figure 3 The conveying assembly includes a conveyor belt 1 and a first motor 13. The first motor 13 controls the start and stop of the conveyor belt 1. The first motor 13 is connected to a controller 12 and is used to control the movement of the conveyor belt 1 according to control instructions of the controller 12, so as to convey the cigarettes to a specified position.
[0026] Furthermore, the cigarette transport assembly includes: a rotating shaft 4, a transmission shaft 6 and a rack 2. The rotating shaft 4 is connected to the transmission shaft 6 through a connecting rod 8. A gear assembly 7 is provided at the bottom of the transmission shaft 6. The gear assembly 7 is meshed with the rack 2 to achieve the linear movement of the rack 2. A suction cup 3 is provided on the side of the rack 2, and the suction cup 3 is used to absorb cigarettes.
[0027] The rotating shaft 4 is connected to the second motor 5, and the second motor 5 is electrically connected to the controller, and the cigarettes are transferred from the conveyor belt 1 to the barcode detection position according to the control instructions of the controller.
[0028] The tested cigarettes need to be recycled, so the device also includes a sample recovery box, which is used to collect the tested cigarettes.
[0029] It should be noted that the conveying component, the cigarette transfer component and the barcode detector 9 are located on the same horizontal line, the sample recovery box 10 is on the same horizontal line as the cigarette transfer component, and is at 90 degrees to the conveying component and the barcode detector 9.
[0030] Specifically, a method for identifying and detecting genuine and fake cigarettes based on outer packaging includes: referring to Figure 2 From a to b in the figure, the first motor 13 is started, the conveyor belt 1 transports the cigarette package 11 to be inspected to the specified position, and the controller controls the suction cup to suck the cigarette package; the gear assembly 7 drives the rack 2 to move along the axis to take the cigarette package out of the station;
[0031] refer to Figure 2 From b to c, the second motor starts, controls the rotating shaft 4 to drive the rack 2 to rotate, and transfers the cigarette pack to the barcode detection station for barcode detection;
[0032] refer to Figure 2 From c to d in the figure, the test is completed, and the rotating shaft 4 drives the rack 2 to continue rotating until the sample recovery station, and the suction cup 3 is released. Figure 2 d to e in the figure, and the device returns to its initial position at the same time. One process is completed and the cycle is repeated until the sample collection is completed.
[0033] The above-mentioned method for barcode detection includes: obtaining the detection data of the genuine and fake cigarette barcodes detected by the barcode detector 9; training the genuine and fake cigarettes using the random forest decision tree algorithm according to the genuine and fake cigarettes detection data to obtain the initial recognition model of the genuine and fake cigarettes packaging; and recognizing the barcode of the cigarette packaging box to be detected according to the initial recognition model of the genuine and fake cigarettes packaging to obtain the recognition result. Among them, the genuine and fake cigarettes detection data include barcode length μm, barcode height μm, reference decoding level, symbol contrast %, edge contrast %, modulation ratio %, reflectivity ratio Rmin / Rmax %, decodability %, PCS symbol contrast, PCS edge contrast, bar min %, bar max %, empty deviation min %, empty deviation max %, E-value min %, E-value max %, P-value min %, P-value max %, bar average %, bar deviation %, brightest value Rmax %, darkest value Rmin % and other detection values.
[0034] The present embodiment provides a device and method for detecting genuine and fake cigarettes based on outer packaging, which utilizes an automatic sample delivery device to automatically take samples and load samples, extracts and trains barcode detection data through automatic data collection, and accurately draws conclusions on the authenticity of cigarette strips and box packaging papers through a random forest decision tree algorithm, which can greatly improve sample detection efficiency, reduce labor, and improve the accuracy of identifying genuine and fake cigarette strips and box packaging papers.
[0035] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention can be implemented using a combination of hardware and software. When software is used, the corresponding functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.
[0036] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for identifying and detecting genuine and fake cigarettes based on outer packaging, characterized in that: The method comprises: The cigarette pack to be tested is transported to a designated location, and the suction cup sucks up the cigarette pack; The gear assembly drives the rack to move along the axis to take out the cigarette pack; The rotating shaft drives the rack to rotate, and the cigarette pack is transferred to the barcode inspection station, and the barcode inspection is performed by a barcode detector; After the test is completed, the rotating shaft drives the rack to continue rotating until the sample recovery station, the suction cup is released, and the device returns to the initial position. A process is completed, and the cycle is repeated; The method for performing barcode detection comprises: Obtain the barcode detection data of genuine and fake cigarettes detected by the barcode detector; reflect the differences in printing plates, printing equipment, printing processes and printing inks of different printing manufacturers through the barcode detection data; wherein the barcode detection data includes barcode length μm, barcode height μm, reference decoding level, symbol contrast %, edge contrast %, modulation ratio %, reflectivity ratio Rmin / Rmax %, decodability %, PCS symbol contrast, PCS edge contrast, bar min%, bar max%, empty deviation min%, empty deviation max%, E-value min%, E-value max%, P-value min%, P-value max%, bar average %, bar deviation %, brightest value Rmax %, darkest value Rmin % detection value; A random forest decision tree algorithm is used to train the genuine and fake cigarette detection data to obtain an initial recognition model for genuine and fake cigarette packaging; The barcode of the cigarette package to be inspected is identified according to the initial identification model for genuine and fake cigarette packages to obtain an identification result.
2. A device for detecting genuine and fake cigarettes based on outer packaging, used to implement the method for detecting genuine and fake cigarettes based on outer packaging as claimed in claim 1, characterized in that: The device comprises: a transmission component, a cigarette transfer component, a barcode detector and a controller. The conveying assembly is used to continuously convey cigarettes during the detection process; The cigarette conveying and transfer assembly is used to take and transfer cigarettes; The barcode detector is used to detect the barcode on the outer packaging of cigarettes; The controller is used to control the orderly operation of the conveying component, the cigarette transfer component and the barcode detector.
3. The device for detecting genuine and fake cigarettes based on outer packaging as claimed in claim 2, characterized in that: The conveying assembly includes a conveyor belt and a first motor, the first motor controls the start and stop of the conveyor belt, and the first motor is connected to a controller.
4. The device for detecting genuine and fake cigarettes based on outer packaging as claimed in claim 2, characterized in that: The cigarette transfer assembly comprises: a rotating shaft, a transmission shaft and a rack. The rotating shaft is connected to the transmission shaft through a connecting rod. A gear assembly is arranged at the bottom of the transmission shaft, and the gear assembly is meshed with the rack.
5. The device for detecting genuine and fake cigarettes based on outer packaging as claimed in claim 4, characterized in that: A vacuum suction cup is arranged on the side of the rack, and the vacuum suction cup is used for sucking cigarettes.
6. The device for detecting genuine and fake cigarettes based on outer packaging as claimed in claim 4, characterized in that: The rotating shaft is connected to a second motor, and the second motor is electrically connected to a controller.
7. The device for detecting genuine and fake cigarettes based on outer packaging as claimed in claim 2, characterized in that: The device also includes a sample recovery box, which is used to collect the tested cigarettes.
