Article transfer method and device
By using binocular cameras for automatic monitoring in the item handover scene, the problem of recording errors and omissions during the item handover process is solved, and efficient handover recording and traceability are achieved.
Patent Information
- Application Number
- CN202410823074.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-25
AI Technical Summary
In scenarios such as warehousing, there is a risk of unrecorded handover or unrecorded items being handed over during the handover process, leading to irregular handovers and recording errors.
A binocular camera is used. The first camera is a fixed-focus lens and the second camera is a zoom lens. The installation position ensures that the field of view covers the preset object handover area. The video stream is used to detect the person who surrenders the object, the recipient, the witness and whether the object is present. Within the preset area, and determine whether the item is in the hands of the handover person, if so, collect an enlarged picture and record the handover information to ensure automatic monitoring and standardization of the handover process.
It realizes the automatic monitoring of the handover process of items, improves the standardization of handover, avoids recording errors or omissions, and facilitates the traceability of the handover process.
Smart Images

Figure CN118397567B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to an article handover method and device. Background Art
[0002] In many scenarios, such as warehousing, when items are handed over, the handover process needs to be recorded. For example, when items are handed over, the handover person usually directly hands the items to the receiving person, and the handover result is manually recorded in the handover ledger. Since it is manually entered, there is a risk that the handed over items are not recorded or the unhanded items are recorded. Summary of the invention
[0003] The embodiments of the present invention provide an article delivery method and device to improve the standardization of article delivery.
[0004] The technical solution of the embodiment of the present invention is achieved as follows:
[0005] A method for delivering an item is applied in an item delivery scene including a binocular camera, wherein the first camera of the binocular camera is a fixed-focus lens, the second camera is a zoom lens, and the installation position of the binocular camera satisfies: the field of view of the first camera covers a preset item delivery area, and satisfies: the resolution of the smallest item in the picture of the first camera can still reach a preset resolution lower limit, the method comprising:
[0006] Acquire a first video stream of the item handover scene captured by a first camera;
[0007] When it is detected in the first video stream that the person handing over the item, the person receiving the item, the handover witness, and the target item are all located in the preset item handover area, it is detected in the first video stream whether the target item is in the handover person's handover ...
[0008] If it is detected in the first video stream that the target item is transferred to the item recipient, it is determined that the handover of the target item is completed;
[0009] Record the item handover information, including: the time when the item handover is completed, the enlarged image of the target item, the information of the person handing over the item, the information of the person receiving the item, and the information of the handover witnesses.
[0010] The field of view of the first camera covers the preset object handover area: the field of view of the first camera just covers the preset object handover area,
[0011] The detecting in the first video stream that the person handing over the item, the person receiving the item, the handover witness, and the target item are all located in a preset item handover area includes:
[0012] Detecting faces in the first video stream, if any face is detected, determining whether the face is a facing face according to the angle of the face, if it is a facing face and it is detected that the movement amplitude of the facing face within a preset first time length is less than a preset amplitude, determining that the face is a valid face;
[0013] Detecting a target object in a first video stream;
[0014] If the target object is detected in the first video stream and three valid faces are detected, and the positional relationship between the three valid faces conforms to the preset positional relationship between the person handing over the item, the person receiving the item, and the handover witness, then it is determined that the person handing over the item, the person receiving the item, the handover witness, and the target object detected in the first video stream are all located within the preset item handover area.
[0015] The detecting in the first video stream whether the target object is in the hands of the person handing over the object includes:
[0016] Determine whether the positional relationship between the position of the face of the person handing over the item and the position of the target item detected in the first video stream meets the preset positional relationship between the position of the face of the person handing over the item and the position of the target item, and if so, determine whether the target item is in the handover person's handover ...
[0017] Or / and, the detecting in the first video stream that the target item is transferred to the item recipient includes:
[0018] It is determined whether the positional relationship between the position of the face of the item recipient and the position of the target item detected in the first video stream conforms to the preset positional relationship between the position of the face of the item recipient and the position of the target item. If so, it is determined that the item has been transferred to the item recipient.
[0019] The notifying the second camera to collect an enlarged image of the target object includes:
[0020] The first position coordinates and the first size of the target object in the current picture of the first video stream are obtained, the first position coordinates and the first size are converted into the second position coordinates and the second size of the target object in the current picture captured by the second camera, and the second position coordinates and the second size are carried in the target object zoom-in instruction and sent to the second camera, so that: the second camera zooms in the current picture according to the second position coordinates and the second size until the overlapping area between the target object and the current picture of the second camera is maximized, and the picture at this time is saved as an enlarged picture of the target object.
[0021] After the target object is detected in the first video stream to be in the hands of the person handing over the object and before the second camera is notified to collect an enlarged image of the target object, the method further includes:
[0022] The person handing over the item is prompted by voice to face the item number on the item directly toward the lens of the second camera;
[0023] After the image at this time is saved as an enlarged image of the target object, the method further includes:
[0024] The object number of the target object is identified from the enlarged image of the target object, and the object number is saved.
[0025] Before obtaining the first video stream of the item handover scene captured by the first camera, the method further includes:
[0026] Acquire a first picture including a plurality of preset calibration points captured by a first camera, and simultaneously acquire a second picture including the plurality of preset calibration points captured by a second camera, and calculate a conversion matrix between an image coordinate system of the first camera and an image coordinate system of the second camera according to coordinates of the plurality of preset calibration points in the first picture and coordinates of the plurality of preset calibration points in the second picture;
[0027] The step of converting the first position coordinates and the first size into the second position coordinates and the second size of the target object in the current picture captured by the second camera includes:
[0028] The first position coordinates and the first size are converted into the second position coordinates of the target object in the current image captured by the second camera using a conversion matrix between the image coordinate system of the first camera and the image coordinate system of the second camera; and the first size is converted into the second size according to the focal length of the first camera and the focal length of the second camera.
[0029] The method further includes: notifying the second camera to collect an enlarged image of the target object.
[0030] The third position coordinates and the third size, the fourth position coordinates and the fourth size, and the fifth position coordinates and the fifth size of the faces of the person handing over the item, the item recipient, and the handover witness in the current picture of the first video stream are respectively obtained, and the third position coordinates and the third size, the fourth position coordinates and the fourth size, and the fifth position coordinates and the fifth size are respectively converted into the sixth position coordinates and the sixth size, the seventh position coordinates and the seventh size, and the eighth position coordinates and the eighth size of the faces of the person handing over the item, the item recipient, and the handover witness in the current picture of the second camera. The sixth position coordinate and the sixth size, the seventh position coordinate and the seventh size, and the eighth position coordinate and the eighth size in the current picture are carried in the handover personnel face magnification instruction and sent to the second camera, so that: the second camera magnifies the current picture according to the sixth position coordinate and the sixth size, the seventh position coordinate and the seventh size, and the eighth position coordinate and the eighth size respectively, until the faces of the person handing over the item, the person receiving the item, and the handover witness respectively overlap with the current picture of the second camera in the largest area, and the pictures with the largest overlap area are respectively saved as the face pictures of the person handing over the item, the person receiving the item, and the handover witness;
[0031] Or / and, control the first camera to capture the current picture, and save the current picture as the item handover start picture.
[0032] After the target object is detected to be transferred to the object recipient in the first video stream, the method further includes:
[0033] Control the first camera to capture the current image, and save the current image as an item handover event image;
[0034] or / and, according to the position of the target object in the first video stream, controlling the first camera to intercept the target object in the current picture, and saving the intercepted target object image as the handover object image;
[0035] Or / and, in the first video stream, a video stream from the start of the item handover to the completion of the item handover is intercepted, and the intercepted video stream is saved as a video recording of the item handover process.
[0036] The first camera and the second camera are located on the same binocular camera, wherein the first camera is a fixed-focus lens and the second camera is a zoom lens.
[0037] An article handover device is used in an article handover scene including a binocular camera, wherein the first camera of the binocular camera is a fixed-focus lens, the second camera is a zoom lens, and the installation position of the binocular camera satisfies: the field of view of the first camera covers a preset article handover area, and satisfies: the resolution of the smallest article in the picture of the first camera can still reach a preset resolution lower limit, and the device comprises:
[0038] The video stream acquisition module is used to: acquire a first video stream of the item handover scene captured by the first camera;
[0039] The handover detection module is used to: when it is detected in the first video stream that the person handing over the item, the item recipient, the handover witness and the target item are all located in a preset item handover area, detect in the first video stream whether the target item is in the hands of the person handing over the item, and if so, notify the second camera to collect an enlarged image of the target item and control the first camera to continue tracking the target item; if it is detected in the first video stream that the target item is transferred to the item recipient, it is determined that the handover of the target item is completed; record the item handover event, including: the handover time, the enlarged image of the item, and the information of the person handing over the item, the information of the item recipient and the handover witness.
[0040] A non-transitory computer-readable storage medium stores instructions, which, when executed by a processor, cause the processor to perform any of the above-described methods for transferring items.
[0041] In the above embodiment, a binocular camera is used in the item handover scene, wherein the first camera is a fixed-focus lens, the second camera is a zoom lens, and the installation position of the binocular camera satisfies: the field of view of the first camera covers the preset item handover area, and satisfies: the resolution of the smallest item in the picture of the first camera can still reach the preset resolution lower limit; the first camera collects a first video stream of the item handover scene, and when it is detected in the first video stream that the item handover person, the item recipient, the handover witness, and the item are all located in the preset handover area, it is detected in the first video stream whether the item is in the handover person's hands, if so, the second camera is notified to collect an enlarged image of the item, and the first camera is controlled to continue tracking the item; if it is detected in the first video stream that the item is transferred to the item recipient, it is determined that the item handover is completed; and the item handover event is recorded, including: an enlarged image of the item, and information about the item handover person, the item recipient, and the handover witness, thereby realizing automatic monitoring of the item handover process, improving the standardization of the item handover, avoiding errors or omissions in the recording of the item handover, and facilitating the tracing of the item handover process. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0043] Figure 1 A flow chart of a method for delivering items provided in one embodiment of the present invention;
[0044] Figure 2 A schematic diagram of a binocular camera including a first camera and a second camera and its initial field of view in an application example of the present invention;
[0045] Figure 3 This is a schematic diagram of the positional relationship between the person handing over the item, the person receiving the item, and the handover witness in an application example of the present invention;
[0046] Figure 4 A schematic diagram of the structure of an article transfer device provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0049] Figure 1The flowchart of the method for delivering an item provided by an embodiment of the present invention is applied in an item delivery scene including a binocular camera, wherein the first camera of the binocular camera is a fixed-focus lens, the second camera is a zoom lens, and the installation position of the binocular camera satisfies: the field of view of the first camera covers the preset item delivery area, and satisfies: the resolution of the smallest item in the picture of the first camera can still reach the preset resolution lower limit, wherein the size of the smallest item is preset, and the specific steps are as follows:
[0050] Step 101: Obtain a first video stream of an item handover scene captured by a first camera.
[0051] Step 102: When it is detected in the first video stream that the person handing over the item, the person receiving the item, the handover witness, and the target item are all located in the preset item handover area, it is detected in the first video stream whether the target item is in the hands of the person handing over the item. If so, the second camera is notified to capture an enlarged image of the target item, and the first camera is controlled to continue tracking the target item.
[0052] The preset item handover area refers to a pre-designated area for the handover of items. The item handover can only be carried out when the person handing over the item, the item recipient and the handover witness are all within the area.
[0053] In an optional embodiment, the field of view of the first camera just covers the preset item handover area, and, in this step 102, it is detected in the first video stream that the person handing over the item, the person receiving the item, the handover witness, and the target item are all located in the preset item handover area, including: detecting faces in the first video stream, if any face is detected, judging whether the face is a facing face according to the angle of the face, if it is a facing face and it is detected that the movement amplitude of the facing face within a preset first time length is less than a preset amplitude, then determining that the face is a valid face; detecting the target item in the first video stream; if the target item is detected in the first video stream and 3 valid faces are detected, and the positional relationship between the 3 valid faces conforms to the preset positional relationship between the person handing over the item, the person receiving the item, and the handover witness, then determining that the person handing over the item, the person receiving the item, the handover witness, and the target item are all located in the preset item handover area detected in the first video stream.
[0054] In an optional embodiment, in this step 102, after the target object is detected in the first video stream, the step further includes: if the target object is detected in the first video stream and a valid face is detected, but the number of valid faces detected is less than 3, a voice prompt is given: not all the item handover personnel are in place, and the current picture of the first camera can be further collected, and the current picture can be saved as an event map of not all the item handover personnel in place, and the event map of not all the item handover personnel in place can be reported to the item handover record platform.
[0055] In an optional embodiment, in this step 102, after the target object is detected in the first video stream, the following further includes: if the target object is detected in the first video stream and three valid faces are detected, but it is detected that the target object is not in the hands of the person handing over the item (such as: the target object is in the hands of the handover witness or the item recipient), a voice prompt is given: the wrong person is holding the item at the beginning of the item handover, and the current picture of the first camera can be further collected, and the current picture can be saved as an event map of the wrong person holding the item at the beginning of the item handover, and the event map of the wrong person holding the item at the beginning of the item handover can be reported to the item handover record platform.
[0056] Among them, the first camera is a fixed-focus lens, that is, once its focal length is determined before the item handover begins, it will not be changed during the item handover process, and the direction of the lens remains unchanged during the item handover process. In order to capture the image of the item handover scene as clearly as possible, the focal length and direction of the first camera are usually set to: its field of view just covers the preset item handover area. Since the second camera needs to magnify the target item, its lens is a zoom lens. The focal length of the lens can be changed during the item handover process, and the direction of the lens can also be adjusted during the item handover process. The initial focal length and direction of the second camera meet: the field of view covers the preset item handover area. The first camera and the second camera are located on a binocular camera at the same time. Figure 2 The figure is a schematic diagram of a binocular camera including a first camera and a second camera and its initial field of view in an application example of the present invention.
[0057] Among them, judging whether the face is facing forward based on the angle of the face may include: judging whether: the pitch angle of the face in the up and down direction is less than a preset first angle threshold and the inclination angle of the face in the left and right direction is less than a preset second angle threshold. If so, it is determined that the face is facing forward.
[0058] Among them, detecting that the movement amplitude of the facing face within a preset first time length is less than a preset amplitude may include: detecting that the facing face always satisfies within the preset first time length: the IOU (Intersection over Union) of the current area of the facing face and the initial area of the facing face is greater than a preset IOU threshold.
[0059] Among them, the positional relationship between the preset person handing over the item, the person receiving the item, and the handover witness is generally constrained by the position order of the three, among which the person handing over the item and the person receiving the item must be adjacent. Figure 3 FIG. 1 is a schematic diagram of the positional relationship between the person handing over the item, the person receiving the item, and the handover witness in an application example of the present invention. Figure 3As shown, the person handing over the item, the person receiving the item, and the handover witness stand facing the first camera and the second camera, and from left to right they are: the person receiving the item, the person handing over the item, and the handover witness. Of course, they can also be: the handover witness, the person handing over the item, and the person receiving the item, from left to right.
[0060] In an optional embodiment, in this step 102, detecting in the first video stream whether the target object is in the hands of the person handing over the object includes: judging whether the positional relationship between the position of the face of the person handing over the object and the position of the target object detected in the first video stream conforms to a preset positional relationship between the position of the face of the person handing over the object and the position of the target object; if so, determining whether the target object is in the hands of the person handing over the object.
[0061] The preset positional relationship between the position of the face of the person handing over the item and the position of the target item is usually constrained by: the distance and relative angle between the position of the face of the person handing over the item and the position of the target item. For example, when the distance between the position of the face of the person handing over the item and the position of the target item is within a first distance range, and the relative angle between the position of the face of the person handing over the item and the position of the target item is within a first angle range, it is considered that the target item is in the hand of the person handing over the item. For the convenience of judgment, it can be agreed in advance that the person handing over the item must hold the item in the left hand, or the person handing over the item must hold the item in the right hand.
[0062] In an optional embodiment, in this step 102, notifying the second camera to collect an enlarged image of the target object includes: obtaining the first position coordinates and the first size of the target object in the current screen of the first video stream, converting the first position coordinates and the first size into the second position coordinates and the second size of the target object in the current screen collected by the second camera, and sending the second position coordinates and the second size to the second camera in the target object enlargement instruction, so that: the second camera enlarges the current screen according to the second position coordinates and the second size, and stops when the overlap area of the target object and the current screen of the second camera is the largest, and saves the screen at this time as the enlarged image of the target object. Wherein, the target object is usually represented by the smallest rectangle containing the target object in the screen of the first video stream, then the first position coordinates can be represented by the coordinates of any vertex of the smallest rectangle or the coordinates of the center point of the smallest rectangle, and the first size can be represented by the width and length of the smallest rectangle. Similarly, the target object is usually represented by the smallest rectangle containing the target object in the screen collected by the second camera, then the second position coordinates can be represented by the coordinates of any vertex of the smallest rectangle or the coordinates of the center point of the smallest rectangle, and the second size can be represented by the width and length of the smallest rectangle.
[0063] In an optional embodiment, in this step 102, after it is detected in the first video stream that the target object is in the hands of the person handing over the object and before the second camera is notified to capture an enlarged image of the target object, it further includes: prompting the person handing over the object to face the item number on the item to the lens of the second camera through voice; and, in this step 102, after the image at this time is saved as an enlarged image of the target object, it further includes: identifying the item number of the target object from the enlarged image of the target object and saving the item number.
[0064] In an optional embodiment, before step 101, the method further includes: obtaining a first picture captured by the first camera and containing multiple (usually 4) preset calibration points, and simultaneously obtaining a second picture captured by the second camera and containing the multiple preset calibration points, and calculating a conversion matrix between the image coordinate system of the first camera and the image coordinate system of the second camera according to the coordinates of the multiple preset calibration points in the first picture and the coordinates of the multiple preset calibration points in the second picture; and, in this step 102, converting the first position coordinates and the first size into the second position coordinates and the second size of the target object in the current picture captured by the second camera includes: using the conversion matrix between the image coordinate system of the first camera and the image coordinate system of the second camera, converting the first position coordinates and the first size into the second position coordinates of the target object in the current picture captured by the second camera, and converting the first size into the second size according to the focal length of the first camera and the focal length of the second camera.
[0065] Among them, after calculating the conversion matrix between the image coordinate system of the first camera and the image coordinate system of the second camera, it is also necessary to record the focal length of the first camera and the focal length of the second camera corresponding to the conversion matrix. Thereafter, when the conversion matrix is used to convert the coordinates in the current picture captured by the first camera into the coordinates in the current picture captured by the second camera, if the focal length of the first camera and / or the second camera has changed at this time, then when performing the coordinate conversion, the change in the focal length of the first camera and / or the second camera must also be considered. The specific consideration is a mature technology and will not be elaborated here.
[0066] In an optional embodiment, in this step 102, while notifying the second camera to collect an enlarged image of the target item, further includes: respectively obtaining the third position coordinates and third size, fourth position coordinates and fourth size, and fifth position coordinates and fifth size of the faces of the person handing over the item, the item recipient, and the handover witness in the current picture of the first video stream, and converting the third position coordinates and third size, the fourth position coordinates and fourth size, and the fifth position coordinates and fifth size into the sixth position coordinates and sixth size, the seventh position coordinates and seventh size, and the eighth position coordinates and eighth size of the faces of the person handing over the item, the item recipient, and the handover witness in the current picture of the second camera, respectively. The sixth position coordinates and sixth size, the seventh position coordinates and seventh size, and the eighth position coordinates and eighth size of the faces of the item recipient and the handover witness in the current picture of the second camera are carried in the handover personnel face enlargement instruction and sent to the second camera, so that: the second camera enlarges the current picture according to the sixth position coordinates and sixth size, the seventh position coordinates and seventh size, and the eighth position coordinates and eighth size, respectively, until the faces of the person handing over the item, the item recipient, and the handover witness respectively overlap with the current picture of the second camera in the largest area, and the pictures with the largest overlapping area are saved as face pictures of the person handing over the item, the item recipient, and the handover witness, respectively.
[0067] In an optional embodiment, in step 102, while notifying the second camera to collect an enlarged image of the target object, the step further includes: controlling the first camera to capture the current image and saving the current image as the image to start the object handover.
[0068] Step 103: If it is detected in the first video stream that the target object is transferred to the object recipient, it is determined that the handover of the target object is completed.
[0069] In an optional embodiment, in this step 103, detecting in the first video stream that the target item is transferred to the item recipient includes: determining whether the positional relationship between the position of the item recipient's face detected in the first video stream and the position of the target item conforms to a preset positional relationship between the position of the item recipient's face and the position of the target item; if so, determining that the item has been transferred to the item recipient.
[0070] The positional relationship between the preset position of the face of the item recipient and the position of the target item is usually constrained by: the distance and relative angle between the position of the face of the item recipient and the position of the target item. For example, when the distance between the position of the face of the item recipient and the position of the target item is within a first distance range, and the relative angle between the position of the face of the item recipient and the position of the target item is within a first angle range, it is considered that the target item has been transferred to the hand of the item recipient. For the convenience of judgment, it can be agreed in advance that the item recipient must hold the item in the left hand, or the item recipient must hold the item in the right hand.
[0071] In an optional embodiment, in this step 103, after detecting in the first video stream that the target item is transferred to the item recipient, it further includes: controlling the first camera to capture the current picture, and saving the current picture as an item handover event map; or / and, according to the position of the target item in the first video stream, controlling the first camera to intercept the target item in the current picture, and saving the intercepted target item map as a handover item map; or / and, intercepting the video stream from the start of the item handover to the completion of the item handover in the first video stream, and saving the intercepted video stream as a video recording of the item handover process.
[0072] In an optional embodiment, in step 102, if it is later, it further includes: if the target item is not detected to be transferred to the handover recipient within the preset handover waiting time, a voice prompt is given: the item handover has timed out, and the current picture of the first camera can be further collected, and the current picture can be saved as an item handover timeout event map, and the item handover timeout event map can be reported to the item handover record platform.
[0073] In an optional embodiment, in step 102, if it is later, it further includes: if it is detected that the target item is transferred to a non-item recipient (such as a handover witness), a voice prompt is given: item handover error, and the current picture of the first camera can be further collected, and the current picture is saved as an item handover error event map, and the item handover error event map can be reported to the item handover record platform.
[0074] Step 104: Record the item handover information, including: the time when the item handover is completed, an enlarged image of the target item, information about the person handing over the item, information about the person receiving the item, and information about the handover witness.
[0075] In an optional embodiment, in step 102, after collecting the enlarged image of the target item, the item number, and the facial image of the person handing over the item, the item recipient, and the handover witness, the second camera sends the enlarged image of the target item, the item number, and the facial image of the person handing over the item, the item recipient, and the handover witness to the first camera. Then, after the first camera determines in step 103 that the handover of the target item is completed, it packages the handover start time, handover completion time, item number, enlarged image of the target item, facial image of the person handing over the item, facial image of the item recipient, facial image of the handover witness, item handover start image, item handover event image, handover item image, and item handover process video, and reports the obtained data packet to the item handover record platform.
[0076] Alternatively, after collecting the enlarged image of the target item, the item number, and the facial images of the person handing over the item, the item recipient, and the handover witness, the second camera packages the enlarged image of the target item, the item number, and the facial images of the person handing over the item, the item recipient, and the handover witness, and sends the obtained data packet directly to the item handover record platform; then, after the first camera determines in step 103 that the handover of the target item is completed, it packages the handover start time, handover completion time, item handover start image, item handover event image, handover item image, and item handover process video of the target item, and reports the obtained data packet to the item handover record platform.
[0077] After the item handover record platform receives the data packet sent by the first camera and / or the second camera, it parses the data packet, compares the facial images of the person handing over the item, the item recipient and the handover witness in the data packet with the faces in the face database respectively, obtains the names of the person handing over the item, the item recipient and the handover witness, saves the item handover process video in the data packet into the cache, and adds a new item handover event record to the item handover event list maintained by itself, which includes: the handover start time, the handover completion time, the item number, the enlarged image of the target item, the name and face image of the person handing over the item, the name and face image of the item recipient, the name and face image of the handover witness, the item handover start image, the item handover event image, the handover item image, and the storage link of the item handover process video, so as to facilitate users to query the event. In the above embodiment, a binocular camera is used in the item handover scene, wherein the first camera is a fixed-focus lens, the second camera is a zoom lens, and the installation position of the binocular camera satisfies: the field of view of the first camera covers the preset item handover area, and satisfies: the resolution of the smallest item in the picture of the first camera can still reach the preset resolution lower limit; the first camera collects a first video stream of the item handover scene, and when it is detected in the first video stream that the item handover person, the item recipient, the handover witness, and the item are all located in the preset handover area, it is detected in the first video stream whether the item is in the handover person's hands, if so, the second camera is notified to collect an enlarged image of the item, and the first camera is controlled to continue tracking the item; if it is detected in the first video stream that the item is transferred to the item recipient, it is determined that the item handover is completed; and the item handover event is recorded, including: an enlarged image of the item, and information about the item handover person, the item recipient, and the handover witness, thereby realizing automatic monitoring of the item handover process, improving the standardization of the item handover, avoiding errors or omissions in the recording of the item handover, and facilitating the tracing of the item handover process.
[0078] A specific application example of the present invention is given below:
[0079] Step 01: A rectangular area in the item handover scene is preset as the item handover area, and the standing order of the item handover person, item recipient, and handover witness is set as follows: the three stand facing the first camera and the second camera, from left to right: item recipient, item handover person, handover witness;
[0080] Adjust the focal length of the first camera of the binocular camera so that the field of view of the first camera just covers the object handover area; adjust the focal length and direction of the second camera of the binocular camera so that the field of view of the second camera covers the handover area.
[0081] Step 02: The first camera collects the first video stream of the item handover area in real time, and detects faces in the first video stream in real time. If any face is detected, the pitch angle in the up-down direction and the tilt angle in the left-right direction of the face are detected. When the pitch angle in the up-down direction of the face is less than the preset first angle threshold and the tilt angle in the left-right direction of the face is less than the preset second angle threshold, the face is determined to be a facing face. Continue to detect whether the facing face always satisfies within the preset first time length: the IOU of the current area of the facing face and the initial area of the facing face is greater than the preset IOU threshold. If so, the face is determined to be a valid face.
[0082] Detect in real time whether there is a target object in the first video stream;
[0083] If the target object and three valid faces are detected in the first video stream, continue to detect whether the target object is in the hands of the person handing over the object. If so, determine that the object handover has started and record the start time of the object handover.
[0084] Among them, real-time detection of whether there is a target object in the first video stream includes: real-time detection of whether an object appears in the first video stream, if so, matching the characteristics of the object (such as shape and / or size, etc.) with the characteristics of a preset target object (such as shape and / or size, etc.), and if they match, determining that the detected object is the target object.
[0085] Step 03: The first camera plays a voice prompt: the item handover starts, prompting the person handing over the item to show the item number on the item to the first camera and the second camera;
[0086] At the same time, the first camera captures a picture at the start time of the item handover, and saves the picture as the item handover start picture.
[0087] At the same time, the first camera obtains the first position coordinates and the first size (usually expressed as the length and width of the smallest rectangular frame containing the target object) of the target object in the current picture, converts the first position coordinates and the first size into the second position coordinates and the second size of the target object in the current picture of the second camera, and carries the second position coordinates and the second size in the target object zoom-in instruction to send to the second camera; after receiving the object zoom-in instruction, the second camera finds the second position coordinates in the current picture, zooms in the current picture according to the second position coordinates and the second size, and stops when the overlapping area of the target object and the current picture of the second camera is the largest, saves the picture at this time as the zoomed-in picture of the target object, and uses the OCR (Optical Character Recognition) algorithm to identify the item number on the target object, saves the item number of the target object, and sends the zoomed-in picture and the item number of the target object to the first camera;
[0088] At the same time, the first camera obtains the third to fifth position coordinates and the third to fifth sizes of the faces of the person handing over the item, the item recipient and the handover witness in the current picture, respectively, and converts the third to fifth position coordinates and the third to fifth sizes into the sixth to eighth position coordinates and the sixth to eighth sizes of the faces of the person handing over the item, the item recipient and the handover witness in the current picture of the second camera, and carries the sixth to eighth position coordinates and the sixth to eighth sizes of the faces of the person handing over the item, the item recipient and the handover witness in the current picture of the second camera in the handover personnel face magnification instruction and sends it to the second camera; the second camera receives After the handover person's face magnification instruction is issued, the sixth to eighth position coordinates are found in the current picture in turn, and the faces of the person handing over the item, the item recipient and the handover witness in the current picture are magnified according to the sixth to eighth position coordinates and the sixth to eighth sizes in turn, until the faces of the person handing over the item, the item recipient and the handover witness respectively overlap with the current picture of the second camera in an area as large as possible, and the pictures with the largest overlapping areas are saved as face images of the person handing over the item, the item recipient and the handover witness, and the face images of the person handing over the item, the item recipient and the handover witness are sent to the first camera.
[0089] Step 04: The first camera continues to track the position of the target object and the position of the face of the item recipient in the first video stream, and determines in real time whether the target object has been transferred to the item recipient based on the positional relationship between the position of the target object and the position of the face of the item recipient. If so, it is determined that the handover of the target object is completed and the time of completion of the item handover is recorded.
[0090] Step 05: The first camera captures the current screen and saves the current screen as an item handover event map; and according to the position of the target item in the current screen, controls the first camera to intercept the target item in the current screen, and saves the intercepted target item map as a handover item map; and intercepts the video stream from the start of the item handover to the completion of the item handover in the first video stream, and saves the intercepted video stream as a video recording of the item handover process.
[0091] Typically, when a target object is detected in the first video stream, the target object is calibrated with a minimum rectangular frame that includes the target object, and the target object calibrated with the rectangular frame is captured as a handover object map.
[0092] Step 06: The first camera packages the target item's item handover start time, item handover completion time, item number, item handover image, item handover start image, item handover event image, item handover person's face image, item recipient's face image, item handover witness' face image, and item handover process video, and uploads the data package to the item handover record platform.
[0093] Figure 4 The present invention is a schematic diagram of the structure of an article handover device provided by an embodiment of the present invention. The device is applied in an article handover scene including a binocular camera, wherein the first camera of the binocular camera is a fixed-focus lens, the second camera is a zoom lens, and the installation position of the binocular camera satisfies: the field of view of the first camera covers a preset article handover area, and satisfies: the resolution of the smallest article in the picture of the first camera can still reach the preset resolution lower limit. The device mainly includes: a video stream acquisition module 41 and a handover detection module 42, wherein:
[0094] The video stream acquisition module 41 is used to acquire a first video stream of the item handover scene captured by a first camera.
[0095] The handover detection module 42 is used to: when it is detected in the first video stream that the person handing over the item, the item recipient, the handover witness and the target item are all located in a preset item handover area, detect in the first video stream whether the target item is in the hands of the person handing over the item, and if so, notify the second camera to collect an enlarged image of the target item and control the first camera to continue tracking the target item; if it is detected in the first video stream that the target item is transferred to the item recipient, it is determined that the handover of the target item is completed; and record the item handover event, including: the handover time, the enlarged image of the item, and the information of the person handing over the item, the information of the item recipient and the handover witness.
[0096] In an optional embodiment, the field of view of the first camera just covers the preset item handover area, and the handover detection module 42 detects in the first video stream that the person handing over the item, the person receiving the item, the handover witness, and the target item are all located within the preset item handover area, including: detecting faces in the first video stream, and if any face is detected, judging whether the face is a facing face based on the angle of the face, and if it is a facing face and it is detected that the movement amplitude of the facing face within a preset first time period is less than a preset amplitude, then determining that the face is a valid face; detecting the target item in the first video stream; if the target item is detected in the first video stream and three valid faces are detected, and the positional relationship between the three valid faces conforms to the preset positional relationship between the person handing over the item, the person receiving the item, and the handover witness, then determining that the person handing over the item, the person receiving the item, the handover witness, and the target item detected in the first video stream are all located within the preset item handover area.
[0097] In an optional embodiment, the handover detection module 42 detects in the first video stream whether the target object is in the hands of the person handing over the object, including: judging whether the positional relationship between the position of the face of the person handing over the object and the position of the target object detected in the first video stream conforms to the preset positional relationship between the position of the face of the person handing over the object and the position of the target object; if so, determining whether the target object is in the hands of the person handing over the object.
[0098] In an optional embodiment, the handover detection module 42 detects in the first video stream that the target item is transferred to the item recipient, including: determining whether the positional relationship between the position of the item recipient's face detected in the first video stream and the position of the target item conforms to a preset positional relationship between the position of the item recipient's face and the position of the target item; if so, determining that the item has been transferred to the item recipient.
[0099] In an optional embodiment, the handover detection module 42 notifies the second camera to capture an enlarged image of the target object, including: obtaining the first position coordinates and the first size of the target object in the current picture of the first video stream, converting the first position coordinates and the first size into the second position coordinates and the second size of the target object in the current picture captured by the second camera, and carrying the second position coordinates and the second size in the target object enlargement instruction to the second camera, so that: the second camera enlarges the current picture according to the second position coordinates and the second size, and stops when the overlapping area between the target object and the current picture of the second camera is the largest, and saves the picture at this time as the enlarged image of the target object.
[0100] In an optional embodiment, after the handover detection module 42 detects in the first video stream that the target object is in the hands of the person handing over the object and before notifying the second camera to capture an enlarged image of the target object, it is further used to: prompt the person handing over the object through voice to align the item number on the item with the lens of the second camera; and after the second camera saves the image at this time as an enlarged image of the target object, it is further used to: identify the item number of the target object from the enlarged image of the target object and save the item number.
[0101] In an optional embodiment, the handover detection module 42 is further used to: obtain a first picture including a plurality of preset calibration points captured by the first camera, and simultaneously obtain a second picture including the plurality of preset calibration points captured by the second camera, and calculate a conversion matrix between an image coordinate system of the first camera and an image coordinate system of the second camera according to coordinates of the plurality of preset calibration points in the first picture and coordinates of the plurality of preset calibration points in the second picture;
[0102] Furthermore, the handover detection module 42 converts the first position coordinates and the first size into the second position coordinates and the second size of the target object in the current image captured by the second camera, including: using a conversion matrix from the image coordinate system of the first camera to the image coordinate system of the second camera to convert the first position coordinates and the first size into the second position coordinates of the target object in the current image captured by the second camera; and converting the first size into the second size according to the focal length of the first camera and the focal length of the second camera.
[0103] In an optional embodiment, the handover detection module 42 notifies the second camera to collect an enlarged image of the target item, and is further used to: respectively obtain the third position coordinates and third size, fourth position coordinates and fourth size, fifth position coordinates and fifth size of the faces of the person handing over the item, the item recipient and the handover witness in the current picture of the first video stream, and convert the third position coordinates and third size, the fourth position coordinates and fourth size, and the fifth position coordinates and fifth size into the sixth position coordinates and sixth size, the seventh position coordinates and seventh size, and the eighth position coordinates and eighth size of the faces of the person handing over the item, the item recipient and the handover witness in the current picture of the second camera, and respectively convert the third position coordinates and third size, the fourth position coordinates and fourth size, and the fifth position coordinates and fifth size into the sixth position coordinates and sixth size, the seventh position coordinates and seventh size, and the eighth position coordinates and eighth size of the faces of the person handing over the item, the item recipient and the handover witness in the current picture of the second camera, and convert the faces of the person handing over the item, the item recipient and the handover witness in the current picture of the second camera. The sixth position coordinate and sixth size, the seventh position coordinate and seventh size, and the eighth position coordinate and eighth size in the current picture are carried in the handover personnel face magnification instruction and sent to the second camera, so that: the second camera magnifies the current picture according to the sixth position coordinate and sixth size, the seventh position coordinate and seventh size, and the eighth position coordinate and eighth size, respectively, until the faces of the person handing over the item, the person receiving the item, and the handover witness respectively overlap with the current picture of the second camera in the largest area, and the pictures with the largest overlapping area are respectively saved as face pictures of the person handing over the item, the person receiving the item, and the handover witness; or / and, further used to: control the first camera to capture the current picture, and save the current picture as the item handover start picture.
[0104] In an optional embodiment, after the handover detection module 42 detects in the first video stream that the target item is transferred to the item recipient, it is further used to: control the first camera to capture the current picture, and save the current picture as an item handover event map; or / and, according to the position of the target item in the first video stream, control the first camera to intercept the target item in the current picture, and save the intercepted target item map as a handover item map; or / and, intercept the video stream from the start of the item handover to the completion of the item handover in the first video stream, and save the intercepted video stream as a video recording of the item handover process.
[0105] An embodiment of the present invention further provides a non-transitory computer-readable storage medium, which stores instructions. When the instructions are executed by a processor, the processor executes the article transfer method described in any of the aforementioned embodiments.
[0106] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims disclosed herein may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope disclosed in the present application.
[0107] Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas, and is not used to limit the present application. For those skilled in the art, changes can be made in the specific implementation methods and application scopes according to the ideas, spirits and principles of the present invention, and any modifications, equivalent substitutions, improvements, etc. made therein should be included in the scope of protection of this application.
Claims
1. A method for delivering an article, characterized in that: The method is applied in an item handover scene including a binocular camera, wherein the first camera of the binocular camera is a fixed-focus lens, the second camera is a zoom lens, and the installation position of the binocular camera satisfies that: the field of view of the first camera covers a preset item handover area, and the method includes: Acquire a first video stream of the item handover scene captured by a first camera; When it is detected in the first video stream that the person handing over the item, the person receiving the item, the handover witness, and the target item are all located in the preset item handover area, it is detected in the first video stream whether the target item is in the handover person's handover ... If it is detected in the first video stream that the target item is transferred to the item recipient, it is determined that the handover of the target item is completed; Record the item handover information, including: the time when the item handover is completed, the enlarged image of the target item, the information of the person handing over the item, the information of the person receiving the item, and the information of the handover witness; The detecting in the first video stream that the person handing over the item, the person receiving the item, the handover witness, and the target item are all located in a preset item handover area includes: Detect faces in the first video stream. If any face is detected, determine whether the face is a facing face based on the angle of the face. If it is a facing face and the movement amplitude of the facing face within a preset first time period is detected to be less than a preset amplitude, determine that the face is a valid face; detect target items in the first video stream; if the target item is detected in the first video stream and three valid faces are detected, and the positional relationship between the three valid faces conforms to the preset positional relationship between the person handing over the item, the person receiving the item, and the handover witness, determine that the person handing over the item, the person receiving the item, the handover witness, and the target item detected in the first video stream are all located within the preset item handover area.
2. The method according to claim 1, characterized in that The field of view of the first camera covers the preset article handover area: the field of view of the first camera just covers the preset article handover area.
3. The method according to claim 1, characterized in that The detecting in the first video stream whether the target object is in the hands of the person handing over the object includes: Determine whether the positional relationship between the position of the face of the person handing over the item and the position of the target item detected in the first video stream meets the preset positional relationship between the position of the face of the person handing over the item and the position of the target item, and if so, determine whether the target item is in the handover person's handover ... Or / and, the detecting in the first video stream that the target item is transferred to the item recipient includes: It is determined whether the positional relationship between the position of the face of the item recipient and the position of the target item detected in the first video stream conforms to the preset positional relationship between the position of the face of the item recipient and the position of the target item. If so, it is determined that the item has been transferred to the item recipient.
4. The method according to claim 1, characterized in that: The notifying the second camera to collect an enlarged image of the target object includes: The first position coordinates and the first size of the target object in the current picture of the first video stream are obtained, the first position coordinates and the first size are converted into the second position coordinates and the second size of the target object in the current picture captured by the second camera, and the second position coordinates and the second size are carried in the target object zoom-in instruction and sent to the second camera, so that: the second camera zooms in the current picture according to the second position coordinates and the second size until the overlapping area between the target object and the current picture of the second camera is maximized, and the picture at this time is saved as an enlarged picture of the target object.
5. The method according to claim 4, characterized in that After the target object is detected in the first video stream to be in the hands of the person handing over the object and before the second camera is notified to collect an enlarged image of the target object, the method further includes: The person handing over the item is prompted by voice to face the item number on the item directly toward the lens of the second camera; After the image at this time is saved as an enlarged image of the target object, the method further includes: The object number of the target object is identified from the enlarged image of the target object, and the object number is saved.
6. The method according to claim 4, characterized in that Before obtaining the first video stream of the item handover scene captured by the first camera, the method further includes: Acquire a first picture including a plurality of preset calibration points captured by a first camera, and simultaneously acquire a second picture including the plurality of preset calibration points captured by a second camera, and calculate a conversion matrix between an image coordinate system of the first camera and an image coordinate system of the second camera according to coordinates of the plurality of preset calibration points in the first picture and coordinates of the plurality of preset calibration points in the second picture; The step of converting the first position coordinates and the first size into the second position coordinates and the second size of the target object in the current picture captured by the second camera includes: The first position coordinates and the first size are converted into the second position coordinates of the target object in the current image captured by the second camera using a conversion matrix between the image coordinate system of the first camera and the image coordinate system of the second camera; and the first size is converted into the second size according to the focal length of the first camera and the focal length of the second camera.
7. The method according to claim 1, characterized in that The method further includes: notifying the second camera to collect an enlarged image of the target object. The third position coordinates and the third size, the fourth position coordinates and the fourth size, and the fifth position coordinates and the fifth size of the faces of the person handing over the item, the item recipient, and the handover witness in the current picture of the first video stream are respectively obtained, and the third position coordinates and the third size, the fourth position coordinates and the fourth size, and the fifth position coordinates and the fifth size are respectively converted into the sixth position coordinates and the sixth size, the seventh position coordinates and the seventh size, and the eighth position coordinates and the eighth size of the faces of the person handing over the item, the item recipient, and the handover witness in the current picture of the second camera. The sixth position coordinate and the sixth size, the seventh position coordinate and the seventh size, and the eighth position coordinate and the eighth size in the current picture are carried in the handover personnel face magnification instruction and sent to the second camera, so that: the second camera magnifies the current picture according to the sixth position coordinate and the sixth size, the seventh position coordinate and the seventh size, and the eighth position coordinate and the eighth size respectively, until the faces of the person handing over the item, the person receiving the item, and the handover witness respectively overlap with the current picture of the second camera in the largest area, and the pictures with the largest overlap area are respectively saved as the face pictures of the person handing over the item, the person receiving the item, and the handover witness; Or / and, control the first camera to capture the current picture, and save the current picture as the item handover start picture.
8. The method according to claim 1, characterized in that: After the target object is detected to be transferred to the object recipient in the first video stream, the method further includes: Control the first camera to capture the current picture, and save the current picture as an item handover event graph; or / and, according to the position of the target object in the first video stream, controlling the first camera to intercept the target object in the current picture, and saving the intercepted target object image as the handover object image; Or / and, in the first video stream, a video stream from the start of the item handover to the completion of the item handover is intercepted, and the intercepted video stream is saved as a video recording of the item handover process.
9. The method according to claim 1, characterized in that: The first camera and the second camera are located on the same binocular camera, wherein the first camera is a fixed-focus lens and the second camera is a zoom lens.
10. An article transfer device, characterized in that: The device is applied in an item handover scene including a binocular camera, wherein the first camera of the binocular camera is a fixed-focus lens, the second camera is a zoom lens, and the installation position of the binocular camera satisfies: the field of view of the first camera covers a preset item handover area, and the device includes: The video stream acquisition module is used to: acquire a first video stream of the item handover scene captured by the first camera; The handover detection module is used to: when it is detected in the first video stream that the person handing over the item, the item recipient, the handover witness and the target item are all located in a preset item handover area, detect in the first video stream whether the target item is in the hands of the person handing over the item, and if so, notify the second camera to collect an enlarged image of the target item, and control the first camera to continue tracking the target item; if it is detected in the first video stream that the target item is transferred to the item recipient, it is determined that the handover of the target item is completed; record the item handover event, including: the handover time, the enlarged image of the item, and the information of the person handing over the item, the information of the item recipient and the handover witness; The handover detection module detects in the first video stream that the person handing over the item, the person receiving the item, the handover witness, and the target item are all located in a preset item handover area, including: Detect faces in the first video stream. If any face is detected, determine whether the face is a facing face based on the angle of the face. If it is a facing face and the movement amplitude of the facing face within a preset first time period is detected to be less than a preset amplitude, determine that the face is a valid face; detect target items in the first video stream; if the target item is detected in the first video stream and three valid faces are detected, and the positional relationship between the three valid faces conforms to the preset positional relationship between the person handing over the item, the person receiving the item, and the handover witness, determine that the person handing over the item, the person receiving the item, the handover witness, and the target item detected in the first video stream are all located within the preset item handover area.
11. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores instructions, which, when executed by a processor, cause the processor to perform the item transfer method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method and device for face inputting
CN103605969A
Face registration method and related product
CN107644219A
Image monitoring system and image monitoring method
CN113347387A
Ecort task detection method and system, electronic device and storage medium
CN113449592A
Article handover method and device, computer equipment, storage medium and program product
CN114596027A
