Method and device for marking identification information, storage medium and electronic device

By performing trajectory tracking and sub-feature matching on target objects in surveillance videos in the kitchen environment, the problem of loss or mismatch of identification information caused by cross-occlusion is solved, and the accuracy of target object annotation and alarm in the case of cross-occlusion is achieved.

CN113516093BActive Publication Date: 2024-09-10ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110853414.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-27
Publication Date
2024-09-10
Estimated Expiration
2041-07-27

AI Technical Summary

Technical Problem

In the kitchen environment, in the case of cross-occlusion, the identification information of the target object is easily lost or mismatched, resulting in tracking errors and missed alarms. Existing technologies cannot effectively solve this problem.

Method used

By tracking the trajectory of the first target object in the surveillance video, and obtaining the pre-occlusion and post-occlusion sub-features when the intersection ratio is greater than the preset threshold, matching the face sub-features, three-dimensional information sub-features and motion Trend sub-feature, determine that the target object after occlusion is the original target object, and continue labeling.

Benefits of technology

It effectively solves the problem of loss or mismatch of identification information during cross-occlusion, ensuring that the target object can continue to be marked under cross-occlusion, and improves the accuracy of tracking and alarming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113516093B
    Figure CN113516093B
Patent Text Reader

Abstract

The present invention discloses a method and device for labeling identification information, a storage medium and an electronic device, wherein the method comprises: tracking the trajectory of a first target object in a surveillance video, and labeling the first target object based on first identification information; when an intersection-and-union ratio of a first image area of ​​the first target object in the surveillance video and a second image area of ​​the second target object in the surveillance video is greater than a preset threshold, obtaining a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object, wherein both the first target object and the second target object are located in a target area, and the surveillance video is a surveillance video obtained by monitoring the target area; when the first sub-feature and the second sub-feature match, determining that the third target object is the first target image, and labeling the third target object based on the first identification information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a method and device for marking identification information, a storage medium and an electronic device. Background Art

[0002] With the rapid development of the domestic economy and the high consumption of the catering industry, the standardized management of the catering kitchen has become a top priority. Many restaurants that look glamorous on the outside have dirty and messy kitchens. In particular, the improper clothing of the kitchen staff will seriously affect the hygiene and safety of the kitchen and have a huge adverse impact on the health of diners. Therefore, strict regulations on the dress of the kitchen staff are needed.

[0003] The kitchen scene environment is complex and the staff are in motion. When there are many kitchen staff, there will be cross-occlusion. When cross-occlusion occurs, the target will lose its original ID during the tracking process, or the ID tracking will be wrong. When the tracking target ID does not match, it will cause missed alarms or even false alarms.

[0004] With regard to related technologies, when cross occlusion occurs, problems such as loss or mismatch of identification information of the tracked object are prone to occur, and no effective solution has been proposed so far.

[0005] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention

[0006] The embodiments of the present invention provide a method and device for labeling identification information, a storage medium and an electronic device, so as to at least solve the problem in the related art that the identification information of the tracked object is easily lost or mismatched when cross occlusion occurs.

[0007] According to one aspect of an embodiment of the present invention, a method for labeling identification information is provided, comprising: tracking a trajectory of a first target object in a surveillance video, and labeling the first target object based on first identification information; when an intersection-and-union ratio of a first image area of ​​the first target object in the surveillance video and a second image area of ​​the second target object in the surveillance video is greater than a preset threshold, obtaining a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object, wherein both the first target object and the second target object are located in a target area, and the surveillance video is a surveillance video obtained by monitoring the target area; when the first sub-feature matches the second sub-feature, determining that the third target object is the first target object, and labeling the third target object based on the first identification information.

[0008] In an optional embodiment, obtaining a first sub-feature of the first target object before being occluded by the second target object and a second sub-feature of the third target object after being occluded by the second target object includes at least one of the following: obtaining a first facial sub-feature of the first target object before being occluded by the second target object and a second facial sub-feature of the third target object after being occluded by the second target object; obtaining a first three-dimensional information sub-feature of the first target object before being occluded by the second target object and a second three-dimensional information sub-feature of the third target object after being occluded by the second target object; obtaining a first motion trend sub-feature of the first target object before being occluded by the second target object and a second motion trend sub-feature of the third target object after being occluded by the second target object.

[0009] In an optional embodiment, before determining that the third target object occluded by the second target object is the first target object, the method further includes: determining that the first sub-feature matches the second sub-feature in the following manner: determining that the first sub-feature matches the second sub-feature when at least one of the following sub-features matches: the first face sub-feature and the second face sub-feature, the first three-dimensional information sub-feature and the second three-dimensional information sub-feature, the first motion trend sub-feature and the second motion trend sub-feature.

[0010] In an optional embodiment, before tracking the trajectory of a first target object in a surveillance video and labeling the first target object based on first identification information, the method further includes: determining a target neural network model for tracking the trajectory of the first target object; obtaining video image frames of the target area and time dimension information corresponding to the video image frames, so as to train the target neural network model through the video image frames and the time dimension information.

[0011] In an optional embodiment, after determining the target neural network model for tracking the trajectory of the first target object, the method further includes: acquiring a first video image frame and a second video image frame, wherein the first video image frame and the second video image frame are video image frames at adjacent moments; extracting a first feature of the first video image frame and a second feature of the second video image frame, and inputting the first feature and the second feature into the target neural network model to obtain a correlation error between the first video image frame and the second video image frame; and correcting the target neural network model according to the correlation error.

[0012] In an optional embodiment, a first target object in a surveillance video is tracked, and the first target object is labeled based on first identification information, including: when the intersection-and-european ratio of the human body frame of any two consecutive video image frames of the first target object exceeds the preset threshold, determining that the first target object is allowed to be tracked, and labeling the first target object with first identification information.

[0013] According to another embodiment of the present invention, there is provided a device for labeling identification information, comprising: a tracking module, used to track the trajectory of a first target object in a surveillance video, and label the first target object based on first identification information; an acquisition module, used to acquire a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object, when an intersection-and-union ratio of a first image area of ​​the first target object in the surveillance video and a second image area of ​​the second target object in the surveillance video is greater than a preset threshold, wherein both the first target object and the second target object are located in a target area, and the surveillance video is a surveillance video obtained by monitoring the target area; a determination module, used to determine that the third target object is the first target object, when the first sub-feature matches the second sub-feature, and label the third target object based on the first identification information.

[0014] In an optional embodiment, the acquisition module is also used to perform at least one of the following: acquiring a first facial sub-feature of the first target object before being occluded by the second target object and a second facial sub-feature of the third target object after being occluded by the second target object; acquiring a first three-dimensional information sub-feature of the first target object before being occluded by the second target object and a second three-dimensional information sub-feature of the third target object after being occluded by the second target object; acquiring a first motion trend sub-feature of the first target object before being occluded by the second target object and a second motion trend sub-feature of the third target object after being occluded by the second target object.

[0015] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned identification information marking method when running.

[0016] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the identification information labeling method through the computer program.

[0017] Through the present invention, the trajectory of the first target object in the surveillance video is tracked, and the first target object is labeled based on the first identification information; when the intersection and union ratio of the first image area of ​​the first target object in the surveillance video and the second image area of ​​the second target object in the surveillance video is greater than a preset threshold, the first sub-feature of the first target object before being occluded by the second target object and the second sub-feature of the third target object after being occluded by the second target object are obtained; and when the first sub-feature and the second sub-feature match, the third target object is determined to be the first target object, and the third target object is labeled based on the first identification information. The above technical solution solves the problem that the identification information of the tracked object is easily lost or mismatched when cross-occlusion occurs in the related technology. Furthermore, in the case of cross-occlusion, information can still be labeled for the target object. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 It is a hardware structure block diagram of a computer terminal of the identification information marking method according to an embodiment of the present invention;

[0020] Figure 2 is a flow chart of a method for marking identification information according to an embodiment of the present invention;

[0021] Figure 3 A schematic diagram of a target detection process according to an embodiment of the present invention;

[0022] Figure 4 is a schematic flow chart of an association error algorithm according to an embodiment of the present invention;

[0023] Figure 5 4 is a structural block diagram of a device for labeling identification information according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. 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. 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.

[0026] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a computer terminal of the method for marking identification information of an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the marking method of identification information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0028] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] In this embodiment, a method for marking identification information is provided. Figure 2 : is a flowchart of a method for marking identification information according to an embodiment of the present invention, and the process includes the following steps:

[0030] Step S202, tracking a trajectory of a first target object in the surveillance video, and marking the first target object based on first identification information;

[0031] Step S204, when an intersection-and-union ratio of a first image area of ​​the first target object in the surveillance video and a second image area of ​​the second target object in the surveillance video is greater than a preset threshold, obtaining a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object, wherein both the first target object and the second target object are located in a target area, and the surveillance video is a surveillance video obtained by monitoring the target area;

[0032] Step S206: When the first sub-feature matches the second sub-feature, determine that the third target object is the first target object, and mark the third target object based on the first identification information.

[0033] Through the present invention, the trajectory of the first target object in the surveillance video is tracked, and the first target object is labeled based on the first identification information; when the intersection and union ratio of the first image area of ​​the first target object in the surveillance video and the second image area of ​​the second target object in the surveillance video is greater than a preset threshold, the first sub-feature of the first target object before being occluded by the second target object and the second sub-feature of the third target object after being occluded by the second target object are obtained; and when the first sub-feature and the second sub-feature match, the third target object is determined to be the first target object, and the third target object is labeled based on the first identification information. The above technical solution solves the problem that the identification information of the tracked object is easily lost or mismatched when cross-occlusion occurs in the related technology. Furthermore, in the case of cross-occlusion, information can still be labeled for the target object.

[0034] In an optional embodiment, the specific implementation process of step S204 may include at least one of the following: obtaining a first facial sub-feature of the first target object before being occluded by the second target object and a second facial sub-feature of the third target object after being occluded by the second target object; obtaining a first three-dimensional information sub-feature of the first target object before being occluded by the second target object and a second three-dimensional information sub-feature of the third target object after being occluded by the second target object; obtaining a first motion trend sub-feature of the first target object before being occluded by the second target object and a second motion trend sub-feature of the third target object after being occluded by the second target object, that is, the sub-features include at least one of the following: facial sub-feature, three-dimensional information sub-feature, motion trend sub-feature.

[0035] It should be noted that the above-mentioned facial sub-features may be facial sub-features obtained by performing facial recognition on the target object, the three-dimensional information sub-features may be sub-features obtained by identifying the target object through a binocular camera, and the motion trend sub-features may be sub-features obtained by an optical flow algorithm. The embodiments of the present invention do not limit this.

[0036] In an optional embodiment, before determining that the third target object occluded by the second target object is the first target object, the method further includes: determining that the first sub-feature matches the second sub-feature in the following manner: determining that the first sub-feature matches the second sub-feature when at least one of the following sub-features matches: the first face sub-feature and the second face sub-feature, the first three-dimensional information sub-feature and the second three-dimensional information sub-feature, the first motion trend sub-feature and the second motion trend sub-feature.

[0037] In the process of detecting the attire in the kitchen, there may be another situation: since the behaviors of the various staff members in the kitchen scene are in motion, there will be motion blur in some frames of the video, and the phenomenon of being blocked by objects such as tables, chairs and stoves exists. The deep learning method based on a single frame directly detects targets such as masks and chef hats, and the detection rate and accuracy are low. These problems will have an adverse effect on the subsequent alarm judgment. In order to solve this technical problem, the embodiment of the present invention also provides an implementation scheme:

[0038] In order to increase the accuracy of the trajectory tracking process, before tracking the trajectory of a first target object in a surveillance video and labeling the first target object based on first identification information, the method also includes: determining a target neural network model for trajectory tracking of the first target object; obtaining video image frames of the target area and time dimension information corresponding to the video image frames, so as to train the target neural network model through the video image frames and the time dimension information.

[0039] That is, in the process of training the target neural network model, the embodiment of the present invention takes dynamic video image frames into consideration and labels the video image frames according to the time dimension information, so that the target neural network model can be trained according to the video image frames and the time dimension information.

[0040] In an optional embodiment, after determining the target neural network model for tracking the trajectory of the first target object, the method further includes: acquiring a first video image frame and a second video image frame, wherein the first video image frame and the second video image frame are video image frames at adjacent moments; extracting a first feature of the first video image frame and a second feature of the second video image frame, and inputting the first feature and the second feature into the target neural network model to obtain a correlation error between the first video image frame and the second video image frame; and correcting the target neural network model according to the correlation error.

[0041] In an optional embodiment, a first target object in a surveillance video is tracked, and the first target object is labeled based on first identification information, including: when the intersection-and-european ratio of the human body frame of any two consecutive video image frames of the first target object exceeds the preset threshold, determining that the first target object is allowed to be tracked, and labeling the first target object with first identification information.

[0042] In summary, the overall technical solution of the embodiment of the present invention can solve the following technical problems: the defect of traditional video surveillance relying on manual work, the use of intelligent algorithms to alarm for improper clothing of people in the smart kitchen; the problem of missed detection caused by the inability to effectively detect motion blurred targets and occluded targets based on single-frame deep learning; the problem of target ID loss and errors during tracking due to cross-occlusion of people, which improves the efficiency of analysts.

[0043] Obviously, the above-described embodiments are only some embodiments of the present invention, not all embodiments. In order to better understand the above-mentioned marking method of identification information, the above-mentioned process is described below in conjunction with embodiments, but it is not intended to limit the technical solution of the embodiments of the present invention. Specifically:

[0044] The inventive idea in the embodiment of the present invention is as follows: the key to judging whether the staff is dressed correctly is to eliminate interference in the kitchen with complex scenes, accurately identify the target object, and track the target object, and further classify and count the clothing attributes of the tracked target. If the target is not compliant, an alarm message is promptly issued to relevant personnel for processing.

[0045] In order to better understand the solution of the above embodiment, an optional embodiment of the present invention further provides a solution:

[0046] Figure 3 Schematic diagram of target detection process according to an embodiment of the present invention. Figure 3 As shown, the following steps are included:

[0047] Step S302: The image background in the training set can be set as a kitchen scene, and the foreground can be set as a human target. In the neural network used in the embodiment of the present invention, a human target frame ratio suitable for the kitchen is adopted, and network branches of different sizes are added to the neural network to enrich the detail features. In the final output selection of the network, a confidence threshold is set. When the network result is greater than the set confidence threshold, the result of the neural network is output, which further improves the detection accuracy of the neural network.

[0048] It should be noted that the above neural network includes two stages in the application process: training stage and reasoning stage. In the application process of the training stage:

[0049] In existing kitchen scenes, target detection algorithms are trained based on static images during the training process. For kitchen tasks, the kitchen background is complex and the amount of data is small. In daily kitchen surveillance videos, compared with static images, the appearance, shape, scale and other attributes of the target object will change with the movement of the target. Therefore, in the network training process, more consideration is given to the dynamic characteristics of the video, and information in the time dimension is added. The consistency of the target in the time sequence is maintained during the detection process, which can avoid the loss of the target in a certain frame in the middle, ensuring the accuracy and robustness of kitchen scene target detection.

[0050] Optionally, the neural network may be a long short-term memory network LSTM. Then, the technical solution of the embodiment of the present invention may take advantage of the long short-term memory network LSTM to fully learn the temporal information in the video sequence. The detection network structure is composed of static target detection and LSTM. Figure 4 The method for determining the association error in target detection shown in the figure performs target detection on each frame of the video, extracts target features according to the detection results, and then fuses and stacks them. Feature extraction and fusion are performed on multiple adjacent frames and sent to LSTM. Multiple target frames are processed at the same time, and the association error is additionally calculated on the output results of the LSTM of two adjacent frames to minimize the association error. While retaining the spatial features, the spatiotemporal consistency of the target is maintained to enhance the association of the target between frames, thereby more accurately detecting human targets in the kitchen scene.

[0051] During the inference phase of the neural network, the trajectory of the human body can be inferred to obtain the results of human body detection and location information.

[0052] Step S304: Use the target tracking algorithm to perform secondary tracking on the pedestrian target determined in step S302, establish a model on the time frame sequence, and perform deep feature extraction on different pedestrian targets (equivalent to the target object in the above embodiment) in consecutive frames. If the intersection-over-union ratio of the target frame between every two frames reaches a threshold and the features of the object in the frame match, it can be determined that the object can be tracked, and the corresponding ID is marked to record the trajectory;

[0053] Step S306: judgment and processing of cross-occlusion of human bodies, calculating the intersection and union ratio of two human body frames with different IDs. When the intersection and union ratio reaches a certain threshold, it is determined that cross-occlusion has occurred. At this time, the occluded target must be further associated with the target in the unoccluded state, and matching is performed by collecting sub-features, wherein the sub-features include: face sub-features obtained by face recognition, three-dimensional information sub-features obtained by the binocular camera, and motion trend sub-features obtained by the optical flow algorithm. When all three sub-features can be matched, it can be determined that the two targets before and after the occlusion have been matched, and the ID remains unchanged. This method can effectively solve the problem of ID interruption or change when cross-occlusion occurs. Through the above technical solution, it is judged whether the target object is crossed, and when it is crossed, further association operations are performed to solve the problem of ID loss and error.

[0054] Step S308: using a pedestrian attribute classification algorithm, outputting attribute information such as whether a hat is worn, whether a mask is worn, and the style of the top for different IDs;

[0055] Step S310: Count the number of frames that are not in compliance with the target based on consecutive frames. If N consecutive frames are all determined to be non-compliant, an alarm is issued according to the above-mentioned classification rules.

[0056] Through the technical solutions of the embodiments and optional embodiments of the present invention, a target detection algorithm based on a video sequence is used to perform human target detection, thereby solving the problem of missed detection of motion blurred targets and occluded targets.

[0057] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.

[0058] In this embodiment, a device for marking identification information is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0059] Figure 5is a structural block diagram of a device for labeling identification information according to an embodiment of the present invention, the device comprising:

[0060] A tracking module 50, configured to track a trajectory of a first target object in a surveillance video and mark the first target object based on first identification information;

[0061] An acquisition module 52 is configured to acquire, when an intersection-and-joint ratio of a first image area of ​​the first target object in the surveillance video and a second image area of ​​the second target object in the surveillance video is greater than a preset threshold, a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object, wherein the first target object and the second target object are both located in a target area;

[0062] The determination module 54 is configured to determine that the third target object is the first target object when the first sub-feature matches the second sub-feature, and to mark the third target object based on the first identification information.

[0063] Through the present invention, the trajectory of the first target object in the surveillance video is tracked, and the first target object is labeled based on the first identification information; when the intersection and union ratio of the first image area of ​​the first target object in the surveillance video and the second image area of ​​the second target object in the surveillance video is greater than a preset threshold, the first sub-feature of the first target object before being occluded by the second target object and the second sub-feature of the third target object after being occluded by the second target object are obtained; and when the first sub-feature and the second sub-feature match, the third target object is determined to be the first target object, and the third target object is labeled based on the first identification information. The above technical solution solves the problem that the identification information of the tracked object is easily lost or mismatched when cross-occlusion occurs in the related technology. Furthermore, in the case of cross-occlusion, information can still be labeled for the target object.

[0064] In an optional embodiment, the acquisition module is also used to perform at least one of the following: acquiring a first facial sub-feature of the first target object before being occluded by the second target object and a second facial sub-feature of the third target object after being occluded by the second target object; acquiring a first three-dimensional information sub-feature of the first target object before being occluded by the second target object and a second three-dimensional information sub-feature of the third target object after being occluded by the second target object; acquiring a first motion trend sub-feature of the first target object before being occluded by the second target object and a second motion trend sub-feature of the third target object after being occluded by the second target object.

[0065] It should be noted that the above-mentioned facial sub-features may be facial sub-features obtained by performing facial recognition on the target object, the three-dimensional information sub-features may be sub-features obtained by identifying the target object through a binocular camera, and the motion trend sub-features may be sub-features obtained by an optical flow algorithm. The embodiments of the present invention do not limit this.

[0066] In an optional embodiment, the determination module is also used to: determine that the first sub-feature and the second sub-feature match in the following manner: determine that the first sub-feature and the second sub-feature match when at least one of the following sub-features matches: the first facial sub-feature and the second facial sub-feature, the first three-dimensional information sub-feature and the second three-dimensional information sub-feature, the first motion trend sub-feature and the second motion trend sub-feature.

[0067] In the process of detecting the attire in the kitchen, there may be another situation: since the behaviors of the various staff members in the kitchen scene are in motion, there will be motion blur in some frames of the video, and the phenomenon of being blocked by objects such as tables, chairs and stoves exists. The deep learning method based on a single frame directly detects targets such as masks and chef hats, and the detection rate and accuracy are low. These problems will have an adverse effect on the subsequent alarm judgment. In order to solve this technical problem, the embodiment of the present invention also provides an implementation scheme:

[0068] In order to increase the accuracy of the trajectory tracking process, the tracking module is also used to: determine a target neural network model for trajectory tracking of the first target object; obtain video image frames of the target area and time dimension information corresponding to the video image frames, so as to train the target neural network model through the video image frames and the time dimension information.

[0069] That is, in the process of training the target neural network model, the embodiment of the present invention takes dynamic video image frames into consideration and labels the video image frames according to the time dimension information, so that the target neural network model can be trained according to the video image frames and the time dimension information.

[0070] In an optional embodiment, the determination module is further used to: obtain a first video image frame and a second video image frame, wherein the first video image frame and the second video image frame are video image frames at adjacent moments; extract a first feature of the first video image frame and a second feature of the second video image frame, and input the first feature and the second feature into the target neural network model to obtain a correlation error between the first video image frame and the second video image frame; and correct the target neural network model according to the correlation error.

[0071] In an optional embodiment, the tracking module 50 is further used to: when the intersection-and-european ratio of the human body frame of any two consecutive video image frames of the first target object exceeds the preset threshold, determine that the first target object is allowed to be tracked, and mark the first identification information for the first target object.

[0072] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0073] S1, tracking a trajectory of a first target object in a surveillance video, and marking the first target object based on first identification information;

[0074] S2, when an intersection-and-union ratio of a first image area of ​​the first target object in the surveillance video and a second image area of ​​the second target object in the surveillance video is greater than a preset threshold, obtaining a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object, wherein both the first target object and the second target object are located in a target area, and the surveillance video is a surveillance video obtained by monitoring the target area;

[0075] S3: When the first sub-feature matches the second sub-feature, determine that the third target object is the first target object, and mark the third target object based on the first identification information.

[0076] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0077] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0078] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0079] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0080] S1, tracking a trajectory of a first target object in a surveillance video, and marking the first target object based on first identification information;

[0081] S2, when an intersection-and-union ratio of a first image area of ​​the first target object in the surveillance video and a second image area of ​​the second target object in the surveillance video is greater than a preset threshold, obtaining a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object, wherein both the first target object and the second target object are located in a target area, and the surveillance video is a surveillance video obtained by monitoring the target area;

[0082] S3: When the first sub-feature matches the second sub-feature, determine that the third target object is the first target object, and mark the third target object based on the first identification information.

[0083] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0084] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0085] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for marking identification information, It is characterized in that include: Tracking a trajectory of a first target object in a surveillance video, and marking the first target object based on first identification information; When an intersection-and-joint ratio of a first image area of ​​the first target object in the surveillance video and a second image area of ​​the second target object in the surveillance video is greater than a preset threshold, obtaining a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object, wherein both the first target object and the second target object are located in a target area, and the surveillance video is a surveillance video obtained by monitoring the target area; When the first sub-feature matches the second sub-feature, the third target object is determined to be the first target object, and the third target object is marked based on the first identification information.

2. The marking method of identification information according to claim 1, It is characterized in that Acquiring a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object includes at least one of the following: Acquire a first facial sub-feature of the first target object before being blocked by the second target object and a second facial sub-feature of the third target object after being blocked by the second target object; Acquire a first three-dimensional information sub-feature of the first target object before being blocked by the second target object and a second three-dimensional information sub-feature of the third target object after being blocked by the second target object; A first motion trend sub-feature of the first target object before being blocked by the second target object and a second motion trend sub-feature of the third target object after being blocked by the second target object are acquired.

3. The marking method of identification information according to claim 2, It is characterized in that Before determining that the third target object blocked by the second target object is the first target object, the method further includes: Determine that the first sub-feature matches the second sub-feature by: The first sub-feature and the second sub-feature match when at least one of the following sub-features matches: the first face sub-feature and the second face sub-feature, the first three-dimensional information sub-feature and the second three-dimensional information sub-feature, the first motion trend sub-feature and the second motion trend sub-feature.

4. The method for marking identification information according to claim 1, It is characterized in that Before tracking the trajectory of the first target object in the surveillance video and marking the first target object based on the first identification information, the method further includes: Determining a target neural network model for performing trajectory tracking on the first target object; The video image frames of the target area and the time dimension information corresponding to the video image frames are obtained, so as to train the target neural network model through the video image frames and the time dimension information.

5. The marking method of identification information according to claim 4, It is characterized in that After determining the target neural network model for tracking the trajectory of the first target object, the method further includes: acquiring a first video image frame and a second video image frame, wherein the first video image frame and the second video image frame are video image frames at adjacent moments; Extracting a first feature of the first video image frame and a second feature of the second video image frame, and inputting the first feature and the second feature into the target neural network model to obtain a correlation error between the first video image frame and the second video image frame; The target neural network model is modified according to the association error.

6. The method for marking identification information according to claim 1, It is characterized in that Tracking a trajectory of a first target object in a surveillance video and marking the first target object based on first identification information includes: When the intersection-and-joint ratio of the human body frames of any two consecutive video image frames of the first target object exceeds the preset threshold, it is determined that the first target object is allowed to be tracked, and first identification information is marked for the first target object.

7. A device for marking identification information, It is characterized in that include: A tracking module, which tracks a trajectory of a first target object in the surveillance video and marks the first target object based on first identification information; an acquisition module, configured to acquire, when an intersection-and-joint ratio of a first image area of ​​the first target object in the surveillance video and a second image area of ​​the second target object in the surveillance video is greater than a preset threshold, a first sub-feature of the first target object before being blocked by the second target object and a second sub-feature of the third target object after being blocked by the second target object, wherein both the first target object and the second target object are located in a target area, and the surveillance video is a surveillance video obtained by monitoring the target area; A determination module is used to determine that the third target object is the first target object when the first sub-feature matches the second sub-feature, and mark the third target object based on the first identification information.

8. The marking device for identification information according to claim 7, It is characterized in that The acquisition module is further configured to perform at least one of the following: Acquire a first facial sub-feature of the first target object before being blocked by the second target object and a second facial sub-feature of the third target object after being blocked by the second target object; Acquire a first three-dimensional information sub-feature of the first target object before being blocked by the second target object and a second three-dimensional information sub-feature of the third target object after being blocked by the second target object; A first motion trend sub-feature of the first target object before being blocked by the second target object and a second motion trend sub-feature of the third target object after being blocked by the second target object are acquired.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 6 when executed.

10. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.