Anti-tailgating detection system based on video images
Through the improved DETR method and DeLight block, combined with pedestrian, head and pedestrian key point detection, the problem of missed detection and false detection in complex scenes in the existing technology is solved, low-cost and efficient anti-tailing detection is achieved, and the hardware cost is reduced. cost and computational overhead, improving detection accuracy.
Patent Information
- Application Number
- CN202410446678.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-04-15
AI Technical Summary
Existing anti-tailgating detection technology is prone to missed detections and false detections in complex scenarios, and has high hardware costs and complex calculations, making it difficult to effectively prevent tailgating situations.
An anti-trailing detection system based on video images is used, combined with pedestrian number judgment logic, through the improved DETR method and DeLight block, using a lightweight network and collaborative hybrid allocation training scheme, combined with pedestrian, head and pedestrian key point detection to achieve multi-objectives Detection and information complement each other and reduce computational overhead.
It achieves low-cost and efficient anti-trailing detection in complex scenarios, reduces missed detections and false detections, reduces hardware costs and computing overhead, and improves detection accuracy and reliability.
Smart Images

Figure CN118038340B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of anti-tailgating detection, and in particular to an anti-tailgating detection system based on video images. Background Art
[0002] In customs clearance verification scenarios, tailgating situations often occur, for example, a person who has not been legally verified follows a person who has passed legal verification and tries to pass through the pedestrian passage gate. Therefore, anti-tailgating detection work urgently needs to be popularized.
[0003] The existing technologies include the following: 1) The infrared detection device commonly used in the industry detects pedestrians by determining whether the infrared beam is blocked. However, this method cannot distinguish between pedestrians and luggage and is prone to misjudgment. In addition, the infrared monitoring range is small, lacks flexibility, and has many blind spots. Therefore, the infrared detection method cannot achieve the anti-tailgating function well; 2) The detection method based on depth images can accurately locate pedestrians using depth information, reducing missed detections caused by close contact, squatting, luggage obstruction, etc. However, the depth sensor has a large amount of calculation and has requirements for hardware equipment. In addition, most depth sensors on the market cannot calculate accurate depth information. Information has strict requirements on the recognition distance. High-precision sensor chip technology is immature, expensive, and difficult to mass produce. 3) Based on multi-sensor fusion, such as thermal infrared sensors, depth sensors, RGB cameras, etc., using any two or more of them for information fusion can monitor the tailing situation in complex scenes, but it increases the hardware cost and computing overhead, increases the difficulty of deployment and mass production cost. 4) Detection method based on RGB image, by detecting the pedestrian's head or pedestrian to determine the number of pedestrians in the gate channel, in the currently popular target detection algorithm, the model will generate a large number of candidate boxes, and then use the NMS method (Non-Maximum Suppression (non-maximum suppression) removes redundant and highly overlapping candidate frames to determine the final detection result. However, in complex monitoring scenarios, such as close proximity, parallel walking, squatting, and children following, the pedestrian torsos or heads will overlap. In some cases, the overlap is even higher, such as holding a baby, hugging, and embracing. After NMS post-processing, the effective target will be lost, resulting in missed detection and wrong detection. In addition, the existing scheme uses a single detection target, such as pedestrians or heads, to detect tailgating, which has certain risks. For example, head detection will be interfered by occlusion of hats or hands, and close proximity or squatting will also cause missed detection and wrong detection of pedestrians. In addition, the existing DETR has three disadvantages: 1) The structure is complex and the computational cost is high; 2) The label assignment strategy used in the current DETR detector is binary matching, so that a ground-truth can only be assigned to one positive sample. In this case, only a very small number of sparse queries are used as positive samples and receive regression supervision. This sparse supervision signal makes the detector converge very slowly and difficult to train; 3) The original DETR only outputs the target category and the coordinates of the detection box, without key point detection. Summary of the invention
[0004] One object of the present invention is to provide an anti-tailgating detection system based on video images, which can combine three detection results, judge the number of pedestrians in the gate channel area according to the pedestrian number judgment logic, and alarm the tailgating situation by outputting information to the alarm system. It has low cost and high computational efficiency, and multi-target detection and information complementarity can effectively solve the problems of missed detection and false detection in complex scenarios.
[0005] Other advantages and features of the present invention will become more apparent from the following detailed description and may be realized by means of the instrumentalities and combinations particularly pointed out in the appended claims.
[0006] According to one aspect of the present invention, a video image-based anti-tailgating detection system of the present invention that can achieve the aforementioned objectives and other objectives and advantages includes:
[0007] An image acquisition module, which acquires a video stream of the detection area and decodes it into an image frame sequence;
[0008] An intelligent analysis algorithm module, which inputs the image frame sequence into the intelligent analysis algorithm module, and the intelligent analysis algorithm module outputs the number of pedestrians in the current detection area through a built-in deep learning detection algorithm and a pedestrian number judgment algorithm;
[0009] The linkage alarm module transmits the number of pedestrians in the current detection area to the linkage alarm module. When the number of pedestrians is greater than one, the linkage alarm module issues a command to control the gate of the channel to close and alarm.
[0010] According to an embodiment of the present invention, before the image acquisition module acquires the video stream of the detection area and decodes it into an image frame sequence, the detection area in the channel is divided according to the position of the pedestrian channel.
[0011] According to one embodiment of the present invention, the target detection method of the intelligent analysis algorithm module adopts an improved DETR method. The improved DETR method is based on an encoder and decoder structure. The feature extraction network adopts a lightweight network, and the DeLight block is used to replace the Tranformer block in the encoder and decoder.
[0012] According to one embodiment of the present invention, the DeLight block includes: 1 DeLight transformation with N GLTs; 3 parallel linear layers for keys, queries and values; 1 projection layer; 2 linear layers of lightweight FFN.
[0013] According to one embodiment of the present invention, the DETR method adopts a collaborative hybrid allocation training scheme to supervise the training of multiple parallel auxiliary heads through a one-to-many label allocation method.
[0014] According to one embodiment of the present invention, the improved DETR method adds target key point detection, and the model loss is in addition to the classification loss. and bounding box regression loss , and also adds key point supervision loss ,in, and Using the loss function in DETR, Each key point sample input format is , conf is the visibility flag, where the three values 0, 1, and 2 represent that it does not exist, exists but is blocked, and exists and is not blocked, respectively.
[0015] According to one embodiment of the present invention, the key point supervision loss function includes key point loss and key point confidence loss, and the key point supervision loss function expression is as follows: ,
[0016] in, is the true value of the key point coordinates of category n, is the predicted value of the key point coordinates of category n, is the visibility flag of the key point, 0 is invisible, 1 is visible, is the confidence prediction value of the key point of category n, BCE is the binary cross entropy loss function, Wing is the Wing loss function, and the expression is: ,
[0017] The supervision loss calculation formula is as follows: ,in, =0.5, =0.05, =0.1, =0.5,
[0018] The number calculation logic in the intelligent analysis algorithm is based on three detection objects: pedestrians, heads, and pedestrian key points. The detection box with the pedestrian ID is The key point is , where =1,2,...,N, N is the number of pedestrians detected, and the head detection box bound to the pedestrian identity is: , the head detection frame of the unbound pedestrian is: , where k=1,2,...,M, where M is the number of unbound pedestrians, and the total number of pedestrians: Num=M+N.
[0019] According to one embodiment of the present invention, the logical criteria for binding a head with a pedestrian are:
[0020] Calculate the detection box of the head t With all pedestrian detection boxes The relative IOU value , the calculation formula of relative IOU is as follows: ,in, express and The area of the intersection, express The value of CorIoU ranges from 0 to 1. The higher the value of CorIoU, the and The higher the degree of overlap, the binding of head t and pedestrian j must meet the following three conditions:
[0021] 1) Pedestrian j is not bound to other heads;
[0022] 2) ;
[0023] 3) or exist Among them, is the key point of the pedestrian with ID j.
[0024] According to one embodiment of the present invention, when the DETR method is light-weighted, the DeLight block uses GLT to share information between different groups of group linear transformations, and the GLT first uses size expansion and then size reduction.
[0025] According to one embodiment of the present invention, the collaborative hybrid allocation training scheme comprises the following steps: (1) given the latent features of the encoder, first converting them into a feature pyramid through a multi-scale adapter , where J represents The feature map of the downsampling step size, for the multi-scale encoder, only the shallow coarse features in the feature F are downsampled to construct the feature pyramid; (2) define k collaborative heads with corresponding label assignment methods , for the i-th collaboration head, send To get predictions , for the i-th auxiliary head, It is used to calculate The supervision target of positive and negative samples; (3) The definition is the set of true labels GT of the samples. The positive and negative samples can be described as: ,
[0026] in, is the spatial positive sample coordinate set, and Represent the prediction results of positive and negative samples respectively, and the results include categories and regression offsets;
[0027] The regression loss function of the i-th auxiliary head is as follows: , the training objective of optimizing k auxiliary heads can be described as: , label allocation coordination header The positive sample coordinates of the auxiliary head are encoded. The positive sample coordinates of the auxiliary head include anchor boxes and positive proposal boxes. The anchor boxes and positive proposal boxes are passed into the decoder as multiple groups of positive queries to predict pre-assigned categories and bounding boxes. The positive sample coordinates of each auxiliary head are treated as an independent group and isolated from the positive sample coordinates of other auxiliary heads. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 The present invention is a flowchart of a video image-based anti-tailgating detection system according to an embodiment of the present invention.
[0029] Figure 2 It is a DETR network structure diagram of the intelligent analysis algorithm module of the anti-tailgating detection system based on video images according to the above embodiment of the present invention.
[0030] Figure 3 It is a structural diagram of the DeLight block of the intelligent analysis algorithm module of the anti-tailgating detection system based on video images according to the above embodiment of the present invention.
[0031] Figure 4 This is a DETR network structure diagram of the intelligent analysis algorithm module of the anti-tailgating detection system based on video images in the above embodiment of the present invention combined with a universal auxiliary head. DETAILED DESCRIPTION
[0032] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.
[0033] Those skilled in the art should understand that, in the disclosure of the present invention, the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the above terms should not be understood as limiting the present invention.
[0034] It is understood that the term "one" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element can be one, while in another embodiment, the number of the element can be multiple, and the term "one" cannot be understood as a limitation on the number. In addition, in the description of the present invention, unless otherwise specified, the meaning of "multiple" is two or more than two.
[0035] In the description of the present invention, it should be understood that "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through a medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0036] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0037] like Figures 1 to 4 As shown, an anti-tailgating detection system based on video images according to an embodiment of the present invention is disclosed. The anti-tailgating detection system of the present invention comprises an image acquisition module, an intelligent analysis algorithm module and a linkage alarm module. In short, the detection area in the channel is divided according to the position of the pedestrian channel. The image acquisition module obtains the video stream of the detection area and decodes it into an image frame sequence, which is input into the intelligent analysis algorithm module. The intelligent analysis algorithm module outputs the number of pedestrians in the current detection area through the built-in deep learning detection algorithm and pedestrian number judgment algorithm, and transmits the number of pedestrians in the current detection area to the linkage alarm module. When the number of pedestrians is greater than one, the linkage alarm module issues a command to control the gate of the channel to close and alarm. The step flow chart of the anti-tailgating detection system is as follows Figure 1 shown.
[0038] Furthermore, the target detection method of the intelligent analysis algorithm module of the anti-tailgating detection system of the present invention adopts an improved DETR method and uses Transformer for encoding and decoding. Unlike traditional target detection methods, DETR can convert the target detection problem into an object query problem and directly predict the object from the image without the need for detection through predefined anchor boxes or candidate boxes. Therefore, there is no need to use the NMS method (Non-Maximum Suppression) to remove redundant and highly overlapping candidate boxes, thereby saving computing power costs and improving efficiency.
[0039] like Figure 2 As shown in FIG. 1 , it is a DETR network structure diagram of the anti-tailing detection system based on video images of the above embodiment of the present invention. As an end-to-end detection method, the DETR method can avoid the problems of false detection and missed detection caused by incorrect frame selection and NMS post-processing. Furthermore, this solution makes the following improvements to the DETR model:
[0040] like Figure 3 As shown, it is a DeLightblock structure diagram of the anti-tailing detection system based on video images of the above embodiment of the present invention. The improved DETR method is also based on the encoder and decoder structure. The feature extraction network adopts a lightweight network, such as MobileNetV3, and the DeLight block is used to replace the Tranformer block in the encoder and decoder. Furthermore, the DeLight block includes: 1 DeLight transformation with N GLTs; 3 parallel linear layers for keys, queries and values; 1 projection layer; 2 linear layers of lightweight FFN.
[0041] like Figure 4 As shown, it is a DETR network structure diagram of the anti-tailing detection system based on video images combined with a universal auxiliary head of the above embodiment of the present invention. The anti-tailing detection system based on video images of the present invention adopts a collaborative hybrid allocation training scheme, and supervises the training of multiple parallel auxiliary heads through a one-to-many label allocation method, such as ATSS and Faster RCNN. Different label allocations can enrich the supervision of the encoder output and improve the training efficiency. During the inference process, these auxiliary heads are discarded. Therefore, the above method does not introduce additional parameters and computational costs, and does not require non-maximum suppression (NMS) to post-process the detection results, thereby solving the problem of inefficient training caused by sparse queries generated by the one-to-one label allocation strategy.
[0042] Furthermore, based on the initial DETR, target key point detection is added, so the model loss is in addition to the classification loss and bounding box regression loss , it is also necessary to increase the key point supervision loss ,in, and Using the loss function in DETR, Each key point sample input format is , conf is the visibility flag, where the three values 0, 1, and 2 represent non-existence, existence but occluded, and existence and non-occluded, respectively. The visibility flag of the input key point can learn the confidence of the key point. The key point supervision loss function designed in this scheme consists of two parts, key point loss and key point confidence loss. The key point supervision loss function expression is as follows: ,
[0043] in, is the true value of the key point coordinates of category n, is the predicted value of the key point coordinates of category n, is the visibility flag of the key point, 0 is invisible, 1 is visible, is the confidence prediction value of the key point of category n, BCE is the binary cross entropy loss function (Binary CrossEntropy Loss), Wing is the Wing loss function, and the expression is: ,
[0044] The supervision loss calculation formula is as follows: ,in, =0.5, =0.05, =0.1, =0.5,
[0045] The number calculation logic in the intelligent analysis algorithm is based on three detection objects: pedestrians, heads, and pedestrian key points (i.e., the center of the head). The detection box with the pedestrian ID is: , the key points are: , where = 1, 2, ..., N, N is the number of pedestrians detected, and the head detection box bound to the pedestrian i identity is: , the head detection frame of the unbound pedestrian is: , where k=1,2,...,M, where M is the number of unbound pedestrians, the total number of pedestrians: the total number of pedestrians: Num=M+N,
[0046] Furthermore, the logical principles for binding heads and pedestrians are as follows:
[0047] Calculate the detection box of the head t With all pedestrian detection boxes The relative IOU value , the calculation formula of relative IOU is as follows: ,in, express and The area of the intersection, express The value of CorIoU ranges from 0 to 1. The higher the value of CorIoU, the higher the overlap between head t and pedestrian j. The binding of head t and pedestrian j needs to meet the following three conditions:
[0048] 1) Pedestrian j is not bound to other heads;
[0049] 2) ;
[0050] 3) or exist middle,
[0051] in, is the key point of the pedestrian with ID j. In detail, when the DETR network is lightweighted, the DeLight block uses GLT to share information between different groups of group linear transformations. GLT first uses size expansion and then size reduction to increase the capacity and depth of the network. DeLight can use a smaller size and fewer operations to calculate attention. The DeLight ability to learn a wider representation allows single-head attention to replace multi-head attention. The computational cost of calculating attention in the standard transformer and DeLight is O(dmn2) and O(don2), respectively, where do=dm / 2. Therefore, compared with the transformer architecture, the multiplication-addition operations required for the attention module are reduced by 2 times.
[0052] Furthermore, the FFN in DeLight also consists of two linear layers. The DeLight block uses the GLT transform to incorporate a wider representation, allowing the function of the FFN layer to be inverted in the Transformer. The first layer reduces the dimension of the input from dm to dm / r, and the second layer expands the dimension from dm / r to dm, where r is the reduction factor. In the standard transformer, the dimension of the FFN is enlarged by 4 times, and r=4 is preferably used. Therefore, the lightweight FFN reduces the number of parameters in the FFN by 16 times. The total computational amount of the DeLight block is 32 times less than that of the Transformer block. Therefore, using the DeLight block to replace the Transformer block in DETR can greatly reduce the computational amount of the model without reducing the feature expression capability.
[0053] In detail, the collaborative hybrid allocation training scheme includes the following steps: (1) Given the encoder’s latent features F, we first convert them into a feature pyramid via a multi-scale adapter , where J represents The feature map of the downsampling step size, for the multi-scale encoder, only the shallow coarse features in the feature are downsampled to construct the feature pyramid; (2) define k collaborative heads with corresponding label assignment methods , for the i-th collaboration head, send To get predictions , for the i-th auxiliary head, It is used to calculate The supervision target of positive and negative samples; (3) Define G as the set of true sample labels GT. The determination of positive and negative samples can be described as: ,in, is the spatial positive sample coordinate set, and Represent the prediction results of positive and negative samples respectively, and the results include categories and regression offsets;
[0054] The regression loss function of the i-th auxiliary head is as follows: ,
[0055] The training objective of optimizing k auxiliary heads can be described as: ,
[0056] Furthermore, the label allocation coordination header The positive sample coordinates of the auxiliary head are encoded. The positive sample coordinates of the auxiliary head include anchor boxes and positive suggestion boxes. The anchor boxes and positive suggestion boxes are passed into the decoder as multiple groups of positive queries to predict pre-assigned categories and bounding boxes. The positive sample coordinates of each auxiliary head are isolated as an independent group from the positive sample coordinates of other auxiliary heads. The universal one-to-many label assignment can introduce a large number of positive queries or GT pairs to improve the training efficiency of the decoder.
[0057] In detail, the logical principle of number determination is as follows: in complex scenarios, the anti-tailgating detection system may not be able to detect a single target (human head or pedestrian). For example, close proximity, parallel walking, or children following may result in the failure to detect pedestrians; wearing a hat or squatting may result in the failure to detect heads. The two types of target detection are used to complement information and make up for missed detections and wrong detections.
[0058] Furthermore, the rule for calculating the number of pedestrians based on the logic of binding heads and pedestrians is: the two targets that have completed binding are counted only once, and the targets that have not completed binding are counted cumulatively. In addition, the binding of heads and pedestrians needs to consider the positional relationship between the two, determine whether the intersection of the two is greater than a preset threshold, and / or determine whether the key points of the pedestrians are within the head frame, so as to solve some abnormal situations, such as squatting. Preferably, the binding is completed when any of the above conditions is met.
[0059] The anti-tailgating detection system based on video images of the present invention can use RGB camera devices for image acquisition, with low hardware cost and simple installation process. The target detection algorithm adopts the end-to-end deep learning method DETR, and improves DETR, so that no NMS post-processing is required, and no overlapping frames need to be filtered, which can effectively solve the problem of pedestrian overlap and missed detection in parallel, and the improved network is lightweight and has a comparable accuracy, with a smaller structure and fewer parameters, which can effectively reduce the cost of computing and storage overhead, and is easy to deploy in a restricted hardware environment. In addition, the improved model combines a universal auxiliary head with different one-to-many label allocation paradigms, solves the problem of the original model's convergence difficulties, makes the model easier to train, and since the auxiliary head supervision is only in the training stage, the scheme will not increase the reasoning speed. In addition, the number calculation logic based on pedestrians, heads, and pedestrian key points simultaneously uses heads and pedestrians to achieve information complementarity, which can effectively solve the problem of single target missed detection and wrong detection in complex scenes. At the same time, the head and pedestrian binding logic based on pedestrian key points makes the pedestrian number statistics more accurate and rigorous, and can reduce the risk of missed reports and false reports.
[0060] The video anti-tailgating detection system of the present invention can be, but is not limited to, installed in the space above the passenger self-service inspection channel. It adopts a video detection solution, combined with an artificial intelligence analysis software algorithm, to monitor situations in the inspection channel where people enter the channel closely, enter the channel in parallel, enter the channel by squatting, enter the channel by crawling, children follow (including carrying or hugging children), and large luggage follows, and promptly issues alarm information and links the self-service channel main control program, self-service inspection channel gate, alarm lights, etc.
Claims
1. A video image-based anti-tailgating detection system, characterized in that: include: An image acquisition module, which acquires a video stream of the detection area and decodes it into an image frame sequence; An intelligent analysis algorithm module, which inputs the image frame sequence into the intelligent analysis algorithm module, and the intelligent analysis algorithm module outputs the number of pedestrians in the current detection area through a built-in deep learning detection algorithm and a pedestrian number judgment algorithm; A linkage alarm module transmits the number of pedestrians in the current detection area to the linkage alarm module. When the number of pedestrians is greater than one, the linkage alarm module issues a command to control the gate of the channel to close and alarm. The target detection method of the intelligent analysis algorithm module adopts an improved DETR method. The improved DETR method is based on the encoder and decoder structure. The feature extraction network adopts a lightweight network and uses the DeLight block to replace the Tranformer block in the encoder and decoder. The improved DETR method adds target key point detection. The model loss is in addition to the classification loss. and bounding box regression loss , and also adds key point supervision loss ,in, and Using the loss function in DETR, Each key point sample input format is , conf is the visibility flag, where the three values 0, 1, and 2 represent that it does not exist, exists but is blocked, and exists and is not blocked, respectively; The key point supervision loss function includes key point loss and key point confidence loss. The key point supervision loss function expression is as follows: ,in, is the true value of the key point coordinates of category n, is the predicted value of the key point coordinates of category n, is the visibility flag of the key point, 0 is invisible, 1 is visible, is the confidence prediction value of the key point of category n, BCE is the binary cross entropy loss function, Wing is the Wing loss function, and the expression is: , The supervision loss calculation formula is as follows: ,in, =0.5, =0.05, =0.1, =0.5, The number calculation logic in the intelligent analysis algorithm is based on three detection objects: pedestrians, heads, and pedestrian key points. The detection box of the pedestrian with ID i is The key point is , where i=1,2,...,N, N is the number of pedestrians detected, and the head detection box bound to the identity of pedestrian i is: , the head detection frame of the unbound pedestrian is: , where k=1,2,...,M, where M is the number of unbound pedestrians, the total number of pedestrians: Num=M+N, the logical criterion for binding heads and pedestrians is: Calculate the detection box of the head t With all pedestrian detection boxes The relative IOU value , the calculation formula of relative IOU is as follows: ,in, express and The area of the intersection, express The area of The value ranges from 0 to 1, The higher the value, the and The higher the degree of overlap, the binding of head t and pedestrian j must meet the following three conditions: 1) Pedestrian j is not bound to other heads; 2) ; 3) or exist Among them, is the key point of the pedestrian with ID j.
2. The anti-tailgating detection system according to claim 1, characterized in that: Before the image acquisition module acquires the video stream of the detection area and decodes it into an image frame sequence, the detection area in the channel is divided according to the position of the pedestrian channel.
3. The anti-tailgating detection system according to claim 2, characterized in that: The DeLight block includes: 1 DeLight transformation with N GLTs; 3 parallel linear layers for keys, queries, and values; 1 projection layer; 2 linear layers of lightweight FFN.
4. The anti-tailgating detection system according to claim 3, characterized in that: The DETR method adopts a collaborative hybrid allocation training scheme to supervise the training of multiple parallel auxiliary heads through a one-to-many label assignment method.
5. The anti-tailgating detection system according to claim 4, characterized in that: When making lightweight improvements to the DETR method, the DeLight block uses GLT to share information between different groups of group linear transformations. GLT first uses size expansion and then size reduction.
6. The anti-tailgating detection system according to claim 5, characterized in that: The collaborative hybrid allocation training scheme includes the following steps: (1) Given the latent features of the encoder, first convert them into a feature pyramid through a multi-scale adapter ,in Indicates that The feature map of the downsampling step size, for the multi-scale encoder, only the shallow coarse features in the feature F are downsampled to construct the feature pyramid; (2) define k collaborative heads with corresponding label assignment methods , for the i-th collaboration head, send To get the initial forecast , Is Reassign the supervision objective function of positive and negative samples; (3) Define G as the set of true sample labels GT. The determination of positive and negative samples can be described as: ,in, is the spatial positive sample coordinate set, and They are respectively Final prediction results of the reallocated positive and negative samples, including categories and regression offsets; The regression loss function of the i-th auxiliary head is as follows: , the training objective of optimizing k auxiliary heads can be described as: , label allocation coordination header The positive sample coordinates of the auxiliary head are encoded. The positive sample coordinates of the auxiliary head include anchor boxes and positive proposal boxes. The anchor boxes and positive proposal boxes are passed into the decoder as multiple groups of positive queries to predict pre-assigned categories and bounding boxes. The positive sample coordinates of each auxiliary head are treated as an independent group and isolated from the positive sample coordinates of other auxiliary heads.
