Tobacco leaf returning method and device, electronic equipment and storage medium

By receiving the tobacco leaf level in real time on the tobacco leaf conveying device and using PLC control equipment, the automated grading of the tobacco leaf level is achieved, and the problems of low efficiency and high labor costs in the prior art are solved, which improves the grading efficiency and reduces the cost.

CN120203273APending Publication Date: 2025-06-27ANKANG DEKANG AGRI MASCH MFG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510317491.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In the prior art, the grading efficiency of tobacco leaves is low and depends on manual operation, resulting in low efficiency and high labor costs.

Method used

By receiving the tobacco leaf grades in real time on the tobacco leaf conveying device and controlling the photoelectric sensor and material withdrawal equipment using PLC, the tobacco leaf is automatically returned according to the level.

Benefits of technology

Automatic grading of tobacco leaf grades has been realized, grading efficiency has been improved, manual participation has been reduced, and labor costs have been reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120203273A_ABST
    Figure CN120203273A_ABST
Patent Text Reader

Abstract

The invention provides a tobacco leaf returning method and device, electronic equipment and a storage medium. The tobacco leaf returning method comprises the steps that tobacco leaf grades corresponding to M tobacco leaves needing to be conveyed on a tobacco leaf conveying device are received in real time; according to the tobacco leaf receiving sequence, for each tobacco leaf, the tobacco leaf grade of the tobacco leaf is written into each tobacco leaf grade queue; when tobacco leaf monitoring information sent by the target photoelectric sensor is received, the tobacco leaf grade of the current tobacco leaf is read from a tobacco leaf grade queue associated with the target photoelectric sensor; and when the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target photoelectric sensor, a material returning instruction is sent to material returning equipment corresponding to the target photoelectric sensor, so that the material returning equipment executes material returning operation for the current tobacco leaf. According to the method, different material returning devices can be controlled to automatically return tobacco leaves of different grades, the tobacco leaf grading efficiency is improved, and the labor cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of tobacco leaf return, and in particular, to a method, device, electronic device and storage medium for returning tobacco leaves. Background Art

[0002] In the related art, the tobacco leaf grading method is mainly manual grading. The tobacco leaves are conveyed on a conveyor belt, and the grading personnel need to pick up the tobacco leaves and determine the grades of the tobacco leaves, and then put them into the tobacco leaf storage boxes of the corresponding grades. However, the number of tobacco leaves on the conveyor belt is huge, and the efficiency of manual picking and grading is low, and the labor cost is high.

[0003] Therefore, how to improve the efficiency of tobacco leaf grading is an urgent problem to be solved at present. Summary of the Invention

[0004] In view of the problems existing in the prior art, embodiments of the present invention provide a method, device, electronic device and storage medium for returning tobacco leaves.

[0005] The present invention provides a method for returning tobacco leaves, which is applied to a Programmable Logic Controller (PLC). The method includes: Receiving in real time the tobacco leaf grades corresponding to M tobacco leaves that need to be conveyed on a tobacco leaf conveying device; wherein, the tobacco leaf conveying device includes N conveyor belts, and each conveyor belt is correspondingly provided with a photoelectric sensor and a return device, and one photoelectric sensor is associated with a tobacco leaf grade queue and a preset tobacco leaf grade; Writing the tobacco leaf grade of each tobacco leaf into each of the tobacco leaf grade queues in the order of tobacco leaf reception; When receiving the tobacco leaf monitoring information sent by any target photoelectric sensor among the photoelectric sensors, reading the tobacco leaf grade of the current tobacco leaf from the tobacco leaf grade queue associated with the target photoelectric sensor; wherein, the tobacco leaf monitoring information is used to indicate that there is a tobacco leaf being conveyed on the target conveyor belt corresponding to the target photoelectric sensor; When the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target photoelectric sensor, sending a return instruction to the return device corresponding to the target photoelectric sensor, so that the return device performs a return operation on the current tobacco leaf.

[0006] Optionally, the writing the tobacco leaf grade of the tobacco leaf into each of the tobacco leaf grade queues includes: Determining, according to the tobacco leaf grade of the tobacco leaf, at least one tobacco leaf grade queue corresponding to each photoelectric sensor whose associated preset tobacco leaf grade is less than or equal to the tobacco leaf grade of the tobacco leaf; Write the tobacco leaf grade of the tobacco leaves into the tobacco leaf grade queues corresponding to the at least one photoelectric sensor respectively.

[0007] Optionally, after sending the material discharging instruction to the material discharging device corresponding to the target photoelectric sensor, the method further includes: Delete the tobacco leaf grade of the current tobacco leaf stored in the tobacco leaf grade queue corresponding to the conveyor belt downstream of the target conveyor belt.

[0008] Optionally, the method further includes: When the tobacco leaf grade of the current tobacco leaf is different from the preset tobacco leaf grade associated with the target photoelectric sensor, send a conveying instruction to the material discharging device corresponding to the target photoelectric sensor, so that the material discharging device conveys the current tobacco leaf to the adjacent conveyor belt.

[0009] Optionally, before receiving in real time the tobacco leaf grades corresponding to M tobacco leaves that need to be conveyed on the tobacco leaf conveying device, the method further includes: Obtain the tobacco leaf grade queues and preset tobacco leaf grades respectively associated with the photoelectric sensors.

[0010] Optionally, the tobacco leaf grade of the tobacco leaves is obtained by prediction based on a deep learning model, and the deep learning model is trained based on a plurality of tobacco leaf image samples and the tobacco leaf grade labels corresponding to the tobacco leaf image samples.

[0011] The present invention further provides a tobacco leaf material discharging device applied to a PLC, and the device includes: A receiving module, configured to receive in real time the tobacco leaf grades corresponding to M tobacco leaves that need to be conveyed on the tobacco leaf conveying device; wherein, the tobacco leaf conveying device includes N conveyor belts, and each conveyor belt is correspondingly provided with a photoelectric sensor and a material discharging device, and one photoelectric sensor is associated with a tobacco leaf grade queue and a preset tobacco leaf grade; A storage module, configured to write the tobacco leaf grade of the tobacco leaf into each of the tobacco leaf grade queues according to the tobacco leaf receiving order for each tobacco leaf; A reading module, configured to, when receiving the tobacco leaf monitoring information sent by any target photoelectric sensor among the photoelectric sensors, read the tobacco leaf grade of the current tobacco leaf from the tobacco leaf grade queue associated with the target photoelectric sensor; wherein, the tobacco leaf monitoring information is used to indicate that there is a tobacco leaf being conveyed on the target conveyor belt corresponding to the target photoelectric sensor; A first sending module, configured to, when the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target photoelectric sensor, send a material discharging instruction to the material discharging device corresponding to the target photoelectric sensor, so that the material discharging device performs a material discharging operation on the current tobacco leaf.

[0012] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the tobacco leaf discharging method as described in any one of the above is implemented.

[0013] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the tobacco leaf discharging method as described in any one of the above is implemented.

[0014] The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, the tobacco leaf discharging method as described in any one of the above is implemented.

[0015] The tobacco leaf discharging method, device, electronic device, and storage medium provided by the present invention receive in real time the tobacco leaf grades corresponding to M tobacco leaves to be conveyed on the tobacco leaf conveying device. According to the tobacco leaf receiving order, for each tobacco leaf, the tobacco leaf grade of the tobacco leaf is written into each tobacco leaf grade queue. Based on the principle of first in first out (FIFO) of the queue, it is ensured that the tobacco leaf grades that enter the queue first will be processed preferentially, which helps to maintain the timeliness and orderliness of the processing of each tobacco leaf. When receiving the tobacco leaf monitoring information sent by any target optoelectronic sensor among the optoelectronic sensors, the tobacco leaf grade of the current tobacco leaf is read from the tobacco leaf grade queue associated with the target optoelectronic sensor; when the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target optoelectronic sensor, a discharging instruction is sent to the discharging device corresponding to the target optoelectronic sensor, so that the discharging device performs the discharging operation for the current tobacco leaf. The above method can discharge the tobacco leaves of different tobacco leaf grades on the conveyor belt from different discharging devices by controlling different discharging devices, realizing the automatic discharging of the tobacco leaves of different tobacco leaf grades, reducing the manual participation, improving the tobacco leaf grading efficiency, and reducing the labor cost. Description of the Drawings

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0017] Figure 1 is one of the flow diagrams of the tobacco leaf discharging method provided by the present invention; Figure 2 is another flow diagram of the tobacco leaf discharging method provided by the present invention; Figure 3 is the structural diagram of the tobacco leaf discharging device provided by the present invention; Figure 4 It is a schematic structural diagram of the electronic device provided by the present invention. Specific Embodiments

[0018] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without making creative efforts shall fall within the protection scope of the present invention.

[0019] The following combines Figure 1 - Figure 2 to describe the tobacco leaf discharging method of the present invention.

[0020] Figure 1 It is one of the schematic flowcharts of the tobacco leaf discharging method provided by the present invention. Refer to Figure 1 As shown, the tobacco leaf discharging method is applied to a PLC, and specifically includes the following steps: Step 101: Real-time receive the tobacco leaf grades corresponding to M tobacco leaves that need to be conveyed on the tobacco leaf conveying device; wherein, the tobacco leaf conveying device includes N conveyor belts, and each conveyor belt is correspondingly provided with a photoelectric sensor and a discharging device, and one photoelectric sensor is associated with a tobacco leaf grade queue and a preset tobacco leaf grade.

[0021] First of all, it should be noted that the execution subject of the present invention can be a PLC that can control each discharging device in the tobacco leaf conveying device. The PLC can be embedded in any electronic device, such as any one of a smart phone, a smart watch, a desktop computer, a laptop computer, etc., so as to realize the discharging of tobacco leaves.

[0022] In the embodiment of the present invention, the tobacco leaf conveying device includes N conveyor belts, and a discharging device is arranged between every two adjacent conveyor belts. Among them, M and N are positive integers; the tobacco leaf grade queue can be a FIFO queue. The present invention aims to use different discharging devices to discharge tobacco leaves of different grades from between two adjacent conveyor belts and fall into the corresponding storage boxes for tobacco leaf grades.

[0023] That is, when the photoelectric sensor detects that the tobacco leaves of the corresponding grade pass through the conveyor belt, the PLC controls the discharging device to work, and the tobacco leaves fall into the storage box of the corresponding grade; if the tobacco leaves are not of the corresponding grade, the tobacco leaves will be conveyed to the next-level conveyor belt, thereby realizing the automation of tobacco leaf grading.

[0024] For example, there are a total of 3 tobacco leaves to be conveyed on the tobacco leaf conveying device, and their corresponding tobacco leaf grades are: grade 3, grade 10, and grade 2. When the above 3 tobacco leaves are conveyed on the conveyor belt, when passing through the 3rd conveyor belt, the reject device arranged between the 3rd and 4th conveyor belts withdraws the grade 3 tobacco leaves from the conveyor belt and drops them into the grade 3 tobacco leaf storage box. The grade 10 and grade 2 tobacco leaves are the same, and they are respectively dropped into the grade 10 and grade 2 tobacco leaf storage boxes, thus realizing automatic grading of tobacco leaves.

[0025] Step 102: According to the tobacco leaf receiving order, for each tobacco leaf, write the tobacco leaf grade of the tobacco leaf into each of the tobacco leaf grade queues.

[0026] In the embodiment of the present application, for the tobacco leaf grades, there are corresponding different tobacco leaf grade queues. The PLC needs to write "grade 3 tobacco leaves", "grade 10 tobacco leaves", and "grade 2 tobacco leaves" into the tobacco leaf grade queues corresponding to their respective tobacco leaf grades according to the tobacco leaf receiving order.

[0027] Step 103: When receiving the tobacco leaf monitoring information sent by any target photoelectric sensor among the photoelectric sensors, read the tobacco leaf grade of the current tobacco leaf from the tobacco leaf grade queue associated with the target photoelectric sensor; wherein, the tobacco leaf monitoring information is used to indicate that there is a tobacco leaf being conveyed on the target conveyor belt corresponding to the target photoelectric sensor.

[0028] For example, the tobacco leaf grade queue associated with the "target photoelectric sensor" is the "grade 3 tobacco leaf grade queue". When the target photoelectric sensor sends the tobacco leaf monitoring information to the PLC, the PLC reads the grade information of the current tobacco leaf from the "grade 3 tobacco leaf grade queue" associated with the target photoelectric sensor. For example, the grade information of the current tobacco leaf is "grade 3 tobacco leaves".

[0029] Step 104: When the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target photoelectric sensor, send a reject instruction to the reject device corresponding to the target photoelectric sensor, so that the reject device performs the reject operation for the current tobacco leaf.

[0030] In the embodiment of the present application, the reject instruction is used to control the reject device to perform the reject operation for the current tobacco leaf.

[0031] In practical applications, when the tobacco leaf grade queue associated with the target photoelectric sensor is the "grade 3 tobacco leaf grade queue", when the PLC receives the tobacco leaf monitoring information sent by the target photoelectric sensor, the PLC reads the grade of the current tobacco leaf from the "grade 3 tobacco leaf grade queue". If the grade of the current tobacco leaf is "grade 3 tobacco leaves", the PLC sends a reject instruction to the reject device corresponding to the target photoelectric sensor.

[0032] The tobacco leaf discharging method provided by the present invention receives in real time the tobacco leaf grades corresponding to M tobacco leaves to be conveyed on the tobacco leaf conveying device. According to the tobacco leaf receiving order, for each tobacco leaf, the tobacco leaf grade of the tobacco leaf is written into each tobacco leaf grade queue. Based on the principle of FIFO of the queue, it is ensured that the tobacco leaf grades that enter the queue first will be processed preferentially, which helps to maintain the timeliness and orderliness of the processing of each tobacco leaf. When receiving the tobacco leaf monitoring information sent by any target optoelectronic sensor among the optoelectronic sensors, the tobacco leaf grade of the current tobacco leaf is read from the tobacco leaf grade queue associated with the target optoelectronic sensor; when the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target optoelectronic sensor, a discharging instruction is sent to the discharging device corresponding to the target optoelectronic sensor, so that the discharging device performs the discharging operation for the current tobacco leaf. The above method can discharge the tobacco leaves of different tobacco leaf grades on the conveyor belt from different discharging devices by controlling different discharging devices, realizing the automatic discharging of the tobacco leaves of different tobacco leaf grades, reducing manual participation, improving the tobacco leaf grading efficiency, and reducing the labor cost.

[0033] Optionally, before the step of receiving in real time the tobacco leaf grades corresponding to M tobacco leaves to be conveyed on the tobacco leaf conveying device, the method further includes: Obtaining the tobacco leaf grade queue and the preset tobacco leaf grade associated with each of the optoelectronic sensors.

[0034] It should be noted here that first, a tobacco leaf grade writing range needs to be set for each tobacco leaf grade queue; for any tobacco leaf grade queue, the tobacco leaf grade writing range of this queue includes: the number of the optoelectronic sensor associated with this tobacco leaf grade queue, to the maximum number among all the optoelectronic sensors.

[0035] For example, there are a total of 10 optoelectronic sensors, numbered 1-10 in sequence. For the first tobacco leaf grade queue, the tobacco leaf grade writing range is: 1 (i.e., the number of the optoelectronic sensor associated with the tobacco leaf grade queue) - 10 (i.e., the maximum number among all the optoelectronic sensors).

[0036] For the second tobacco leaf grade queue, the tobacco leaf grade writing range is: 2-10; that is to say, for the second tobacco leaf grade queue, only the tobacco leaf grades of 2-10 can be written.

[0037] And so on, for the tenth tobacco leaf grade queue, the tobacco leaf grade writing range is: 10. That is, for the tenth tobacco leaf grade queue, only the tobacco leaf grade of 10 can be written.

[0038] After setting the tobacco leaf grade writing range for each tobacco leaf grade queue, obtain the tobacco leaf grade queue and the preset tobacco leaf grade associated with each of the optoelectronic sensors.

[0039] For example, the first tobacco leaf grade queue associated with the first optoelectronic sensor has a preset tobacco leaf grade of 1; the second tobacco leaf grade queue associated with the second optoelectronic sensor has a preset tobacco leaf grade of 2, and so on.

[0040] Optionally, writing the tobacco leaf grade of the tobacco leaf into each of the tobacco leaf grade queues may be specifically implemented through the following steps: Step 1), according to the tobacco leaf grade of the tobacco leaf, determine at least one tobacco leaf grade queue corresponding to each optoelectronic sensor whose associated preset tobacco leaf grade is less than or equal to the tobacco leaf grade of the tobacco leaf; Step 2), write the tobacco leaf grade of the tobacco leaf into the at least one tobacco leaf grade queue corresponding to each optoelectronic sensor.

[0041] Based on the foregoing, for example, there are a total of 10 tobacco leaf grade queues; the tobacco leaf grade queue corresponding to the first optoelectronic sensor allows writing of tobacco leaves of grades 1 - 10; the tobacco leaf grade queue corresponding to the second optoelectronic sensor allows writing of tobacco leaves of grades 2 - 10; and so on. The tobacco leaf grade queue corresponding to the 10th optoelectronic sensor allows writing of tobacco leaves of grade 10.

[0042] Then, for "tobacco leaves of grade 1", the optoelectronic sensor whose associated grade is less than or equal to the tobacco leaf grade is the first light band sensor, so the "tobacco leaves of grade 1" are written into the tobacco leaf grade queue associated with the first optoelectronic sensor.

[0043] For "tobacco leaves of grade 2", the optoelectronic sensors whose associated grades are less than or equal to the tobacco leaf grade are the first and second light band sensors, so the "tobacco leaves of grade 1" are written into the tobacco leaf grade queues associated with the first and second optoelectronic sensors.

[0044] For "tobacco leaves of grade 3", the optoelectronic sensors whose associated grades are less than or equal to the tobacco leaf grade are the first, second, and third light band sensors, so the "tobacco leaves of grade 1" are written into the tobacco leaf grade queues associated with the first, second, and third optoelectronic sensors.

[0045] And so on. For "tobacco leaves of grade 10", the optoelectronic sensors whose associated grades are less than or equal to the tobacco leaf grade are the first, second, third,..., tenth light band sensors, so the "tobacco leaves of grade 1" are written into the tobacco leaf grade queues associated with the first, second, third,..., tenth optoelectronic sensors.

[0046] Optionally, after sending the material rejection instruction to the material rejection device corresponding to the target optoelectronic sensor, the method further includes: Delete the tobacco leaf grade of the current tobacco leaf stored in the tobacco leaf grade queue corresponding to the conveyor belt downstream of the target conveyor belt.

[0047] In the embodiments of the present invention, since the tobacco leaves are continuously conveyed in the tobacco leaf conveying device in real time, and each queue processes each tobacco leaf based on the FIFO algorithm. Therefore, after the PLC sends a discharging instruction to the discharging device corresponding to the target optoelectronic sensor, it indicates that the discharging of the current tobacco leaf has been successfully completed. It is necessary to promptly delete the tobacco leaf grade of the current tobacco leaf from the tobacco leaf grade queues corresponding to each downstream conveyor belt (i.e., the remaining conveyor belts along the tobacco leaf conveying direction), and use the tobacco leaf grade of the next tobacco leaf as the grade for the current new round of tobacco leaf discharging. Through the above method, the accuracy of tobacco leaf discharging is ensured.

[0048] Optionally, the method further includes: When the tobacco leaf grade of the current tobacco leaf is different from the preset tobacco leaf grade associated with the target optoelectronic sensor, a conveying instruction is sent to the discharging device corresponding to the target optoelectronic sensor, so that the discharging device conveys the current tobacco leaf to an adjacent conveyor belt.

[0049] The conveying instruction is used to control the discharging device to convey the current tobacco leaf to an adjacent tobacco leaf conveyor belt.

[0050] For example, for "Grade 3 tobacco leaves", when passing through the first conveyor belt, the preset tobacco leaf grade 1 associated with the target optoelectronic sensor is compared with "Grade 3", and the result is not equal, then the tobacco leaf is conveyed to the second conveyor belt.

[0051] When passing through the second conveyor belt, the preset tobacco leaf grade associated with the target optoelectronic sensor is 2. "Grade 3" is compared with the preset tobacco leaf grade "2" associated with the target optoelectronic sensor, and the result is not equal, then the tobacco leaf is conveyed to the third conveyor belt.

[0052] When passing through the third conveyor belt, the preset tobacco leaf grade associated with the target optoelectronic sensor is 3. "Grade 3" is compared with the preset tobacco leaf grade "3" associated with the target optoelectronic sensor, and the result is equal, then it is determined to send a conveying instruction to the discharging device corresponding to the third target optoelectronic sensor.

[0053] In practical applications, the target optoelectronic sensor is the optoelectronic sensor that monitors the passing of tobacco leaves at the current moment. For example, when Grade 2 tobacco leaves are conveyed on each conveyor belt, when the optoelectronic sensor set on the first conveyor belt monitors that there are tobacco leaves coming on the first conveyor belt, the PLC compares "Grade 2" with the preset tobacco leaf grade "Grade 1" associated with the first optoelectronic sensor, determines that the grades are different, and then sends a conveying instruction to the discharging device associated with the first optoelectronic sensor.

[0054] When the photoelectric sensor set on the second conveyor belt monitors that tobacco leaves are being conveyed on the second conveyor belt, the PLC determines that the grades are the same based on "Grade 2" and the preset tobacco leaf grade "Grade 2" associated with the second photoelectric sensor, and then sends a reject instruction to the reject device associated with the second photoelectric sensor. And so on.

[0055] In the above embodiment, when it is determined that the tobacco leaf grade of the current tobacco leaf is different from the preset tobacco leaf grade associated with the target photoelectric sensor, a transfer instruction is sent to the reject device corresponding to the target photoelectric sensor, so that the reject device transfers the current tobacco leaf to the adjacent conveyor belt, ensuring the effectiveness of the tobacco leaf transfer.

[0056] Optionally, the tobacco leaf grade of the tobacco leaf is obtained by predicting based on a deep learning model, and the deep learning model is trained based on multiple tobacco leaf image samples and the tobacco leaf grade labels corresponding to the tobacco leaf image samples.

[0057] Figure 2 It is the second flow diagram of the tobacco leaf reject method provided by the present invention. Refer to Figure 2 As shown, the tobacco leaf reject method is applied to the PLC, and specifically includes the following steps: Step 201: Real-time receive the tobacco leaf grades corresponding to each of the M tobacco leaves that need to be conveyed on the tobacco leaf conveying device; wherein, the tobacco leaf conveying device includes N conveyor belts, and each conveyor belt is correspondingly provided with a photoelectric sensor and a reject device, and one photoelectric sensor is associated with one tobacco leaf grade queue and one preset tobacco leaf grade.

[0058] Step 202: Determine at least one tobacco leaf grade queue corresponding to the photoelectric sensor whose associated preset tobacco leaf grade is less than or equal to the tobacco leaf grade of the tobacco leaf according to the tobacco leaf grade of the tobacco leaf.

[0059] Step 203: Write the tobacco leaf grade of the tobacco leaf into at least one tobacco leaf grade queue corresponding to the photoelectric sensor.

[0060] Step 204: When receiving the tobacco leaf monitoring information sent by any target photoelectric sensor among the photoelectric sensors, read the tobacco leaf grade of the current tobacco leaf from the tobacco leaf grade queue associated with the target photoelectric sensor; wherein, the tobacco leaf monitoring information is used to indicate that there are tobacco leaves being conveyed on the target conveyor belt corresponding to the target photoelectric sensor.

[0061] Step 205: When the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target photoelectric sensor, send a reject instruction to the reject device corresponding to the target photoelectric sensor, so that the reject device performs the reject operation for the current tobacco leaf.

[0062] Step 206: Delete the tobacco leaf grade of the current tobacco leaf stored in the tobacco leaf grade queue corresponding to the conveyor belt downstream of the target conveyor belt.

[0063] Step 207: When the tobacco leaf grade of the current tobacco leaf is different from the preset tobacco leaf grade associated with the target optoelectronic sensor, send a transfer instruction to the reject device corresponding to the target optoelectronic sensor, so that the reject device transfers the current tobacco leaf to the adjacent conveyor belt.

[0064] It should be noted that the execution order of steps 205-206 and step 207 is not sequential.

[0065] The tobacco leaf reject device provided by the present invention will be described below. The tobacco leaf reject device described below can be correspondingly referred to the tobacco leaf reject method described above. Figure 3 is a schematic structural diagram of the tobacco leaf reject device provided by the present invention. As Figure 3 shown, the tobacco leaf reject device 300 is applied to the PLC and includes: a receiving module 301, a storage module 302, a reading module 303, and a first sending module 304, where: The receiving module 301 is configured to receive in real time the tobacco leaf grades corresponding to M tobacco leaves that need to be transferred on the tobacco leaf transfer device; wherein, the tobacco leaf transfer device includes N conveyor belts, and an optoelectronic sensor and a reject device are correspondingly arranged for each conveyor belt, and an optoelectronic sensor is associated with a tobacco leaf grade queue and a preset tobacco leaf grade; The storage module 302 is configured to write the tobacco leaf grade of each tobacco leaf into each of the tobacco leaf grade queues according to the tobacco leaf receiving order. The reading module 303 is configured to, when receiving the tobacco leaf monitoring information sent by any target optoelectronic sensor among the optoelectronic sensors, read the tobacco leaf grade of the current tobacco leaf from the tobacco leaf grade queue associated with the target optoelectronic sensor; wherein, the tobacco leaf monitoring information is used to indicate that there is a tobacco leaf being transferred on the target conveyor belt corresponding to the target optoelectronic sensor. The first sending module 304 is configured to, when the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target optoelectronic sensor, send a reject instruction to the reject device corresponding to the target optoelectronic sensor, so that the reject device performs a reject operation on the current tobacco leaf.

[0066] The tobacco leaf discharging device provided by the present invention receives in real time the tobacco leaf grades corresponding to M tobacco leaves to be conveyed on the tobacco leaf conveying device. According to the tobacco leaf receiving order, for each tobacco leaf, the tobacco leaf grade of the tobacco leaf is written into each tobacco leaf grade queue. Based on the principle of FIFO of the queue, it is ensured that the tobacco leaf grades that enter the queue first will be processed preferentially, which helps to maintain the timeliness and orderliness of the processing of each tobacco leaf. When receiving the tobacco leaf monitoring information sent by any one of the target photoelectric sensors among the photoelectric sensors, the tobacco leaf grade of the current tobacco leaf is read from the tobacco leaf grade queue associated with the target photoelectric sensor; when the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target photoelectric sensor, a discharging instruction is sent to the discharging device corresponding to the target photoelectric sensor, so that the discharging device performs the discharging operation for the current tobacco leaf. The above method can discharge the tobacco leaves of different tobacco leaf grades on the conveyor belt from different discharging devices by controlling different discharging devices, realizing the automatic discharging of the tobacco leaves of different tobacco leaf grades, reducing manual participation, improving the tobacco leaf grading efficiency, and reducing the labor cost.

[0067] Optionally, the storage module 302 is further configured to: Determine at least one tobacco leaf grade queue corresponding to the photoelectric sensors whose associated preset tobacco leaf grades are less than or equal to the tobacco leaf grade of the tobacco leaf according to the tobacco leaf grade of the tobacco leaf; Write the tobacco leaf grade of the tobacco leaf into the at least one tobacco leaf grade queue corresponding to each photoelectric sensor.

[0068] Optionally, the device further includes: A deletion module, configured to delete the tobacco leaf grade of the current tobacco leaf stored in the tobacco leaf grade queue corresponding to the conveyor belt downstream of the target conveyor belt.

[0069] Optionally, the device further includes: A second sending module, configured to send a conveying instruction to the discharging device corresponding to the target photoelectric sensor when the tobacco leaf grade of the current tobacco leaf is different from the preset tobacco leaf grade associated with the target photoelectric sensor, so that the discharging device conveys the current tobacco leaf to the adjacent conveyor belt.

[0070] Optionally, the device further includes: An acquisition module, configured to acquire the tobacco leaf grade queues and preset tobacco leaf grades respectively associated with the photoelectric sensors.

[0071] Optionally, the tobacco leaf grade of the tobacco leaf is predicted based on a deep learning model, and the deep learning model is trained based on a plurality of tobacco leaf image samples and the tobacco leaf grade labels corresponding to the tobacco leaf image samples.

[0072] Figure 4Illustrates a schematic diagram of the physical structure of an electronic device, as Figure 4 shown. The electronic device may include: a processor 410, a communications interface 420, a memory 430, and a communication bus 440. Among them, the processor 410, the communications interface 420, and the memory 430 complete communication with each other through the communication bus 440. The processor 410 may call the logical instructions in the memory 430 to execute the tobacco leaf return method, and the method includes: receiving in real time the tobacco leaf grades corresponding to each of the M tobacco leaves to be conveyed on the tobacco leaf conveying device; wherein, the tobacco leaf conveying device includes N conveyor belts, and each conveyor belt is correspondingly provided with a photoelectric sensor and a return device, and one photoelectric sensor is associated with a tobacco leaf grade queue and a preset tobacco leaf grade; according to the tobacco leaf receiving order, for each tobacco leaf, writing the tobacco leaf grade of the tobacco leaf into each of the tobacco leaf grade queues; when receiving the tobacco leaf monitoring information sent by any one of the target photoelectric sensors among the photoelectric sensors, reading the tobacco leaf grade of the current tobacco leaf from the tobacco leaf grade queue associated with the target photoelectric sensor; wherein, the tobacco leaf monitoring information is used to indicate that there is a tobacco leaf being conveyed on the target conveyor belt corresponding to the target photoelectric sensor; when the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target photoelectric sensor, sending a return instruction to the return device corresponding to the target photoelectric sensor, so that the return device performs the return operation for the current tobacco leaf.

[0073] In addition, when the logical instructions in the above-mentioned memory 430 can be implemented in the form of software functional units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. And the foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0074] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the tobacco leaf feeding-back method provided by each of the above methods. The method includes: receiving in real time the tobacco leaf grades corresponding to each of the M tobacco leaves to be conveyed on the tobacco leaf conveying device; wherein, the tobacco leaf conveying device includes N conveyor belts, and each conveyor belt is correspondingly provided with a photoelectric sensor and a feeding-back device. One photoelectric sensor is associated with a tobacco leaf grade queue and a preset tobacco leaf grade; according to the tobacco leaf receiving order, for each tobacco leaf, write the tobacco leaf grade of the tobacco leaf into each of the tobacco leaf grade queues; when receiving the tobacco leaf monitoring information sent by any one of the target photoelectric sensors among the photoelectric sensors, read the tobacco leaf grade of the current tobacco leaf from the tobacco leaf grade queue associated with the target photoelectric sensor; wherein, the tobacco leaf monitoring information is used to indicate that there is a tobacco leaf being conveyed on the target conveyor belt corresponding to the target photoelectric sensor; when the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target photoelectric sensor, send a feeding-back instruction to the feeding-back device corresponding to the target photoelectric sensor, so that the feeding-back device performs the feeding-back operation for the current tobacco leaf.

[0075] On another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the tobacco leaf feeding-back method provided by each of the above methods. The method includes: receiving in real time the tobacco leaf grades corresponding to each of the M tobacco leaves to be conveyed on the tobacco leaf conveying device; wherein, the tobacco leaf conveying device includes N conveyor belts, and each conveyor belt is correspondingly provided with a photoelectric sensor and a feeding-back device. One photoelectric sensor is associated with a tobacco leaf grade queue and a preset tobacco leaf grade; according to the tobacco leaf receiving order, for each tobacco leaf, write the tobacco leaf grade of the tobacco leaf into each of the tobacco leaf grade queues; when receiving the tobacco leaf monitoring information sent by any one of the target photoelectric sensors among the photoelectric sensors, read the tobacco leaf grade of the current tobacco leaf from the tobacco leaf grade queue associated with the target photoelectric sensor; wherein, the tobacco leaf monitoring information is used to indicate that there is a tobacco leaf being conveyed on the target conveyor belt corresponding to the target photoelectric sensor; when the tobacco leaf grade of the current tobacco leaf is the same as the preset tobacco leaf grade associated with the target photoelectric sensor, send a feeding-back instruction to the feeding-back device corresponding to the target photoelectric sensor, so that the feeding-back device performs the feeding-back operation for the current tobacco leaf.

[0076] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0077] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A tobacco leaf withdrawal method, characterized in that: Applied to a programmable logic controller (PLC), the method comprises: receiving in real time the tobacco grade corresponding to each of M tobacco leaves that need to be conveyed on a tobacco conveying device; wherein the tobacco conveying device comprises N conveyor belts, each of which is provided with a photoelectric sensor and a material return device, and one photoelectric sensor is associated with one tobacco grade queue and one preset tobacco grade; According to the order of tobacco leaf reception, for each tobacco leaf, the tobacco leaf grade of the tobacco leaf is written into each tobacco leaf grade queue; When tobacco leaf monitoring information sent by any target photoelectric sensor among the photoelectric sensors is received, the tobacco leaf grade of the current tobacco leaf is read from the tobacco leaf grade queue associated with the target photoelectric sensor; wherein the tobacco leaf monitoring information is used to indicate that tobacco leaves are being conveyed on the target conveyor belt corresponding to the target photoelectric sensor; When the tobacco grade of the current tobacco leaf is the same as the preset tobacco grade associated with the target photoelectric sensor, a material return instruction is sent to the material return device corresponding to the target photoelectric sensor, so that the material return device performs a material return operation for the current tobacco leaf.

2. The tobacco leaf withdrawal method according to claim 1, characterized in that: The step of writing the tobacco grade of the tobacco leaves into each of the tobacco grade queues comprises: According to the tobacco grade of the tobacco leaves, determining tobacco grade queues corresponding to at least one photoelectric sensor associated with a preset tobacco grade less than or equal to the tobacco grade of the tobacco leaves; The tobacco leaf grade of the tobacco leaf is written into the tobacco leaf grade queue corresponding to each of the at least one photoelectric sensors.

3. The tobacco leaf withdrawal method according to claim 1, characterized in that: After sending the material return instruction to the material return device corresponding to the target photoelectric sensor, the method further includes: The tobacco grade of the current tobacco leaves stored in the tobacco grade queue corresponding to the conveyor belt downstream of the target conveyor belt is deleted.

4. The tobacco leaf withdrawing method according to any one of claims 1 to 3, characterized in that: The method further comprises: When the tobacco grade of the current tobacco leaf is different from the preset tobacco grade associated with the target photoelectric sensor, a transfer instruction is sent to the material return device corresponding to the target photoelectric sensor, so that the material return device transfers the current tobacco leaf to an adjacent conveyor belt.

5. The tobacco leaf withdrawing method according to any one of claims 1 to 3, characterized in that: Before receiving in real time the tobacco grades corresponding to the M tobacco leaves that need to be transported on the tobacco leaf transport device, the method further includes: Obtain the tobacco grade queue and preset tobacco grade associated with each of the photoelectric sensors.

6. The tobacco leaf withdrawing method according to any one of claims 1 to 3, characterized in that: The tobacco grade of the tobacco leaves is predicted based on a deep learning model, and the deep learning model is trained based on multiple tobacco leaf image samples and tobacco leaf grade labels corresponding to each of the tobacco leaf image samples.

7. A tobacco leaf return device, characterized in that: The device comprises: A receiving module is used to receive in real time the tobacco grades corresponding to M tobacco leaves that need to be transported on a tobacco conveying device; wherein the tobacco conveying device includes N conveyor belts, each of which is provided with a photoelectric sensor and a material return device, and one photoelectric sensor is associated with one tobacco grade queue and one preset tobacco grade; A storage module, used for writing the tobacco grade of each tobacco leaf into each tobacco grade queue according to the order in which the tobacco leaves are received; A reading module, for reading the tobacco grade of the current tobacco leaf from the tobacco grade queue associated with the target photoelectric sensor when receiving tobacco leaf monitoring information sent by any target photoelectric sensor among the photoelectric sensors; wherein the tobacco leaf monitoring information is used to indicate that tobacco leaves are being conveyed on the target conveyor belt corresponding to the target photoelectric sensor; The first sending module is used to send a material return instruction to the material return device corresponding to the target photoelectric sensor when the tobacco grade of the current tobacco leaf is the same as the preset tobacco grade associated with the target photoelectric sensor, so that the material return device performs a material return operation for the current tobacco leaf.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the tobacco leaf returning method as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the tobacco leaf rejection method as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the tobacco leaf rejection method as described in any one of claims 1 to 6 is implemented.