Method, device and system for cleaning residual material from a turnover box based on machine vision
By using machine vision recognition and path planning optimization, the problem of low cleaning efficiency of residual materials in turnover boxes has been solved, achieving efficient and intelligent cleaning results and avoiding material waste and quality risks.
Patent Information
- Application Number
- CN202411948123.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-12-27
AI Technical Summary
In existing technologies, the cleaning efficiency of residual materials on the inner surface of turnover boxes is low, time-consuming and labor-intensive, and the cleaning effect cannot be guaranteed, resulting in material waste and potential product quality risks.
A machine vision-based approach is used to identify the type, location, and status of residues by acquiring images of turnover boxes, plan cleaning paths, and optimize spraying information using multiple algorithms to determine the optimal cleaning path and spraying method with the goal of minimizing cleaning time.
It achieves efficient and intelligent cleaning of turnover box residues, improving cleaning efficiency, ensuring cleaning effect, and reducing material waste and quality risks.
Smart Images

Figure CN120079655B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of turnover box cleaning technology, and particularly relates to a method, equipment and cleaning system for cleaning turnover box residues based on machine vision. Background Technology
[0002] The vacuum rehumidification process is a crucial production step in the tobacco processing workshop. This process primarily increases the moisture content of the materials, raises their temperature and toughness, and removes any unpleasant odors. In actual production, the inner surface of the turnover boxes used in this process often retains damp tobacco leaves. If cleaning is not timely and thorough, it not only results in significant material waste but also poses a high risk of producing water-stained tobacco leaves. Even worse, it can lead to the mixing of tobacco leaves of different grades, seriously threatening product quality.
[0003] Currently, most cigarette factories rely on manual cleaning to remove residual materials from the inner surface of their turnover boxes. This involves using shovels, brooms, and brushes to sweep away the residue. This method is time-consuming, labor-intensive, inefficient, and lacks guaranteed cleaning results. To address this industry challenge, some scholars and technicians have conducted research, such as redesigning breathable turnover boxes, applying anti-adhesion chemical coatings to the inner surface, using PLC-based automated nozzles for cleaning specific tracks, and using brush rollers for cleaning specific paths. These methods have solved the problem of turnover box residue removal to some extent, but there is still significant room for improvement in terms of processing speed, effectiveness, automation, and integration. Summary of the Invention
[0004] In view of this, the present invention provides a method, device and system for cleaning residues in turnover boxes based on machine vision, which aims to solve the problem of low efficiency in handling residual materials on the inner surface of turnover boxes in the prior art.
[0005] The first aspect of the present invention provides a machine vision-based method for cleaning residue from turnover boxes, characterized in that it includes:
[0006] Acquire images of the turnover box and identify the images to obtain the type, spatial state, and location of tobacco residues inside the turnover box;
[0007] The initial cleanup path is determined based on the location of the remaining debris and the path planning algorithm.
[0008] Based on the initial cleaning path, residue type, residue space status, and residue location, determine the spray information of the cleaning nozzle;
[0009] With the goal of minimizing cleaning time, the initial cleaning path is optimized based on the spraying information to obtain the optimal cleaning path.
[0010] In one possible implementation, the initial cleanup path is determined based on the residual location and a path planning algorithm, including:
[0011] A three-dimensional coordinate system for the turnover box is established with the starting point of the cleaning nozzle as the initial point, and the residual position is marked in the three-dimensional coordinate system of the turnover box;
[0012] Starting from the point where the cleaning nozzle begins, a heuristic search algorithm is used to determine the initial cleaning path.
[0013] In one possible implementation, the spraying information of the cleaning nozzle is determined based on the initial cleaning path, residue type, residue space state, and residue location, including:
[0014] Determine the spraying method of the cleaning nozzles at each residue location based on the type of residue and the state of the residue space.
[0015] Based on the initial cleaning path, determine the spray angle of the cleaning nozzles at each residual location;
[0016] Based on the injection method, injection angle, residual type, residual space state, residual location, and neural network model, the injection pressure and injection duration are determined.
[0017] In one possible implementation, the spraying method of the cleaning nozzles at each residue location is determined based on the residue type and the state of the residue space, including:
[0018] Based on the type of residue and the state of the residue space, the spraying method is queried from a pre-set table.
[0019] In one possible implementation, the spray angle of the cleaning nozzles at each residual location is determined based on the initial cleaning path, including:
[0020] With the goal of maximizing airflow coverage, the spray angle of the cleaning nozzles at each residual location is determined based on the initial cleaning path and particle swarm optimization algorithm.
[0021] In one possible implementation, the injection pressure and injection duration are determined based on the injection method, injection angle, residue type, residue space state, residue location, and neural network model, including:
[0022] The residual type, residual space state, and residual location are input into the neural network model to determine the spray pressure range and spray duration range of the cleaning nozzle at each residual location;
[0023] Within the spray pressure and spray duration ranges, with the goal of achieving the highest cleaning cleanliness and the lowest total cleaning time, the spray pressure and spray duration of the cleaning nozzles at each residue location are determined based on the residue type, residue space state, and ant colony optimization algorithm.
[0024] In one possible implementation, with the goal of minimizing cleanup time, the initial cleanup path is optimized based on the spray information to obtain the optimal cleanup path, including:
[0025] With the goal of minimizing cleanup time, the initial cleanup path is optimized based on spray information and a fast expanding random tree algorithm to obtain the optimal cleanup path.
[0026] A first aspect of the present invention provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the machine vision-based turnover box residue cleaning method of the first aspect described above.
[0027] A first aspect of the present invention provides a cleaning system comprising a five-degree-of-freedom robotic arm with a cleaning nozzle, an image acquisition device, and electronic equipment as described in the third aspect above.
[0028] A first aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the machine vision-based turnover box residue cleaning method of the first aspect described above.
[0029] The present invention provides a machine vision-based method, device, and system for cleaning residues in a turnover box. First, it acquires an image of the turnover box and identifies the type, spatial state, and location of tobacco residues within the box. Based on the residue location and a path planning algorithm, an initial cleaning path is determined. Then, based on the initial cleaning path, residue type, spatial state, and location, the spraying information of the cleaning nozzles is determined. With the goal of minimizing cleaning time, the initial cleaning path is optimized based on the spraying information to obtain the optimal cleaning path. This invention, through detailed analysis of the turnover box image, derives the type, state, and location of the residues, then sequentially plans the path and the operating mode of the cleaning nozzles, and further optimizes the path based on the operating mode of the cleaning nozzles, ensuring the most efficient cleaning of tobacco residues. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a flowchart illustrating the implementation of the machine vision-based method for cleaning residues in turnover boxes provided in this embodiment of the invention.
[0032] Figure 2 This is a schematic diagram of the structure of the machine vision-based turnover box residue cleaning device provided in an embodiment of the present invention. Detailed Implementation
[0033] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.
[0034] Figure 1 This is a flowchart illustrating the implementation of a machine vision-based method for cleaning residue from turnover boxes, as provided in an embodiment of the present invention. Figure 1 As shown, the machine vision-based method for cleaning residue from turnover boxes includes:
[0035] S110, acquire an image of the turnover box, and identify the image of the turnover box to obtain the residual type, residual space state and residual location of the tobacco leaves in the turnover box;
[0036] S120, determine the initial cleanup path based on the residual location and path planning algorithm;
[0037] S130, determine the spray information of the cleaning nozzle based on the initial cleaning path, residue type, residue space status and residue location;
[0038] S140, with the goal of minimizing cleaning time, optimizes the initial cleaning path based on the spraying information to obtain the optimal cleaning path.
[0039] In this embodiment of the invention, multiple high-resolution industrial cameras are carefully deployed around the inner surface of the turnover box to ensure comprehensive, blind-spot-free coverage. For example, a top-down camera is installed at the center of the top of the turnover box to capture the overall layout; a camera is placed in the center of each of the four sides to capture side wall details; and small auxiliary cameras are added to areas prone to residue buildup, such as corners and crevices. The focal length, aperture, and exposure time of each camera are meticulously adjusted, and the optimal parameters are determined through multiple test shots based on the size of the turnover box and the internal lighting conditions. For example, for darker corners, the aperture is appropriately increased and the exposure time is extended, while ensuring that the overall image is not overexposed, so that the captured image clearly shows residual tobacco leaves of various sizes.
[0040] All cameras synchronously acquire images at a uniform high frame rate, such as 30 frames per second, transmitting the acquired color images to the image preprocessing server in real time and stably. The acquisition process spans the entire cleaning cycle, covering different states before, during, and after cleaning, providing rich data for subsequent precise analysis. Image transmission utilizes a high-speed, stable wired network connection to avoid data loss and transmission delays. The transmission format is uniformly converted to lossless compressed PNG format to preserve image details to the greatest extent possible.
[0041] In this embodiment of the invention, upon receiving image data, grayscale conversion is first performed to transform the color image into a grayscale image, reducing the complexity and computational load of data processing. Next, normalization processing is performed, linearly mapping pixel values from [0,255] to the [0,1] interval to eliminate image differences caused by different lighting environments. Simultaneously, based on the selected model input specifications, the image size is cropped or padded to a standard size, such as 416×416 pixels, preparing for subsequent feature extraction. The image processing model can be a convolutional neural network, a deep learning model, etc., and is not limited here.
[0042] An advanced convolutional neural network architecture was employed to accurately delineate the outlines of residual tobacco leaves. A massive number of images of tow boxes, each labeled with precise residual information (including type, spatial state, and location), were collected and divided into training, validation, and test sets in a 7:2:1 ratio. During training, cross-entropy loss was used for classification, while L1 or L2 loss was employed for localization and segmentation. Through hundreds of iterations, the model weights were continuously optimized until high-precision recognition metrics were achieved on the validation set.
[0043] The preprocessed images are batch-input into a well-trained model. Leveraging the powerful feature extraction capabilities of convolutional layers, the dimensionality reduction properties of pooling layers, and the comprehensive judgment function of fully connected layers, the model quickly outputs detailed information on each residual tobacco leaf within the turnover box. Specifically, this includes the type of residue, accurately distinguishing between large, intact tobacco leaves, broken tobacco fragments, and compacted tobacco piles; the spatial state of the residue, clearly identifying whether it is located at the bottom, sidewalls, crevices, or other specific areas of the turnover box; and the pixel-level location of the residue, presented as bounding box coordinates and instance segmentation masks, providing precise location guidance for subsequent cleaning work.
[0044] In some embodiments, determining the initial cleaning path based on the residual location and path planning algorithm includes: establishing a three-dimensional coordinate system of the turnover box with the starting point of the cleaning nozzle as the initial point, and marking the residual location in the three-dimensional coordinate system of the turnover box; and determining the initial cleaning path using a heuristic search algorithm with the starting point of the cleaning nozzle as the initial point.
[0045] In this embodiment of the invention, the residual position information obtained from the image recognition stage is transformed from the image coordinate system to the newly established three-dimensional coordinate system of the turnover box. Since the residual position given by image recognition is often based on image pixel coordinates, it is necessary to use camera calibration parameters and methods such as perspective transformation to complete the coordinate transformation. The transformed residual position is presented in the form of three-dimensional coordinate points. These coordinate points are marked one by one in the three-dimensional coordinate system. At the same time, additional attribute labels can be added to different residual positions, such as the corresponding residual type, spatial state, etc., to facilitate comprehensive consideration during subsequent path planning. For example, a residual position of a broken tobacco leaf fragment located on the upper right side wall of the turnover box is marked as (0.95, 0.78, 0.3) and labeled "broken tobacco leaf fragment, side wall".
[0046] In some embodiments, the spraying information of the cleaning nozzle is determined based on the initial cleaning path, residue type, residue space state, and residue location, including: determining the spraying mode of the cleaning nozzle at each residue location based on the residue type and residue space state; determining the spraying angle of the cleaning nozzle at each residue location based on the initial cleaning path; and determining the spraying pressure and spraying duration based on the spraying mode, spraying angle, residue type, residue space state, residue location, and neural network model.
[0047] In this embodiment of the invention, a basic spraying method is selected based on different residue types. For large, intact tobacco leaf residues: These tobacco leaves have a large area and are relatively loosely attached within the handling box. From a physical perspective, direct spraying concentrates the energy of the airflow, creating a powerful impact that effectively peels off the tobacco leaves. It's similar to using a high-pressure water gun to directly spray an object; the concentrated force of the water flow quickly washes away loosely attached objects. Therefore, when large, intact tobacco leaf residues are identified, a direct spray nozzle is preferred, allowing the airflow to impact the tobacco leaf body in a straight line for efficient cleaning.
[0048] For broken tobacco leaf fragments: These fragments are small and scattered, making it difficult to accurately target each one with a direct spray. This can also cause fragments to scatter, increasing the difficulty of cleaning. A diffused spray, however, uses a special nozzle design to disperse airflow from multiple small holes or gaps, creating a fan-shaped airflow. This is similar to a showerhead, where the dispersed water flow covers a larger area. Therefore, a diffused spray is a more suitable choice for dealing with broken tobacco leaf fragments.
[0049] For compacted tobacco piles: Compacted tobacco piles have a dense texture and a stable internal structure, requiring stronger and more multi-angled disturbance forces. Rotary jet nozzles generate a spiral-shaped airflow that periodically impacts the tobacco pile from different angles, gradually breaking down its compact structure. Like drilling a hole with a auger, the rotational force can penetrate deep into the object, making rotary jetting the most ideal method for compacted tobacco piles.
[0050] For tobacco residue at the bottom of the turnover box: Residue at the bottom tends to be more compacted due to gravity and may also contain more dust and impurities. For large, intact tobacco leaves, in addition to direct spraying, the nozzle height can be appropriately lowered to allow the airflow to be more vertical and impact at closer distances, enhancing the stripping effect. For broken fragments, the airflow should be increased during diffused spraying to ensure penetration of the accumulated layer and removal of deep fragments. For compacted tobacco piles, the nozzle movement speed should be slowed during rotary spraying to allow sufficient time for the pile to break down.
[0051] Regarding tobacco residue on the side walls of the turnover box: the residue on the side walls is subject to both gravity and friction, resulting in unique adhesion. When spraying large, intact tobacco leaves directly, the angle needs to be adjusted to 30-60 degrees with the side wall, allowing the airflow to "scrape" the tobacco leaves off the side wall; the spray pressure for scattered fragments should be appropriately increased to overcome the adhesion force of the side wall; and the rotating spray angle for compacting the tobacco pile should conform to the curvature of the side wall to thoroughly break down the tobacco pile.
[0052] For tobacco residue in the gaps of the turnover box: the narrow space of the gaps requires extremely high spraying precision. Broken fragments should be sprayed with a special fine-diameter nozzle, combined with a gentle scattering method, to avoid high pressure damage to the turnover box; small pieces of compacted tobacco leaves require a long, thin, flexible rotating nozzle to precisely penetrate into the gaps and break down the tobacco leaves.
[0053] In some embodiments, determining the spray pattern of the cleaning nozzle at each residual location based on the residual type and residual space status includes: querying the spray pattern from a pre-set table based on the residual type and residual space status.
[0054] In this embodiment of the invention, a two-dimensional table is created, with rows representing different types of residues and columns representing different spatial states of residues. The first row of the table header lists various typical spatial states inside the turnover box, such as "bottom of the turnover box", "side wall of the turnover box", and "gap of the turnover box"; the first column of the table header lists various types of residues, such as "large whole tobacco leaves", "broken tobacco leaf fragments", and "compacted tobacco leaf pile".
[0055] For each cell in the table, based on extensive past cleaning experiments, empirical data, and physical principles, the corresponding optimal spraying method is entered. For the cell at the intersection of "large whole tobacco leaves" and "bottom of the turnover box," since large whole tobacco leaves are relatively loosely attached at the bottom, direct spraying can efficiently utilize airflow impact to peel off the tobacco leaves, so "direct spraying" is entered. When corresponding to the cells of "broken tobacco leaf fragments" and "turnover box gaps," considering that the fragments are small and the gap space is narrow, a precise and gentle cleaning method is required, so "special fine-caliber scattering spray" is entered. Similarly, at the intersection of "compacted tobacco leaf pile" and "turnover box side wall," since it is necessary to break down the compacted structure and conform to the curvature of the side wall, "rotational spraying (conforming to the side wall angle)" is entered, etc., thus completing the data filling of the entire table.
[0056] The various residues inside the turnover box are not isolated. For example, there may be fragments on and beneath large areas of tobacco leaf residue, and similarly, fragments may be present on the surface of compacted tobacco piles. Furthermore, the tobacco piles and residual leaves may obscure each other, all of which can make identification difficult. Failure to accurately identify these residues can lead to misjudgments and incorrect planning of cleaning paths and intensity. For instance, excessive cleaning force may cause fragments to fly around, while insufficient force may leave tobacco piles uncleaned.
[0057] Therefore, if it is determined that there are multiple types of residues at a certain location, the residues that are easier to clean should be cleaned first. For example, the intersection of "compacted tobacco piles + broken tobacco fragments" and "bottom of turnover box" should be cleaned by first scattering spray and then rotating spray.
[0058] In some embodiments, determining the spray angle of the cleaning nozzles at each residual location based on the initial cleaning path includes: determining the spray angle of the cleaning nozzles at each residual location based on the initial cleaning path and a particle swarm optimization algorithm with the goal of maximizing airflow coverage.
[0059] In this embodiment of the invention, maximizing airflow coverage is the optimization objective, requiring the construction of an objective function that quantifies airflow coverage. Based on geometric principles, each residual location can be considered a region to be covered. Coverage is measured by the degree of overlap between the area reached by the airflow and the residual location when the nozzle sprays at a certain angle. For example, for a large area of intact tobacco leaves at the bottom of a storage box, the elliptical or fan-shaped area covered by the airflow is calculated using trigonometric functions based on the nozzle's physical parameters and its distance from the residue. The intersection area with the actual outline of the tobacco leaves is then calculated. The higher the proportion of the intersection area to the tobacco leaf outline area, the better the airflow coverage. This allows the construction of an objective function regarding the spray angle. In this scenario, the decision variable is the spray angle of the cleaning nozzles at each residual location. The spray angle has physical limitations. Furthermore, the continuity between adjacent residual locations must be considered to avoid abrupt angle changes leading to poor cleaning results. A threshold can be set so that the absolute value of the difference between adjacent angles is less than a certain threshold, ensuring a smooth transition in the cleaning process.
[0060] Substituting the jet angle combination represented by each particle into the objective function, the corresponding airflow coverage is calculated and used as the particle's fitness value. A higher fitness value indicates a better jet angle scheme represented by that particle. In each iteration, all particles move according to the velocity and position update formulas, continuously exploring new jet angle combinations. After each iteration, the fitness of each particle is re-evaluated, and individual and global extrema are updated. As iterations continue, the particle swarm gradually moves towards the optimal solution region of the objective function, and the jet angle combination corresponding to the global extremum gets closer and closer to the ideal scheme that maximizes airflow coverage.
[0061] In some embodiments, determining the spray pressure and spray duration based on the spraying method, spraying angle, residue type, residue space state, residue location, and neural network model includes: inputting the residue type, residue space state, and residue location into the neural network model to determine the spray pressure range and spray duration range for cleaning nozzles at each residue location; within the spray pressure range and spray duration range, aiming at the highest cleaning cleanliness and the lowest total cleaning time, determining the spray pressure and spray duration for cleaning nozzles at each residue location based on the residue type, residue space state, and ant colony optimization algorithm.
[0062] In this embodiment of the invention, two objectives are set: maximizing the cleanliness of the cleaning process and minimizing the total cleaning time. Cleanliness can be measured by the percentage of residual tobacco leaves after cleaning; a lower percentage indicates higher cleanliness. Total cleaning time is the sum of time spent cleaning each residual location, including nozzle movement time and spraying time. A multi-objective function is constructed, for example, using a weighted sum. The decision variables are the spraying pressure and spraying duration at each residual location. Besides the range constraints on pressure and duration, physical equipment limitations must be considered, such as the maximum pressure the nozzle can withstand and the minimum effective spraying duration; and the continuity constraint of the cleaning process must also be taken into account, ensuring that the pressure and duration changes between adjacent residual locations are not too drastic to prevent fluctuations in the cleaning effect.
[0063] Each possible combination of spray pressure and duration is considered as the path of an ant. A group of ants is randomly generated, and each ant's initial position corresponds to an initial pressure and duration value. Simultaneously, a pheromone matrix is initialized to record the pheromone concentration on each path; the initial concentration can be set to the same value. When moving through the search space, the ants select the next residual location's spray pressure and duration value based on pheromone concentration and heuristic information. Heuristic information can be based on physical experience; for example, for large, intact tobacco leaves, high pressure and short duration may result in higher cleaning efficiency; ants are more likely to choose paths with high pheromone concentrations. The spray pressure and duration combination represented by each ant is substituted into the objective function to calculate the corresponding fitness value, reflecting the combined effect of the combination scheme on cleaning cleanliness and total time. After completing one round of search, the ants update the pheromone concentration based on the fitness. Paths with higher fitness result in a greater increase in pheromone. In multiple iterations, the ants continuously explore new combinations, and the pheromone concentration is dynamically updated, causing the group to gradually move towards the optimal solution. As the number of iterations increases, pheromones concentrate on the optimal path, eventually finding the optimal combination of injection pressure and duration that achieves the objective function, satisfying the requirements of maximum cleaning cleanliness and minimum total cleaning time, and accurately determining the cleaning parameters for each residual location.
[0064] In some embodiments, with the goal of minimizing the cleanup time, the initial cleanup path is optimized based on the spray information to obtain the optimal cleanup path, including: with the goal of minimizing the cleanup time, the initial cleanup path is optimized based on the spray information and the fast expanding random tree algorithm to obtain the optimal cleanup path.
[0065] In this embodiment of the invention, the cleaning time mainly consists of the nozzle movement time, spraying time, and possible pause time. If the spraying information involves switching between different types of nozzles, the nozzle switching time needs to be considered. A random search tree is constructed using the initial position of the cleaning nozzle as the root node. In the data structure of this tree, each node contains position information (corresponding to coordinates in the three-dimensional coordinate system of the turnover box), a parent node pointer, and related attributes. Initially, the tree contains only the root node. Sampling points are randomly generated within the three-dimensional space of the turnover box according to a certain probability distribution. For example, the sampling probability is increased in the spatial region containing residual positions, prompting the tree to grow towards the target to be cleaned more quickly. After each sampling of a new point, the node closest to the sampling point is searched from the current tree, and an attempt is made to connect the new point to the nearest node along a straight line. As long as the connection path does not collide with obstacles within the turnover box, the tree is successfully expanded, the new point becomes a new tree node, and its parent-child relationship and other attributes are updated. The RRT algorithm continuously performs random sampling and tree expansion operations. In each iteration, a large number of potential path branches are generated, and the estimated cleaning time corresponding to each branch is calculated. As the trees continue to grow and expand, gradually covering all remaining areas to be cleared, numerous path solutions emerge.
[0066] A maximum number of iterations or a time threshold is set. When the algorithm reaches its maximum iteration limit, or when the cleanup time of the optimal path no longer significantly decreases after multiple iterations, the algorithm is considered to have converged. At this point, the path with the shortest cleanup time in the tree is the optimal cleanup path optimized with the goal of minimizing cleanup time. This path starts from the starting point, sequentially connects all residual locations, and is most efficient in terms of movement and spraying time scheduling, providing the best route planning for actual cleanup operations.
[0067] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0068] Figure 2 This is a schematic diagram of the structure of a machine vision-based turnover box residue cleaning device provided in an embodiment of the present invention. Figure 2 As shown, the machine vision-based turnover box residue cleaning device includes:
[0069] The data acquisition module 210 is used to acquire images of the turnover box and identify the images of the turnover box to obtain the residual type, residual space state and residual location of the tobacco leaves in the turnover box.
[0070] The path calculation module 220 is used to determine the initial cleanup path based on the residual location and the path planning algorithm;
[0071] The spray determination module 230 is used to determine the spray information of the cleaning nozzle based on the initial cleaning path, residue type, residue space state and residue location;
[0072] The path optimization module 240 is used to optimize the initial cleaning path based on the spraying information with the goal of minimizing the cleaning time, so as to obtain the optimal cleaning path.
[0073] Optionally, the path calculation module 220 is used to establish a three-dimensional coordinate system of the turnover box with the starting point of the cleaning nozzle as the initial point, and mark the residual position in the three-dimensional coordinate system of the turnover box; and to determine the initial cleaning path using a heuristic search algorithm with the starting point of the cleaning nozzle as the initial point.
[0074] Optionally, the spray determination module 230 is used to determine the spraying method of the cleaning nozzles at each residual location based on the residual type and residual space state; determine the spraying angle of the cleaning nozzles at each residual location based on the initial cleaning path; and determine the spraying pressure and spraying duration based on the spraying method, spraying angle, residual type, residual space state, residual location, and neural network model.
[0075] Optionally, the injection determination module 230 is used to query the injection method from a pre-set table based on the residue type and the state of the residue space.
[0076] Optionally, the spray determination module 230 is used to determine the spray angle of the cleaning nozzles at each residual location based on the initial cleaning path and the particle swarm optimization algorithm, with the goal of maximizing airflow coverage.
[0077] Optionally, the spray determination module 230 is used to input the residue type, residue space state, and residue location into the neural network model to determine the spray pressure range and spray duration range of the cleaning nozzle at each residue location; within the spray pressure range and spray duration range, with the goal of achieving the highest cleaning cleanliness and the lowest total cleaning time, the spray pressure and spray duration of the cleaning nozzle at each residue location are determined based on the residue type, residue space state, and ant colony optimization algorithm.
[0078] Optionally, a path optimization module 240 is used to optimize the initial cleanup path based on spray information and a fast expanding random tree algorithm with the goal of minimizing cleanup time, so as to obtain the optimal cleanup path.
[0079] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0080] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions 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, and should all be included within the protection scope of the present invention.
Claims
1. A machine vision-based totes residue cleaning method, characterized by, include: Acquire images of the turnover box and identify the images of the turnover box to obtain the residual type, residual space state and residual location of tobacco leaves in the turnover box; Based on the residual location and path planning algorithm, determine the initial cleanup path; Based on the initial cleaning path, the type of residue, the state of the residue space, and the location of the residue, the spraying information of the cleaning nozzle is determined; With the goal of minimizing cleaning time, the initial cleaning path is optimized based on the spraying information to obtain the optimal cleaning path; Based on the residual location and path planning algorithm, the initial cleanup path is determined, including: A three-dimensional coordinate system for the turnover box is established with the starting point of the cleaning nozzle as the initial point, and the residual position is marked in the three-dimensional coordinate system of the turnover box; Starting from the point where the nozzle is being cleaned, a heuristic search algorithm is used to determine the initial cleaning path. Based on the initial cleaning path, the type of residue, the state of the residue space, and the location of the residue, the spraying information of the cleaning nozzle is determined, including: Based on the type of residue and the state of the residue space, determine the spraying method of the cleaning nozzles at each residue location; Based on the initial cleaning path, determine the spray angle of the cleaning nozzles at each residual location; Based on the injection method, the injection angle, the residue type, the residue space state, the residue location, and the neural network model, the injection pressure and injection duration are determined. Based on the injection method, injection angle, residue type, residue space state, residue location, and neural network model, the injection pressure and injection duration are determined, including: The residue type, residue space state, and residue location are input into the neural network model to determine the spray pressure range and spray duration range of the cleaning nozzle at each residue location; Within the spray pressure range and the spray duration range, with the goal of achieving the highest cleaning cleanliness and the lowest total cleaning time, the spray pressure and spray duration of the cleaning nozzles at each residual location are determined based on the residual type, residual space state, and ant colony optimization algorithm.
2. The machine vision-based totes residue cleaning method of claim 1, wherein, Based on the type of residue and the state of the residue space, the spraying method of the cleaning nozzles at each residue location is determined, including: Based on the type of residue and the state of the residue space, the spraying method is queried from a pre-set table.
3. The machine vision-based method for cleaning residue from turnover boxes according to claim 1, characterized in that, Based on the initial cleaning path, determine the spray angle of the cleaning nozzles at each residual location, including: With the goal of maximizing airflow coverage, the spray angle of the cleaning nozzles at each residual location is determined based on the initial cleaning path and the particle swarm optimization algorithm.
4. The machine vision-based method for cleaning residue from turnover boxes according to claim 1, characterized in that, With the goal of minimizing cleaning time, the initial cleaning path is optimized based on the spray information to obtain the optimal cleaning path, including: With the goal of minimizing cleanup time, the initial cleanup path is optimized based on the spray information and the fast expanding random tree algorithm to obtain the optimal cleanup path.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the machine vision-based turnover box residue cleaning method as described in any one of claims 1 to 4.
6. A cleaning system, characterized in that, It includes a five-degree-of-freedom robotic arm with a cleaning nozzle, an image acquisition device, and the electronic equipment described in claim 5 above.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the machine vision-based turnover box residue cleaning method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Automobile rear paint spraying robot control method and system, medium and product
CN118885004A
Pipeline water spraying automatic detection method based on image recognition
CN119098452A
