An automatic door control method based on target detection and trajectory recognition

Through a wide-angle RGB vision camera and lightweight neural network algorithm, the object detection and trajectory recognition of automatic doors are realized, which solves the interference and misopening problems in traditional systems, and improves the safety and intelligence of automatic door control.

CN115961859BActive Publication Date: 2024-11-29BEIJING INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310118022.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2024-11-29
Estimated Expiration
2043-02-15

AI Technical Summary

Technical Problem

In traditional automatic door control systems, infrared pyroelectric sensors are susceptible to environmental interference and cannot accurately identify object categories and trajectories. The millimeter-wave radar has false alarm problems and cannot meet the needs of intelligence.

Method used

The wide-angle monocular RGB visual camera is used to capture the automatic front door area image in real time, and combined with the SSDs object detection algorithm of the lightweight neural network for object detection and trajectory identification. The partitioned image is a tracking area, a judgment area and an occupation area, and is based on the motion trajectory of the pedestrian target. A control signal is sent to control the opening and closing of the automatic door.

Benefits of technology

It realizes accurate identification and trajectory tracking of pedestrian targets, reduces error opening rate, improves system safety and reliability, reduces resource waste and mechanical loss, and enhances the intelligence of automatic door control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115961859B_ABST
    Figure CN115961859B_ABST
Patent Text Reader

Abstract

The present invention provides an automatic door control method based on target detection and trajectory recognition, which belongs to the technical field of automatic door opening and closing control; in view of the shortcomings of the existing automatic door control system, an automatic door control method using a visual camera is provided, which first identifies the category of objects passing in front of the door, then tracks the screened pedestrian targets and forms a motion trajectory, and finally distinguishes the pedestrian targets with the intention of entering through the trajectory, thereby realizing efficient control of the opening and closing of the automatic door. The method first uses a wide-angle camera to shoot the area in front of the door in real time as input information of the control method; secondly, runs a target detection algorithm in a lightweight neural network model to screen out pedestrian targets, and inputs the centroid coordinates of the targets into a tracker; after the tracker forms the motion trajectory of each target, it performs trajectory recognition, and finally controls the motor with a certain strategy according to the trajectory recognition result to complete the opening and closing action of the automatic door.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of automatic door opening and closing control, and in particular relates to an automatic door control method based on target detection and trajectory recognition. Background Art

[0002] Infrared pyroelectric sensors are generally used in traditional automatic door control systems. Infrared pyroelectric sensors are mainly used to detect infrared thermal radiation emitted by the human body within their sensing range, convert the thermal radiation into electrical signals and output them to the subsequent control module. Infrared pyroelectric sensors have a limited sensing range and are easily blocked by dust or other obstacles. They are also easily disturbed by ambient temperature or other heat sources and produce false alarms. In addition, infrared pyroelectric sensors can only determine whether there is an object through thermal radiation. They cannot clearly identify the type of object detected and cannot restore the exact movement trajectory of the object.

[0003] In addition to pyroelectric sensors, some automatic door access control systems are controlled based on millimeter-wave radars. Although millimeter-wave radars have a relatively long detection distance and are not affected by environmental and temperature factors, they have the problem of false alarms caused by electromagnetic noise. At the same time, millimeter-wave radars cannot identify the type of objects and are relatively expensive.

[0004] In addition, the traditional automatic door control system has simple control logic and often only relies on pyroelectric sensors or millimeter-wave radar signals to perform simple opening and closing operations. It is unable to achieve reliable control of automatic doors in specific complex environments and is unable to meet the potential intelligent needs of future digital buildings.

[0005] Compared with the traditional automatic door control method, the information is collected by visual cameras, processed by certain technical means, and the opening and closing control method of the automatic door is designed on this basis. On the one hand, the objects in the field of view can be detected, different targets can be distinguished, and only pedestrian targets can be responded to, reducing the interference of other objects on the control system, greatly improving the safety of the system. On the other hand, the tracker can be used to track the pedestrian target to form a complete motion trajectory, so as to judge its intention, reduce the false opening rate of the automatic door, and reduce resource waste and mechanical loss. Summary of the invention

[0006] In view of this, an object of the present invention is to provide an automatic door control method based on target detection and trajectory recognition, which can achieve efficient control of the opening and closing of the automatic door.

[0007] An automatic door control method based on target detection and trajectory recognition comprises the following steps:

[0008] Step 1: Take an image of the area in front of the automatic door in real time;

[0009] Step 2: Perform target detection on the image taken in step 1. For the detected targets, mark their categories and bounding boxes, filter out pedestrian targets, and output the centroid coordinates of each pedestrian target based on its bounding box coordinates;

[0010] Step 3: Based on the centroid coordinates of the pedestrian targets detected in step 2, the motion trajectory of each pedestrian target is formed;

[0011] Step 4: First, the image of the area in front of the automatic door is divided into tracking area, judgment area and occupied area; secondly, based on the area where the pedestrian target is located and the movement trajectory of the pedestrian target, according to the set strategy, a corresponding control signal is sent to the automatic door;

[0012] Step 5: According to the control signal given in step 4, the opening and closing actions of the automatic door are controlled with the set control strategy.

[0013] Preferably, in step 1, a wide-angle distortion-free high-definition camera with a diagonal field of view of 120° is installed in the center of the door frame above the automatic door to overlook the area in front of the door.

[0014] Preferably, in step 2, target detection is performed using an SSDs target detection algorithm based on mobilenet-v2 lightweight neural network.

[0015] Preferably, in step 3, after obtaining the centroid coordinates of all pedestrian targets detected in the image, a unique ID is assigned to each pedestrian target; after the next frame of the image arrives, the relative Euclidean distance between the centroids of each target between the two frames is calculated; by selecting the two targets with the smallest Euclidean distance between the two frames, the ID corresponding to each target in the next frame is determined, thereby determining the movement direction corresponding to each target.

[0016] Preferably, in step 4, the tracking area is the portion of the entire screen excluding the occupied area and the determination area;

[0017] The occupied area is the area under the automatic door where collision or squeezing may occur;

[0018] The determination area is a sector-shaped area of ​​a part of the automatic door.

[0019] Preferably, in step 4, according to the set strategy, the corresponding control signal is sent to the automatic door as follows:

[0020] If a pedestrian is detected in the tracking area, the trajectory of the pedestrian target is obtained, and after identifying the pedestrian's entry trend, a door opening signal is issued;

[0021] If a pedestrian is detected in the occupied area, the occupied signal is continuously sent;

[0022] If a pedestrian target is detected entering the judgment area, the trajectory of the pedestrian target is retrieved for identification. After identifying that there is a trend of entry, a door opening signal will be issued and the motor will start to drive the automatic door to open.

[0023] Preferably, in step 4, the strategy for determining whether a pedestrian target has an entry trend is: when a pedestrian target enters the determination area, extract the coordinates of the target in the determination area. At the same time, extract all historical centroid coordinates under the corresponding ID of the target Find the mean of all centroid ordinates, and the calculation formula is:

[0024]

[0025] Among them, T is the total number of frames in which the target is detected in history;

[0026] when When it is greater than the set threshold, it is determined that the pedestrian target has an entry trend.

[0027] Preferably, in step 5, the control strategy set is:

[0028] (1) When receiving the door opening signal, the automatic door is controlled to open and enter a waiting time. After the waiting time is over, the door is controlled to close;

[0029] (2) If a new door opening signal is received during the waiting time, the waiting time is reset, and after the waiting time is over, the control performs the door closing operation;

[0030] (3) If an occupied signal is received during the waiting time, the waiting time is reset.

[0031] Preferably, the target detection is implemented in a lightweight neural network model.

[0032] The present invention has the following beneficial effects:

[0033] The present invention provides an automatic door control method based on target detection and trajectory recognition. First, the categories of objects passing in front of the door are identified. Secondly, the selected pedestrian targets are tracked and a motion trajectory is formed. Finally, pedestrian targets with the intention of entering are identified through the pedestrian trajectory, so as to realize efficient control of the opening and closing of the automatic door. The present invention uses a wide-angle monocular RGB vision camera as the control system input. The camera is installed at a specific position on the top of the automatic door, which is not affected by factors such as temperature, climate and dust, and has a wide field of view and a large field of view, so that real-time images within a large range of the automatic door can be collected. The present invention uses the SSDs target detection algorithm deployed on the lightweight neural network mobilenet-v2, which can effectively The system can identify the type of objects present automatically and only respond to pedestrians, which can effectively block the interference of other objects such as motor vehicles and animals, and improve the safety and reliability of the entire system. The present invention uses a centroid tracking algorithm to track pedestrians and form a motion trajectory, and analyzes and judges the trajectory of pedestrians entering the detection area, which can effectively eliminate the interference of irrelevant pedestrians (such as passing by or just staying, etc.), effectively improve the intelligence level of the control system, reduce the number of invalid opening and closing times of the automatic door, which is beneficial to energy saving and environmental protection and reduces the mechanical loss of the opening and closing mechanism. An occupied area is set in the image screen, and an occupied command is issued when there is a pedestrian in the occupied area, which can effectively reduce the probability of accidents such as automatic door pinching and improve system safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is the overall framework diagram of the automatic door control method based on target detection and trajectory recognition proposed by the present invention;

[0035] Figure 2 This is a schematic diagram of screen partitioning of the automatic door control method based on target detection and trajectory recognition proposed by the present invention;

[0036] Figure 3 It is a system flow chart of the target detection and tracking part in the present invention;

[0037] Figure 4 Schematic diagram of the trajectory identification strategy in the present invention. DETAILED DESCRIPTION

[0038] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0039] The automatic door control method based on target detection and trajectory recognition proposed in the present invention mainly includes two parts: visual target detection and tracking and moving target trajectory recognition. The key contents of the present invention are as follows:

[0040] 1. A wide-angle monocular RGB camera is used to capture the area in front of the door in real time as input information for the control method. Subsequent steps such as target recognition, tracking, and trajectory identification are all performed on the video frames captured by the camera;

[0041] 2. Object detector: Run the corresponding object detection algorithm in the lightweight neural network model, mark the category, bounding box and confidence of the detected objects, filter out pedestrian objects, and output the centroid coordinates of each object based on its bounding box coordinates;

[0042] 3. Tracker: The input of the tracker is the target centroid coordinates output by the target detector. The corresponding tracking algorithm processes the detected targets and forms the motion trajectory of each target.

[0043] 4. Screen partition and trajectory analysis: The screen captured by the camera is partitioned into tracking area, judgment area and occupied area. Secondly, the corresponding strategy is designed based on the area where the target is located and the target motion trajectory output by the tracker, and the door opening or occupation signal is output.

[0044] 5. According to the results of trajectory recognition, the opening and closing of the automatic door is controlled with a certain strategy.

[0045] The present invention proposes a visual automatic door control method based on target detection and tracking, and the specific steps are as follows:

[0046] Step S1, a wide-angle monocular RGB visual camera installed at a specific location collects images of the area in front of the automatic door in real time;

[0047] Step S2: Run the SSDs (Single Shot Multi-Box Detectors) target detection algorithm deployed on the lightweight neural network mobilenet-v2 in the collected image to detect the object category and the corresponding bounding box and confidence probability in the current picture. Then, filter the target category, set the confidence threshold for the detected pedestrian target to reduce the false detection rate, extract the bounding box coordinates for the pedestrian target above the threshold, calculate the target center of mass, and output it to the tracker;

[0048] Step S3: The tracker uses the centroid tracking method to assign a unique ID to the input target and track it, storing all the historical coordinate values ​​of the centroid of each target to form a continuous motion trajectory of each pedestrian target. The functions of the tracker are:

[0049] (1) Determine the correspondence between target frames and create a corresponding array based on the target ID to store all the centroid coordinates of the target;

[0050] (2) Assign a new ID to the newly entered pedestrian target;

[0051] (3) When the pedestrian target leaves the screen, delete the corresponding ID and clear its historical center of mass coordinates.

[0052] Step S4: When the target is in the tracking area, only target tracking is performed. If the target enters the determination area, all historical centroid coordinates under the target ID are retrieved for trajectory determination. If the pedestrian target has a tendency to enter, a door opening signal is issued. When the target is always in the occupied area, an occupied signal is output;

[0053] Step S5: Control the stepper motor according to the received door opening signal or occupancy signal, and determine the opening and closing of the automatic door in combination with the control strategy.

[0054] Preferably, in step S1, the monocular RGB camera used is a wide-angle distortion-free high-definition camera with a diagonal field of view of 120°. The camera should be installed in the center of the door frame above the automatic door, overlooking the area in front of the door at a certain angle. Its large field of view ensures that the camera can capture a large area in front of the automatic door, and can obtain a longer pedestrian movement trajectory while avoiding blind spots, thereby improving the accuracy of trajectory recognition. In addition, the camera uses a distortion-free lens to improve the detection rate of the target detection algorithm.

[0055] Preferably, in step S2, the SSDs target detection algorithm used is based on the mobilenet-v2 lightweight neural network so that the control method can be deployed in a low-power embedded platform. The data set used for network training is the coco17 object detection task data set, which has 80 target categories (including pedestrians, trucks, cars, bicycles, cats, dogs, etc.). The data set includes a training set, a test set, and a validation set. The training uses the Adam optimizer, the learning rate is set to 0.001, the decay rate is 1e-5, and a total of 10 epochs are trained with a batch size of 32. The trained network weights are introduced into the target detector to complete the object detection task in the area in front of the automatic door.

[0056] The output of the detector is the detected object category, the object's bounding box (the image coordinates of the upper left and lower right corners of the bounding box), and the corresponding confidence level. The coordinates of the object's center of mass are calculated using the output bounding box coordinates. The calculation formula is:

[0057]

[0058] Among them, (x t ,y t ) is the image coordinate of the upper left corner of the bounding box, (x b ,y b ) is the image coordinate of the lower right corner of the bounding box. The centroid coordinate (x c ,y c ) is output to the tracker.

[0059] Preferably, in step S3, considering the low speed of pedestrian targets, a centroid tracking method is introduced to track the target. After obtaining the centroid coordinates of all detected pedestrian targets in the image, a unique ID is assigned to each target. After the next frame of the image arrives, the relative Euclidean distance between the centroids of each target between two frames is calculated based on the updated target centroid coordinates. The calculation formula is:

[0060]

[0061] in, is the center of mass of a target in the i-th frame, The center of mass of a target in the i+1th frame is obtained by selecting the two targets with the smallest Euclidean distance between the two frames, and then the corresponding ID of each target in the new frame can be determined, thereby determining the corresponding motion direction of each target. At the same time, the target ID can be updated according to the calculation results, and a new ID can be assigned to the newly detected target or the corresponding ID of the lost target can be deleted. All historical center of mass coordinates of the target corresponding to each ID are stored to form the motion trajectory of all pedestrian targets.

[0062] Preferably, in step S4, the image captured by the monocular camera is partitioned. The tracking area is the part of the entire image except the occupied area and the judgment area; the occupied area is the area under the automatic door where collision and squeezing may occur. If a pedestrian is detected in this area, an occupied signal is continuously issued and the automatic door remains open; the judgment area is a sector-shaped area of ​​the automatic door. When a pedestrian target is detected entering this area, the system starts to retrieve the trajectory of the pedestrian target for identification. After identifying that there is a tendency to enter, a door opening signal will be issued, and the motor will start to drive the automatic door to open. When the pedestrian moves under the automatic door, the automatic door should be in a fully open state.

[0063] Preferably, in step S4, the strategy for determining whether a pedestrian target has an entry trend is: when a pedestrian target enters the determination area, the coordinates of the target in the determination area are extracted. At the same time, all historical centroid coordinates under the target ID are extracted, and the mean of all centroid ordinates is calculated as follows:

[0064]

[0065] Among them, x is the ID corresponding to the target, and T is the total number of frames that detect the target. When it is greater than a certain threshold, it is determined that the pedestrian target has an entering trend.

[0066] Preferably, in step S5, the strategy for controlling the opening and closing of the automatic door is:

[0067] (1) When receiving the door opening signal, the automatic door is controlled to open and enter a waiting time. After the waiting time is over, the door is controlled to close;

[0068] (2) During the waiting time, if a new door opening signal is received, the waiting time is reset, and after the waiting time is over, the control performs the door closing operation;

[0069] (3) If an occupied signal is received during the waiting time, the waiting time is reset.

[0070] Example:

[0071] As attached Figure 1 As shown in the figure, an automatic door control method based on target detection and trajectory recognition mainly includes four modules, namely target detection, target tracking, trajectory recognition and opening and closing control strategy.

[0072] The control method of the present invention uses a monocular wide-angle RGB camera as input. The camera installation position and image acquisition range can be as shown in the attached figure. Figure 2 As shown. On the premise of ensuring that the area in front of the automatic door is covered sufficiently, the camera can also be installed at a suitable angle in other locations. The RGB camera has a 120° diagonal field of view and a distortion-free lens to ensure sufficient coverage and target detection accuracy. At the same time, the RGB camera has a real-time streaming function, which can push the video stream to the back-end embedded edge computing hardware in real time via USB or HDMI protocol for subsequent processing.

[0073] As attached Figure 3 As shown in the figure, the target detection module is mainly responsible for detecting pedestrian targets in the picture and outputting the center of mass position of the target to the subsequent tracker. The detector uses the SSDs target detector built on the lightweight network mobilenet-v2 trained by the coco17 dataset. The detector can detect 80 different objects in the image, including pedestrians, trucks, bicycles, cats, and dogs. The detector can run on the low-power edge computing hardware Jetson Nano, and the real-time frame rate reaches more than 18 frames, which is enough to meet the needs of real-time monitoring. The detection output of the detector is:

[0074]

[0075] Among them, V represents all detected objects, s class is the category of the object, s bbox is the bounding box of the object, including (x t ,y t ,x b ,y b ) four coordinates, s_conf is the confidence. The detector will filter out pedestrian targets with a certain confidence level and calculate the center of mass coordinates and output them to the tracker:

[0076]

[0077] Among them, s class =0 corresponds to the pedestrian target in the data set, 0.8 is selected as the confidence threshold, and the centroid calculation formula is:

[0078]

[0079] After receiving the input from the detection module, the target tracking module uses the centroid tracking method to track pedestrian targets between frames. When n pedestrian targets are detected in the tth frame, their centroid coordinate set is C t , the target ID is (1,…,n), m pedestrian targets are detected in the t+1th frame, and their centroid coordinate set is C t+1 , first calculate the Euclidean distance from each target in the next frame to each target in the previous frame, and then select the target ID corresponding to the minimum Euclidean distance:

[0080]

[0081] For any target j in frame t+1, select l t→t+1 The target i with the shortest Euclidean distance is assigned an ID consistent with target i. When the number of targets in frame t+1 exceeds t frames, the pedestrians in frame t+1 who have not found the corresponding targets in the previous frame will be assigned new IDs. According to the ID values ​​of each pedestrian target, the tracker will store all the historical centroid coordinate values ​​corresponding to each target in an array to form a continuous motion trajectory of each target.

[0082] The trajectory recognition module will determine whether the pedestrian has the intention to enter based on the trajectory of each pedestrian transmitted by the tracking module. Figure 2 As shown in Figure 1, the camera capture image is divided into three parts: tracking area, judgment area and occupied area. When the pedestrian target with ID i enters the judgment area, the coordinates of the target in the judgment area are extracted. At the same time, extract all the historical centroid coordinates of the target and find the mean of all the centroid ordinates:

[0083]

[0084] Among them, i is the ID corresponding to the target, and T is the total number of frames that detect the target. Figure 4 As shown, when When it is greater than a certain threshold α, it is determined that the pedestrian target has a tendency to enter. If a pedestrian is detected in the occupied area, an occupied signal is continuously sent and the automatic door remains open.

[0085] The automatic door opening and closing control follows the following strategy: (1) When a door opening signal is received, the automatic door opens and enters a waiting time. After the waiting time is over, the automatic door is controlled to close; (2) During the waiting time, if a new door opening signal is received, the waiting time is reset; (3) During the waiting time, if an occupied signal is received, the waiting time is reset. After the waiting time is over, the automatic door is controlled to close.

[0086] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An automatic door control method based on target detection and trajectory recognition, characterized in that: The steps include: Step 1: Take an image of the area in front of the automatic door in real time; Step 2: Perform target detection on the image taken in step 1. For the detected targets, mark their categories and bounding boxes, filter out pedestrian targets, and output the centroid coordinates of each pedestrian target based on their bounding box coordinates. The SSDs target detection algorithm based on the mobilenet-v2 lightweight neural network is used for target detection. Step 3: Based on the centroid coordinates of the pedestrian targets detected in step 2, the motion trajectory of each pedestrian target is formed; after obtaining the centroid coordinates of all pedestrian targets detected in the image, a unique ID is assigned to each pedestrian target; after the next frame of the image arrives, the relative Euclidean distance between the centroids of each target between the two frames is calculated; by selecting the two targets with the smallest Euclidean distance between the two frames, the ID corresponding to each target in the next frame is determined, thereby determining the motion direction corresponding to each target; Step 4: First, the image of the area in front of the automatic door is divided into a tracking area, a determination area and an occupied area; secondly, based on the area where the pedestrian target is located and the movement trajectory of the pedestrian target, a corresponding control signal is sent to the automatic door according to the set strategy; wherein, the tracking area is the part of the entire image except the occupied area and the determination area; the occupied area is the part of the area under the automatic door where collision and extrusion may occur; and the determination area is a part of the fan-shaped area of ​​the automatic door; Among them, according to the set strategy, the corresponding control signal sent to the automatic door is specifically: If a pedestrian is detected in the tracking area, the trajectory of the pedestrian target is obtained, and after identifying the pedestrian's entry trend, a door opening signal is issued; If a pedestrian is detected in the occupied area, the occupied signal is continuously sent; If a pedestrian is detected entering the judgment area, the trajectory of the pedestrian is retrieved for identification. After the pedestrian is identified as having an entry trend, a door opening signal will be issued and the motor will start to drive the automatic door to open. Among them, the strategy for judging whether a pedestrian target has an entry trend is: when a pedestrian target enters the judgment area, extract the coordinates of the target in the judgment area At the same time, extract all historical centroid coordinates under the corresponding ID of the target Find the mean of all centroid ordinates, and the calculation formula is: Among them, T is the total number of frames in which the target is detected in history; when When it is greater than the set threshold, it is determined that the pedestrian target has an entry trend; Step 5: According to the control signal given in step 4, the opening and closing action of the automatic door is controlled by a set control strategy; wherein the set control strategy is: (1) When receiving the door opening signal, the automatic door is controlled to open and enter a waiting time. After the waiting time is over, the door is controlled to close; (2) If a new door opening signal is received during the waiting time, the waiting time is reset, and after the waiting time is over, the control performs the door closing operation; (3) If an occupied signal is received during the waiting time, the waiting time is reset.

2. The automatic door control method based on target detection and trajectory recognition according to claim 1, characterized in that: In step 1, a wide-angle, distortion-free high-definition camera with a diagonal field of view of 120° is installed in the center of the door frame above the automatic door to overlook the area in front of the door.

3. The automatic door control method based on target detection and trajectory recognition as claimed in claim 1, characterized in that: The target detection is implemented in a lightweight neural network model.

Citation Information

Patent Citations

  • Omnidirectional computer vision-based safe and energy-saving control device for pedestrian automatic door

    CN102747919A

  • Track-triggered millimeter-wave radar automatic door control strategy and system

    CN110863733A