A method, device, equipment and storage medium for detecting pedestrian dragging and hijacking behavior

Through real-time video data collection and posture estimation, it can automatically detect the dragging and hijacking behavior of pedestrians in public places and trigger an alarm, which solves the problem that existing technology cannot automatically identify this behavior and improves the accuracy and effectiveness of monitoring.

CN117612246BActive Publication Date: 2024-09-24SHENZHEN COMPREHENSIVE TRANSPORTATION & MUNICIPAL ENG DESIGN & RES INST CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311321290.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-12
Publication Date
2024-09-24
Estimated Expiration
2043-10-12

AI Technical Summary

Technical Problem

Existing video surveillance technology cannot automatically detect and identify pedestrian dragging and hijacking behaviors, making it easy to miss alarm opportunities.

Method used

Collect video data in real time through the camera, locate pedestrians in public places, and perform posture estimation processing. If it is found that one person's posture is dragging and another person's posture is resisting, it is determined that there is a pedestrian dragging and hijacking behavior and an alarm is triggered.

Benefits of technology

It realizes the automatic detection and alarm of pedestrian dragging and hijacking behavior, helps the alarm platform track suspects more accurately, and obtains vehicle information when necessary, improving the practical application and promotion value of monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117612246B
    Figure CN117612246B
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for detecting pedestrian dragging and hijacking behavior, and relates to the field of video surveillance technology. The method is to first locate each pedestrian appearing in a public place area according to the on-site video data collected by a camera in real time, obtain the pedestrian positioning result, and then obtain the posture estimation result of each pedestrian respectively through posture estimation processing, and finally for each pair of pedestrians whose distance is less than or equal to the preset distance threshold, if it is found that the posture estimation result of one of the corresponding pedestrians is a dragging posture and the posture estimation result of the other pedestrian is a resisting posture, it is determined that there is a pedestrian dragging and hijacking behavior between the corresponding two pedestrians, and the corresponding alarm action is triggered, so that the purpose of automatically detecting the pedestrian dragging and hijacking behavior and triggering the alarm can be achieved, and then the alarm platform can be used to track the suspect more quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of video surveillance, and in particular relates to a method, device, equipment and storage medium for detecting pedestrian dragging and hijacking behavior. Background Art

[0002] Video surveillance has a long history and has traditionally been widely used in the security field.

[0003] In public places, how to improve the existing video surveillance technology to automatically detect such pedestrian dragging and hijacking behavior and trigger an alarm is a topic that technical personnel in this field urgently need to study. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, computer equipment and computer-readable storage medium for detecting pedestrian dragging and hijacking behavior, so as to solve the problem that the existing video surveillance scheme cannot automatically detect and identify pedestrian dragging and hijacking behavior, resulting in easy miss of the alarm opportunity.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, a method for detecting a pedestrian dragging hijacking behavior is provided, comprising:

[0007] Obtain live video data collected by cameras in real time in public areas;

[0008] Locating each pedestrian appearing in the public area according to the on-site video data to obtain a pedestrian positioning result, wherein the pedestrian positioning result includes a human body marking frame of each pedestrian in a video frame image of the on-site video data;

[0009] For each pedestrian, extract a corresponding pedestrian video frame image from the on-site video data according to a corresponding human body marker frame;

[0010] For each of the pedestrians, performing corresponding posture estimation processing according to the corresponding pedestrian video frame image to obtain a corresponding posture estimation result;

[0011] For each pair of pedestrians appearing in the public place area and with a distance less than or equal to a preset distance threshold, if it is found that the posture estimation result of one of the corresponding pedestrians is a dragging posture and the posture estimation result of the other pedestrian is a resisting posture, it is determined that there is pedestrian dragging and hijacking behavior between the corresponding two pedestrians, and the corresponding alarm action is triggered.

[0012] Based on the above invention content, a new video surveillance solution is provided which can automatically detect the dragging and hijacking behavior of pedestrians and trigger an alarm, that is, firstly, according to the on-site video data collected by the camera in real time, each pedestrian appearing in the public area is located to obtain the pedestrian positioning result, and then the posture estimation result of each pedestrian is obtained respectively through posture estimation processing, and finally, for each pair of pedestrians whose distance is less than or equal to the preset distance threshold, if it is found that the posture estimation result of one of the corresponding persons is a dragging posture and the posture estimation result of the other person is a resistance posture, it is determined that there is a pedestrian dragging and hijacking behavior between the corresponding two pedestrians, and the corresponding alarm action is triggered, so that the purpose of automatically detecting the pedestrian dragging and hijacking behavior and triggering the alarm can be achieved, and then the alarm platform can be used to track the suspect more quickly, which is convenient for practical application and promotion.

[0013] In a possible design, based on the on-site video data, each pedestrian appearing in the public area is located to obtain a pedestrian location result, including:

[0014] Using a multi-scale sliding window scanning method to locate each human body appearing in the video frame image of the live video data, and obtaining a positioning window of each human body, wherein the positioning window refers to a sliding window used to locate and determine the corresponding human body;

[0015] For each of the human bodies, the corresponding human body is regarded as a pedestrian appearing in the public place area, and a human body marking frame of the corresponding pedestrian in the video frame image of the on-site video data is obtained according to the corresponding positioning window.

[0016] In a possible design, for a pedestrian appearing in the public area, a corresponding posture estimation process is performed according to a corresponding pedestrian video frame image to obtain a corresponding posture estimation result, including:

[0017] Extracting continuous video frame feature data of the pedestrian from the pedestrian video frame image of the pedestrian using a histogram of oriented gradients descriptor and a normalized aspect ratio;

[0018] The continuous video frame feature data of the pedestrian is imported into a continuous viewpoint posture estimation model based on a support vector machine and which has been pre-trained for iterative optimization, and a continuous viewpoint posture estimation result of the pedestrian is output, wherein the continuous viewpoint posture estimation result includes a result estimated as a dragging posture or a resisting posture.

[0019] In a possible design, for a pair of pedestrians that appear in the public area and whose distance is less than or equal to a preset distance threshold, triggering a corresponding alarm action includes:

[0020] For the first pedestrian in the pair of pedestrians whose posture estimation result is a dragging posture, extract corresponding character portrait information from the corresponding pedestrian video data, wherein the character portrait information includes a facial type and / or a body height;

[0021] The on-site video data including the pedestrian video data of the first pedestrian and the character portrait information of the first pedestrian are sent to the alarm platform as reporting clues.

[0022] In a possible design, after triggering a corresponding alarm action for a pair of pedestrians that appear in the public area and whose distance is less than or equal to a preset distance threshold, the method further includes:

[0023] The first pedestrian in the pair of pedestrians, whose posture is estimated to be a dragging posture, is tracked under multiple cameras using cross-lens tracking technology, and the tracked video data is sent to the alarm platform in real time as a reporting clue until the first pedestrian disappears due to entering a blind spot of monitoring.

[0024] In a possible design, after discovering that the first pedestrian disappears due to entering a monitoring blind spot, the method further includes:

[0025] Extracting the last video frame image captured before the first pedestrian disappears from the tracked video data, wherein the last video frame image includes a human body marking frame of the first pedestrian;

[0026] Importing the last video frame image into a vehicle recognition model that has been pre-trained and based on a target detection algorithm to obtain a vehicle recognition result including at least one vehicle marking frame;

[0027] For each vehicle marking frame in the at least one vehicle marking frame, determining whether the human body marking frame of the first pedestrian is located in a corresponding marking frame, and if so, extracting a target vehicle image from the last video frame image according to the corresponding marking frame;

[0028] Performing license plate rectangular contour detection on the target vehicle image to obtain a license plate marking frame;

[0029] According to the license plate mark frame, extracting the license plate image from the target vehicle image;

[0030] Using the character recognition package pytesseract to perform character recognition processing on the license plate image to obtain a character string, and using the character string as the license plate number of the vehicle to be tracked;

[0031] The target vehicle image and the license plate number are sent to the alarm platform as new reporting clues.

[0032] In one possible design, after extracting the target vehicle image from the last video frame image, the method further includes:

[0033] Importing the target vehicle image into a pre-trained vehicle type classification model based on the residual network ResNet_34 to obtain a vehicle type classification result of the vehicle to be tracked;

[0034] The vehicle type classification result is sent to the alarm platform as another new reporting clue.

[0035] In a second aspect, a pedestrian dragging and hijacking behavior detection device is provided, comprising a data acquisition module, a pedestrian positioning module, an image extraction module, a posture estimation module and a behavior confirmation module which are sequentially communicatively connected;

[0036] The data acquisition module is used to acquire the on-site video data collected by the camera in real time in the public area;

[0037] The pedestrian positioning module is used to locate each pedestrian appearing in the public place area according to the on-site video data to obtain a pedestrian positioning result, wherein the pedestrian positioning result includes a human body mark frame of each pedestrian in the video frame image of the on-site video data;

[0038] The image extraction module is used to extract the corresponding pedestrian video frame image from the on-site video data according to the corresponding human body mark frame for each pedestrian;

[0039] The posture estimation module is used to perform corresponding posture estimation processing on each pedestrian according to the corresponding pedestrian video frame image to obtain a corresponding posture estimation result;

[0040] The behavior confirmation module is used to determine that there is pedestrian dragging and hijacking behavior between the corresponding two pedestrians for each pair of pedestrians that appear in the public place area and the distance between them is less than or equal to a preset distance threshold, if it is found that the posture estimation result of one of the corresponding pedestrians is a dragging posture and the posture estimation result of the other pedestrian is a resisting posture, and trigger a corresponding alarm action.

[0041] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the pedestrian dragging hijacking behavior detection method as described in the first aspect or any possible design of the first aspect.

[0042] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on a computer, the pedestrian dragging hijacking behavior detection method as described in the first aspect or any possible design of the first aspect is executed.

[0043] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the pedestrian dragging hijacking behavior detection method as described in the first aspect or any possible design of the first aspect.

[0044] Beneficial effects of the above scheme:

[0045] (1) The present invention creatively provides a new video surveillance solution that can automatically detect pedestrian dragging and hijacking behaviors and trigger an alarm, that is, first, based on the on-site video data collected by the camera in real time, each pedestrian appearing in the public area is located to obtain the pedestrian positioning result, and then the posture estimation result of each pedestrian is obtained through posture estimation processing. Finally, for each pair of pedestrians whose distance is less than or equal to a preset distance threshold, if it is found that the posture estimation result of one of the corresponding pedestrians is a dragging posture and the posture estimation result of the other pedestrian is a resisting posture, it is determined that there is a pedestrian dragging and hijacking behavior between the corresponding two pedestrians, and the corresponding alarm action is triggered. In this way, the purpose of automatically detecting pedestrian dragging and hijacking behaviors and triggering an alarm can be achieved, which can help the alarm platform to track the suspect more quickly.

[0046] (2) Cross-camera tracking technology can also be used to track suspects under multiple cameras, and the video data obtained from tracking can be sent to the alarm platform in real time as a reporting clue, which further helps the alarm platform track the suspect more quickly;

[0047] (3) It can also detect and identify whether the suspect disappears into the vehicle, and automatically obtain the vehicle information such as the license plate number and model of the vehicle when it is found, and then send this vehicle information as a new reporting clue to the alarm platform, which can also help the alarm platform track the suspect more quickly, facilitating practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 A flowchart of a method for detecting pedestrian dragging and hijacking behavior provided in an embodiment of the present application.

[0050] Figure 2 A schematic diagram of the structure of a pedestrian dragging and hijacking behavior detection device provided in an embodiment of the present application.

[0051] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0053] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.

[0054] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.

[0055] Example:

[0056] like Figure 1As shown, the pedestrian dragging and hijacking behavior detection method provided in the first aspect of this embodiment can be, but is not limited to, executed by a computer device with certain computing resources and connected to at least one camera for communication, such as an intelligent roadside unit (Road Side Unit, RSU, a key basic equipment for networking and intelligentization of road infrastructure in a vehicle-road cooperative system), a platform server, a personal computer (Personal Computer, PC, refers to a multi-purpose computer with a size, price and performance suitable for personal use; desktops, laptops, small laptops, tablets and ultrabooks are all personal computers), smart phones, personal digital assistants (Personal Digital Assistant, PDA) or wearable devices and other electronic devices. Figure 1 As shown, the pedestrian dragging hijacking behavior detection method may include but is not limited to the following steps S1 to S5.

[0057] S1. Obtain live video data collected by cameras in real time in public areas.

[0058] In step S1, the camera is a conventional video surveillance camera, which is mainly used for remote monitoring of the public area (such as a square, road or other public places, etc.) and video data retention. The camera lens field of view covers the public area, and is used to collect video frame images of the public area in real time to obtain live video data containing a plurality of continuous video frame images. In addition, the camera can transmit the collected data to the local device in a conventional manner.

[0059] S2. Based on the on-site video data, locate each pedestrian appearing in the public place area to obtain a pedestrian positioning result, wherein the pedestrian positioning result includes but is not limited to a human body marking box of each pedestrian in the video frame image of the on-site video data.

[0060] In the step S2, specifically, the following steps S21 to S22 are included but are not limited to: S21. Use a multi-scale sliding window scanning method to locate each human body appearing in the video frame image of the live video data, and obtain the positioning window of each human body, wherein the positioning window refers to a sliding window used to locate and determine the corresponding human body; S22. For each human body, the corresponding human body is regarded as a pedestrian appearing in the public area, and the human body marking frame of the corresponding pedestrian in the video frame image of the live video data is obtained according to the corresponding positioning window. In the aforementioned step S21, the multi-scale sliding window scanning method is a commonly used human body detection technology, and its technical idea is: first scale the image to different scales, then use a sliding window of a fixed size to slide on the entire image with an equidistant step length, and perform human body detection on each sliding window, thereby obtaining the positioning window of each human body, and the human body marking frame can be obtained according to the position of the positioning window in the video frame image of the live video data.

[0061] S3. For each pedestrian, extract a corresponding pedestrian video frame image from the on-site video data according to the corresponding human body marker frame.

[0062] In step S3, the specific image extraction process is: for each pedestrian, the image located in the corresponding human body mark frame is cut out from the video frame image of the on-site video data, and the image is used as the corresponding pedestrian video frame image. In addition, for multiple video frame images that are continuous in time sequence, multiple pedestrian video frame images that are still continuous in time sequence can be extracted.

[0063] S4. For each of the pedestrians, perform corresponding posture estimation processing according to the corresponding pedestrian video frame image to obtain a corresponding posture estimation result.

[0064] In the step S4, specifically, for a pedestrian appearing in the public area, a corresponding posture estimation process is performed according to the corresponding pedestrian video frame image to obtain a corresponding posture estimation result, including but not limited to the following steps S41 to S42.

[0065] S41. Using a histogram of oriented gradients descriptor and a normalized aspect ratio, extracting continuous video frame feature data of the pedestrian from the pedestrian video frame image of the pedestrian.

[0066] In the above-mentioned step S41, the Histogram of Oriented Gradient (HOG) descriptor is a feature descriptor used for object detection in computer vision and image processing, and the normalized aspect ratio is specifically the ratio of the height to the width of the pedestrian video frame image. Therefore, for multiple pedestrian video frame images that are continuous in time sequence, the continuous video frame feature data can be obtained by conventional extraction.

[0067] S42. Import the continuous video frame feature data of the pedestrian into a continuous viewpoint posture estimation model based on a support vector machine that has completed iterative optimization training in advance, and output a continuous viewpoint posture estimation result of the pedestrian, wherein the continuous viewpoint posture estimation result includes a result estimated as a dragging posture or a resisting posture.

[0068] In step S42, the support vector machine (SVM) is a generalized linear classifier that performs binary classification on data in a supervised learning manner, and its decision boundary is a maximum-margin hyperplane solved for learning samples, so a conventional iterative optimization algorithm can be used to optimize the model parameters and labels of the continuous viewpoint posture estimation model, and the continuous viewpoint posture estimation model can be used to estimate the posture of each pedestrian. The specific construction and training measures of the continuous viewpoint posture estimation model in this embodiment include but are not limited to the following points (A) to (D).

[0069] (A) In this embodiment, given an example object, the model for each category (i.e., dragging posture or resistance posture) returns a confidence score indicating the likelihood that the object belongs to that category, as well as a discrete viewpoint label associated with the canonical posture of that category. In many cases, these postures have semantic meaning, such as the front / side view of a car. This embodiment designs each model as a mixture of HOG-based templates corresponding to multiple canonical postures of the category. The score formula for the example object x is as follows:

[0070]

[0071] Where w = {ω1,ω2,...,ω v} is the learned template mixture, v = {1, 2, ..., V}, V is the number of canonical viewpoints in the model, ψ v (x) is the feature representation of x under viewpoint label v. Since the dimensions of the template may be different, ψ v(x) is designed to be v In addition, the predicted viewpoint label of x is: Here, the subscript d represents a discrete label.

[0072] (B) This example prefers HOG-based features because they encode the spatial layout of object shapes and can handle intra-class and intra-view variations well. This example uses an implementation of "Histograms of oriented gradients for human detection" for feature construction and normalization.

[0073] (C) This embodiment adopts a standard multi-scale window scanning framework to localize objects in an image: windows with scores above a learned threshold are selected as candidate detections, and non-maximum suppression is applied as post-processing to eliminate redundant window detections.

[0074] (D) This embodiment extends the training algorithm of "Histograms of oriented gradients for human detection" to cope with viewpoint classification. For each category, from {x1,x2,...,x P} and {z1,z2,...,z N} to learn a mixture of V component templates w = {w1,w2,...,w V}. The learning framework of this embodiment attempts to match each positive example with at least one of these templates and each negative example with none of these templates. Mathematically, the large margin optimization formula of this scheme is:

[0075]

[0076] In the formula, λ is a binary label, l(s) = max(0,1-s) represents the hinge-loss loss, where s is the score of the classifier and C Pos and C Neg is the regularization parameter.

[0077] (E) Training process: Each template w v Initialized by a set of positive examples initially labeled as viewpoint v. In each iteration, all templates are updated simultaneously by mining hard negative examples and updating the viewpoint labels λ of the positive examples. In this embodiment, the true viewpoint labels of the positive examples are represented as {v d (x1),v d (x2),...,v d (xP )}. In the following content, this embodiment considers three cases, where these labels are completely known, partially known, and unknown. This embodiment calls them supervised, semi-supervised, and unsupervised cases respectively.

[0078] Under supervision, each are fixed. The model is initialized by dividing the positive examples into groups based on the viewpoint label and learns a viewpoint template from each group. In the model update step, the optimization is simplified to a linear SVM formulation. Although this embodiment does not change the component labels during training, this is different from training each component independently because the training process uses a single regularization constraint and enforces the boundaries of all clusters simultaneously. This has been shown to be crucial for learning a hybrid model to achieve balanced and accurate viewpoint prediction.

[0079] In the semi-supervised case, the present embodiment first builds a multi-view classifier using positive examples with known viewpoint labels. In practice, the present embodiment uses the libsvm multi-class classification toolbox to classify HOG features. Once the remaining positive examples are classified, the present embodiment initializes the component templates based on known or estimated labels. In the model update step, the present embodiment fixes the labels of those known viewpoint labels and allows other labels to change.

[0080] In the unsupervised case, model initialization is crucial for accurate viewpoint classification because no explicit constraints are imposed on viewpoint labels in the later stages of optimization. This example uses a clustering scheme based on normalized cuts for initialization. This example defines two positive examples x i and x j The apparent distance between is:

[0081] d(x i ,x j )=α·χ 2 (ψ0(x i ),ψ0(x j ))+(1-α)·||Asp(x i )-Asp(x j )||2

[0082] In the formula, ψ0(x i ) is x i HOG descriptor under standard template size, and Asp(x i ) is x i Normalized aspect ratio of the bounding box. Next, this embodiment converts the distance to an affinity measure using an exponential function and obtains the component groups by applying the normalized cut algorithm on the resulting affinity matrix. This provides a relatively uniform partitioning of the positive examples, which is very important for good unsupervised performance.

[0083] In the model update step, since the aforementioned large margin optimization formula describes a non-convex problem based on integers, a feasible solution is to optimize w with fixed labels λ and optimize λ with fixed template weights w. The former is SVM, while the optimization step of the latter is very simple: In addition, the continuous viewpoint attitude estimation model can also output attitude information such as rotation matrix and translation vector.

[0084] S5. For each pair of pedestrians that appear in the public area and whose distance is less than or equal to the preset distance threshold, if it is found that the posture estimation result of one of the corresponding pedestrians is a dragging posture and the posture estimation result of the other pedestrian is a resisting posture, it is determined that there is pedestrian dragging and hijacking behavior between the corresponding two pedestrians, and a corresponding alarm action is triggered.

[0085] In step S5, the distance may be equal to the center distance between the human body marking frames corresponding to the two pedestrians, and in order to avoid misjudgment caused by different viewing distances, the distance may preferably be equal to the ratio of the center distance between the human body marking frames corresponding to the two pedestrians to the average diagonal length of the human body marking frames corresponding to the two pedestrians. The preset distance threshold may be specifically half of the average diagonal length, so that the dragging posture of one of the persons and the resistance posture of the other person constitute a causal relationship, and then serve as a basis for accurately judging whether there is pedestrian dragging and hijacking behavior. Specifically, for a pair of pedestrians appearing in the public area and whose distance is less than or equal to the preset distance threshold, a corresponding alarm action is triggered, including but not limited to the following steps S51 to S52.

[0086] S51. For the first pedestrian in the pair of pedestrians whose posture estimation result is a dragging posture, extract corresponding character portrait information from the corresponding pedestrian video data, wherein the character portrait information includes but is not limited to facial type and / or body height, etc.

[0087] In the step S51, the specific method of extracting the character portrait information is an existing conventional method, such as calling the face recognition method provided in the OpenCv library (there are three methods, namely, the LBPH method, the EigenFishfaces method and the Fisherfaces method) to identify the face type. In detail, this embodiment adopts the LBPH (Local Binary Patterns Histogram) method, that is, in the OpenCv library, the function cv2.face.LBPHFaceRecognizer_create() is first used to generate an LBPH recognizer instance model, and then the cv2.face_FaceRecognizer.train() function is used to complete the training of the LBPH recognizer instance model, and finally the cv2.face_FaceRecognizer.predict() function is used to complete the face recognition processing based on the pedestrian video data of the first pedestrian and the LBPH recognizer instance model to obtain the face type recognition result of the first pedestrian. In addition, for the second pedestrian in the pair of pedestrians whose posture estimation result is a resistance posture, the corresponding character portrait information can also be extracted from the corresponding pedestrian video data.

[0088] S52. Send the on-site video data including the pedestrian video data of the first pedestrian and the character portrait information of the first pedestrian as reporting clues to the alarm platform.

[0089] In step S52, the on-site video data including the pedestrian video data of the second pedestrian and the character portrait information of the second pedestrian can also be sent to the alarm platform as relevant clues, so that the alarm platform can respond accordingly, track the suspect (i.e., the first pedestrian) more quickly, and rescue the second pedestrian.

[0090] Therefore, based on the pedestrian dragging and hijacking behavior detection method described in the aforementioned steps S1 to S5, a new video surveillance solution is provided that can automatically detect pedestrian dragging and hijacking behavior and trigger an alarm, that is, first, based on the on-site video data collected by the camera in real time, each pedestrian appearing in the public area is located to obtain the pedestrian positioning result, and then the posture estimation result of each pedestrian is obtained through posture estimation processing. Finally, for each pair of pedestrians whose distance is less than or equal to the preset distance threshold, if it is found that the posture estimation result of one of the corresponding persons is a dragging posture and the posture estimation result of the other person is a resistance posture, it is determined that there is pedestrian dragging and hijacking behavior between the corresponding two pedestrians, and the corresponding alarm action is triggered. In this way, the purpose of automatically detecting pedestrian dragging and hijacking behavior and triggering an alarm can be achieved, which can help the alarm platform to track the suspect more quickly, thereby facilitating practical application and promotion.

[0091] Based on the technical solution of the first aspect mentioned above, this embodiment also provides a possible design of how to assist the alarm platform to automatically track suspects, that is, after triggering a corresponding alarm action for a pair of pedestrians appearing in the public area and whose distance is less than or equal to a preset distance threshold, the method also includes but is not limited to the following step S6.

[0092] S6. Use cross-lens tracking technology to track the first pedestrian in the pair of pedestrians whose posture is estimated to be a dragging posture under multiple cameras, and send the tracking video data as a reporting clue to the alarm platform in real time until the first pedestrian disappears due to entering a blind spot of monitoring.

[0093] In the step S6, specifically, the cross-lens tracking technology provided in the Baidu algorithm PP-Tracking, which has cross-lens tracking capability and is based on the DeepSORT algorithm, can be used, that is, Baidu's self-developed lightweight models PP-PicoDet and PP-LCNet are used as the detection model and ReID model respectively, and the trajectory fusion algorithm is used to maintain high performance while also taking into account high accuracy, so as to achieve the effect of following the target closely under multiple lenses, and accurately tracking the target regardless of how the lens is switched or how the scene changes. In addition, similarly, the cross-lens tracking technology can also be used to track the second pedestrian in the pair of pedestrians and whose posture estimation result is a resistance posture under multiple cameras, and the video data obtained by tracking is sent to the alarm platform in real time as a relevant reporting clue until the second pedestrian disappears due to entering the blind spot of monitoring.

[0094] After step S6, it is considered that the loss of tracking of the pedestrian may be due to the pedestrian entering a monitoring blind spot such as a house, an alley or a vehicle. In the case where a pedestrian enters a vehicle, vehicle information can be further obtained and provided to the alarm platform as a new reporting clue. That is, preferably, after it is found that the first pedestrian disappears due to entering a monitoring blind spot, the method also includes but is not limited to the following steps S71 to S76.

[0095] S71. Extracting the last video frame image captured before the first pedestrian disappears from the tracked video data, wherein the last video frame image includes a human body marking frame of the first pedestrian.

[0096] In the step S71, the next video frame image that is located after the last video frame image in time sequence will not include the human body mark frame of the first pedestrian, which means that the first pedestrian disappears due to entering the monitoring blind spot.

[0097] S72. Import the last video frame image into a vehicle recognition model that is based on a target detection algorithm and has been pre-trained to obtain a vehicle recognition result that includes at least one vehicle marking frame.

[0098] In the step S72, the target detection algorithm is an existing artificial intelligence recognition algorithm for identifying objects in a picture and marking the position of the objects. Specifically, it can be but not limited to Faster R-CNN (Faster Regions with Convolutional Neural Networks features, a target detection algorithm proposed by He Kaiming et al. in 2015, which won multiple first places in the 2015 ILSVRV and COCO competitions) target detection algorithm, SSD (Single Shot MultiBox Detector, a target detection algorithm proposed by Wei Liu at ECCV 2016, which is one of the currently popular main detection frameworks) target detection algorithm or YOLO (Youonly look once, currently the latest version has been developed to V4, and is also widely used in the industry. Its basic principle is: first, the input image is divided into 7x7 grids, and 2 borders are predicted for each grid. Then, the target windows with relatively low probability are removed according to the threshold, and finally, the redundant windows are removed by border merging to obtain the detection result) target detection algorithm, etc. Therefore, vehicle recognition processing can be performed based on the target detection algorithm to obtain a vehicle recognition result. The target detection algorithm preferably adopts the YOLO v4 target detection algorithm, wherein the specific model structure of the YOLO v4 target detection algorithm consists of three parts, namely the backbone network backbone, the neck network neck and the head network head. The backbone network Backbone can adopt the CSPDarknet53 (CSP stands for Cross Stage Partial) network for feature extraction. The neck network neck is composed of the SPP (Spatial Pyramid Pooling block) block and the PANet (Path Aggregation Network) network, the former is used to increase the receptive field and separate the most important features, and the latter is used to ensure that semantic features are received from the high-level layer and fine-grained features are received from the low-level layer of the horizontal backbone network at the same time. The head network head performs detection based on the anchor frame and detects three different sizes of feature maps: a feature map of size 13×13, a feature map of size 26×26, and a feature map of size 52×52, which are used to detect targets from large to small respectively (here, the feature map of size large contains richer information, so the feature map of size 52×52 is used to detect small targets, and vice versa).

[0099] S73. For each vehicle marking frame in the at least one vehicle marking frame, determine whether the human body marking frame of the first pedestrian is located in the corresponding marking frame. If so, extract the target vehicle image from the last video frame image according to the corresponding marking frame.

[0100] In the step S73, it is determined whether the human body mark frame of the first pedestrian is located within the vehicle mark frame, which is the basis for determining whether the pedestrian disappears and enters the vehicle. Therefore, once it is determined that the human body mark frame of the first pedestrian is located within a certain vehicle mark frame, it is necessary to capture the target vehicle image from the last video frame image based on the certain vehicle mark frame.

[0101] S74. Perform license plate rectangular contour detection on the target vehicle image to obtain a license plate marking frame.

[0102] In step S74, the rectangular contour detection function in the cross-platform computer vision library Opencv can be used to find the license plate marking frame, but is not limited to it. The detection accuracy can be improved by combining the known information such as the exact size, color and approximate position of the license plate.

[0103] S75. According to the license plate mark frame, extract the license plate image from the target vehicle image.

[0104] S76. Use the character recognition package pytesseract to perform character recognition processing on the license plate image to obtain a character string, and use the character string as the license plate number of the vehicle to be tracked.

[0105] In the step S76, the character recognition package pytesseract is an existing OCR (Optical Character Recognition) tool.

[0106] S77. Send the target vehicle image and the license plate number as new reporting clues to the alarm platform.

[0107] In addition, after the target vehicle image is cut out from the last video frame image, the method further includes but is not limited to: firstly importing the target vehicle image into a pre-trained vehicle type classification model based on the residual network ResNet_34 to obtain the vehicle type classification result of the vehicle to be tracked; and then sending the vehicle type classification result as another new reporting clue to the alarm platform. Specifically, the aforementioned vehicle type classification results include but are not limited to SUV, car or van, etc.

[0108] Based on the above possible design 1, the cross-lens tracking technology can also be used to track the suspect under multiple cameras, and the video data obtained by tracking can be sent to the alarm platform in real time as a reporting clue, which can further help the alarm platform to track the suspect more quickly. In addition, it is also possible to detect whether the suspect disappears into the vehicle, and automatically obtain the vehicle information such as the license plate number and model of the vehicle when it is found, and then send this vehicle information as a new reporting clue to the alarm platform, which can also help the alarm platform to track the suspect more quickly.

[0109] like Figure 2 As shown, the second aspect of this embodiment provides a virtual device for implementing the pedestrian dragging and hijacking behavior detection method described in the first aspect or possible design one, including a data acquisition module, a pedestrian positioning module, an image extraction module, a posture estimation module and a behavior confirmation module that are sequentially connected in communication;

[0110] The data acquisition module is used to acquire the on-site video data collected by the camera in real time in the public area;

[0111] The pedestrian positioning module is used to locate each pedestrian appearing in the public place area according to the on-site video data to obtain a pedestrian positioning result, wherein the pedestrian positioning result includes a human body mark frame of each pedestrian in the video frame image of the on-site video data;

[0112] The image extraction module is used to extract the corresponding pedestrian video frame image from the on-site video data according to the corresponding human body mark frame for each pedestrian;

[0113] The posture estimation module is used to perform corresponding posture estimation processing on each pedestrian according to the corresponding pedestrian video frame image to obtain a corresponding posture estimation result;

[0114] The behavior confirmation module is used to determine that there is pedestrian dragging and hijacking behavior between the corresponding two pedestrians for each pair of pedestrians that appear in the public place area and the distance between them is less than or equal to a preset distance threshold, if it is found that the posture estimation result of one of the corresponding pedestrians is a dragging posture and the posture estimation result of the other pedestrian is a resisting posture, and trigger a corresponding alarm action.

[0115] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be referred to the pedestrian dragging and hijacking behavior detection method described in the first aspect or possible design one, and will not be repeated here.

[0116] like Figure 3As shown, the third aspect of this embodiment provides a computer device for executing the pedestrian dragging hijacking behavior detection method as described in the first aspect or possible design one, including a memory, a processor and a transceiver that are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program, and execute the pedestrian dragging hijacking behavior detection method as described in the first aspect or possible design one. For specific examples, the memory may include, but is not limited to, a random access memory (Random-Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), a flash memory (Flash Memory), a first-input first output memory (First Input First Output, FIFO) and / or a first-input last output memory (First Input Last Output, FILO), etc.; the processor may be, but is not limited to, a microprocessor of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power module, a display screen and other necessary components.

[0117] The working process, working details and technical effects of the aforementioned computer device provided in the third aspect of this embodiment can be referred to the pedestrian dragging and hijacking behavior detection method described in the first aspect or possible design one, and will not be repeated here.

[0118] The fourth aspect of this embodiment provides a computer-readable storage medium storing instructions including the pedestrian dragging hijacking behavior detection method as described in the first aspect or possible design one, that is, the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the pedestrian dragging hijacking behavior detection method as described in the first aspect or possible design one is executed. Wherein, the computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to computer-readable storage media such as floppy disks, optical disks, hard disks, flash memories, USB flash drives and / or memory sticks (Memory Stick), and the computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices.

[0119] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be referred to the pedestrian dragging and hijacking behavior detection method described in the first aspect or possible design one, and will not be repeated here.

[0120] In a fifth aspect of the present embodiment, a computer program product comprising instructions is provided, and when the instructions are executed on a computer, the computer is caused to execute the pedestrian dragging hijacking behavior detection method as described in the first aspect or possible design 1. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.

[0121] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for detecting pedestrian dragging and hijacking behavior, It is characterized in that include: Obtain live video data collected by cameras in real time in public areas; Locating each pedestrian appearing in the public area according to the on-site video data to obtain a pedestrian positioning result, wherein the pedestrian positioning result includes a human body marking frame of each pedestrian in a video frame image of the on-site video data; For each pedestrian, extract a corresponding pedestrian video frame image from the on-site video data according to a corresponding human body marker frame; For each of the pedestrians, performing corresponding posture estimation processing according to the corresponding pedestrian video frame image to obtain a corresponding posture estimation result; For each pair of pedestrians that appear in the public area and whose distance is less than or equal to the preset distance threshold, if it is found that the posture estimation result of one of the corresponding pedestrians is a dragging posture and the posture estimation result of the other pedestrian is a resisting posture, it is determined that there is a pedestrian dragging hijacking behavior between the corresponding two pedestrians, and a corresponding alarm action is triggered; After triggering a corresponding alarm action for a pair of pedestrians that appear in the public area and whose distance is less than or equal to a preset distance threshold, the method further includes: using cross-lens tracking technology to track the first pedestrian in the pair of pedestrians whose posture estimation result is a dragging posture under multiple cameras, and sending the video data obtained by tracking as a reporting clue to the alarm platform in real time until the first pedestrian disappears due to entering a monitoring blind spot; After discovering that the first pedestrian disappears due to entering a monitoring blind spot, the method further includes: Extracting the last video frame image captured before the first pedestrian disappears from the tracked video data, wherein the last video frame image includes a human body marking frame of the first pedestrian; Importing the last video frame image into a vehicle recognition model that has been pre-trained and based on a target detection algorithm to obtain a vehicle recognition result including at least one vehicle marking frame; For each vehicle marking frame in the at least one vehicle marking frame, determining whether the human body marking frame of the first pedestrian is located in a corresponding marking frame, and if so, extracting a target vehicle image from the last video frame image according to the corresponding marking frame; Performing license plate rectangular contour detection on the target vehicle image to obtain a license plate marking frame; According to the license plate mark frame, extracting the license plate image from the target vehicle image; Using the character recognition package pytesseract to perform character recognition processing on the license plate image to obtain a character string, and using the character string as the license plate number of the vehicle to be tracked; The target vehicle image and the license plate number are sent to the alarm platform as new reporting clues.

2. The pedestrian dragging hijacking behavior detection method according to claim 1, It is characterized in that According to the on-site video data, each pedestrian appearing in the public area is located to obtain a pedestrian location result, including: Using a multi-scale sliding window scanning method to locate each human body appearing in the video frame image of the live video data, and obtaining a positioning window of each human body, wherein the positioning window refers to a sliding window used to locate and determine the corresponding human body; For each of the human bodies, the corresponding human body is regarded as a pedestrian appearing in the public place area, and a human body marking frame of the corresponding pedestrian in the video frame image of the on-site video data is obtained according to the corresponding positioning window.

3. The pedestrian dragging hijacking behavior detection method according to claim 1, It is characterized in that For a pedestrian appearing in the public area, a corresponding posture estimation process is performed according to the corresponding pedestrian video frame image to obtain a corresponding posture estimation result, including: Extracting continuous video frame feature data of the pedestrian from the pedestrian video frame image of the pedestrian using a histogram of oriented gradients descriptor and a normalized aspect ratio; The continuous video frame feature data of the pedestrian is imported into a continuous viewpoint posture estimation model based on a support vector machine and which has been pre-trained for iterative optimization, and a continuous viewpoint posture estimation result of the pedestrian is output, wherein the continuous viewpoint posture estimation result includes a result estimated as a dragging posture or a resisting posture.

4. The pedestrian dragging hijacking behavior detection method according to claim 1, It is characterized in that For a pair of pedestrians that appear in the public area and whose distance is less than or equal to a preset distance threshold, trigger a corresponding alarm action, including: For the first pedestrian in the pair of pedestrians whose posture estimation result is a dragging posture, extract corresponding character portrait information from the corresponding pedestrian video data, wherein the character portrait information includes a facial type and / or a body height; The on-site video data including the pedestrian video data of the first pedestrian and the character portrait information of the first pedestrian are sent to the alarm platform as reporting clues.

5. The pedestrian dragging hijacking behavior detection method according to claim 1, It is characterized in that After extracting the target vehicle image from the last video frame image, the method further includes: Importing the target vehicle image into a pre-trained vehicle type classification model based on the residual network ResNet_34 to obtain a vehicle type classification result of the vehicle to be tracked; The vehicle type classification result is sent to the alarm platform as another new reporting clue.

6. A computer device, It is characterized in that It includes a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the pedestrian dragging hijacking behavior detection method as described in any one of claims 1 to 5.

7. A computer-readable storage medium, Features The computer-readable storage medium stores instructions, and when the instructions are executed on the computer, the pedestrian dragging hijacking behavior detection method as described in any one of claims 1 to 5 is executed.