CN-117566173-B - Cigarette appearance detection method, controller, device and storage medium
Abstract
The present disclosure provides a method, controller, apparatus and storage medium for detecting a cigarette appearance. The method for detecting the appearance of the cigarettes comprises the steps of obtaining an image of the cigarettes on the cigarettes transporting equipment, determining the placement state of the cigarettes according to the image of the cigarettes, determining an appearance detection algorithm corresponding to the placement state, and detecting the appearance of the cigarettes through the appearance detection algorithm to determine whether the cigarettes are qualified or not. The appearance detection of the cigarette carton is achieved, so that production cost is reduced, and resource waste is reduced.
Inventors
- WU XIANBIN
- CHEN RONG
- ZHANG WEIWEI
- XU HAITAO
Assignees
- 龙岩烟草工业有限责任公司
Dates
- Publication Date
- 20260508
- Application Date
- 20231115
Claims (11)
- 1.A method of detecting the appearance of a cigarette, comprising: obtaining an image of a cigarette on a cigarette transport device; Determining the placement state of the cigarettes according to the images of the cigarettes; determining an appearance detection algorithm corresponding to the placement state, and Detecting the appearance of the cigarettes through the appearance detection algorithm to determine whether the cigarettes are qualified or not; wherein the placement states include a first placement state and a second placement state, wherein the first placement state is different from the second placement state; The method for determining the appearance detection algorithm corresponding to the placement state comprises the steps of determining that the appearance detection algorithm corresponding to the placement state is a first appearance detection algorithm when the placement state of the cigarette is a first placement state, and determining that the appearance detection algorithm corresponding to the placement state is a second appearance detection algorithm when the placement state of the cigarette is a second placement state, wherein different appearance detection algorithms are used for detecting the characteristics of the cigarette in different placement states so as to detect whether the appearance of the cigarette is qualified or not by adopting the corresponding appearance detection algorithm.
- 2. The method of claim 1, wherein the appearance detection of the cigarettes by the appearance detection algorithm to determine whether the cigarettes are acceptable comprises: under the condition that the placement state of the cigarettes is a first placement state, carrying out appearance detection on the cigarettes through the first appearance detection algorithm; determining that the cigarette is qualified if the appearance of the cigarette meets the appearance requirement in the first appearance detection algorithm, and And under the condition that the appearance of the cigarette does not meet the appearance requirement in the first appearance detection algorithm, determining that the cigarette is unqualified, and issuing a rejection instruction to reject the cigarette.
- 3. The strip cigarette appearance detection method according to claim 1 or 2, wherein the appearance detection of the strip cigarette by the appearance detection algorithm to determine whether the strip cigarette is acceptable comprises: detecting the appearance of the cigarettes through the second appearance detection algorithm under the condition that the placement state of the cigarettes is a second placement state; Determining that the cigarette is qualified if the appearance of the cigarette meets the appearance requirement in the second appearance detection algorithm, and And under the condition that the appearance of the cigarette does not meet the appearance requirement in the second appearance detection algorithm, determining that the cigarette is unqualified, and issuing a rejection instruction to reject the cigarette.
- 4. The strip cigarette appearance detection method of claim 1, wherein determining the placement state of the strip cigarette from the image of the strip cigarette comprises: Matching the image of the cigarette with a preset template, and determining whether the image of the cigarette is successfully matched with the preset template in a template matching area, wherein the preset template comprises a first preset template corresponding to a first placement state and a second preset template corresponding to a second placement state; under the condition that the image of the cigarette is successfully matched with the first preset template in the template matching area, determining the placement state of the cigarette as the first placement state; determining the placement state of the cigarettes as the second placement state under the condition that the images of the cigarettes are successfully matched with the second preset template in the template matching area, and And under the condition that the image of the cigarette is not successfully matched with the first preset template and the second preset template, determining that the cigarette is unqualified.
- 5. The method for detecting the appearance of a cigarette according to claim 1, further comprising: And under the condition that the placement state of the cigarettes is not the first placement state and the second placement state, determining that the cigarettes are unqualified, and issuing a rejection instruction to reject the cigarettes.
- 6. The method for detecting the appearance of a cigarette according to claim 1, wherein: The first placing state is a forward placing state; The second placement state is a reverse placement state.
- 7. A controller, comprising: An image obtaining unit for obtaining an image of a cigarette on a cigarette transporting device; a state determining unit for determining a placement state of the cigarettes according to the images of the cigarettes; an algorithm determining unit for determining an appearance detection algorithm corresponding to the placement state, and The appearance detection unit is used for carrying out appearance detection on the cigarettes through the appearance detection algorithm so as to determine whether the cigarettes are qualified or not; wherein the placement states include a first placement state and a second placement state, wherein the first placement state is different from the second placement state; The algorithm determining unit is used for determining that the appearance detecting algorithm corresponding to the placement state is a first appearance detecting algorithm when the placement state of the cigarette is a first placement state, and determining that the appearance detecting algorithm corresponding to the placement state is a second appearance detecting algorithm when the placement state of the cigarette is a second placement state, wherein different appearance detecting algorithms are used for detecting the characteristics of the cigarette in different placement states so as to detect whether the appearance of the cigarette is qualified or not by adopting the corresponding appearance detecting algorithm.
- 8. A controller, comprising: Memory, and A processor coupled to the memory, the processor configured to perform the method of detecting a smoke appearance of any one of claims 1 to 6 based on instructions stored in the memory.
- 9. A cigarette appearance detecting device comprising the controller according to claim 7 or 8.
- 10. The cigarette appearance detection device of claim 9, further comprising: one or more cameras for taking a picture of the strip of smoke to obtain an image of the strip of smoke and transmitting the image of the strip of smoke to the controller.
- 11. A computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of detecting a smoke appearance as claimed in any one of claims 1 to 6.
Description
Cigarette appearance detection method, controller, device and storage medium Technical Field The disclosure relates to the technical field of tobacco detection, in particular to a method, a controller, a device and a storage medium for detecting the appearance of cigarette. Background In the tobacco industry, the cigarette products of each cigarette factory leave the outlet of the packaging machine and are finally transported to a case sealer through a conveying system such as a lifter, a cigarette conveying machine, a bag discharging machine and the like. Before the cigarettes enter the case sealer for case sealing and forming, appearance quality detection and rejection of the cigarettes are carried out only by the cigarette appearance detection device on the entrance conveying channel of the case sealer. The cigarette appearance detection device is particularly important as the only automatic detection procedure on the whole production line. In the related art, for each direction of the opposite cigarettes, the cigarette appearance detecting device judges defective cigarettes and rejects them. The cigarette outlet directions of the cigarettes produced by the high-speed packaging machine and the medium-speed packaging machine are opposite, so that the cigarettes cannot enter the same box sealing machine at the same time, and the quality detection is carried out by the same set of cigarette appearance detection devices. In the related art, in order to solve the above-mentioned problem, generally rely on independently installing a strip cigarette outward appearance check out test set at packagine machine, detect the strip cigarette product of this packagine machine respectively, perhaps install a strip cigarette steering device, guarantee that the strip cigarette of packagine machine of different models goes out the cigarette direction unanimously, guarantee that the strip cigarette that gets into case sealer strip cigarette outward appearance check out test set only has a direction, rely on current strip cigarette outward appearance check out test set again and detect. The method increases the production cost and causes resource waste. Disclosure of Invention The technical problem solved by the present disclosure is that the method for detecting the appearance of the cigarette in the related art increases the production cost and causes the waste of resources. According to one aspect of the disclosure, there is provided a method of detecting an appearance of a strip cigarette, comprising obtaining an image of the strip cigarette on a strip cigarette transportation device, determining a placement state of the strip cigarette from the image of the strip cigarette, determining an appearance detection algorithm corresponding to the placement state, and performing appearance detection on the strip cigarette by the appearance detection algorithm to determine whether the strip cigarette is acceptable. In some embodiments, the placement states include a first placement state and a second placement state, wherein the first placement state is different from the second placement state. In some embodiments, determining the appearance detection algorithm corresponding to the placed state includes determining the appearance detection algorithm corresponding to the placed state to be a first appearance detection algorithm if the placed state of the cigarette is a first placed state, and determining the appearance detection algorithm corresponding to the placed state to be a second appearance detection algorithm if the placed state of the cigarette is a second placed state. In some embodiments, the appearance detection algorithm is used for detecting the appearance of the cigarettes to determine whether the cigarettes are qualified or not, and the method comprises the steps of carrying out appearance detection on the cigarettes through the first appearance detection algorithm when the placement state of the cigarettes is a first placement state, determining that the cigarettes are qualified when the appearance of the cigarettes meets the appearance requirement in the first appearance detection algorithm, and determining that the cigarettes are unqualified when the appearance of the cigarettes does not meet the appearance requirement in the first appearance detection algorithm, and issuing a rejection instruction to reject the cigarettes. In some embodiments, the appearance detection algorithm is used for detecting the appearance of the cigarettes to determine whether the cigarettes are qualified or not, and the method comprises the steps of carrying out appearance detection on the cigarettes through the second appearance detection algorithm when the placement state of the cigarettes is a second placement state, determining that the cigarettes are qualified when the appearance of the cigarettes meets the appearance requirement in the second appearance detection algorithm, and determining that the cigarettes are unqualified w