A method and system for controlling the breaking of a cigarette rod based on a cigarette making machine

By identifying and controlling the arrangement of cigarette sticks in the cigarette machine, and using rotating rollers and a cigarette breaking device to achieve automated breaking and separation of the cigarette sticks, the problem of long waste cigarette sticks not being automatically recycled when the cigarette machine starts and stops is solved, thus improving operating efficiency and separation accuracy.

CN118402641BActive Publication Date: 2026-05-15HUBEI CHINA TOBACCO INDUSTRY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing cigarette rolling machines generate a large number of waste long cigarette sticks when starting and stopping the equipment. These cannot be automatically recycled and need to be manually broken apart, resulting in low operating efficiency and difficulty, which affects the experience of tobacco recycling.

Method used

A tobacco strip breaking control method and system based on cigarette rolling machine is adopted. By identifying the arrangement of tobacco strips, the rotating roller is driven by motor control parameters to transport the tobacco strips to the tobacco breaking device, and the tobacco breaking device automatically breaks and separates them. Combined with a deep learning model, the presence of tobacco shreds on the rolling paper is identified to achieve automated separation.

Benefits of technology

It achieves automated breaking and separation of tobacco sticks, improves operational efficiency, reduces manual intervention, and enhances the separation accuracy of tobacco shreds and rolling paper, as well as the overall breaking efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118402641B_ABST
    Figure CN118402641B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of cigarette processing, and discloses a cigarette rod breaking control method and system based on a cigarette machine. The motor control parameters are determined according to the arrangement mode of all the to-be-processed cigarette rods in the cigarette rod guide seat, so that the corresponding rotating roller can stably and efficiently convey all the to-be-processed cigarette rods to the cigarette rod breaking device, and the cigarette rod breaking device can break all the to-be-processed cigarette rods, thereby realizing the automation of cigarette rod breaking. In addition, the separated cigarette paper can be identified and processed, so as to further improve the separation precision between the cut tobacco and the cigarette paper, and effectively improve the overall breaking efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of cigarette processing technology, and specifically relates to a method and system for controlling the breaking of cigarette packs based on a cigarette rolling machine. Background Technology

[0002] As a key piece of equipment in the tobacco manufacturing industry, cigarette rolling machines are mainly used to automatically roll tobacco into tobacco strips and further process them into finished cigarettes. This process involves multiple steps, such as tobacco feeding, tobacco forming, tobacco strip rolling, cigarette cutting, filter tip installation, cigarette inspection, and tobacco packaging.

[0003] In the cigarette rolling process mentioned above, the cigarette rolling machine can wrap the tobacco strips with cigarette paper to form a preliminary cigarette strip. However, the current ZJ17 cigarette rolling machine generates a large number of waste long cigarette strips when the equipment starts and stops. These long cigarette strips cannot be directly recycled and need to be manually broken and recycled by operators using knives or conventional splitting equipment to separate the tobacco and rolling paper. This method is not only inefficient but also difficult to operate, which affects the overall tobacco recycling experience. Summary of the Invention

[0004] This application addresses the issue of long, waste cigarette sticks generated during the start-up and shutdown of cigarette rolling machines. These long cigarette sticks cannot be directly recycled and require manual cutting and recycling by operators using knives to separate the tobacco and rolling paper. This method is not only inefficient but also difficult, thus affecting the overall tobacco recycling experience. The application proposes a cigarette stick cutting and breaking control method and system based on cigarette rolling machines, the technical solution of which is as follows:

[0005] In a first aspect, embodiments of this application provide a method for controlling the breaking of cigarette sticks based on a cigarette rolling machine. The method is applied to a cigarette stick breaking device, which includes a cigarette breaking device, a first rotating roller, a second rotating roller, a first motor for controlling the first rotating roller, a second motor for controlling the second rotating roller, a cigarette stick guide seat, a protective cover, and a relay. The first motor, the second motor, and the cigarette stick guide seat are all mounted on the cigarette breaking device. The first rotating roller is positioned above the first motor, and the second rotating roller is positioned above the second motor. The smoke outlet of the cigarette stick guide seat is located between the first and second rotating rollers. The protective cover is positioned above the first and second rotating rollers. The normally open contact of the first motor and the relay forms a circuit, and the normally open contact of the second motor and the relay also forms a circuit. The method includes:

[0006] When at least two cigarette sticks to be processed are identified in the cigarette stick guide seat, the arrangement of all cigarette sticks to be processed is determined;

[0007] The motor control parameters are obtained based on the arrangement of all the cigarette sticks to be processed, and when the protective cover is detected to be in the closed state, a high-level signal is output to the relay to make the normally open contact of the relay switch to the conducting state.

[0008] Based on the motor control parameters, the first motor and the second motor are controlled respectively so that the first rotating roller and the second rotating roller convey all the tobacco strips to be processed to the tobacco breaking device, and the tobacco breaking device breaks all the tobacco strips to be processed.

[0009] The paper separating all the tobacco sticks to be processed by the tobacco breaking device is identified and processed, and when tobacco shreds are detected on the paper, the tobacco shreds on the paper are removed.

[0010] In one alternative to the first aspect, the arrangement of all the cigarette sticks to be processed is determined, including:

[0011] Obtain an image of all cigarette sticks to be processed, and identify the center point coordinates of each cigarette stick to be processed in the image;

[0012] Divide the coordinates of all center points into at least two sets of coordinate intervals, and use the number of sets of all coordinate intervals as the number of rows of cigarette packs.

[0013] The number of cigarette sticks in each row is counted based on the x-coordinates of all center points. Based on the number of rows of cigarette sticks and the number of cigarette sticks in each row, the arrangement of all cigarette sticks to be processed is obtained.

[0014] In another alternative to the first aspect, the motor control parameters are obtained based on the arrangement of all the cigarette strips to be processed, including:

[0015] When the number of cigarette sticks corresponding to any two rows is the same, the number of cigarette sticks is taken as the number of cigarette stick columns, and the motor speed corresponding to the number of cigarette stick rows and the number of cigarette stick columns is retrieved from the preset database. The preset database includes at least two sets of permutations and combinations and the motor speed corresponding to each set of permutations and combinations. Each set of permutations and combinations includes the number of cigarette stick rows and the number of cigarette stick columns.

[0016] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor; wherein the preset first direction and the preset second direction are opposite directions.

[0017] In another alternative to the first aspect, the motor control parameters are obtained based on the arrangement of all the cigarette strips to be processed, and further include:

[0018] When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated.

[0019] When any difference is detected to be within the preset difference range, the row number corresponding to the minimum number of cigarette sticks is counted.

[0020] When the row number corresponding to the minimum number of cigarette sticks is detected to be within the preset number range, the minimum number of cigarette sticks is taken as the column number of cigarette sticks, and the motor speed corresponding to the number of cigarette stick rows and columns is retrieved from the preset database;

[0021] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor.

[0022] In another alternative to the first aspect, the motor control parameters are obtained based on the arrangement of all the cigarette strips to be processed, and further include:

[0023] When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated.

[0024] When any difference is detected that is not within the preset difference range, the maximum difference between the number of cigarette sticks corresponding to any two adjacent rows is determined.

[0025] The maximum difference and the preset ratio coefficient are calculated as a ratio, and the ratio result is summed with the minimum number of cigarette sticks to obtain the sum result;

[0026] The summation result is used as the number of columns of the cigarette pack, and the motor speed corresponding to the number of rows and columns of the cigarette pack is retrieved from the preset database.

[0027] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor.

[0028] In another alternative to the first aspect, the paper strips separated from all the tobacco sticks to be processed by the tobacco breaking device are identified and processed, including:

[0029] The paper roll image containing the paper separated from all the tobacco sticks to be processed by the tobacco breaking device is obtained, and the paper roll image and the tobacco shred images corresponding to all the tobacco sticks to be processed are input into a preset deep learning model to obtain the tobacco shred presence probability; wherein, the preset deep learning model is trained by at least two paper roll sample images, the standard tobacco shred image corresponding to each paper roll sample image, and the standard presence probability.

[0030] When the probability of tobacco shreds being present exceeds a preset probability threshold, it is determined that tobacco shreds are present on the rolling paper.

[0031] If the probability of tobacco shreds being present does not exceed a preset probability threshold, it is determined that there are no tobacco shreds on the roll.

[0032] In another alternative of the first aspect, the cigarette bar breaking device further includes a limit switch, which is set on the circuit formed by the normally open contacts of the first motor and the relay, and the limit switch is also set on the circuit formed by the normally open contacts of the second motor and the relay.

[0033] Secondly, embodiments of this application provide a cigarette bar breaking control system based on a cigarette rolling machine. The system is applied to a cigarette bar breaking device, which includes a cigarette breaking device, a first rotating roller, a second rotating roller, a first motor for controlling the first rotating roller, a second motor for controlling the second rotating roller, a cigarette bar guide seat, a protective cover, and a relay. The first motor, the second motor, and the cigarette bar guide seat are all mounted on the cigarette breaking device. The first rotating roller is positioned above the first motor, and the second rotating roller is positioned above the second motor. The smoke outlet of the cigarette bar guide seat is located between the first rotating roller and the second rotating roller. The protective cover is positioned above the first rotating roller and the second rotating roller. The normally open contact of the first motor and the relay forms a circuit, and the normally open contact of the second motor and the relay also forms a circuit. The system includes:

[0034] The first processing module is used to determine the arrangement of all cigarette sticks to be processed when at least two cigarette sticks to be processed are identified in the cigarette stick guide seat;

[0035] The second processing module is used to obtain motor control parameters based on the arrangement of all the cigarette sticks to be processed, and when the protective cover is detected to be in a closed state, it outputs a high-level signal to the relay so that the normally open contact of the relay is switched to a conducting state.

[0036] The third processing module is used to control the first motor and the second motor respectively based on the motor control parameters, so that the first rotating roller and the second rotating roller convey all the tobacco strips to be processed to the tobacco breaking device, and the tobacco breaking device breaks all the tobacco strips to be processed.

[0037] The fourth processing module is used to identify the paper strips separated from all the tobacco sticks to be processed by the tobacco breaking device, and to remove the tobacco strips when tobacco strips are detected on the paper strips.

[0038] Thirdly, this application also provides a cigarette bar breaking control system based on a cigarette machine, including a processor and a memory;

[0039] The processor is connected to the memory;

[0040] Memory, used to store executable program code;

[0041] The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the cigarette bar breaking control method based on the cigarette machine provided by the first aspect or any implementation of the first aspect of the embodiments of this application.

[0042] Fourthly, embodiments of this application provide a computer storage medium storing a computer program, which includes program instructions. When executed by a processor, the program instructions can implement the cigarette bar breaking control method based on a cigarette machine provided by the first aspect or any implementation of the first aspect of this application.

[0043] In this embodiment, when the cigarette sticks produced by the cigarette rolling machine are broken apart, the arrangement of all the cigarette sticks to be processed is determined when at least two cigarette sticks to be processed are identified in the cigarette stick guide seat; motor control parameters are obtained based on the arrangement of all the cigarette sticks to be processed, and when the protective cover is detected to be in a closed state, a high-level signal is output to the relay to make the normally open contact of the relay switch to a conducting state; the first motor and the second motor are controlled based on the motor control parameters to make the first rotating roller and the second rotating roller transport all the cigarette sticks to be processed to the cigarette breaking device, and the cigarette breaking device breaks apart all the cigarette sticks to be processed; the paper separated from all the cigarette sticks to be processed by the cigarette breaking device is identified, and when tobacco shreds are detected on the paper, the tobacco shreds on the paper are removed. The motor control parameters are determined based on the arrangement of all the tobacco sticks to be processed in the tobacco stick guide seat, so that the corresponding rotating rollers can stably and efficiently transport all the tobacco sticks to be processed to the tobacco breaking device, and the tobacco breaking device can break all the tobacco sticks to be processed, realizing the automation of tobacco stick breaking; and the separated paper can also be identified to further improve the separation accuracy between tobacco and paper, thereby effectively improving the overall breaking efficiency. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 A flowchart illustrating an overall method for controlling the breaking of cigarette strips based on a cigarette rolling machine, provided in an embodiment of this application;

[0046] Figure 2 This is a schematic diagram illustrating the effect of a cigarette bar breaking device provided in an embodiment of this application;

[0047] Figure 3 A schematic diagram illustrating the effect of another tobacco strip breaking device provided in this application embodiment;

[0048] Figure 4 A schematic diagram of a cigarette bar breaking control system based on a cigarette rolling machine is provided for an embodiment of this application;

[0049] Figure 5 This is a schematic diagram of another cigarette bar breaking control system based on a cigarette machine, provided as an embodiment of this application. Detailed Implementation

[0050] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0051] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The following description provides multiple embodiments of this application, which can be substituted or combined with each other. Therefore, this application can also be considered to include all possible combinations of the same and / or different embodiments described. Thus, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then this application should also be considered to include embodiments containing one or more other possible combinations of A, B, C, and D, even if such embodiments are not explicitly described in the following text.

[0052] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the described elements without departing from the scope of this application. Various processes or components may be appropriately omitted, substituted, or added to the examples. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.

[0053] Please see Figure 1 , Figure 1 The diagram shows an overall flowchart of a cigarette bar breaking control method based on a cigarette rolling machine, as provided in an embodiment of this application.

[0054] like Figure 1 As shown, the cigarette bar breaking control method based on a cigarette rolling machine may include at least the following steps:

[0055] Step 102: When at least two cigarette sticks to be processed are identified in the cigarette stick guide seat, determine the arrangement of all cigarette sticks to be processed.

[0056] In this embodiment, the tobacco strip breaking control method based on a cigarette rolling machine can be applied to, but is not limited to, a control terminal. This control terminal establishes a connection with a tobacco strip breaking device to control the device to break up the waste long tobacco strips generated during the start-up and shutdown of the cigarette rolling machine. This effectively and quickly separates the tobacco from the rolling paper, avoiding the inefficiencies and operational difficulties caused by manual labor. The tobacco strip breaking device can include at least a tobacco breaking device, a first rotating roller, a second rotating roller, a first motor for controlling the first rotating roller, a second motor for controlling the second rotating roller, a tobacco strip guide seat, a protective cover, and a relay. The tobacco breaking device receives the waste long tobacco strips generated by the cigarette rolling machine through the feed inlet and uses a built-in control program to control the cutting mechanism to automatically break up the waste long tobacco strips (i.e., cut the rolling paper surface of the waste long tobacco strips). It also uses a built-in control program to control the separation mechanism to automatically separate the tobacco from the rolling paper, and outputs the separated tobacco and rolling paper through the discharge outlet. It should be noted that the tobacco breaking device (including the cutting mechanism and the separation mechanism mentioned above) mentioned in the embodiments of this application can be a conventional device used by those skilled in the art to break up waste long tobacco sticks. For example, but not limited to, the tobacco breaking machine, tobacco crusher or tobacco grinder and other equipment and their working principles can be referred to in the art. It is mainly used to break up waste long tobacco sticks and separate tobacco and cigarette paper. It will not be described in detail here.

[0057] The first and second motors (both can be understood as DC brushless geared motors) can be mounted on the surface of the smoke-breaking device, for example, but not limited to, symmetrically arranged on both sides of the feed inlet of the smoke-breaking device. Based on the motor control parameters output by the control terminal, they respectively control the rotation of the first rotating roller above the first motor and the second rotating roller above the second motor, thereby allowing the waste smoke sticks to be conveyed through the gap between the first and second rotating rollers to the feed inlet of the smoke-breaking device. Here, the first and second motors can also be equipped with their own respective motor controllers, which receive the motor control parameters output by the control terminal and control the first and second motors accordingly, but are not limited to this.

[0058] The cigarette bar guide seat can also be installed on the surface of the cigarette breaking device. The outlet of the cigarette bar guide seat is located between the first rotating roller and the second rotating roller. The inlet of the cigarette bar guide seat can be used by a worker to place the waste long cigarette bars produced by the cigarette rolling machine, or by other automatic control equipment to place the waste long cigarette bars produced by the cigarette rolling machine. The waste long cigarette bars can be automatically conveyed from the inlet to the outlet through a built-in conveying mechanism, but is not limited to this. Of course, the cigarette bar guide seat can also convey the waste long cigarette bars from the inlet to the outlet according to the control commands output by the control terminal, and is not limited to this.

[0059] See also: Figure 2 The diagram shown illustrates the effect of a cigarette bar breaking device provided in an embodiment of this application. Figure 2 As shown, the cigarette bar breaking device may include a cigarette bar breaking device, two motors symmetrically arranged on both sides of the feed inlet of the cigarette bar breaking device, two rotating rollers arranged on the motors, and a cigarette bar guide seat arranged on the cigarette bar breaking device with the cigarette outlet located between the two rotating rollers. The waste long cigarette bars generated when the cigarette machine starts and stops can pass through the cigarette bar guide seat and the gap between the two rotating rollers in sequence to reach the feed inlet of the cigarette bar breaking device, and the cigarette bar breaking device automatically realizes the breaking and separation of the waste long cigarette bars.

[0060] The protective cover can also be installed on the surface of the smoke-breaking device, and its inner cavity can be used to enclose the first and second rotating rollers. This means it is positioned above the first and second rotating rollers to protect them and effectively prevent safety hazards to workers. The protective cover can have an open and a closed state (the state can be manually controlled or controlled by a control terminal). When the protective cover is open, the inner cavity formed by the cover cannot enclose the first and second rotating rollers, indicating that workers need to inspect and maintain them, and the smoke-breaking process cannot be performed. When the protective cover is closed, the inner cavity formed by the cover can enclose the first and second rotating rollers, indicating that there is no immediate plan to inspect and maintain them, and the smoke-breaking process can proceed normally.

[0061] One end of the relay can be connected to the positive output terminal of the control terminal to receive the level signal output by the control terminal. The other end can be connected, but is not limited to, to the ground terminal or the negative input terminal of the control terminal. When the control terminal outputs a high-level signal to the relay, the relay can be energized, thereby causing the normally open contact of the relay to change from the open state to the closed state. Here, the normally open contact of the relay can form a circuit with the first motor and the power supply, and also with the second motor and the power supply. When the normally open contact of the relay is in the open state, the first motor and the second motor cannot be in the working state, that is, the waste long cigarette bar cannot be conveyed to the feed inlet of the smoke breaking device through the first rotating roller and the second rotating roller. When the normally open contact of the relay changes from the open state to the closed state, the first motor and the second motor can be in the working state, that is, the waste long cigarette bar can be conveyed to the feed inlet of the smoke breaking device through the first rotating roller and the second rotating roller.

[0062] Of course, the cigarette bar breaking device in this embodiment may also include a limit switch. This limit switch can be configured on the circuit formed by the normally open contact of the relay, the first motor, and the power supply, and may also be configured on the circuit formed by the normally open contact of the relay, the second motor, and the power supply. Here, the limit switch may, but is not limited to, be controlled by a worker. For example, when a worker needs to use the cigarette bar breaking device to break up waste cigarette bars, they can press a button corresponding to the limit switch at a point on the touchscreen or the surface of the breaking device to change the limit switch from an open state to a closed state. This, combined with the normally open contact of the relay, allows the first and second motors to operate.

[0063] See also: Figure 3 The diagram shown illustrates the effect of another tobacco strip breaking device provided in this application embodiment. Figure 3 As shown, the first motor (M1 in the figure) of the cigarette bar breaking device can be connected to the corresponding motor controller (A1 in the figure), and the second motor (M2 in the figure) can be connected to the corresponding motor controller (A2 in the figure). The negative terminal of the power supply of the motor controller (A1 in the figure) can be connected to the negative terminal of the 24-volt power supply, and the positive terminal of the power supply of the motor controller (A1 in the figure) can be connected to the positive terminal of the 24-volt power supply through the limit switch (S1 in the figure) and the normally open contact of the relay (S2 in the figure). The negative terminal of the power supply of the motor controller (A2 in the figure) can be connected to the negative terminal of the 24-volt power supply, and the positive terminal of the power supply of the motor controller (A2 in the figure) can be connected to the positive terminal of the 24-volt power supply through the limit switch (S1 in the figure) and the normally open contact of the relay (S2 in the figure).

[0064] It is also understandable that the control terminal determines the motor control parameters based on the arrangement of all the tobacco sticks to be processed in the tobacco stick guide seat, so that the corresponding rotating rollers can stably and efficiently transport all the tobacco sticks to be processed to the tobacco breaking device, and the tobacco breaking device can break all the tobacco sticks to be processed, thereby realizing the automation of tobacco stick breaking; and can also identify the separated paper to further improve the separation accuracy between tobacco and paper, thereby effectively improving the overall breaking efficiency.

[0065] Specifically, when breaking up the waste long cigarette sticks generated when the cigarette machine starts and stops, the control terminal can, but is not limited to, acquire images of the cigarette sticks in the cigarette stick guide seat through an industrial camera, and determine whether there are at least two cigarette sticks to be processed in the current cigarette stick guide seat by performing cigarette stick recognition processing on the cigarette stick image, that is, whether it is necessary to break up the waste long cigarette sticks.

[0066] It is understandable that when the presence of at least two unprocessed cigarette sticks within the cigarette stick guide seat is identified through the cigarette stick image, it indicates that the waste long cigarette sticks need to be broken open. Furthermore, the arrangement of all unprocessed cigarette sticks within the cigarette stick guide seat can be determined based on, but is not limited to, the cigarette stick image. Here, the arrangement of all unprocessed cigarette sticks can be understood as the number of rows of cigarette sticks divided into which all unprocessed cigarette sticks are divided, and the number of cigarette sticks corresponding to each row. In this embodiment, the arrangement of all unprocessed cigarette sticks is not limited to a regular arrangement (e.g., m*n) or an irregular arrangement (e.g., two rows, with m and n cigarette sticks corresponding to each row).

[0067] As an optional embodiment of this application, determining the arrangement of all cigarette sticks to be processed includes:

[0068] Obtain an image of all cigarette sticks to be processed, and identify the center point coordinates of each cigarette stick to be processed in the image;

[0069] Divide the coordinates of all center points into at least two sets of coordinate intervals, and use the number of sets of all coordinate intervals as the number of rows of cigarette packs.

[0070] The number of cigarette sticks in each row is counted based on the x-coordinates of all center points. Based on the number of rows of cigarette sticks and the number of cigarette sticks in each row, the arrangement of all cigarette sticks to be processed is obtained.

[0071] Specifically, when determining the arrangement of all the cigarette sticks to be processed, the control terminal can, but is not limited to, acquiring an image of all the cigarette sticks to be processed using the aforementioned industrial camera, and identifying the contour features corresponding to each cigarette stick from the image. It is understood that the industrial camera used to acquire the cigarette stick image can, but is not limited to, be positioned in the direction of the cigarette stick conveying pipeline of the cigarette stick guide seat, and the industrial camera can be oriented towards the inside of the cigarette stick guide seat to more accurately capture an image containing all the cigarette sticks to be processed.

[0072] Next, after identifying the contour features corresponding to each cigarette stick to be processed, the control terminal can also, but is not limited to, establish a Cartesian coordinate system on the plane where the cigarette stick image is located, and determine the corresponding center point coordinates in the Cartesian coordinate system according to the contour features corresponding to each cigarette stick to be processed. The center point coordinates of each cigarette stick to be processed are the center point coordinates corresponding to the corresponding contour features.

[0073] Next, after determining the center point coordinates of each cigarette stick to be processed, the control terminal can further divide the data into intervals based on the ordinates of all center point coordinates. This allows for the grouping of similar or identical ordinates into the same coordinate interval. Specifically, within any given coordinate interval, the difference between any two ordinates must be less than a preset threshold. The number of intervals corresponding to all coordinate intervals can then be used as the number of rows for all cigarette sticks to be processed. It is understandable that after determining all coordinate intervals, the control terminal can also sort these intervals in ascending order. For example, but not limited to, rows with coordinate interval [1-2] as the first row, rows with coordinate interval [2-3] as the second row, and rows with coordinate interval [3-4] as the third row.

[0074] Next, the control terminal can count the number of corresponding horizontal coordinates based on all vertical coordinates in each coordinate interval, and use the number of horizontal coordinates as the number of cigarette sticks in that coordinate interval. The number of cigarette stick rows mentioned above, as well as the number of cigarette sticks counted in each row, are used as the arrangement of all cigarette sticks to be processed.

[0075] Step 104: Obtain motor control parameters based on the arrangement of all the cigarette sticks to be processed, and when the protective cover is detected to be in the closed state, output a high-level signal to the relay so that the normally open contact of the relay is switched to the conducting state.

[0076] Specifically, after obtaining the arrangement of all the cigarette sticks to be processed, the control terminal can obtain the motor control parameters of the first and second motors based on the arrangement. For example, but not limited to, when the number of cigarette sticks corresponding to any two rows in the arrangement is the same, it indicates that the arrangement of all the cigarette sticks to be processed conforms to an m*n array. Therefore, any number of cigarette sticks can be directly used as the column number, and the motor speed corresponding to the column number and row number can be retrieved from a preset database. Here, the preset data may include at least two manually set arrangement combinations, and the standard motor speed corresponding to each arrangement combination after manual testing. Each arrangement combination may specifically include the number of cigarette stick columns and the number of cigarette stick rows.

[0077] Furthermore, after retrieving the motor speed from the preset database, to ensure that the first and second rotating rollers can properly transport the tobacco strips to be processed to the feed inlet of the tobacco breaking device, a preset first direction and the motor speed can be used as the motor control parameters corresponding to the first motor, and a preset second direction and the motor speed can be used as the motor control parameters corresponding to the second motor. The preset first and second directions are opposite, meaning that the combined rotation of the first and second rotating rollers is used to transport the tobacco strips to be processed to the feed inlet of the tobacco breaking device. Here, the motor control parameters may also include parameters such as control time and control frequency, and the control time and control frequency corresponding to the first motor and the control time and control frequency corresponding to the second motor can be consistent, and are not limited to these.

[0078] Furthermore, after obtaining the motor control parameters corresponding to each motor, the control terminal can also detect and process the status of the protective cover to avoid safety hazards caused by the first and second rotating rollers. Here, when the status of the protective cover is manually operated, the control terminal can, but is not limited to, using the aforementioned industrial camera to quickly identify whether the protective cover is in an open or closed state; when the status of the protective cover is controlled by an automatic program, the control terminal can, but is not limited to, detect whether it has received user input operations or commands, so as to identify whether the protective cover is in an open or closed state through such operations or commands.

[0079] Furthermore, when the protective cover is confirmed to be closed, it indicates that the cigarette bar breaking process can proceed normally. The control terminal then outputs a high-level signal to the relay circuit, causing the normally open contact of the relay to switch from an open to a closed state after the relay is energized. This connects the first motor to the power supply circuit, ensuring the first motor is in normal working condition, and also connects the second motor to the power supply circuit, ensuring the second motor is also in normal working condition. Conversely, when the protective cover is confirmed to be open, it indicates that the cigarette bar breaking process cannot proceed. The control terminal can then promptly send a check signal to personnel to determine if there are any abnormalities in the protective cover, thus preventing further losses.

[0080] Understandably, when the control terminal is not certain that the protective cover is closed, it can continuously output a low-level signal to the circuit containing the relay, that is, the normally open contact of the relay remains open, in order to avoid additional power cost losses.

[0081] As another optional embodiment of this application, obtaining the motor control parameters based on the arrangement of all the cigarette strips to be processed further includes:

[0082] When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated.

[0083] When any difference is detected to be within the preset difference range, the row number corresponding to the minimum number of cigarette sticks is counted.

[0084] When the row number corresponding to the minimum number of cigarette sticks is detected to be within the preset number range, the minimum number of cigarette sticks is taken as the column number of cigarette sticks, and the motor speed corresponding to the number of cigarette stick rows and columns is retrieved from the preset database;

[0085] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor.

[0086] Specifically, when determining the motor control parameters corresponding to each motor based on the arrangement, if the control terminal detects that the number of cigarette sticks corresponding to any two rows in the arrangement is inconsistent, it indicates that the arrangement of all cigarette sticks to be processed does not conform to the m*n array. Then, the difference between the number of cigarette sticks corresponding to any two adjacent rows can be calculated. This difference can be used to determine whether there is a large difference in the number of cigarette sticks between any two adjacent rows. When any difference is detected to be within the preset difference range, it indicates that the difference in the number of cigarette sticks between any two adjacent rows is small. Then, the number of rows corresponding to the smallest number of cigarette sticks can be counted.

[0087] Understandably, when the row number corresponding to the smallest number of cigarette sticks is detected to be within a preset range, it indicates that the difference in the number of cigarette sticks in each row among all the cigarette sticks to be processed is not significant. Therefore, the smallest number of cigarette sticks can be used as the column number, and the motor speed corresponding to the column number and row number can be retrieved from a preset database. Here, when the row number corresponding to the smallest number of cigarette sticks is detected to be outside the preset range, the row number corresponding to the second smallest number of cigarette sticks can be counted to determine whether the second smallest number of cigarette sticks is within the preset range. When the second smallest number of cigarette sticks is detected to be within the preset range, the second smallest number of cigarette sticks can be used as the column number, but this is not a limitation.

[0088] Next, after querying the motor speed in the preset database, in order to ensure that the first rotating roller and the second rotating roller can transport the tobacco strips to be processed to the feed inlet of the tobacco breaking device normally, the preset first direction and the motor speed can be used as the motor control parameters corresponding to the first motor, and the preset second direction and the motor speed can be used as the motor control parameters corresponding to the second motor. The preset first direction and the preset second direction are opposite directions, that is, the combined rotation of the first rotating roller and the second rotating roller is used to transport the tobacco strips to be processed to the feed inlet of the tobacco breaking device.

[0089] As another optional embodiment of this application, obtaining the motor control parameters based on the arrangement of all the cigarette strips to be processed further includes:

[0090] When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated.

[0091] When any difference is detected that is not within the preset difference range, the maximum difference between the number of cigarette sticks corresponding to any two adjacent rows is determined.

[0092] The maximum difference and the preset ratio coefficient are calculated as a ratio, and the ratio result is summed with the minimum number of cigarette sticks to obtain the sum result;

[0093] The summation result is used as the number of columns of the cigarette pack, and the motor speed corresponding to the number of rows and columns of the cigarette pack is retrieved from the preset database.

[0094] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor.

[0095] Specifically, when determining the motor control parameters corresponding to each motor based on the arrangement, if the control terminal detects that the number of cigarette sticks corresponding to any two rows in the arrangement is inconsistent, it indicates that the arrangement of all cigarette sticks to be processed does not conform to the m*n array. Then, the difference between the number of cigarette sticks corresponding to any two adjacent rows can be calculated. This difference can be used to determine whether there is a large difference in the number of cigarette sticks between any two adjacent rows. When any difference is detected to be outside the preset difference range, it indicates that the difference in the number of cigarette sticks between any two adjacent rows may be large. Then, the maximum difference between the number of cigarette sticks corresponding to any two adjacent rows can be determined.

[0096] Next, after obtaining the maximum difference, to ensure the stability of each row of cigarette sticks during transportation (i.e., to prevent a row of cigarette sticks from slipping due to the rotation speed of the rotating rollers), the control terminal can calculate the ratio of the maximum difference to a preset proportional coefficient. This preset proportional coefficient can be, but is not limited to, 2. The ratio result is then summed with the minimum number of cigarette sticks to obtain the sum. It is understood that the result calculated in the above manner can comprehensively consider both the maximum and minimum number of cigarette sticks in each row, and can also ensure that any row of cigarette sticks does not fall off during transportation through the gap between the first and second rotating rollers, but is not limited to this.

[0097] It should also be noted that, in this embodiment of the application, the distance between the first rotating roller and the second rotating roller can be further determined based on the arrangement of all the cigarette sticks to be processed, so as to further ensure the stability of each row of cigarette sticks during transportation.

[0098] Step 106: Control the first motor and the second motor respectively based on the motor control parameters so that the first rotating roller and the second rotating roller convey all the tobacco strips to be processed to the tobacco breaking device, and the tobacco breaking device breaks all the tobacco strips to be processed.

[0099] Specifically, after determining the motor control parameters corresponding to the first motor and the second motor, the control terminal can send the motor control parameters to the corresponding motors, so that the first motor controls the first rotating roller to rotate according to the corresponding motor control parameters, and the second motor controls the second rotating roller to rotate according to the corresponding motor control parameters. The combined rotation of the first and second rotating rollers can transport all the tobacco strips to be processed to the tobacco breaking device, and the tobacco breaking device can then perform the breaking and separation of all the tobacco strips to be processed.

[0100] Step 108: Identify and process the paper separated from all the tobacco sticks to be processed by the tobacco breaking device, and remove the tobacco shreds when tobacco shreds are detected on the paper.

[0101] Specifically, after the tobacco breaking device completes the breaking and separation of all the tobacco sticks to be processed, in order to ensure the separation effect between the tobacco and the cigarette paper, the control terminal can, but is not limited to, acquire an image of the cigarette paper containing all the tobacco sticks to be processed separated by the tobacco breaking device through an industrial camera, so as to determine whether there are residual tobacco in the separated cigarette paper by recognizing the image of the cigarette paper.

[0102] Furthermore, after obtaining the image of the rolled paper containing the paper, the control terminal can input the rolled paper image and the tobacco shred images corresponding to all the tobacco sticks to be processed into a preset deep learning model, so as to more accurately determine whether there are residual tobacco shreds in the separated rolled paper through neural network prediction. It is understood that the tobacco shred images corresponding to all the tobacco sticks to be processed can be, but are not limited to, being obtained by taking pictures of the tobacco shreds separated by the tobacco breaking device by an industrial camera. The preset deep learning model can be trained by at least two manually set sample images of rolled paper, the standard tobacco shred image corresponding to each sample image of rolled paper, and manually set standard existence probabilities. Moreover, the preset deep learning model can predict the probability value used to characterize whether there are residual tobacco shreds, that is, any value in the range of 0-1.

[0103] Furthermore, when the probability of tobacco shreds output by the preset deep learning model exceeds the preset probability threshold, it indicates that there are still residual tobacco shreds in the separated rolling paper, thus confirming the presence of tobacco shreds on the rolling paper. It can also issue a removal signal to the staff, but is not limited to, to promptly remind the staff to remove the tobacco shreds from the rolling paper. When the probability of tobacco shreds output by the preset deep learning model does not exceed the preset probability threshold, it indicates that there are no residual tobacco shreds in the separated rolling paper, thus confirming the absence of tobacco shreds on the rolling paper.

[0104] Please see Figure 4 , Figure 4 A schematic diagram of a cigarette bar breaking control system based on a cigarette rolling machine, provided in an embodiment of this application, is shown.

[0105] The cigarette bar breaking control system based on a cigarette rolling machine can be applied to a cigarette bar breaking device. The cigarette bar breaking device includes a breaking device, a first rotating roller, a second rotating roller, a first motor for controlling the first rotating roller, a second motor for controlling the second rotating roller, a cigarette bar guide seat, a protective cover, and a relay. The first motor, the second motor, and the cigarette bar guide seat are all mounted on the breaking device. The first rotating roller is positioned above the first motor, and the second rotating roller is positioned above the second motor. The smoke outlet of the cigarette bar guide seat is located between the first and second rotating rollers. The protective cover is positioned above the first and second rotating rollers. The normally open contacts of the first motor and the relay form a circuit, and the normally open contacts of the second motor and the relay also form a circuit. Figure 4 As shown, the cigarette bar breaking control system based on the cigarette rolling machine may include at least a first processing module 401, a second processing module 402, a third processing module 403, and a fourth processing module 404, wherein:

[0106] The first processing module 401 is used to determine the arrangement of all cigarette sticks to be processed when at least two cigarette sticks to be processed are identified in the cigarette stick guide seat.

[0107] The second processing module 402 is used to obtain motor control parameters according to the arrangement of all the cigarette sticks to be processed, and when the protective cover is detected to be in a closed state, it outputs a high-level signal to the relay so that the normally open contact of the relay is switched to a conducting state.

[0108] The third processing module 403 is used to control the first motor and the second motor respectively based on the motor control parameters, so that the first rotating roller and the second rotating roller convey all the tobacco strips to be processed to the tobacco breaking device, and the tobacco breaking device breaks all the tobacco strips to be processed.

[0109] The fourth processing module 404 is used to identify and process the paper separated from all the tobacco sticks to be processed by the tobacco breaking device, and to remove the tobacco shreds on the paper when tobacco shreds are detected on the paper.

[0110] In some possible embodiments, the arrangement of all the cigarette sticks to be processed is determined, including:

[0111] Obtain an image of all cigarette sticks to be processed, and identify the center point coordinates of each cigarette stick to be processed in the image;

[0112] Divide the coordinates of all center points into at least two sets of coordinate intervals, and use the number of sets of all coordinate intervals as the number of rows of cigarette packs.

[0113] The number of cigarette sticks in each row is counted based on the x-coordinates of all center points. Based on the number of rows of cigarette sticks and the number of cigarette sticks in each row, the arrangement of all cigarette sticks to be processed is obtained.

[0114] In some possible embodiments, motor control parameters are obtained based on the arrangement of all the cigarette strips to be processed, including:

[0115] When the number of cigarette sticks corresponding to any two rows is the same, the number of cigarette sticks is taken as the number of cigarette stick columns, and the motor speed corresponding to the number of cigarette stick rows and the number of cigarette stick columns is retrieved from the preset database. The preset database includes at least two sets of permutations and combinations and the motor speed corresponding to each set of permutations and combinations. Each set of permutations and combinations includes the number of cigarette stick rows and the number of cigarette stick columns.

[0116] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor; wherein the preset first direction and the preset second direction are opposite directions.

[0117] In some possible embodiments, obtaining motor control parameters based on the arrangement of all the cigarette strips to be processed further includes:

[0118] When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated.

[0119] When any difference is detected to be within the preset difference range, the row number corresponding to the minimum number of cigarette sticks is counted.

[0120] When the row number corresponding to the minimum number of cigarette sticks is detected to be within the preset number range, the minimum number of cigarette sticks is taken as the column number of cigarette sticks, and the motor speed corresponding to the number of cigarette stick rows and columns is retrieved from the preset database;

[0121] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor.

[0122] In some possible embodiments, obtaining motor control parameters based on the arrangement of all the cigarette strips to be processed further includes:

[0123] When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated.

[0124] When any difference is detected that is not within the preset difference range, the maximum difference between the number of cigarette sticks corresponding to any two adjacent rows is determined.

[0125] The maximum difference and the preset ratio coefficient are calculated as a ratio, and the ratio result is summed with the minimum number of cigarette sticks to obtain the sum result;

[0126] The summation result is used as the number of columns of the cigarette pack, and the motor speed corresponding to the number of rows and columns of the cigarette pack is retrieved from the preset database.

[0127] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor.

[0128] In some possible embodiments, the paper rolls separated from all the tobacco sticks to be processed by the tobacco breaking device are identified and processed, including:

[0129] The paper roll image containing the paper separated from all the tobacco sticks to be processed by the tobacco breaking device is obtained, and the paper roll image and the tobacco shred images corresponding to all the tobacco sticks to be processed are input into a preset deep learning model to obtain the tobacco shred presence probability; wherein, the preset deep learning model is trained by at least two paper roll sample images, the standard tobacco shred image corresponding to each paper roll sample image, and the standard presence probability.

[0130] When the probability of tobacco shreds being present exceeds a preset probability threshold, it is determined that tobacco shreds are present on the rolling paper.

[0131] If the probability of tobacco shreds being present does not exceed a preset probability threshold, it is determined that there are no tobacco shreds on the roll.

[0132] In some possible embodiments, the cigarette bar breaking device further includes a limit switch, which is disposed on the circuit formed by the normally open contacts of the first motor and the relay, and the limit switch is also disposed on the circuit formed by the normally open contacts of the second motor and the relay.

[0133] Please see Figure 5 , Figure 5 This paper presents a schematic diagram of another cigarette bar breaking control system based on a cigarette rolling machine, provided in an embodiment of this application.

[0134] The cigarette bar breaking control system based on a cigarette rolling machine can be applied to a cigarette bar breaking device. The cigarette bar breaking device includes a breaking device, a first rotating roller, a second rotating roller, a first motor for controlling the first rotating roller, a second motor for controlling the second rotating roller, a cigarette bar guide seat, a protective cover, and a relay. The first motor, the second motor, and the cigarette bar guide seat are all mounted on the breaking device. The first rotating roller is positioned above the first motor, and the second rotating roller is positioned above the second motor. The smoke outlet of the cigarette bar guide seat is located between the first and second rotating rollers. The protective cover is positioned above the first and second rotating rollers. The normally open contacts of the first motor and the relay form a circuit, and the normally open contacts of the second motor and the relay also form a circuit. Figure 5 As shown, the cigarette bar breaking control system 500 based on the cigarette machine may include at least one processor 501, at least one network interface 504, user interface 503, memory 505, and at least one communication bus 502.

[0135] The communication bus 502 can be used to realize the connection and communication of the above components.

[0136] The user interface 503 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0137] The network interface 504 may include, but is not limited to, Bluetooth modules, NFC modules, Wi-Fi modules, etc.

[0138] The processor 501 may include one or more processing cores. The processor 501 connects to various parts within the cigarette-making machine-based cigarette bar breaking control system 500 using various interfaces and lines. It executes or runs instructions, programs, code sets, or instruction sets stored in memory 505, and calls data stored in memory 505 to perform various functions and process data within the cigarette-making machine-based cigarette bar breaking control system 500. Optionally, the processor 501 may be implemented using at least one hardware form of DSP, FPGA, or PLA. The processor 501 may integrate one or more of the following: CPU, GPU, and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 501 and may be implemented as a separate chip.

[0139] The memory 505 may include RAM or ROM. Optionally, the memory 505 may include a non-transitory computer-readable medium. The memory 505 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 505 may also be at least one storage device located remotely from the aforementioned processor 501. Figure 5 As shown, the memory 505, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a cigarette bar breaking control application based on a cigarette rolling machine.

[0140] Specifically, the processor 501 can be used to call the cigarette-making machine-based tobacco stick breaking control application stored in the memory 505, and specifically perform the following operations:

[0141] When at least two cigarette sticks to be processed are identified in the cigarette stick guide seat, the arrangement of all cigarette sticks to be processed is determined;

[0142] The motor control parameters are obtained based on the arrangement of all the cigarette sticks to be processed, and when the protective cover is detected to be in the closed state, a high-level signal is output to the relay to make the normally open contact of the relay switch to the conducting state.

[0143] Based on the motor control parameters, the first motor and the second motor are controlled respectively so that the first rotating roller and the second rotating roller convey all the tobacco strips to be processed to the tobacco breaking device, and the tobacco breaking device breaks all the tobacco strips to be processed.

[0144] The paper separating all the tobacco sticks to be processed by the tobacco breaking device is identified and processed, and when tobacco shreds are detected on the paper, the tobacco shreds on the paper are removed.

[0145] In some possible embodiments, the arrangement of all the cigarette sticks to be processed is determined, including:

[0146] Obtain an image of all cigarette sticks to be processed, and identify the center point coordinates of each cigarette stick to be processed in the image;

[0147] Divide the coordinates of all center points into at least two sets of coordinate intervals, and use the number of sets of all coordinate intervals as the number of rows of cigarette packs.

[0148] The number of cigarette sticks in each row is counted based on the x-coordinates of all center points. Based on the number of rows of cigarette sticks and the number of cigarette sticks in each row, the arrangement of all cigarette sticks to be processed is obtained.

[0149] In some possible embodiments, motor control parameters are obtained based on the arrangement of all the cigarette strips to be processed, including:

[0150] When the number of cigarette sticks corresponding to any two rows is the same, the number of cigarette sticks is taken as the number of cigarette stick columns, and the motor speed corresponding to the number of cigarette stick rows and the number of cigarette stick columns is retrieved from the preset database. The preset database includes at least two sets of permutations and combinations and the motor speed corresponding to each set of permutations and combinations. Each set of permutations and combinations includes the number of cigarette stick rows and the number of cigarette stick columns.

[0151] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor; wherein the preset first direction and the preset second direction are opposite directions.

[0152] In some possible embodiments, obtaining motor control parameters based on the arrangement of all the cigarette strips to be processed further includes:

[0153] When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated.

[0154] When any difference is detected to be within the preset difference range, the row number corresponding to the minimum number of cigarette sticks is counted.

[0155] When the row number corresponding to the minimum number of cigarette sticks is detected to be within the preset number range, the minimum number of cigarette sticks is taken as the column number of cigarette sticks, and the motor speed corresponding to the number of cigarette stick rows and columns is retrieved from the preset database;

[0156] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor.

[0157] In some possible embodiments, obtaining motor control parameters based on the arrangement of all the cigarette strips to be processed further includes:

[0158] When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated.

[0159] When any difference is detected that is not within the preset difference range, the maximum difference between the number of cigarette sticks corresponding to any two adjacent rows is determined.

[0160] The maximum difference and the preset ratio coefficient are calculated as a ratio, and the ratio result is summed with the minimum number of cigarette sticks to obtain the sum result;

[0161] The summation result is used as the number of columns of the cigarette pack, and the motor speed corresponding to the number of rows and columns of the cigarette pack is retrieved from the preset database.

[0162] The preset first direction and motor speed are used as the motor control parameters corresponding to the first motor, and the preset second direction and motor speed are used as the motor control parameters corresponding to the second motor.

[0163] In some possible embodiments, the paper rolls separated from all the tobacco sticks to be processed by the tobacco breaking device are identified and processed, including:

[0164] The paper roll image containing the paper separated from all the tobacco sticks to be processed by the tobacco breaking device is obtained, and the paper roll image and the tobacco shred images corresponding to all the tobacco sticks to be processed are input into a preset deep learning model to obtain the tobacco shred presence probability; wherein, the preset deep learning model is trained by at least two paper roll sample images, the standard tobacco shred image corresponding to each paper roll sample image, and the standard presence probability.

[0165] When the probability of tobacco shreds being present exceeds a preset probability threshold, it is determined that tobacco shreds are present on the rolling paper.

[0166] If the probability of tobacco shreds being present does not exceed a preset probability threshold, it is determined that there are no tobacco shreds on the roll.

[0167] In some possible embodiments, the cigarette bar breaking device further includes a limit switch, which is disposed on the circuit formed by the normally open contacts of the first motor and the relay, and the limit switch is also disposed on the circuit formed by the normally open contacts of the second motor and the relay.

[0168] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.

[0169] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0170] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0171] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between apparatuses or units may be electrical or other forms.

[0172] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0173] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

Claims

1. A method for controlling the breaking of cigarette strips based on a cigarette rolling machine, characterized in that, The method is applied to a cigarette bar breaking device, which includes a cigarette bar breaking device, a first rotating roller, a second rotating roller, a first motor for controlling the first rotating roller, a second motor for controlling the second rotating roller, a cigarette bar guide seat, a protective cover, and a relay. The first motor, the second motor, and the cigarette bar guide seat are all mounted on the cigarette bar breaking device. The first rotating roller is positioned above the first motor, and the second rotating roller is positioned above the second motor. The cigarette bar guide seat's outlet is located between the first rotating roller and the second rotating roller. The protective cover is positioned above the first rotating roller and the second rotating roller. The first motor and the normally open contact of the relay form a circuit, and the second motor and the normally open contact of the relay form a circuit. The method includes: When at least two cigarette sticks to be processed are identified within the cigarette stick guide seat, the arrangement of all the cigarette sticks to be processed is determined; the arrangement of all the cigarette sticks to be processed is used to determine the distance between the first rotating roller and the second rotating roller. The motor control parameters are obtained based on the arrangement of all the cigarette sticks to be processed, and when the protective cover is detected to be in a closed state, a high-level signal is output to the relay to make the normally open contact of the relay switch to a conducting state; the motor control parameters include the motor speed; Based on the motor control parameters, the first motor and the second motor are controlled respectively, so that the first rotating roller and the second rotating roller convey all the tobacco strips to be processed to the tobacco breaking device, and the tobacco breaking device breaks all the tobacco strips to be processed. The paper strips separated from all the tobacco sticks to be processed by the tobacco breaking device are identified and processed, and when tobacco shreds are detected on the paper strips, the tobacco shreds on the paper strips are removed. The determination of the arrangement of all the cigarette sticks to be processed includes: Obtain an image of cigarette sticks containing all the cigarette sticks to be processed, and identify the center point coordinates of each cigarette stick to be processed in the cigarette stick image; Divide the coordinates of all the center points into at least two sets of coordinate intervals, and use the number of sets of all the coordinate intervals as the number of rows of cigarette packs. The number of cigarette sticks corresponding to each row is counted based on the x-coordinates of all the center point coordinates, and the arrangement of all the cigarette sticks to be processed is obtained according to the number of cigarette stick rows and the number of cigarette sticks corresponding to each row.

2. The method according to claim 1, characterized in that, The step of obtaining motor control parameters based on the arrangement of all the cigarette strips to be processed includes: When the number of cigarette sticks corresponding to any two rows is the same, the number of cigarette sticks is taken as the number of cigarette stick columns, and the motor speed corresponding to the number of cigarette stick rows and the number of cigarette stick columns is retrieved from the preset database; wherein, the preset database includes at least two sets of permutations and combinations and the motor speed corresponding to each set of permutations and combinations, and each set of permutations and combinations includes the number of cigarette stick rows and the number of cigarette stick columns; A preset first direction and the motor speed are used as motor control parameters corresponding to the first motor, and a preset second direction and the motor speed are used as motor control parameters corresponding to the second motor; wherein the preset first direction and the preset second direction are opposite directions.

3. The method according to claim 2, characterized in that, The step of obtaining motor control parameters based on the arrangement of all the cigarette strips to be processed also includes: When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated. When any of the differences are detected to be within the preset difference range, the row number corresponding to the minimum number of cigarette sticks is counted. When the number of rows corresponding to the minimum number of cigarette sticks is detected to be within a preset number range, the minimum number of cigarette sticks is taken as the number of cigarette stick columns, and the motor speed corresponding to the number of cigarette stick rows and the number of cigarette stick columns is retrieved from the preset database; The preset first direction and the motor speed are used as motor control parameters corresponding to the first motor, and the preset second direction and the motor speed are used as motor control parameters corresponding to the second motor.

4. The method according to claim 3, characterized in that, The step of obtaining motor control parameters based on the arrangement of all the cigarette strips to be processed also includes: When the number of cigarette sticks corresponding to any two rows is inconsistent, the difference between the number of cigarette sticks corresponding to any two adjacent rows is calculated. When any of the differences is detected to be outside the preset difference range, the maximum difference between the number of cigarette sticks corresponding to any two adjacent rows is determined. The maximum difference and the preset proportional coefficient are used to calculate the ratio, and the ratio result is summed with the minimum number of cigarette sticks to obtain the summation result; The summation result is used as the number of columns of the cigarette pack, and the motor speed corresponding to the number of rows and columns of the cigarette pack is retrieved from the preset database. The preset first direction and the motor speed are used as motor control parameters corresponding to the first motor, and the preset second direction and the motor speed are used as motor control parameters corresponding to the second motor.

5. The method according to claim 1, characterized in that, The process of identifying and processing the roll paper separated from all the tobacco sticks to be processed by the tobacco breaking device includes: A paper roll image containing the paper rolls separated from all the cigarette sticks to be processed by the cigarette breaking device is obtained, and the paper roll image and the tobacco shred images corresponding to all the cigarette sticks to be processed are input into a preset deep learning model to obtain the tobacco shred presence probability; wherein, the preset deep learning model is trained by at least two paper roll sample images, a standard tobacco shred image corresponding to each paper roll sample image, and a standard presence probability. When the probability of the presence of the tobacco exceeds a preset probability threshold, it is determined that tobacco is present on the roll paper; When the probability of the presence of the tobacco does not exceed the preset probability threshold, it is determined that there is no tobacco on the roll paper.

6. The method according to claim 1, characterized in that, The cigarette bar breaking device also includes a limit switch, which is set on the circuit formed by the normally open contact of the first motor and the relay, and the limit switch is also set on the circuit formed by the normally open contact of the second motor and the relay.

7. A cigarette bar breaking control system based on a cigarette rolling machine, characterized in that, The system is applied to a cigarette bar breaking device, which includes a cigarette breaking device, a first rotating roller, a second rotating roller, a first motor for controlling the first rotating roller, a second motor for controlling the second rotating roller, a cigarette bar guide seat, a protective cover, and a relay. The first motor, the second motor, and the cigarette bar guide seat are all mounted on the cigarette breaking device. The first rotating roller is positioned above the first motor, and the second rotating roller is positioned above the second motor. The cigarette bar guide seat's outlet is located between the first and second rotating rollers. The protective cover is positioned above the first and second rotating rollers. The first motor and the normally open contact of the relay form a circuit, and the second motor and the normally open contact of the relay also form a circuit. The system includes: The first processing module is used to determine the arrangement of all the cigarette sticks to be processed when at least two cigarette sticks to be processed are identified in the cigarette stick guide seat; the arrangement of all the cigarette sticks to be processed is used to determine the distance between the first rotating roller and the second rotating roller. The second processing module is used to obtain motor control parameters based on the arrangement of all the cigarette sticks to be processed, and when the protective cover is detected to be in a closed state, output a high-level signal to the relay to make the normally open contact of the relay switch to a conducting state; the motor control parameters include motor speed; The third processing module is used to control the first motor and the second motor respectively based on the motor control parameters, so that the first rotating roller and the second rotating roller convey all the tobacco strips to be processed to the tobacco breaking device, and the tobacco breaking device breaks all the tobacco strips to be processed. The fourth processing module is used to identify the paper strips separated by the tobacco breaking device from all the tobacco sticks to be processed, and to remove the tobacco strips from the paper strips when tobacco strips are detected on the paper strips. The determination of the arrangement of all the cigarette sticks to be processed includes: Obtain an image of cigarette sticks containing all the cigarette sticks to be processed, and identify the center point coordinates of each cigarette stick to be processed in the cigarette stick image; Divide the coordinates of all the center points into at least two sets of coordinate intervals, and use the number of sets of all the coordinate intervals as the number of rows of cigarette packs. The number of cigarette sticks corresponding to each row is counted based on the x-coordinates of all the center point coordinates, and the arrangement of all the cigarette sticks to be processed is obtained according to the number of cigarette stick rows and the number of cigarette sticks corresponding to each row.

8. A cigarette bar breaking control system based on a cigarette rolling machine, characterized in that, Including the processor and memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code stored in the memory to perform the steps of the method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer or processor, cause the computer or processor to perform the steps of the method as described in any one of claims 1-6.