Item tracking method and apparatus, and computer-readable storage medium

By determining the body posture and operating area of ​​the target person in the logistics industry, combined with logistics information and artificial intelligence models, efficient and accurate tracking of items to be tracked is achieved, solving the problem of item loss tracking in logistics, and improving the accuracy and accuracy of item tracking. efficiency.

WO2024216951A1PCT designated stage expired Publication Date: 2024-10-24BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/131807
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2023-11-15
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

In the logistics industry, existing technology is difficult to track lost items efficiently and accurately, resulting in an alarming number of lost items. Moreover, existing target tracking algorithms have low computational efficiency and are prone to missed detections or position deviations.

Method used

By determining the body posture and operating area of ​​the target person in the starting frame of the target video, the location of the item to be tracked is extracted, and the logistics information is used to intercept the target video, and the artificial intelligence model is used to track the item and predict the location of the item in the video.

Benefits of technology

It improves the accuracy and efficiency of item tracking, reduces missed and wrong detections, and can accurately identify items to be tracked in logistics transportation to meet the needs of logistics transportation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023131807_24102024_PF_FP_ABST
    Figure CN2023131807_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to an item tracking method and apparatus, and a computer-readable storage medium, and relates to the field of warehouse logistics. The item tracking method comprises: according to a plurality of key points of a target person in an initial frame of a target video, determining the body orientation of the target person in the initial frame of the target video, wherein the target person is determined according to logistics information of an item to be tracked; according to the plurality of key points and the body orientation of the target person in the initial frame of the target video, extracting an operation area of the target person in the initial frame of the target video; according to the operation area of the target person in the initial frame of the target video, determining the position of the item to be tracked in the initial frame of the target video; and according to the position of the item to be tracked in the initial frame of the target video, tracking the item to be tracked in the target video.
Need to check novelty before this filing date? Find Prior Art

Description

Item tracking method and device, and computer-readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure is based on and claims priority to an application filed in China with application number 202310436790.7 and filing date April 21, 2023. The disclosure of this application is hereby incorporated into this disclosure as a whole. Technical Field

[0003] The present disclosure relates to the field of warehousing and logistics, and in particular to an item tracking method and device, and a computer-readable storage medium. Background Art

[0004] With the acceleration of economic globalization, today's consumers are increasingly reliant on online shopping. Logistics, at the heart of this fast-paced consumer era, must adapt to rapidly changing consumer demands. A significant issue is the loss and damage of items during transportation. Within the logistics industry, the number of items lost and damaged daily is staggering.

[0005] The area in the sorting warehouse where item numbers are scanned is typically equipped with multiple cameras to record the scanning scene. This surveillance video can be used as evidence to later locate and determine responsibility for lost items. For example, if an item is delivered from site A to site B and site B does not receive it, site A can use on-site surveillance video to track the lost item, proving that it was not lost at site A, thereby allocating responsibility.

[0006] Summary of the Invention

[0007] According to a first aspect of the present disclosure, a method for tracking an object is provided, comprising: determining a body posture of a target person in a starting frame of a target video based on multiple key points of the target person in the starting frame of the target video, wherein the target person is determined based on logistics information of an object to be tracked; extracting an operation area of ​​the target person in the starting frame of the target video based on multiple key points and body posture of the target person in the starting frame of the target video; determining a position of the object to be tracked in the starting frame of the target video based on the operation area of ​​the target person in the starting frame of the target video; and tracking the object to be tracked in the target video based on the position of the object to be tracked in the starting frame of the target video.

[0008] In some embodiments, the operation area of ​​the target character in the starting frame of the target video is extracted based on multiple key points and body postures of the target character in the starting frame of the target video, including: determining the body width of the target character based on the distance between the two farthest key points in a specified direction; determining the farthest position that the target character's arm can reach in the starting frame of the target video based on the body width and body posture of the target character in the starting frame of the target video; and extracting the operation area of ​​the target character in the starting frame of the target video based on the farthest position that the target character's arm can reach in the starting frame of the target video.

[0009] In some embodiments, the body posture includes body orientation, and the body posture of the target person in the starting frame of the target video is determined based on multiple key points of the target person in the starting frame of the target video, including: determining the arm vector of the target person in the starting frame of the target video based on multiple key points of the target person in the starting frame of the target video; determining the body orientation of the target person in the starting frame of the target video based on the arm vector of the target person in the starting frame of the target video.

[0010] In some embodiments, the multiple key points include hand key points and shoulder key points, the arm vector includes a first arm vector on one side of the target person's body and a second arm vector on the other side of the target person's body, and determining the arm vector of the target person in the starting frame of the target video based on the multiple key points of the target person in the starting frame of the target video includes: determining the first arm vector based on the hand key points and shoulder key points on one side of the target person's body in the starting frame of the target video; determining the second arm vector based on the hand key points and shoulder key points on the other side of the target person's body in the starting frame of the target video.

[0011] In some embodiments, the body orientation of the target person in the starting frame of the target video is determined based on the arm vector of the target person in the starting frame of the target video, including: determining the body orientation of the target person in the starting frame of the target video based on a weighted result of the first arm vector and the second arm vector.

[0012] In some embodiments, the position of the object to be tracked in the starting frame of the target video is determined based on the operation area of ​​the target person in the starting frame of the target video, including: determining the position of one or more objects in the operation area; when there are multiple objects in the operation area, determining the position of the operating device of the target person in the operation area; determining the position of the object to be tracked based on the position of one or more objects in the operation area and the position of the operating device of the target person in the operation area.

[0013] In some embodiments, determining the position of one or more items in the operating area includes: generating a detection frame of one or more items in the operating area; and determining the position of one or more items in the operating area based on the detection frame of one or more items in the operating area.

[0014] In some embodiments, determining the position of the target person's operating device in the operating area includes: generating a detection frame of the target person's operating device in the operating area; and determining the position of the target person's operating device in the operating area based on the detection frame of the target person's operating device in the operating area.

[0015] In some embodiments, the position of the object to be tracked is determined based on the position of one or more objects in the operating area and the position of the operating device of the target person in the operating area, including: determining the object closest to the operating device as the object to be tracked.

[0016] In some embodiments, the object tracking method further includes: determining a starting frame of the target video based on logistics information of the object to be tracked.

[0017] In some embodiments, the starting frame of the target video is determined based on the logistics information of the item to be tracked, including: determining a candidate video based on the operation time and operation location of the item to be tracked in the logistics information; determining the starting frame of the target video based on the operation time of the item to be tracked and the number of frames per second transmitted by the candidate video; and intercepting the target video from the candidate video based on the starting frame of the target video.

[0018] In some embodiments, the operation time of the item to be tracked is the time when the item to be tracked was last scanned.

[0019] In some embodiments, the object tracking method further includes: generating a detection frame of the target person in the starting frame of the target video; and generating multiple key points of the target person in the starting frame of the target video based on the detection frame of the target person in the starting frame of the target video.

[0020] In some embodiments, generating a detection frame of a target person in the starting frame of a target video includes: generating detection frames of one or more candidate persons in the starting frame of the target video, wherein each detection frame corresponds to one candidate person; in the case of multiple detection frames, determining an identifier of the candidate person corresponding to the detection frame based on features corresponding to each detection frame; and determining a detection frame corresponding to the target person based on the identifier of the candidate person corresponding to the detection frame and the identifier of the target person in the logistics information of the item to be tracked.

[0021] In some embodiments, tracking an object to be tracked in a target video according to the position of the object to be tracked in a starting frame of the target video includes: starting from the starting frame of the target video, predicting the position of the object to be tracked in a next frame of the target video according to the position of the object to be tracked in a current frame of the target video.

[0022] In some embodiments, the position of the object to be tracked in the next frame of the target video is predicted based on the position of the object to be tracked in the current frame of the target video, including: predicting the position of the object to be tracked in the next frame of the target video based on the position and movement speed of the object to be tracked in the current frame of the target video, and obtaining a position prediction result; detecting the position of the object to be tracked in the next frame of the target video using a target detection model based on the image of the next frame, and obtaining a position detection result; predicting the position of the object to be tracked in the next frame of the target video based on the position prediction result and the position detection result.

[0023] According to a second aspect of the present disclosure, an object tracking device is provided, including: a posture determination module, configured to determine the body posture of a target person in the starting frame of a target video based on multiple key points of the target person in the starting frame of the target video, wherein the target person is determined based on logistics information of the object to be tracked; an extraction module, configured to extract the operation area of ​​the target person in the starting frame of the target video based on multiple key points and body posture of the target person in the starting frame of the target video; a position determination module, configured to determine the position of the object to be tracked in the starting frame of the target video based on the operation area of ​​the target person in the starting frame of the target video; and a tracking module, configured to track the object to be tracked in the target video based on the position of the object to be tracked in the starting frame of the target video.

[0024] According to a third aspect of the present disclosure, a communication device is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the item tracking method according to any embodiment of the present disclosure based on instructions stored in the memory.

[0025] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the instructions are executed by a processor, the item tracking method according to any embodiment of the present disclosure is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0027] The present disclosure can be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:

[0028] FIG1 shows a flowchart of an item tracking method according to some embodiments of the present disclosure;

[0029] FIG2 shows a schematic diagram of an operating device according to some embodiments of the present disclosure;

[0030] FIG3 shows a schematic diagram of a detection frame and key points according to some embodiments of the present disclosure;

[0031] FIG4 is a schematic diagram illustrating an operating area according to some embodiments of the present disclosure;

[0032] FIG5 shows a schematic diagram of determining an item to be tracked according to some embodiments of the present disclosure;

[0033] FIG6 shows a block diagram of an item tracking device according to some embodiments of the present disclosure;

[0034] FIG7 shows a block diagram of an item tracking device according to other embodiments of the present disclosure;

[0035] FIG8 illustrates a block diagram of a computer system for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0036] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0037] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0038] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0039] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0040] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0041] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0042] In the prior art, it is necessary to manually find the surveillance video of the lost item based on the tracking number of the lost item, review it, and find the time when the problem occurred in the video to facilitate evidence collection and accountability. However, manual search methods require a lot of time and manpower costs.

[0043] Furthermore, existing target tracking algorithms detect objects in video images frame by frame and measure their similarity with the target object to determine its location. This results in low computational efficiency and is prone to missed detections or positional errors. This is particularly true in logistics and transportation, where items often appear similar. When multiple items appear simultaneously in a surveillance video, it is difficult to determine which one is the target, making this algorithm inadequate for tracking items in logistics and transportation.

[0044] The present disclosure provides an item tracking method and device, and a computer-readable storage medium, which improve the accuracy of item tracking.

[0045] FIG1 shows a flowchart of an item tracking method according to some embodiments of the present disclosure.

[0046] As shown in FIG1 , the item tracking method includes steps S1 to S4 .

[0047] In step S1, the body posture of the target person in the starting frame of the target video is determined based on multiple key points of the target person in the starting frame of the target video, wherein the target person is determined based on the logistics information of the object to be tracked.

[0048] For example, first determine who the operator who scanned the item is based on the item's logistics information.

[0049] Item sorting personnel at logistics sites usually hold operating equipment (for example, barcode scanning equipment) in their hands to scan the waybill on the item and collect information about the current item.

[0050] FIG2 shows a schematic diagram of an operating device according to some embodiments of the present disclosure.

[0051] As shown in FIG2 , the operator can use the display screen and keypad of the operating device to operate the item, for example, to scan and enter the information of the item.

[0052] The collected item information, along with the operator's ID, is stored in a database based on the current time. During item transportation and scanning at multiple logistics nodes, lost items are inevitable. When lost, they are tracked based on the location and time of scanning. For example, the operator at the station can be identified based on the item information in the database.

[0053] In some embodiments, the object tracking method further includes: determining a starting frame of the target video based on logistics information of the object to be tracked.

[0054] The starting frame of the target video can be the frame corresponding to the last scan operation before the item was lost. Based on the item tracking number, the item's logistics information is searched in the database. The logistics information is shown in the following table.

[0055] The logistics information of the item may also include the batch number, shipping location, shipping time, shipping status, destination site, creation time and completion time of the scanning operation, etc., which are not shown above.

[0056] Based on the last operation location and time of an item, for example, 2022.05.20 11:11:11 at Site A, video data can be pulled from the surveillance video at Site A. Each frame of the surveillance video is watermarked with a time stamp. Based on the scan time obtained from the database, optical character recognition (OCR) is used to locate the start frame of the scan in the surveillance video.

[0057] In some embodiments, the starting frame of the target video is determined based on the logistics information of the item to be tracked, including: determining a candidate video based on the operation time and operation location of the item to be tracked in the logistics information; determining the starting frame of the target video based on the operation time of the item to be tracked and the number of frames per second transmitted by the candidate video; and intercepting the target video from the candidate video based on the starting frame of the target video.

[0058] For example, general surveillance videos are first classified and stored by date. The video of 2022.05.20 will be placed in the file directory of 2022.05.20. The videos in this folder directory will be segmented and stored as multiple videos by hour. When you need to locate the target frame, first search in the corresponding file directory. For example, if the operation time is 11:11:11, first use the video from 10 to 11 o'clock as the candidate video, and then, based on the number of frames transmitted per second of the candidate video, search for the target frame corresponding to 11:11:11 in the candidate video. The calculation formula is as follows:

[0059] Start_frame = (time_find - time_start_video) * frames per second + 1

[0060] Wherein, time_start_video is the time of the first frame of the candidate video, and time_find is the scanning (operation) time 11:11:11. Typically, the video transmission frame rate is 25fps (frame per second).

[0061] In some embodiments, the starting frame of the target video is determined based on the optical character recognition result of the first frame of the candidate video, the operation time of the object to be tracked, and the transmission frame rate of the candidate video per second.

[0062] For example, the time displayed in the upper left corner of the first frame of the candidate video is identified by OCR. The identified time time_start_video is 10:10:10, which is 3661 seconds away from 11:11:11. Based on the video frame rate of 25 frames per second, it can be calculated that the starting frame of the code scan is the 3661*25+1=91526th frame.

[0063] The present invention locates the starting frame of the target video by only finding the first frame of the candidate video based on the operation time of the object to be tracked and the number of frames transmitted per second of the candidate video. There is no need to perform separate OCR recognition on each frame, thus avoiding a large amount of time and computing resources being wasted.

[0064] In some embodiments, the operation time of the item to be tracked is the time when the item to be tracked was last scanned.

[0065] For example, if the item to be tracked is lost, the video where the item was last seen and scanned can be found to start tracking it.

[0066] Starting from the starting frame, video segments are captured from the candidate videos according to a preset duration to obtain the target video, and then video tracking of a fixed duration is performed. For example, if an item needs to be tracked for five minutes to find and prove a lost item, a 5-minute video segment starting from the starting frame can be captured as the target video. Alternatively, the target video can be captured at the time the item leaves the operating table.

[0067] The above describes how to determine the target video and starting frame. The following describes how to determine the target person and generate key points.

[0068] First, target detection can be performed to generate the detection box of the target person in the starting frame, that is, the human body bbox (bounding boxes).

[0069] In some embodiments, generating a detection frame of a target person in the starting frame of a target video includes: generating detection frames of one or more candidate persons in the starting frame of the target video, wherein each detection frame corresponds to one candidate person; in the case of multiple detection frames, determining an identifier of the candidate person corresponding to the detection frame based on features corresponding to each detection frame; and determining a detection frame corresponding to the target person based on the identifier of the candidate person corresponding to the detection frame and the identifier of the target person in the logistics information of the item to be tracked.

[0070] For example, when there are a large number of items, multiple people may be scanning the code in the surveillance video. Therefore, REID (person re-identification) is performed on the people appearing in the video to determine their identity.

[0071] When performing REID, first, the detection boxes of all people appearing in the starting frame, that is, human body bboxes (bounding boxes), are generated.

[0072] Then, artificial intelligence models such as ResNet (residual network) are used to extract the features within the detection frames of all characters in the starting frame, and the extracted features are compared with the personnel features in the personnel database for similarity, thereby confirming the identification of each character in the video, that is, knowing who the operators in the current monitoring screen are and determining the corresponding detection frames.

[0073] After obtaining the identification of each person, it is compared with the identification of the target person in the logistics information of the item to be tracked. For example, the identification of the target person in the logistics information of the item to be tracked is Zhang, which means that Zhang scanned the missing item. In this case, the detection frame corresponding to Zhang in the video frame is used as the detection frame corresponding to the target person, and other irrelevant people are filtered out.

[0074] In some embodiments, the object tracking method further includes generating a detection frame of the target person in the starting frame of the target video; and generating multiple key points of the target person in the starting frame of the target video based on the detection frame of the target person in the starting frame of the target video.

[0075] For example, the artificial intelligence model is used to detect the key points of the target person's body in the bbox and generate the coordinates of the key points of the body. The key points of the body may include ears, nose, eyes, wrists, elbows, shoulders and other parts.

[0076] FIG3 shows a schematic diagram of a detection box and key points according to some embodiments of the present disclosure.

[0077] As shown in Figure 3, the dotted line represents the detection frame. Key points can be generated for the people within the detection frame. For clarity, only a subset of key points are shown in the figure. Other irrelevant people besides the target person have been filtered out in the above steps and are not considered here.

[0078] In some embodiments, the body posture includes a body orientation. Determining the body posture of the target person in the starting frame of the target video based on a plurality of key points of the target person in the starting frame of the target video includes: determining an arm vector of the target person in the starting frame of the target video based on the plurality of key points of the target person in the starting frame of the target video; and determining the body orientation of the target person in the starting frame of the target video based on the arm vector of the target person in the starting frame of the target video.

[0079] For example, based on the generated human key points, the human body posture can be determined. Since there are many obstructions in the working scene of the code scanner, especially the lower body is easily obstructed, the upper body, such as the direction of the arms, can be used to determine the human body posture.

[0080] In some embodiments, the multiple key points include hand key points and shoulder key points, the arm vector includes a first arm vector on one side of the target person's body and a second arm vector on the other side of the target person's body, and the arm vector of the target person in the starting frame of the target video is determined based on the multiple key points of the target person in the starting frame of the target video, including: determining the first arm vector based on the hand key points and shoulder key points on one side of the target person's body in the starting frame of the target video; determining the second arm vector based on the hand key points and shoulder key points on the other side of the target person's body in the starting frame of the target video.

[0081] For example, you can select the coordinates of the shoulder and wrist of the upper body to calculate the orientation of the arm. The calculation formula is as follows.

[0082] Among them wrist left 、wrist right 、shoulder left 、shoulder right are the coordinates of the left and right wrists and shoulders, respectively. ∑ represents the sum of the x- and y-axis coordinates. V_left and V_right are the normalized vectors of the left and right arms, i.e., the first arm vector and the second arm vector. To prevent division by zero, a small positive integer ∈ is added; ∈ can be a value such as 0.001. The first arm vector and the second arm vector represent the direction in which the person's arms are pointing, respectively.

[0083] In some embodiments, the body orientation of the target person in the starting frame of the target video is determined based on the arm vector of the target person in the starting frame of the target video, including: determining the body orientation of the target person in the starting frame of the target video based on a weighted result of the first arm vector and the second arm vector.

[0084] For example, based on the first arm vector and the second arm vector, the body's orientation vector can be obtained using the following formula. body =w1*V left +w2*V right

[0085] Where w1 and w2 are weights, and V_body is the calculated body direction vector of the target person (i.e., the body orientation, used to represent the body posture). When w1 and w2 are both 1 / 2, V_body is the angle bisector between the first arm vector and the second arm vector.

[0086] In step S2, the operation area of ​​the target person in the starting frame of the target video is extracted based on multiple key points and body postures of the target person in the starting frame of the target video.

[0087] As shown in Figure 3, multiple objects may appear simultaneously in a video frame. This method first extracts the reachable area of ​​the target person's body based on key points and posture. The position of the object to be tracked does not exceed the range of the reachable area. Subsequent steps only require identifying the object to be tracked within the reachable area, enabling more accurate identification of the object among multiple objects and avoiding false or missed detections.

[0088] In some embodiments, the operation area of ​​the target character in the starting frame of the target video is extracted based on multiple key points and body postures of the target character in the starting frame of the target video, including: determining the body width of the target character based on the distance between the two farthest key points in a specified direction; determining the farthest position that the target character's arm can reach in the starting frame of the target video based on the body width and body posture of the target character in the starting frame of the target video; and extracting the operation area of ​​the target character in the starting frame of the target video based on the farthest position that the target character's arm can reach in the starting frame of the target video.

[0089] For example, based on the calculated body orientation, the operating area in front of the target person can be determined. In a logistics barcode scanning scenario, the distance between the scanned item and the center point of the person is generally no more than two body widths. Therefore, the operating area can be selected based on the body orientation and key points. The calculation formula is as follows: Body_width = key_x_max - key_x_min X_extention=Body_width*extention_ratio*cos(Direction_theta) Y_extention=Body_width*extention_ratio*sin(Direction_theta)

[0090] Among them, key_x_max and key_x_min are the horizontal coordinates of the two key points that are farthest apart in the specified x-axis direction among the multiple detected human key points. For example, key_x_min is the key point with the smallest x coordinate among all key points, and key_x_max is the key point with the largest x coordinate among all key points.

[0091] Since the operator is generally standing in the video, the y-axis direction of the image is close to the standing direction, and the x-axis direction is close to the body width direction. Therefore, the difference between key_x_max and key_x_min, that is, the difference between the maximum horizontal distance and the minimum horizontal distance key_x_min of the human body key points, is used to represent the target person's body width Body_width.

[0092] Direction_theta is the body's orientation angle, that is, the angle between the body's orientation and the x-axis. Extention_ratio is the body's extension ratio hyperparameter, set to 2 here but adjustable based on actual needs. X_extention and Y_extention are the horizontal and vertical extension distances along the x-axis and y-axis, respectively, calculated based on the body's width, extension ratio, and orientation angle. The body's center point can be determined based on the body's key points or detection frame. The extension distance is added to the center point to determine the final extended position coordinates, which is the farthest point in the operation area. (X_extention, Y_extention) represents the farthest point the target person's body (or arm) can reach when standing still, i.e., the farthest point in the operation area.

[0093] FIG4 shows a schematic diagram of an operation area according to some embodiments of the present disclosure.

[0094] As shown in Figure 4, the arrow indicates the expanded coordinates. Based on the expanded coordinates and the positions of the detection frame or key points on the human body, the operating area (shown as the solid box) that touches the arrow can be determined. Compared to the original image, the operating area has been reduced in scope to exclude some irrelevant objects.

[0095] In step S3, the position of the object to be tracked in the starting frame of the target video is determined according to the operation area of ​​the target person in the starting frame of the target video.

[0096] For example, after delineating the operating area as shown in Figure 4, a target detection network with good performance and speed, such as YOLO, is used to detect objects in the operating area and identify the location and detection frame of the objects to be tracked.

[0097] In the initial frame corresponding to the scanning moment, the tracked object typically does not exceed the area within the operator's reach. This disclosure identifies the tracked object within the operator's reach, narrowing the image range required for detection and enabling more accurate identification of the tracked object among multiple objects, avoiding false or missed detections.

[0098] In some embodiments, the position of the object to be tracked in the starting frame of the target video is determined based on the operation area of ​​the target person in the starting frame of the target video, including: determining the position of one or more objects in the operation area; when there are multiple objects in the operation area, determining the position of the operating device of the target person in the operation area; determining the position of the object to be tracked based on the position of one or more objects in the operation area and the position of the operating device of the target person in the operation area.

[0099] For example, although the operating area has been determined, reducing the range of possible locations of the item to be tracked, there may still be multiple items in the operating area. Therefore, it is necessary to further determine which of the multiple items is the item to be tracked.

[0100] The location of the object to be tracked can be determined by the operating device held by the target person to scan the object. First, calculate the distance between the operating device (such as a barcode scanner) and each object in the operating area. You can use the Euclidean distance calculation, as shown below:

[0101] Among them, scan_coor and bag_coor are the center coordinates of the operating device and each item, respectively, which are determined according to the detection frames of the operating device and each item.

[0102] In some embodiments, the position of the object to be tracked is determined based on the position of one or more objects in the operating area and the position of the operating device of the target person in the operating area, including: determining the object closest to the operating device as the object to be tracked.

[0103] For example, when a target person is using an operating device to scan an item to be tracked, the operating device and the item to be tracked are usually very close. The item closest to the target person's barcode scanner is determined to be the item the target person is scanning, i.e., the item to be tracked.

[0104] You can also use the items corresponding to the direction of the barcode scanner as the items to be tracked.

[0105] According to some embodiments of the present disclosure, the video characteristics of the logistics scene are fully considered, and the position of the item to be tracked is determined by determining the position of the operating device, thereby further improving the accuracy of the item to be tracked.

[0106] In some embodiments, determining the position of one or more items in the operating area includes: generating a detection frame of the one or more items in the operating area; and determining the position of the one or more items based on the detection frame of the one or more items in the operating area.

[0107] For example, perform target detection on the objects in the operating area and generate a detection frame. Based on the detection frame of each object, determine the center coordinates of each object, that is, the position of each object in the starting frame.

[0108] In some embodiments, determining the position of the target person's operating device in the operating area includes: generating a detection frame of the target person's operating device in the operating area; and determining the position of the target person's operating device in the operating area based on the detection frame of the target person's operating device in the operating area.

[0109] For example, target detection is performed on the operating device within the operating area to generate a detection frame, and the center coordinates of the operating device are determined based on the detection frame of the operating device.

[0110] FIG5 shows a schematic diagram of determining an item to be tracked according to some embodiments of the present disclosure.

[0111] As shown in Figure 5, a detection frame (indicated by a dotted line) is generated for the operator's operating device and a detection frame (indicated by a dotted line) is generated for the object. Figure 5 only shows the object to be tracked. If there are multiple objects in the operating area, the object closest to the operating device is determined as the object to be tracked based on the position of the detection frame.

[0112] In step S4, the object to be tracked is tracked in the target video according to the position of the object to be tracked in the starting frame of the target video.

[0113] After steps S1-S3 above have determined the initial location of the lost object in the target video, target tracking technology is then used to track the object's path. For example, target tracking can locate and output the last frame in which the object appears in the video, thereby determining where the object last disappeared.

[0114] According to the object tracking method of some embodiments of the present disclosure, the body posture of the target person in the starting frame is determined, the operation area where the object to be tracked may exist is limited, and the position of the object to be tracked is determined in the starting frame, thereby achieving tracking of the object to be tracked in a logistics scenario.

[0115] In addition, according to some embodiments of the present disclosure, when determining the position of an object to be tracked, the range of images that need to be identified is reduced by demarcating the operation area, and a portion of the image area that is not related to the object to be tracked is excluded, thereby reducing the amount of calculation, avoiding missed detection, wrong detection or position deviation, and improving the accuracy of object tracking.

[0116] In some embodiments, tracking an object to be tracked in a target video according to the position of the object to be tracked in a starting frame of the target video includes: starting from the starting frame of the target video, predicting the position of the object to be tracked in a next frame of the target video according to the position of the object to be tracked in a current frame of the target video.

[0117] For example, after determining the position of the object to be tracked in the current video frame, the position of the object to be tracked in the next frame will not be too far away from the position in the current frame. The position of the object to be tracked in the next frame is determined based on the position of the object to be tracked in the current frame, as well as parameters such as the object's speed and displacement, or by using an object tracking model.

[0118] According to some embodiments of the present disclosure, it is only necessary to identify the position of the object to be tracked from the starting frame of the video, and then the object to be tracked in the next frame can be predicted based on the position of the object to be tracked in the current video frame in a loop until the object to be tracked no longer appears in the video or the video reaches a predetermined length, thereby reducing the computational complexity of frame-by-frame detection and improving tracking efficiency.

[0119] Because the position of the object to be tracked has been accurately determined in the starting frame through steps such as determining the person's posture and limiting the operation area, tracking can continue in subsequent video frames based on the correct results of the starting frame, avoiding erroneous tracking of other objects besides the object to be tracked, thereby improving the accuracy and efficiency of object tracking.

[0120] In some embodiments, the position of the object to be tracked in the next frame of the target video is predicted based on the position of the object to be tracked in the current frame of the target video, including: predicting the position of the object to be tracked in the next frame of the target video based on the position and movement speed of the object to be tracked in the current frame of the target video, and obtaining a position prediction result; detecting the position of the object to be tracked in the next frame of the target video using a target detection model based on the image of the next frame, and obtaining a position detection result; predicting the position of the object to be tracked in the next frame of the target video based on the position prediction result and the position detection result.

[0121] For example, we detect the object in the current frame and predict the object's position coordinates. We then combine the detection and prediction results to track the object. We use the position and velocity of the object in the previous frame to predict the position of the object in the current frame. The prediction and detection results are then fused. The target tracking formula is as follows: Pn = P n-1 +V n-1 *t Tn=α*Yolo(Fn)+β*Pn

[0122] Among them, P n-1 is the position of the object in the previous frame, V n-1is the speed of the object in the previous frame, and t is time. Typically, a video has 25 frames per second, with each frame separated by 1 / 25th of a second, so t is 1 / 25 second. Fn is the image in the current video frame, Yolo represents the target tracking model, and α and β are the weighting coefficients for target detection and object position prediction in image Fn, respectively. Tn is the position of the object in the current frame. Based on the weighted position prediction and detection results, the position of the object to be tracked in the next frame of the target video is predicted.

[0123] According to some embodiments of the present disclosure, the results of frame-by-frame object detection by an object detection model (e.g., YOLOV5) and the prediction of the object's position in the next frame based on the object's position in the current video frame are comprehensively considered. The results obtained from these two different methods are weighted to ultimately determine the object's position, thereby improving the robustness of the entire object tracking process. Compared to methods that use only the object detection model to perform frame-by-frame object detection in video images, this method can avoid missed detections or position deviations of tracked objects.

[0124] Through the above steps, the lost item's position in the image is located at the moment of scanning, allowing for subsequent tracking. This method can be used to determine if a sorting station is not responsible for lost items, locate and output the last frame in which the item appears in the video, or generate a result indicating that the item has been successfully transferred to the station, thereby determining where the item last disappeared. The video positioning and item search process eliminates the need for manual review, enabling automated tracking of items during logistics and transportation.

[0125] FIG6 shows a block diagram of an item tracking device according to some embodiments of the present disclosure.

[0126] As shown in FIG6 , the object tracking device 6 includes a posture determination module 61 , an extraction module 62 , a position determination module 63 and a tracking module 64 .

[0127] The posture determination module 61 is configured to determine the body posture of the target person in the starting frame of the target video based on multiple key points of the target person in the starting frame of the target video, wherein the target person is determined based on the logistics information of the item to be tracked, for example, executing step S1 as shown in Figure 1.

[0128] The extraction module 62 is configured to extract the target person's operation area in the starting frame of the target video based on multiple key points and body postures of the target person in the starting frame of the target video, for example, executing step S2 as shown in Figure 1.

[0129] The position determination module 63 is configured to determine the position of the object to be tracked in the starting frame of the target video according to the operation area of ​​the target person in the starting frame of the target video, for example, executing step S3 as shown in FIG1 .

[0130] The tracking module 64 is configured to track the object to be tracked in the target video according to the position of the object to be tracked in the starting frame of the target video, for example, executing step S4 as shown in FIG1 .

[0131] FIG7 shows a block diagram of an item tracking device according to other embodiments of the present disclosure.

[0132] As shown in FIG7 , the item tracking device 7 includes a memory 71 and a processor 72 coupled to the memory 71 . The memory 71 is configured to store and execute instructions for executing the item tracking method. The processor 72 is configured to execute the item tracking method according to any of the embodiments of the present disclosure based on the instructions stored in the memory 71 .

[0133] FIG8 illustrates a block diagram of a computer system for implementing some embodiments of the present disclosure.

[0134] 8 , a computer system 80 may be implemented as a general-purpose computing device and includes a memory 810 , a processor 820 , and a bus 800 that connects various system components.

[0135] Memory 810 may include, for example, system memory, non-volatile storage media, and the like. System memory may store, for example, an operating system, application programs, a boot loader, and other programs. System memory may include volatile storage media, such as random access memory (RAM) and / or cache memory. Non-volatile storage media may store, for example, instructions for executing the item tracking method described in any of the embodiments of the present disclosure. Non-volatile storage media include, but are not limited to, disk storage, optical storage, and flash memory.

[0136] The processor 820 can be implemented as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, or as discrete hardware components such as discrete gates or transistors. Accordingly, each module, such as the judgment module and the determination module, can be implemented by a central processing unit (CPU) executing instructions in a memory that execute corresponding steps, or by dedicated circuits that execute corresponding steps.

[0137] The bus 800 may use any of a variety of bus architectures, including, but not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, and a Peripheral Component Interconnect (PCI) bus.

[0138] The computer system 80 may also include an input / output interface 830, a network interface 840, a storage interface 850, and the like. These interfaces 830, 840, and 850, as well as the memory 810 and the processor 820, may be connected via a bus 800. The input / output interface 830 provides a connection interface for input / output devices such as a display, mouse, and keyboard. The network interface 840 provides a connection interface for various networked devices. The storage interface 850 provides a connection interface for external storage devices such as floppy disks, USB flash drives, and SD cards.

[0139] Here, various aspects of the present disclosure are described with reference to flowcharts and / or block diagrams of methods, devices, and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks, can be implemented by computer-readable program instructions.

[0140] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable device to produce a machine, so that the processor executes the instructions to produce means for implementing the functions specified in one or more blocks in the flowcharts and / or block diagrams.

[0141] These computer-readable program instructions can also be readable and stored in a computer-readable memory. These instructions cause the computer to work in a specific manner, thereby producing an article of manufacture, including instructions for implementing the functions specified in one or more blocks in the flowcharts and / or block diagrams.

[0142] The present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.

[0143] The accuracy of item tracking is improved through the item tracking method and device and computer-readable storage medium in the above embodiments.

[0144] The object tracking method and apparatus, as well as the computer-readable storage medium, according to the present disclosure have been described in detail. To avoid obscuring the present disclosure, some details known in the art have been omitted. Based on the above description, those skilled in the art will readily understand how to implement the disclosed technical solutions.

Claims

1. An item tracking method, comprising: Determining a body posture of a target person in a starting frame of a target video according to a plurality of key points of the target person in a starting frame of a target video, wherein the target person is determined according to logistics information of the object to be tracked; Extracting an operation area of ​​the target person in the starting frame of the target video according to a plurality of key points and body postures of the target person in the starting frame of the target video; Determine the position of the object to be tracked in the starting frame of the target video according to the operation area of ​​the target person in the starting frame of the target video; The object to be tracked is tracked in the target video according to the position of the object to be tracked in the starting frame of the target video.

2. An item tracking method according to claim 1, wherein: According to a plurality of key points and body postures of the target person in the starting frame of the target video, the operation area of ​​the target person in the starting frame of the target video is extracted, including: Determine the body width of the target person based on the distance between the two farthest key points in the specified direction; Determine the farthest position that the target person's arm can reach in the starting frame of the target video according to the body width and body posture of the target person in the starting frame of the target video; According to the farthest position that the target person's arm can reach in the starting frame of the target video, the operation area of ​​the target person in the starting frame of the target video is extracted.

3. The item tracking method according to claim 1 or 2, wherein: The body posture includes the body orientation. According to a plurality of key points of the target person in the starting frame of the target video, the body posture of the target person in the starting frame of the target video is determined, including: Determine an arm vector of the target person in the starting frame of the target video according to a plurality of key points of the target person in the starting frame of the target video; According to the arm vector of the target person in the starting frame of the target video, the body orientation of the target person in the starting frame of the target video is determined.

4. The item tracking method according to claim 3, wherein: The multiple key points include hand key points and shoulder key points, the arm vector includes a first arm vector on one side of the target person's body and a second arm vector on the other side of the target person's body, and the arm vector of the target person in the starting frame of the target video is determined according to the multiple key points of the target person in the starting frame of the target video, including: Determine a first arm vector according to the hand key points and shoulder key points on one side of the target person's body in the starting frame of the target video; A second arm vector is determined based on the hand key points and shoulder key points on the other side of the target person's body in the starting frame of the target video.

5. The item tracking method according to claim 4, wherein: According to the arm vector of the target person in the starting frame of the target video, the body orientation of the target person in the starting frame of the target video is determined, including: The body orientation of the target person in the start frame of the target video is determined according to the weighted result of the first arm vector and the second arm vector.

6. The item tracking method according to any one of claims 1 to 5, wherein: According to the operation area of ​​the target person in the starting frame of the target video, the position of the object to be tracked in the starting frame of the target video is determined, including: determining the location of one or more items in the operating area; In the case where there are multiple objects in the operating area, determining the position of the operating device of the target person in the operating area; The position of the object to be tracked is determined according to the position of one or more objects in the operating area and the position of the operating device of the target person in the operating area.

7. The item tracking method according to claim 6, wherein: Determine the location of one or more items in the operating area, including: Generate detection boxes for one or more objects in the operation area; The positions of the one or more objects in the operating area are determined according to the detection frames of the one or more objects in the operating area.

8. The item tracking method according to claim 6 or 7, wherein: Determine the location of the target person's operating device in the operating area, including: Generate a detection frame of the operating device of the target person in the operating area; Determine the target person's operating device in the operating area based on the detection frame of the target person's operating device in the operating area location.

9. The item tracking method according to any one of claims 6 to 8, wherein: Determining the position of the object to be tracked according to the position of one or more objects in the operating area and the position of the operating device of the target person in the operating area includes: The object located closest to the operating device is determined as the object to be tracked.

10. The object tracking method according to any one of claims 1 to 9, further comprising: Determine the starting frame of the target video based on the logistics information of the item to be tracked.

11. The item tracking method according to claim 10, wherein: According to the logistics information of the item to be tracked, determine the starting frame of the target video, including: Determine candidate videos based on the operation time and operation location of the items to be tracked in the logistics information; Determine the starting frame of the target video according to the operation time of the object to be tracked and the number of transmission frames per second of the candidate video; According to the starting frame of the target video, the target video is extracted from the candidate videos.

12. The item tracking method according to claim 11, wherein: The operation time of the item to be tracked is the time when the item to be tracked was last scanned.

13. The item tracking method according to any one of claims 1 to 12, further comprising: Generate a detection frame of the target person in the starting frame of the target video; According to the detection frame of the target person in the starting frame of the target video, a plurality of key points of the target person in the starting frame of the target video are generated.

14. The item tracking method according to claim 13, wherein: Generate a detection frame of the target person in the starting frame of the target video, including: Generate one or more detection frames of candidate characters in the starting frame of the target video, wherein each detection frame corresponds to a candidate character; In the case where there are multiple detection frames, determining the identifier of the candidate person corresponding to each detection frame according to the features corresponding to each detection frame; The detection frame corresponding to the target person is determined according to the identifier of the candidate person corresponding to the detection frame and the identifier of the target person in the logistics information of the item to be tracked.

15. The item tracking method according to any one of claims 1 to 14, wherein: According to the position of the object to be tracked in the starting frame of the target video, the object to be tracked is tracked in the target video, including: Starting from the starting frame of the target video, the position of the object to be tracked in the next frame of the target video is predicted according to the position of the object to be tracked in the current frame of the target video.

16. The item tracking method according to claim 15, wherein: According to the position of the object to be tracked in the current frame of the target video, predicting the position of the object to be tracked in the next frame of the target video includes: According to the position and moving speed of the object to be tracked in the current frame of the target video, the position of the object to be tracked in the next frame of the target video is predicted to obtain a position prediction result; According to the image of the next frame, the target detection model is used to detect the position of the object to be tracked in the next frame of the target video to obtain a position detection result; Based on the position prediction results and the position detection results, the position of the object to be tracked in the next frame of the target video is predicted.

17. An item tracking device, comprising: a posture determination module, configured to determine a body posture of a target person in a starting frame of a target video according to a plurality of key points of the target person in a starting frame of the target video, wherein the target person is determined according to logistics information of the object to be tracked; An extraction module is configured to extract an operation area of ​​the target person in the starting frame of the target video according to a plurality of key points and body postures of the target person in the starting frame of the target video; A position determination module is configured to determine the position of the object to be tracked in the starting frame of the target video according to the operation area of ​​the target person in the starting frame of the target video; The tracking module is configured to track the object to be tracked in the target video according to the position of the object to be tracked in the starting frame of the target video.

18. A communication device, comprising: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the item tracking method according to any one of claims 1 to 16 based on instructions stored in the memory.

19. A computer-readable storage medium having computer program instructions stored thereon, wherein when the instructions are executed by a processor, the object tracking method according to any one of claims 1 to 16 is implemented.

20. A computer program comprising: Instructions, when executed by a processor, cause the processor to perform the item tracking method according to any one of claims 1 to 16.

Citation Information

Patent Citations

  • Parcel extracting method and device, parcle tracking method and device, and electronic equipment

    CN111223104A

  • Method and device for tracking fixed article

    CN111667505A

  • Method, device and equipment for detecting violent sorting behavior

    CN112507760A

  • Article tracking method and device, equipment and storage medium

    CN114037957A

  • Progressive character interaction recognition method and system

    CN114429647A