Parcel flow control method and device in sorting line, computer equipment and medium
By acquiring and processing the package images of the sorting line, determining the package number and calculating the flow rate, the problem of low accuracy of package flow detection in the existing technology is solved, the flow balance between the sorting lines is achieved, and the sorting efficiency is improved.
Patent Information
- Application Number
- CN202310224166.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
The accuracy of parcel flow detection in existing sorting lines is low, resulting in unbalanced flow. Excessive cargo volume in some lines is prone to congestion, and too small cargo volume in some lines results in a waste of electricity.
By obtaining multi-frame package images of the target sorting line, determine the package number, perform deduplication summary, calculate the package flow, and perform balancing processing based on the flow, including transferring packages from one sorting main line to another to achieve flow. balance.
It improves the accuracy of package flow monitoring, achieves flow balance between sorting lines, reduces congestion and power waste, and improves sorting efficiency.
Smart Images

Figure CN118570692A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of logistics sorting, and in particular to a method, device, computer equipment and medium for controlling the flow of packages in a sorting line. Background Art
[0002] Express logistics transfer centers generally use the unloading port matrix process for sorting, that is, after the vehicle arrives at the checkpoint, it is manually unloaded to the corresponding sorting line. Each sorting line is set up vertically and is independent of each other, and then sorted to the corresponding loading line through a horizontal chute. Since the allocation of the arrival unloading checkpoint is relatively random, there may be an imbalance in the flow between the independent sorting lines, that is, some lines have too much cargo and the packages are prone to congestion and damage, while some lines have too little cargo and the lines run idle, causing power waste. Therefore, it is necessary to balance the package flow in the sorting line.
[0003] At present, the parcel flow detection in the sorting line is mainly realized based on photoelectric trigger counting. However, due to the problems of false photoelectric triggering of special-shaped parcels and continuous photoelectric triggering of continuous passing items, the counting results are less accurate and the parcel flow balance effect in the sorting line is also poor. Summary of the invention
[0004] The present application provides a method, device, computer equipment and medium for controlling parcel flow in a sorting line, aiming to solve the technical problem of how to improve the accuracy of parcel flow monitoring.
[0005] In one aspect, the present application provides a method for controlling parcel flow in a sorting line, the method comprising:
[0006] Acquire multiple frames of package images of a target sorting line within a preset time period, each frame of the package image including at least one package;
[0007] Determine the number of each package in each frame of the package image;
[0008] De-duplicate and summarize the numbers in multiple frame package images to obtain a number set;
[0009] Based on the number set, determine the parcel flow of the target sorting line within a preset time period;
[0010] Based on the package flow, package flow balancing is performed.
[0011] In a possible implementation of the present application, determining the serial number of each package in each frame of the package image includes:
[0012] Determine the contour information of each package in each frame of the package image, where each package includes one contour information;
[0013] Sequentially number each piece of contour information in the first frame of the package image to obtain a number of each package in the first frame of the package image;
[0014] Arrange the multiple frames of package images according to the image shooting time, take any frame of the package image as the first package image, take the frame of the package image after the first package image as the second package image, and determine the number of each package in the second package image according to the first package image;
[0015] After determining the number of each package in each frame of the package image in the multiple frames of package images, the number of each package in each frame of the package image is obtained.
[0016] In a possible implementation of the present application, determining the serial number of each package in the second package image according to the first package image includes:
[0017] Using the contour information of each package in the first package image as target contour information in turn, and determining the target position of the target contour information in the second package image;
[0018] The number of the target contour information is used as the number of the package at the target position in the second package image.
[0019] In a possible implementation of the present application, determining a target position of target contour information in a second package image includes:
[0020] Acquire a shooting time interval between a first package image and a second package image;
[0021] Obtain the operating speed of the target sorting line;
[0022] Determine the moving distance of the target contour information based on the shooting time interval and the running speed;
[0023] Based on the moving distance and the position of the target contour information in the first package image, the target position of the target contour information in the second package image is determined.
[0024] In a possible implementation of the present application, each frame of the package image includes two-dimensional image data and three-dimensional point cloud data, and determining the contour information of each package in each frame of the package image includes:
[0025] Taking each frame of the package image as the target package image in turn, and inputting the two-dimensional image data and the three-dimensional point cloud data in the target package image into a preset package contour segmentation model;
[0026] Receive the contour information of each package in the target package image output by the package contour segmentation model.
[0027] In a possible implementation of the present application, determining the parcel flow of a target sorting line within a preset time period based on a number set includes:
[0028] Get the number of numbers in the number set;
[0029] The number of numbers is used as the parcel flow of the target sorting line within the preset time period.
[0030] In a possible implementation of the present application, the target sorting line is a sorting branch line, and multiple sorting branch lines are connected to a sorting main line to merge the parcels in the multiple sorting branch lines into the sorting main line, and perform parcel flow balancing processing based on the parcel flow, including:
[0031] Sum the parcel flows of multiple sorting branches within a preset time period to obtain the total parcel flow;
[0032] Based on the total parcel flow, parcel flow balancing is performed on the parcels in the main sorting line.
[0033] In a possible implementation of the present application, based on the total parcel flow, parcel flow balancing processing is performed on parcels in the sorting main line, including:
[0034] When the total parcel flow is greater than the preset maximum flow of the sorting main line, the flow difference between the total parcel flow and the preset maximum flow is obtained;
[0035] Based on the flow difference, the parcels in the sorting main line are transferred to other sorting main lines, and the total parcel flow of other sorting main lines is less than the preset maximum flow of other sorting main lines.
[0036] On the other hand, the present application provides a parcel flow control device in a sorting line, the device comprising:
[0037] An acquisition unit, used for acquiring a plurality of frames of package images of a target sorting line within a preset time period, each frame of the package image including at least one package;
[0038] A determination unit, used to determine the serial number of each package in each frame of the package image;
[0039] A processing unit, configured to perform deduplication and aggregation processing on the serial numbers in the multiple frames of package images to obtain a serial number set, and determine the package flow of the target sorting line within a preset time period based on the serial number set;
[0040] The balancing unit is used to perform package flow balancing processing based on the package flow.
[0041] In a possible implementation of the present application, the determining unit is specifically configured to:
[0042] Determine the contour information of each package in each frame of the package image, where each package includes one contour information;
[0043] Sequentially numbering each piece of outline information in the first frame of the package image to obtain a number of each package in the first frame of the package image;
[0044] sorting the multiple frames of the package images according to the image shooting time, taking any frame of the package image as a first package image, taking a frame of the package image after the first package image as a second package image, and determining the number of each package in the second package image according to the first package image;
[0045] After determining the serial number of each package in each frame of the package image in the plurality of frames of the package image, the serial number of each package in each frame of the package image is obtained.
[0046] In a possible implementation of the present application, the determining unit is specifically configured to:
[0047] using the contour information of each package in the first package image as target contour information in sequence, and determining the target position of the target contour information in the second package image;
[0048] The serial number of the target outline information is used as the serial number of the package at the target position in the second package image.
[0049] In a possible implementation of the present application, the determining unit is specifically configured to:
[0050] Acquire a shooting time interval between the first package image and the second package image;
[0051] Obtaining the operating speed of the target sorting line;
[0052] Determining a moving distance of the target contour information based on the shooting time interval and the running speed;
[0053] Based on the moving distance and the position of the target contour information in the first package image, a target position of the target contour information in the second package image is determined.
[0054] In a possible implementation of the present application, the determining unit is specifically configured to:
[0055] Sequentially taking each frame of the package image as a target package image, and inputting the two-dimensional image data and the three-dimensional point cloud data in the target package image into a preset package contour segmentation model;
[0056] Receive contour information of each package in the target package image output by the package contour segmentation model.
[0057] In a possible implementation of the present application, the processing unit is specifically configured to:
[0058] Get the number of numbers in the number set;
[0059] The numbered quantity is used as the parcel flow of the target sorting line within the preset time period.
[0060] In a possible implementation of the present application, the balancing unit is specifically used to:
[0061] Sum the parcel flows of the plurality of sorting branches within the preset time period to obtain a total parcel flow;
[0062] Based on the total parcel flow, parcel flow balancing processing is performed on the parcels in the sorting main line.
[0063] In a possible implementation of the present application, the balancing unit is specifically used to:
[0064] When the total flow of packages is greater than the preset maximum flow of the sorting main line, obtaining the flow difference between the total flow of packages and the preset maximum flow;
[0065] Based on the flow difference, the parcels in the sorting main line are transferred to other sorting main lines, and the total parcel flow of the other sorting main lines is less than the preset maximum flow of the other sorting main lines.
[0066] On the other hand, the present application also provides a computer device, the computer device comprising:
[0067] one or more processors;
[0068] Memory; and
[0069] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the package flow control method in the sorting line.
[0070] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the steps in the method for controlling the parcel flow in the sorting line.
[0071] The package flow control method, device, computer equipment and medium in the sorting line provided by the embodiment of the present application include: obtaining multiple frames of package images of the target sorting line within a preset time period, each frame of the package image includes at least one package; determining the number of each package in each frame of the package image; performing deduplication and aggregation processing on the numbers in the multiple frames of the package image to obtain a number set; based on the number set, determining the package flow of the target sorting line within the preset time period; and performing package flow balance processing based on the package flow. Compared with the traditional method, the embodiment of the present application achieves more accurate package counting by obtaining the package image of the target sorting line, determining the number of each package in the package image, and calculating the package flow based on the number, thereby improving the balance effect of the package flow in the sorting line. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0073] Figure 1 It is a schematic diagram of a scenario of a parcel flow control system in a sorting line provided by an embodiment of the present application;
[0074] Figure 2 It is a flow chart of an embodiment of a method for controlling the flow of parcels in a sorting line provided in an embodiment of the present application;
[0075] Figure 3 is a schematic diagram of a first package image provided in an embodiment of the present application;
[0076] Figure 4 is a schematic diagram of a second package image provided in an embodiment of the present application;
[0077] Figure 5 It is a flow chart of another embodiment of the method for controlling the parcel flow in a sorting line provided in an embodiment of the present application;
[0078] Figure 6 It is a schematic diagram of the structure of an embodiment of a parcel flow control device in a sorting line provided in an embodiment of the present application;
[0079] Figure 7 It is a schematic diagram of the structure of an embodiment of a computer device provided in the embodiments of the present application. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0081] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0082] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0083] The embodiments of the present application provide a method, device, computer equipment and medium for controlling the parcel flow in a sorting line, which are described in detail below.
[0084] like Figure 1 As shown, Figure 1 It is a scene schematic diagram of a parcel flow control system in a sorting line provided in an embodiment of the present application. The parcel flow control system in the sorting line may include a computer device 100, in which a parcel flow control device in the sorting line is integrated.
[0085] In the embodiment of the present application, the computer device 100 may be a terminal or a server. When the computer device 100 is a server, it may be an independent server, or a server network or server cluster composed of servers. For example, the computer device 100 described in the embodiment of the present application includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server constructed by a plurality of servers. The cloud server is constructed by a large number of computers or network servers based on cloud computing.
[0086] It is understandable that when the computer device 100 in the embodiment of the present application is a terminal, the terminal used may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such a device may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific computer device 100 may be a desktop terminal or a mobile terminal, and the computer device 100 may also be one of a mobile phone, a tablet computer, a laptop computer, a medical auxiliary instrument, etc.
[0087] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or less computer equipment as shown in Figure 1 Only one computer device is shown in the figure. It can be understood that the parcel flow control system in the sorting line can also include one or more other computer devices, which are not specifically limited here.
[0088] In addition, if Figure 1 As shown, the parcel flow control system in the sorting line may also include a memory 200 for storing data, such as parcel images, parcel flow control data in the sorting line, for example, parcel flow control data in the sorting line when the parcel flow control system in the sorting line is running.
[0089] It should be noted that Figure 1 The scenario diagram of the parcel flow control system in the sorting line shown is only an example. The parcel flow control system and scenario in the sorting line described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the parcel flow control system in the sorting line and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0090] Next, a method for controlling the parcel flow in a sorting line provided in an embodiment of the present application is introduced.
[0091] In the embodiment of the parcel flow control method in the sorting line of the present application, the parcel flow control device in the sorting line is used as the execution subject. For the sake of simplicity and convenience of description, the execution subject will be omitted in the subsequent method embodiments. The parcel flow control device in the sorting line is applied to a computer device.
[0092] See also Figures 2 to 5 , Figure 2 The following is a flow chart of an embodiment of a method for controlling the flow of parcels in a sorting line provided in an embodiment of the present application. The method for controlling the flow of parcels in a sorting line includes:
[0093] 201. Acquire multiple frames of package images of a target sorting line within a preset time period, each frame of the package image including at least one package;
[0094] The target sorting line in the embodiment of the present application can be any sorting line at the unloading checkpoint, so that the vehicle can unload the parcel to the target sorting line after parking at the unloading checkpoint. The target sorting line transports the parcel to facilitate subsequent parcel sorting.
[0095] An image acquisition device is provided in the area where the target sorting line is located. The image acquisition device is aimed at the target sorting line (such as an industrial camera aimed at the target sorting line) to capture images of packages. Since the image acquisition device is generally fixedly arranged, and the packages on the target sorting line are gradually transported forward, the number of packages included in each frame of the package image is not fixed, that is, each frame of the package image includes at least one package, for example Figure 3 The package image shown includes 6 packages on the target sorting line. Of course, the package image may also include other numbers of packages. It is understandable that the number of packages included in the package image depends on the number of packages at the position where the image acquisition device is aimed on the target sorting line.
[0096] The method of acquiring multiple frames of package images of the target sorting line within a preset time period may be: the image acquisition device periodically photographs the target sorting line at a fixed interval to obtain multiple frames of package images within the preset time period. For example, the image acquisition device periodically photographs at a fixed interval of 1 second within the preset time period to obtain multiple frames of package images.
[0097] 202. Determine the serial number of each package in each frame of the package image;
[0098] In the embodiment of the present application, the number of each package in the package image can be letters, numbers, characters, or a combination of at least two of them. Taking the package number as a number as an example, the number of each package in the package image can be obtained by numbering in the order of "1", "2", "3", and "4". Figure 3 For example, Figure 3 The package image includes 6 packages numbered “1”, “2”, “3”, “4”, “5”, and “6” respectively.
[0099] In some embodiments of the present application, determining the number of each package in each frame of the package image may include: determining contour information of each package in each frame of the package image, where a package includes a contour information, and the contour information refers to the contour of the package, and different packages in the package image can be distinguished by the contour information; sequentially numbering each contour information in the first frame of the package image (i.e., the frame of the package image with the earliest image shooting time among the multiple frames of the package image sorted by the image shooting time) to obtain the number of each package in the first frame of the package image, and Figure 3 For example, Figure 3 The package image of the first frame of package image is taken as the first frame of package image, and the contour information of the 6 packages in the first frame of package image is numbered in sequence, so that the numbers of the 6 packages in the first frame of package image are "1", "2", "3", "4", "5", and "6" in sequence.
[0100] In order to ensure the uniqueness of the numbers of the same package in different package images, determining the numbers of each package in each frame of the package image may also include: sorting the multiple frames of package images according to the order of image shooting time; in the sorted multiple frames of package images, taking one frame of any frame of the package image as the first package image, taking the next frame of the first package image as the second package image, determining the numbers of each package in the second package image according to the first package image, and Figure 3 and Figure 4 For example, Figure 3 The package image of is the first package image, Figure 4 The package image of is the second package image, so it can be based on Figure 3 Package image determination Figure 4 After determining the number of each package in each package image in the multiple package images, since the number of each package in the first package image (i.e., the package image with the earliest image shooting time in the multiple package images sorted by image shooting time) has also been determined, the number of each package in all the package images is obtained at this time.
[0101] Determining the number of each package in the second package image according to the first package image may include: using the outline information of each package in the first package image as target outline information in turn, determining the target position of the target outline information in the second package image; and using the number of the target outline information as the number of the package at the target position in the second package image. Figure 3 is the first package image, Figure 4 Taking the second package image as an example, Figure 3 When the contour information of the package numbered "3" in the target sorting line is used as the target contour information, the package numbered "3" is transported to Figure 4 The target position in Figure 4 The position of the oval outline in the figure), so the number "3" is used as Figure 4 The number of the package at the target location (i.e. Figure 4 The number of the package with the oval outline in the middle is also "3"), thereby ensuring the uniqueness of the number of the same package in different package images. For the packages in the second package image that have not been numbered based on the first package image, they are treated as new packages and renumbered in sequence, for example, Figure 4 The profile information of these new packages is numbered as "7" and "8" respectively to ensure that different packages have different numbers.
[0102] In a further embodiment, determining the target position of the target contour information in the second package image may include: obtaining a shooting time interval between the first package image and the second package image; obtaining an operating speed of the target sorting line, where the operating speed generally refers to a moving speed of the package on the target sorting line; determining a moving distance of the target contour information based on the shooting time interval and the operating speed, for example, the product of the shooting time interval and the operating speed may be used as the moving distance of the target contour information; determining the target position of the target contour information in the second package image based on the moving distance and the position of the target contour information in the first package image, so as to obtain the moving distance of the target contour information. Figure 3 and Figure 4 For example, due to Figure 3 The package in the second package image is transported to the right by the target sorting line, so the position of the target contour information in the second package image can be translated to the right by the moving distance to obtain the target position of the target contour information in the second package image.
[0103] It should be noted that, since the target sorting line continuously transports packages, there may be a situation where the target contour information does not exist in the second package image, for example Figure 3 The contour information numbered "1" and "2" does not exist in Figure 4Therefore, after taking the contour information in the first package image as the target contour information, the method may further include: detecting whether the target contour information exists in the second package image; if the target contour information exists in the second package image, performing the step of determining the target position of the target contour information in the second package image; if the target contour information does not exist in the second package image, not performing the step of determining the target position of the target contour information in the second package image. Detecting whether the target contour information exists in the second package image may include: moving the target contour information in the first package image according to the above-mentioned moving distance to simulate the movement of the package with the target contour information on the target sorting line; since the acquisition angles of the first package image and the second package image are the same, the image ranges of the first package image and the second package image on the target sorting line are also the same. If the target contour information still exists in the first package image after the movement, then the package with the target contour information must be within the image range of the second package image after moving on the target sorting line, so it is determined that the target contour information exists in the second package image; conversely, if the target contour information does not exist in the first package image after the movement, it is determined that the target contour information does not exist in the second package image. The first package image and the second package image are the aforementioned first package image and the second package image, that is, among the multiple frames of package images arranged in chronological order according to the image shooting time, the second package image is the subsequent frame of the first package image.
[0104] In addition, since the position of the target contour information in the first package image is known, the position of the target contour information after the move relative to the first package image can also be determined, so judging whether the target contour information after the move still exists in the first package image may include: judging whether the target contour information after the move has an intersection with the first package image based on the position of the target contour information after the move relative to the first package image; if the target contour information after the move has an intersection with the first package image, judging that the target contour information after the move still exists in the first package image; if the target contour information after the move has no intersection with the first package image, judging that the target contour information after the move does not exist in the first package image.
[0105] In some embodiments of the present application, each frame of package image includes two-dimensional image data and three-dimensional point cloud data, the two-dimensional image data is acquired by a 2D camera in an image acquisition device, and the three-dimensional point cloud data is acquired by a 3D laser point cloud camera in the image acquisition device. In this way, each frame of package image can include two-dimensional image data and three-dimensional point cloud data, so that the recognition of contour information in the package image is more accurate. Therefore, determining the contour information of each package in each frame of package image can include: taking each frame of package image as a target package image in turn, inputting the two-dimensional image data and three-dimensional point cloud data in the target package image into a preset package contour segmentation model; receiving the contour information of each package in the target package image output by the package contour segmentation model. The preset package contour segmentation model is obtained by prior model training. The basic model used in model training is generally a convolutional neural network (CNN) model. The specific process of model training is not described here.
[0106] 203. De-duplicate and aggregate the serial numbers in the multiple frames of package images to obtain a serial number set;
[0107] In the embodiment of the present application, the number set includes all the numbers retained after deduplication and aggregation. Figure 3 and Figure 4 For example, Figure 3 and Figure 4 The numbers in are deduplicated and aggregated, and the resulting number set includes "1", "2", "3", "4", "5", "6", "7", and "8".
[0108] 204. Determine the package flow of the target sorting line within the preset time period based on the number set;
[0109] In some embodiments of the present application, determining the parcel flow of the target sorting line within a preset time period based on the number set may include: obtaining the number of numbers in the number set; using the number of numbers as the parcel flow of the target sorting line within the preset time period. For example, if the number set is "1", "2", "3", "4", "5", "6", "7", and "8", the parcel flow of the target sorting line within the preset time period is 8 parcels.
[0110] 205. Perform package flow balancing processing based on the package flow.
[0111] In the embodiment of the present application, parcel flow balancing processing generally refers to diverting parcels to other sorting lines, thereby reducing the parcel processing pressure of the target sorting line. Figure 5 The contents of the embodiment shown.
[0112] The method for controlling the parcel flow in a sorting line provided in an embodiment of the present application obtains a parcel image of a target sorting line, determines the number of each parcel in the parcel image, and calculates the parcel flow based on the number, thereby achieving more accurate parcel counting, thereby improving the balancing effect of the parcel flow in the sorting line.
[0113] In some embodiments of the present application, the target sorting line is a sorting branch line, and multiple sorting branch lines are connected to a sorting main line, so that the packages in the multiple sorting branch lines are merged into the sorting main line to facilitate subsequent package sorting. It should be noted that there can be multiple sorting main lines at the same time, and any two sorting main lines are connected through a conveying mechanism to transfer the packages in one sorting main line to other sorting main lines through the conveying mechanism, so as to realize the diversion and merging of packages. Figure 5 As shown, based on the package flow, performing package flow balancing processing may include:
[0114] 501. Sum the parcel flows of the plurality of sorting branches within the preset time period to obtain a total parcel flow;
[0115] In the embodiment of the present application, since the parcels in multiple sorting branch lines are merged into one sorting main line, the total parcel flow is the parcel flow of the sorting main line.
[0116] 502. Based on the total package flow, perform package flow balancing processing on the packages in the sorting main line.
[0117] In some embodiments of the present application, based on the total parcel flow, parcel flow balancing processing is performed on the parcels in the sorting main line, which may include: when the total parcel flow is greater than the preset maximum flow of the sorting main line, the flow difference between the total parcel flow and the preset maximum flow is obtained, and the preset maximum flow represents the maximum processing capacity of the sorting main line for parcels; based on the flow difference, the parcels in the sorting main line are transferred to other sorting main lines through the above-mentioned conveying mechanism, for example, the parcels represented by the flow difference can be transferred to other sorting main lines to reduce the parcel processing pressure of the sorting main line. The total parcel flow of the other sorting main line is less than the preset maximum flow of the other sorting main line, that is, the processing capacity of the other sorting main line for parcels is surplus. When the total parcel flow is less than the preset maximum flow of the sorting main line, the parcel flow balancing processing is not performed on the parcels in the sorting main line.
[0118] The parcel flow control method in the sorting line provided in the embodiment of the present application performs parcel flow balancing processing based on a more accurate parcel flow, thereby improving the balancing effect of the parcel flow in the sorting line.
[0119] In order to better implement the parcel flow control method in the sorting line in the embodiment of the present application, based on the parcel flow control method in the sorting line, the embodiment of the present application also provides a parcel flow control device in the sorting line, such as Figure 6 As shown, the parcel flow control device 600 in the sorting line includes:
[0120] An acquisition unit 601 is used to acquire multiple frames of package images of a target sorting line within a preset time period, each frame of the package image including at least one package;
[0121] A determination unit 602, used to determine the serial number of each package in each frame of the package image;
[0122] The processing unit 603 is used to perform deduplication and aggregation processing on the serial numbers in the multiple frames of package images to obtain a serial number set, and determine the package flow of the target sorting line within a preset time period based on the serial number set;
[0123] The balancing unit 604 is used to perform package flow balancing processing based on the package flow.
[0124] The parcel flow control device in the sorting line provided by the embodiment of the present application obtains multiple frames of parcel images of the target sorting line within a preset time period through the acquisition unit 601, each frame of the parcel image includes at least one parcel, the determination unit 602 determines the number of each parcel in each frame of the parcel image, and the processing unit 603 performs deduplication and aggregation processing on the numbers in the multiple frames of the parcel image to obtain a number set, and determines the parcel flow of the target sorting line within the preset time period based on the number set, and the balancing unit 604 performs parcel flow balancing processing based on the parcel flow. Compared with the traditional method, the embodiment of the present application obtains the parcel image of the target sorting line, determines the number of each parcel in the parcel image, and calculates the parcel flow based on the number, thereby achieving more accurate parcel counting, thereby improving the balancing effect of the parcel flow in the sorting line.
[0125] In some embodiments of the present application, the determining unit 602 is specifically configured to:
[0126] Determine the contour information of each package in each frame of the package image, where each package includes one contour information;
[0127] Sequentially number each piece of contour information in the first frame of the package image to obtain a number of each package in the first frame of the package image;
[0128] Arrange the multiple frames of package images according to the image shooting time, take any frame of the package image as the first package image, take the frame of the package image after the first package image as the second package image, and determine the number of each package in the second package image according to the first package image;
[0129] After determining the number of each package in each frame of the package image in the multiple frames of package images, the number of each package in each frame of the package image is obtained.
[0130] In some embodiments of the present application, the determining unit 602 is specifically configured to:
[0131] Using the contour information of each package in the first package image as target contour information in turn, and determining the target position of the target contour information in the second package image;
[0132] The number of the target contour information is used as the number of the package at the target position in the second package image.
[0133] In some embodiments of the present application, the determining unit 602 is specifically configured to:
[0134] Acquire a shooting time interval between a first package image and a second package image;
[0135] Obtain the operating speed of the target sorting line;
[0136] Determine the moving distance of the target contour information based on the shooting time interval and the running speed;
[0137] Based on the moving distance and the position of the target contour information in the first package image, the target position of the target contour information in the second package image is determined.
[0138] In some embodiments of the present application, the determining unit 602 is specifically configured to:
[0139] Taking each frame of the package image as the target package image in turn, and inputting the two-dimensional image data and the three-dimensional point cloud data in the target package image into a preset package contour segmentation model;
[0140] Receive the contour information of each package in the target package image output by the package contour segmentation model.
[0141] In some embodiments of the present application, the processing unit 603 is specifically configured to:
[0142] Get the number of numbers in the number set;
[0143] The number of numbers is used as the parcel flow of the target sorting line within the preset time period.
[0144] In some embodiments of the present application, the balancing unit 604 is specifically used for:
[0145] Sum the parcel flows of multiple sorting branches within a preset time period to obtain the total parcel flow;
[0146] Based on the total parcel flow, parcel flow balancing is performed on the parcels in the main sorting line.
[0147] In some embodiments of the present application, the balancing unit 604 is specifically used for:
[0148] When the total parcel flow is greater than the preset maximum flow of the sorting main line, the flow difference between the total parcel flow and the preset maximum flow is obtained;
[0149] Based on the flow difference, the parcels in the sorting main line are transferred to other sorting main lines, and the total parcel flow of other sorting main lines is less than the preset maximum flow of other sorting main lines.
[0150] In addition to the above-mentioned package flow control method and device for a sorting line, the embodiment of the present application further provides a computer device, which integrates any package flow control device for a sorting line provided in the embodiment of the present application, and the computer device includes:
[0151] one or more processors;
[0152] Memory; and
[0153] One or more applications, wherein the one or more applications are stored in the memory and are configured to execute the steps of any one of the embodiments of the method for controlling the flow of packages in the sorting line by the processor.
[0154] The present application also provides a computer device that integrates the package flow control device in any of the sorting lines provided in the present application. Figure 7 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0155] The computer device may include one or more processing core processors 701, one or more computer readable storage medium storage units 702, a power supply 703, an input unit 704 and other components. Those skilled in the art will understand that Figure 7 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0156] The processor 701 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the storage unit 702 and calling data stored in the storage unit 702, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.
[0157] The storage unit 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the storage unit 702. The storage unit 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the storage unit 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the storage unit 702 may also include a memory controller to provide the processor 701 with access to the storage unit 702.
[0158] The computer device also includes a power supply 703 for supplying power to various components. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 703 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0159] The computer device may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0160] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail here. Specifically, in the embodiment of the present application, the processor 701 in the computer device will load the executable file corresponding to the process of one or more application programs into the storage unit 702 according to the following instructions, and the processor 701 will run the application program stored in the storage unit 702, thereby realizing various functions, as follows:
[0161] A plurality of parcel image frames of a target sorting line within a preset time period are obtained, each parcel image frame including at least one parcel; a number of each parcel in each parcel image frame is determined; the numbers in the plurality of parcel image frames are deduplicated and summarized to obtain a number set; based on the number set, a parcel flow of the target sorting line within the preset time period is determined; and based on the parcel flow, a parcel flow balancing process is performed.
[0162] The method for controlling the parcel flow in a sorting line provided in an embodiment of the present application obtains a parcel image of a target sorting line, determines the number of each parcel in the parcel image, and calculates the parcel flow based on the number, thereby achieving more accurate parcel counting, thereby improving the balancing effect of the parcel flow in the sorting line.
[0163] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. The computer-readable storage medium stores a plurality of instructions, which can be loaded by a processor to execute the steps of any of the methods for controlling the flow of parcels in a sorting line provided in the embodiments of the present application. For example, the instructions may execute the following steps:
[0164] A plurality of parcel image frames of a target sorting line within a preset time period are obtained, each parcel image frame including at least one parcel; a number of each parcel in each parcel image frame is determined; the numbers in the plurality of parcel image frames are deduplicated and summarized to obtain a number set; based on the number set, a parcel flow of the target sorting line within the preset time period is determined; and based on the parcel flow, a parcel flow balancing process is performed.
[0165] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0166] The above is a detailed introduction to the package flow control method, device, computer equipment and medium in a sorting line provided by an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for controlling the parcel flow in a sorting line, characterized in that: The method comprises: Acquire multiple frames of package images of a target sorting line within a preset time period, each frame of the package image including at least one package; Determining the serial number of each package in each frame of the package image; De-duplication and aggregation processing is performed on the serial numbers in the multiple frames of package images to obtain a serial number set; Based on the number set, determining the parcel flow of the target sorting line within the preset time period; Based on the package flow, package flow balancing processing is performed.
2. The method for controlling the parcel flow in a sorting line according to claim 1, characterized in that: Determining the serial number of each package in each frame of the package image includes: Determine the contour information of each package in each frame of the package image, where each package includes one contour information; Sequentially numbering each piece of outline information in the first frame of the package image to obtain a number of each package in the first frame of the package image; sorting the multiple frames of the package images according to the image shooting time, taking any frame of the package image as a first package image, taking a frame of the package image after the first package image as a second package image, and determining the number of each package in the second package image according to the first package image; After determining the serial number of each package in each frame of the package image in the plurality of frames of the package image, the serial number of each package in each frame of the package image is obtained.
3. The method for controlling the parcel flow in a sorting line according to claim 2, characterized in that: The step of determining the serial number of each package in the second package image according to the first package image includes: using the contour information of each package in the first package image as target contour information in sequence, and determining the target position of the target contour information in the second package image; The serial number of the target outline information is used as the serial number of the package at the target position in the second package image.
4. The method for controlling the parcel flow in a sorting line according to claim 3, characterized in that: The determining a target position of the target contour information in the second package image includes: Acquire a shooting time interval between the first package image and the second package image; Obtaining the operating speed of the target sorting line; Determining a moving distance of the target contour information based on the shooting time interval and the running speed; Based on the moving distance and the position of the target contour information in the first package image, a target position of the target contour information in the second package image is determined.
5. The method for controlling the parcel flow in a sorting line according to claim 2, characterized in that: Each frame of the package image includes two-dimensional image data and three-dimensional point cloud data, and determining the contour information of each package in each frame of the package image includes: Sequentially taking each frame of the package image as a target package image, and inputting the two-dimensional image data and the three-dimensional point cloud data in the target package image into a preset package contour segmentation model; Receive contour information of each package in the target package image output by the package contour segmentation model.
6. The method for controlling the parcel flow in a sorting line according to claim 1, characterized in that: The determining, based on the number set, the package flow of the target sorting line within the preset time period includes: Get the number of numbers in the number set; The numbered quantity is used as the parcel flow of the target sorting line within the preset time period.
7. The method for controlling the parcel flow in a sorting line according to claim 1, characterized in that: The target sorting line is a sorting branch line, and a plurality of the sorting branch lines are connected to a sorting main line to merge the parcels in the plurality of the sorting branch lines into the sorting main line. The parcel flow balancing process is performed based on the parcel flow, including: Sum the parcel flows of the plurality of sorting branches within the preset time period to obtain a total parcel flow; Based on the total parcel flow, parcel flow balancing processing is performed on the parcels in the sorting main line.
8. The method for controlling the parcel flow in a sorting line according to claim 7, characterized in that: The performing parcel flow balancing processing on the parcels in the sorting main line based on the total parcel flow includes: When the total flow of packages is greater than the preset maximum flow of the sorting main line, obtaining the flow difference between the total flow of packages and the preset maximum flow; Based on the flow difference, the parcels in the sorting main line are transferred to other sorting main lines, and the total parcel flow of the other sorting main lines is less than the preset maximum flow of the other sorting main lines.
9. A parcel flow control device in a sorting line, characterized in that: The device comprises: An acquisition unit, used for acquiring a plurality of frames of package images of a target sorting line within a preset time period, each frame of the package image including at least one package; A determination unit, used to determine the serial number of each package in each frame of the package image; A processing unit, configured to perform deduplication and aggregation processing on the serial numbers in the multiple frames of package images to obtain a serial number set, and determine the package flow of the target sorting line within the preset time period based on the serial number set; A balancing unit is used to perform package flow balancing processing based on the package flow.
10. A computer device, characterized in that: The computer device comprises: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the parcel flow control method in the sorting line according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the method for controlling the parcel flow in a sorting line according to any one of claims 1 to 8.
Citation Information
Patent Citations
Multi-line Internet of Things visual detection method for relay package sorting and system device
CN104858155A
Target tracking sorting system on conveyor belt
CN108355979A
Full-automatic importing, loading and flow adjusting control method
CN113617696A
Automatic parcel sorting method based on three-dimensional vision and related equipment
CN114332220A
Method and device for controlling transmission of target object, transmission system and electronic equipment
CN114950970A
