CN111104554A - Automatic door control method and system based on contour detection and head and shoulder detection - Google Patents

Automatic door control method and system based on contour detection and head and shoulder detection Download PDF

Info

Publication number
CN111104554A
CN111104554A CN201911336041.7A CN201911336041A CN111104554A CN 111104554 A CN111104554 A CN 111104554A CN 201911336041 A CN201911336041 A CN 201911336041A CN 111104554 A CN111104554 A CN 111104554A
Authority
CN
China
Prior art keywords
head
shoulder
trackid
door
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911336041.7A
Other languages
Chinese (zh)
Other versions
CN111104554B (en
Inventor
杨帆
袁顺
刘凯
徐善俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaoshi Technology Jiangsu Co ltd
Original Assignee
Nanjing Zhenshi Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Zhenshi Intelligent Technology Co Ltd filed Critical Nanjing Zhenshi Intelligent Technology Co Ltd
Priority to CN201911336041.7A priority Critical patent/CN111104554B/en
Publication of CN111104554A publication Critical patent/CN111104554A/en
Application granted granted Critical
Publication of CN111104554B publication Critical patent/CN111104554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/7837Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using objects detected or recognised in the video content
    • G06F16/784Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using objects detected or recognised in the video content the detected or recognised objects being people
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power-Operated Mechanisms For Wings (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides an automatic door control method and system based on contour detection and head and shoulder detection, which are characterized in that non-human objects and animals except a detection area triggered by an automatic door opening signal are judged and excluded through contour detection, the head and shoulder in a human-shaped contour are identified through head and shoulder detection, the head and shoulder displacement in a video frame is calculated to judge whether a real person exists, and further whether a person has a tendency of needing to trigger a door opening signal is judged through tracking the position of a coordinate point by the head and shoulder, so that the defects that the object and the animal can trigger the automatic door and the situation that the person does not wish to mistakenly trigger the door opening through the detection area are solved. Meanwhile, the head and shoulder detection is used for judging whether the virtual area has a store-exiting tendency tracking ID and a historical sending signal in real time to judge a signal needing to be sent next step. As long as there is a tendency of going out of a store to track ID in the detection area of opening the door, the automatically-controlled door keeps the open state, effectively solve the problem that the opening time is not enough or too long when the automatically-controlled door is closed in a delayed way.

Description

Automatic door control method and system based on contour detection and head and shoulder detection
Technical Field
The invention relates to the technical field of head and shoulder detection, in particular to an automatic door control method based on contour detection and head and shoulder detection.
Background
Automatic door among the prior art, automatic door of hotel, museum's automatic door or other open public places's automatic door carry out induction control through infrared switch usually, when the object is close, open the door action through infrared sensor detection, close the door after the object leaves the detection zone. However, in practical application, it is not the object, animal or real person that infrared pulse detection control automatic door can't discern triggering the signal of opening the door, for example, customer carries the pet to visit under the market shop scene, if there is the possibility that the signal of opening the door is lost to false triggering under the non-traction state of pet, so lead to carrying on the flow in business circle/market and the collection and the intelligent analysis in-process noise more, can take place great deviation, lead to the analysis result not to have realistic meaning.
In real life, the store/hotel entrance often has a exhibition situation, and if an object exists in an infrared detection area or at the edge, a door opening signal is frequently triggered by using the traditional infrared pulse detection. Moreover, the automatic door which is opened by using a single signal triggering and is closed in a delayed mode can only be opened for a fixed time, and the passing speed is insufficient, so that the automatic door cannot pass through or is clamped.
Disclosure of Invention
The invention aims to provide an automatic door control method based on contour detection and head and shoulder detection, which is used for rapidly identifying through contour detection and head and shoulder detection and independently controlling an automatic door through door opening information or door closing information.
In order to achieve the above object, the present invention provides an automatic door control method based on contour detection and head and shoulder detection, comprising the following steps:
step 1, presetting a virtual door in a video picture acquired by a camera corresponding to the automatic door, recording vertex coordinates of the virtual door, presetting a rectangular frame outside the virtual door as a virtual detection area, and recording the vertex coordinates of the rectangular frame;
step 2, decoding the video stream acquired by the camera in real time to obtain a video frame;
step 3, carrying out contour detection on the video frame, extracting the human-shaped contour in the video frame, generating a tracking ID, recording the vertex coordinate point of the human-shaped contour, and then outputting the video frame with the tracking ID and the tracking ID of each human-shaped contour in the video frame, namely contour TrackID, and contour vertex coordinates;
step 4, performing head and shoulder detection on the video frame with the tracking ID output in the step 3, extracting each head and shoulder contour in the video frame, generating the tracking ID, namely the head and shoulder TrackID, and recording the head and shoulder vertex coordinates; then comparing the contour vertex coordinates with the head shoulder vertex coordinates, if the comparison is consistent, updating the head shoulder TrackID to be the contour TrackID, otherwise, not updating, and outputting the head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates;
step 5, according to the head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates output in the step 4, detecting whether the head shoulder TrackID is a new TrackID in a TrackID monitoring list, if the head shoulder TrackID is the new TrackID, inserting the head shoulder TrackID monitoring list into the TrackID monitoring list and updating the TrackID monitoring list, recording the head shoulder vertex coordinates corresponding to the head shoulder TrackID as a starting coordinate point, and if the head shoulder TrackID is not the new TrackID, indicating the existing TrackID and recording the head shoulder vertex coordinates;
step 6, comparing the head and shoulder vertex coordinates with the coordinates of the detection area: if the head and shoulder vertex coordinates are outside the virtual detection area, no processing is performed, and if the head and shoulder vertex coordinates are inside the virtual detection area, the step 7 is performed;
step 7, outputting the head shoulder TrackID and entering step 8 in response to the going-out tendency according to the trend of the head shoulder TrackID in the virtual detection area, otherwise, discarding and not acting;
step 8, judging whether the virtual door is in a closed state: if the door is in a closed state, sending a door opening signal to the door access controller to control the opening of the automatic door; if the virtual door is in the open state, no processing is performed.
Further preferably, in the step 8, the method further includes:
and detecting the TrackID monitoring list, if the head shoulder TrackID still exists, not operating, and if the head shoulder TrackID does not exist, sending a door closing signal to the door access controller to control closing of the automatic door.
Further preferably, the specific operation of step 7 includes:
marking the last sitting mark of the head shoulder TrackID before entering the virtual detection area as point A, marking the first point of the head shoulder TrackID after entering the virtual detection area as point B, connecting the point A to the point B as an extension line to calculate the intersection point with the virtual door, judging that the door-out tendency exists if the intersection point exists, outputting the head shoulder TrackID, and discarding the tracking if the intersection point does not exist.
Further preferably, a second point after the head shoulder TrackID enters the virtual detection area is marked as a point C, the point B is connected to the point C to form an extension line, the intersection points with the virtual door are calculated, if the intersection points of A-B and B-C exist, the door-out tendency is judged, a pre-door-opening signal is sent, the head shoulder TrackID judged to send the door-opening signal is output, and if the intersection points do not exist, the tracking is discarded.
According to the disclosure of the present invention, there is also provided an automatic door control system based on contour detection and head and shoulder detection, comprising:
a module for presetting a virtual door in a video picture collected by a camera corresponding to the automatic door, recording vertex coordinates of the virtual door, presetting a rectangular frame outside the virtual door as a virtual detection area, and recording the vertex coordinates of the rectangular frame;
a module for decoding the video stream collected by the camera in real time to obtain a video frame;
a module for detecting the outline of the video frame, extracting the human-shaped outline in the video frame, generating a tracking ID, recording the vertex coordinate point of the human-shaped outline, and then outputting the video frame with the tracking ID and the tracking ID of each human-shaped outline in the video frame, namely the outline TrackID, and the outline vertex coordinates;
the tracking ID generation device is used for carrying out head and shoulder detection on the output video frame with the tracking ID, extracting each head and shoulder contour in the video frame, generating the tracking ID, namely the head and shoulder TrackID, and recording head and shoulder vertex coordinates; then comparing the contour vertex coordinates with the head shoulder vertex coordinates, if the comparison is consistent, updating the head shoulder TrackID to be the contour TrackID, otherwise, not updating, and outputting the head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates;
a module for detecting whether the head shoulder TrackID is a new TrackID in a TrackID monitoring list according to the output head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates, if the head shoulder TrackID is the new TrackID, inserting the head shoulder TrackID monitoring list into the TrackID monitoring list and updating the TrackID monitoring list, recording the head shoulder vertex coordinates corresponding to the head shoulder TrackID as a starting coordinate point, and if the head shoulder TrackID is not the new TrackID, indicating the existing TrackID and recording the head shoulder vertex coordinates;
a module for comparing the head and shoulder vertex coordinates with the coordinates of the detection area, wherein if the head and shoulder vertex coordinates are outside the virtual detection area, no processing is performed, and if the head and shoulder vertex coordinates are inside the virtual detection area, the tendency to go out is judged;
a module for outputting the TrackID of the head shoulder according to the trend of the TrackID of the head shoulder in the virtual detection area and responding to the tendency of going out, otherwise, discarding the head shoulder TrackID which does not act;
a module for determining whether the virtual door is in a closed state, wherein: if the door is in a closed state, sending a door opening signal to the door access controller to control the opening of the automatic door; if the virtual door is in the open state, no processing is performed.
It should be understood that all combinations of the foregoing concepts and additional concepts described in greater detail below can be considered as part of the inventive subject matter of this disclosure unless such concepts are mutually inconsistent. In addition, all combinations of claimed subject matter are considered a part of the presently disclosed subject matter.
The foregoing and other aspects, embodiments and features of the present teachings can be more fully understood from the following description taken in conjunction with the accompanying drawings. Additional aspects of the present invention, such as features and/or advantages of exemplary embodiments, will be apparent from the description which follows, or may be learned by practice of specific embodiments in accordance with the teachings of the present invention.
Drawings
The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component that is illustrated in various figures may be represented by a like numeral. For purposes of clarity, not every component may be labeled in every drawing. Embodiments of various aspects of the present invention will now be described, by way of example, with reference to the accompanying drawings, in which:
FIG. 1 is an exemplary flow chart of the method of automatic door control of the present invention.
Fig. 2 is a logical example of whether or not the track point direction of the head shoulder TrackID satisfies the out-of-store tendency condition.
Fig. 3A and 3B are two specific examples of whether or not the track point direction of the head shoulder TrackID satisfies the out-of-store tendency condition.
Fig. 4 is still another specific example of whether or not the track point direction of the head shoulder TrackID satisfies the out-of-store tendency condition.
Detailed Description
In order to better understand the technical content of the present invention, specific embodiments are described below with reference to the accompanying drawings.
In this disclosure, aspects of the present invention are described with reference to the accompanying drawings, in which a number of illustrative embodiments are shown. Embodiments of the present disclosure are not necessarily intended to include all aspects of the invention. It should be appreciated that the various concepts and embodiments described above, as well as those described in greater detail below, may be implemented in any of numerous ways, as the disclosed concepts and embodiments are not limited to any one implementation. In addition, some aspects of the present disclosure may be used alone, or in any suitable combination with other aspects of the present disclosure.
In combination with the drawings, the invention aims to provide an automatic door control method based on contour detection and head and shoulder detection, which realizes the false detection judgment of personnel based on contour detection, head and shoulder detection and coordinate point displacement judgment, records the tracking coordinate points and the judgment of the position of the automatic door based on the head and shoulder detection, judges whether the head and shoulder detection effectively tracks the detection ID in the detection area or not and judges the next action according to historical data, and controls the opening and closing of the automatic door independently through door opening and closing information so as to effectively prevent the automatic door from falsely detecting non-human objects, animals and non-exit intention of personnel to trigger an opening signal and prevent the problem of being clamped due to the closing of the automatic door (for example, the traditional automatic door control can be clamped) during passing.
Referring to fig. 1-4, the method for controlling an automatic door based on contour detection and head and shoulder detection according to the present invention comprises the following steps:
step 1, presetting a virtual door in a video picture acquired by a camera corresponding to the automatic door, as shown in fig. 2, recording vertex coordinates of the virtual door, presetting a rectangular frame outside the virtual door as a virtual detection area, and recording the vertex coordinates of the rectangular frame;
step 2, decoding the video stream acquired by the camera in real time to obtain a video frame;
step 3, carrying out contour detection on the video frame, extracting the human-shaped contour in the video frame, generating a tracking ID, recording the vertex coordinate point of the human-shaped contour, and then outputting the video frame with the tracking ID and the tracking ID of each human-shaped contour in the video frame, namely contour TrackID, and contour vertex coordinates;
step 4, performing head and shoulder detection on the video frame with the tracking ID output in the step 3, extracting each head and shoulder contour in the video frame, generating the tracking ID, namely the head and shoulder TrackID, and recording the head and shoulder vertex coordinates; then comparing the contour vertex coordinates with the head shoulder vertex coordinates, if the comparison is consistent, updating the head shoulder TrackID to be the contour TrackID, otherwise, not updating, and outputting the head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates;
step 5, according to the head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates output in the step 4, detecting whether the head shoulder TrackID is a new TrackID in a TrackID monitoring list, if the head shoulder TrackID is the new TrackID, inserting the head shoulder TrackID monitoring list into the TrackID monitoring list and updating the TrackID monitoring list, recording the head shoulder vertex coordinates corresponding to the head shoulder TrackID as a starting coordinate point, and if the head shoulder TrackID is not the new TrackID, indicating the existing TrackID and recording the head shoulder vertex coordinates;
step 6, comparing the head and shoulder vertex coordinates with the coordinates of the detection area: if the head and shoulder vertex coordinates are outside the virtual detection area, no processing is performed, and if the head and shoulder vertex coordinates are inside the virtual detection area, the step 7 is performed;
step 7, outputting the head shoulder TrackID and entering step 8 in response to the going-out tendency according to the trend of the head shoulder TrackID in the virtual detection area, otherwise, discarding and not acting;
step 8, judging whether the virtual door is in a closed state: if the door is in a closed state, sending a door opening signal to the door access controller to control the opening of the automatic door; if the virtual door is in the open state, no processing is performed.
With reference to fig. 1 and 2, in step 8, the method further includes:
and detecting the TrackID monitoring list, if the head shoulder TrackID still exists, not operating, and if the head shoulder TrackID does not exist, sending a door closing signal to the door access controller to control closing of the automatic door.
Preferably, as shown in fig. 2, 3A and 3B, the specific operation of step 7 includes:
marking the last sitting mark of the head shoulder TrackID before entering the virtual detection area as point A, marking the first point of the head shoulder TrackID after entering the virtual detection area as point B, connecting the point A to the point B as an extension line to calculate the intersection point with the virtual door, judging that the door-out tendency exists if the intersection point exists, outputting the head shoulder TrackID, and discarding the tracking if the intersection point does not exist.
Preferably, in the implementation of the present invention, the automatic door is controlled to maintain the open state in response to the presence of a tracking ID that tends to go out, i.e., a head shoulder TrackID, within the virtual detection area.
As shown in fig. 2 and 3A-3B, the tendency of going out is exemplarily shown.
In the figure, the video of the camera is the exit area of the automatic door in the hotel, in the video area of the camera, a straight line ab is drawn at the position of the automatic door, and a rectangular frame is drawn behind the door. The TrackID is detected out of trigger logic judgment in the rectangular frame, and an intersection point X of a connecting line from a TrackID coordinate point A to a coordinate point B and a straight line ab is calculated. If X points exist, the judgment is true, and if X points do not exist, the judgment is false.
In another embodiment, as shown in fig. 4, the second point after the head shoulder TrackID enters the virtual detection area is marked as point C, the point B is connected to point C to form an extension line, the intersection points with the virtual door are calculated, if both a-B and B-C exist the intersection points with the virtual door (point X, Y), the door tendency is judged to exist, the pre-opening signal is sent, the head shoulder TrackID judged to send the door opening signal is output, and if no intersection point exists, the tracking is discarded. Thus, the accuracy of the determination is further enhanced.
With reference to fig. 1, in the automatic door control scheme of the present invention, in the system configuration, a conventional camera may be adopted, or an original camera (generally, a camera with an infrared imaging function) of the door control system may be deployed, and a software program compiled according to the method is deployed in a system background and deployed in a server or a server system, so as to process a video stream acquired by the camera in real time, and perform door opening and closing control based on the above-mentioned contour and head and shoulder detection after obtaining a video frame.
Based on video image acquisition and contour head-shoulder processing, a recognition algorithm with small volume operation is preferentially adopted, for example, the recognition algorithm based on Opencv has high detection and recognition efficiency which can reach millisecond level, real-time ID tracking and real-time door opening and closing control are realized during door opening and closing, and compared with the traditional infrared detection, the invention can fundamentally eliminate the problem that a non-human object triggers a door opening signal through a contour detection technology; particularly, under the condition that the exhibition is arranged at the entrance of the hotel, the traditional infrared pulse detection is used for triggering the door opening signal frequently, and the problem that the door opening signal is triggered by the fixed object can be solved by combining the head and shoulder tracking algorithm and the virtual area judgment.
It should be noted that the contour detection used in the present invention refers to a process of extracting a contour of an object by processing a background, a texture inside the object, and noise interference in a digital image including the object and the background. The contour Detection mentioned in the invention can adopt Human contour Detection (Real-Time Human Detection using contour currents) based on contour clues or Human contour recognition algorithm based on Opencv, and the contour Detection can be packaged into SDK, namely, a video frame comprising Human contours is used as input, and tracking IDs of all Human contours in the video frame and coordinate positions of the Human contours are output. A person in a video frame corresponds to a human-shaped outline.
The head and shoulder detection technology is a process of recognizing an input video frame image based on an image processing technology, detecting a head and shoulder in the video frame, and outputting a tracking ID of the head and shoulder and a coordinate position of the head and shoulder in the video frame. The head and shoulder detection mentioned in the invention adopts a head and shoulder detection algorithm based on feature description or classifier learning, and is packaged into SDK, namely, the video frame is used as input, and the tracking IDs of all the heads and shoulders in the video frame and the coordinate positions of the heads and shoulders are output. A person in a video frame corresponds to a head and a shoulder.
Therefore, the invention eliminates non-human objects and animals except the detection area triggered by the automatic door opening signal through the contour detection, identifies the head and the shoulder in the human-shaped contour through the head and shoulder detection, calculates the displacement of the head and the shoulder in the video frame and judges whether the human is real or not, and reduces the false detection probability and the tracking loss probability. And further judging whether the personnel have a tendency of triggering the door opening signal or not by tracking the position of the coordinate point through the head and the shoulder. The method solves the defect that objects and animals can trigger the automatic door and the situation that people do not wish to go out of a store mistakenly trigger the door to open through a detection area.
And judging whether the virtual area has a store-exiting tendency tracking ID and a historical transmission signal in real time through head and shoulder detection to judge that the signal needs to be transmitted next step. As long as there is a tendency of going out of a store to track ID in the detection area of opening the door, the automatically-controlled door keeps the open state, effectively solve the problem that the opening time is not enough or too long when the automatically-controlled door is closed in a delayed way.
For example, scene one, pet false triggering door opening information scene
The customer pulls the pet to the store, pays attention to talk with reception staff when handling the check-in procedure, and needs to make actions such as showing identity documents, and the pet carried with him is easy to keep away. The traditional hotel gate uses infrared pulse detection, and the hotel gate can be automatically opened when a pet appears in a detection area. The risk of injury or injury to others for an uncontrolled pet is unpredictable. According to the invention, the door opening signal cannot be triggered when the pet appears in the detection area by using a technology based on human-shaped contour detection, so that the problem that the pet is lost in a non-traction state is solved.
Scene two, hotel entrance exhibition scene
Due to the large traffic, hotel entrances are often occupied by commercial marketing deployments. Hotel doors using traditional infrared pulse detection are repeatedly triggered to open the door by marketing personnel who statically deploy materials and wander. In the scene, the door opening triggering information is triggered by infrared pulse detection, so that the defect of serious false detection exists, the door opening signal is triggered only by judging the human shape with the motion gesture by combining head and shoulder tracking of the human shape profile, static materials do not have the human shape profile and cannot be detected (the prerequisite condition of no detection), and the door opening signal cannot be triggered even if the human shape profile has no motion gesture, so that the problem of false triggering of the static materials is solved. The movement of the loitering marketing personnel has certain range characteristics, the virtual area is set to track the position and the movement direction of the personnel in the video area, and the situation that the personnel moves into the virtual area after being detected outside the virtual area and the direction points to a hotel gate can be judged to have a tendency of going out to trigger a door opening signal, so that the problem that the loitering personnel continuously trigger the door opening signal in a small range is solved.
Scene three, person crowding overlapping scene
In a video, if people are crowded and overlapped, the problem that the complete human figure outline cannot be extracted and tracking loss is easy to occur when the traditional human figure detection is used for controlling the opening and closing of a door is solved.
The present invention can also be configured as follows with reference to the embodiments of the present invention shown in the drawings and described above.
An automatic door control system based on contour detection and head and shoulder detection, comprising:
a module for presetting a virtual door in a video picture collected by a camera corresponding to the automatic door, recording vertex coordinates of the virtual door, presetting a rectangular frame outside the virtual door as a virtual detection area, and recording the vertex coordinates of the rectangular frame;
a module for decoding the video stream collected by the camera in real time to obtain a video frame;
a module for detecting the outline of the video frame, extracting the human-shaped outline in the video frame, generating a tracking ID, recording the vertex coordinate point of the human-shaped outline, and then outputting the video frame with the tracking ID and the tracking ID of each human-shaped outline in the video frame, namely the outline TrackID, and the outline vertex coordinates;
the tracking ID generation device is used for carrying out head and shoulder detection on the output video frame with the tracking ID, extracting each head and shoulder contour in the video frame, generating the tracking ID, namely the head and shoulder TrackID, and recording head and shoulder vertex coordinates; then comparing the contour vertex coordinates with the head shoulder vertex coordinates, if the comparison is consistent, updating the head shoulder TrackID to be the contour TrackID, otherwise, not updating, and outputting the head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates;
a module for detecting whether the head shoulder TrackID is a new TrackID in a TrackID monitoring list according to the output head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates, if the head shoulder TrackID is the new TrackID, inserting the head shoulder TrackID monitoring list into the TrackID monitoring list and updating the TrackID monitoring list, recording the head shoulder vertex coordinates corresponding to the head shoulder TrackID as a starting coordinate point, and if the head shoulder TrackID is not the new TrackID, indicating the existing TrackID and recording the head shoulder vertex coordinates;
a module for comparing the head and shoulder vertex coordinates with the coordinates of the detection area, wherein if the head and shoulder vertex coordinates are outside the virtual detection area, no processing is performed, and if the head and shoulder vertex coordinates are inside the virtual detection area, the tendency to go out is judged;
a module for outputting the TrackID of the head shoulder according to the trend of the TrackID of the head shoulder in the virtual detection area and responding to the tendency of going out, otherwise, discarding the head shoulder TrackID which does not act;
a module for determining whether the virtual door is in a closed state, wherein: if the door is in a closed state, sending a door opening signal to the door access controller to control the opening of the automatic door; if the virtual door is in the open state, no processing is performed.
Preferably, the method further comprises the following steps:
and the module is used for detecting the TrackID monitoring list, if the head shoulder TrackID still exists, the operation is not carried out, and if the head shoulder TrackID does not exist, a door closing signal is sent to the access controller to control the closing of the automatic door.
Preferably, the trend is set to be determined by:
marking the last sitting mark of the head shoulder TrackID before entering the virtual detection area as point A, marking the first point of the head shoulder TrackID after entering the virtual detection area as point B, connecting the point A to the point B as an extension line to calculate the intersection point with the virtual door, judging that the door-out tendency exists if the intersection point exists, outputting the head shoulder TrackID, and discarding the tracking if the intersection point does not exist.
Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention should be determined by the appended claims.

Claims (10)

1. An automatic door control method based on contour detection and head and shoulder detection is characterized by comprising the following steps:
step 1, presetting a virtual door in a video picture acquired by a camera corresponding to the automatic door, recording vertex coordinates of the virtual door, presetting a rectangular frame outside the virtual door as a virtual detection area, and recording the vertex coordinates of the rectangular frame;
step 2, decoding the video stream acquired by the camera in real time to obtain a video frame;
step 3, carrying out contour detection on the video frame, extracting the human-shaped contour in the video frame, generating a tracking ID, recording the vertex coordinate point of the human-shaped contour, and then outputting the video frame with the tracking ID and the tracking ID of each human-shaped contour in the video frame, namely contour TrackID, and contour vertex coordinates;
step 4, performing head and shoulder detection on the video frame with the tracking ID output in the step 3, extracting each head and shoulder contour in the video frame, generating the tracking ID, namely the head and shoulder TrackID, and recording the head and shoulder vertex coordinates; then comparing the contour vertex coordinates with the head shoulder vertex coordinates, if the comparison is consistent, updating the head shoulder TrackID to be the contour TrackID, otherwise, not updating, and outputting the head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates;
step 5, according to the head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates output in the step 4, detecting whether the head shoulder TrackID is a new TrackID in a TrackID monitoring list, if the head shoulder TrackID is the new TrackID, inserting the head shoulder TrackID monitoring list into the TrackID monitoring list and updating the TrackID monitoring list, recording the head shoulder vertex coordinates corresponding to the head shoulder TrackID as a starting coordinate point, and if the head shoulder TrackID is not the new TrackID, indicating the existing TrackID and recording the head shoulder vertex coordinates;
step 6, comparing the head and shoulder vertex coordinates with the coordinates of the detection area: if the head and shoulder vertex coordinates are outside the virtual detection area, no processing is performed, and if the head and shoulder vertex coordinates are inside the virtual detection area, the step 7 is performed;
step 7, outputting the head shoulder TrackID and entering step 8 in response to the going-out tendency according to the trend of the head shoulder TrackID in the virtual detection area, otherwise, discarding and not acting;
step 8, judging whether the virtual door is in a closed state: if the door is in a closed state, sending a door opening signal to the door access controller to control the opening of the automatic door; if the virtual door is in the open state, no processing is performed.
2. The method for automatic door control based on contour detection and head and shoulder detection as claimed in claim 1, wherein in the step 8, further comprising:
and detecting the TrackID monitoring list, if the head shoulder TrackID still exists, not operating, and if the head shoulder TrackID does not exist, sending a door closing signal to the door access controller to control closing of the automatic door.
3. The method for automatic door control based on contour detection and head and shoulder detection as claimed in claim 1, wherein the specific operation of step 7 comprises:
marking the last sitting mark of the head shoulder TrackID before entering the virtual detection area as point A, marking the first point of the head shoulder TrackID after entering the virtual detection area as point B, connecting the point A to the point B as an extension line to calculate the intersection point with the virtual door, judging that the door-out tendency exists if the intersection point exists, outputting the head shoulder TrackID, and discarding the tracking if the intersection point does not exist.
4. The automatic door control method based on contour detection and head shoulder detection as claimed in claim 3, characterized in that the second point after the head shoulder TrackID enters the virtual detection area is marked as point C, the point B is connected to the point C to be an extension line, the intersection points with the virtual door are calculated, if the intersection points of A-B and B-C with the virtual door exist, the door-out tendency is judged to exist, the pre-door-opening signal is sent, the head shoulder TrackID judged to send out the door-opening signal is output, and if the intersection points do not exist, the tracking is discarded.
5. The method for automatic door control based on contour detection and head and shoulder detection as claimed in any one of claims 1-4, wherein the automatic door is controlled to keep open in response to the tracking ID of the door exit tendency, namely the head and shoulder TrackID, existing in the virtual detection area.
6. The method for automatic door control based on contour Detection and head-shoulder Detection as claimed in claim 1, wherein the contour Detection adopts Human contour Detection based on contour cue (Real-Time Human Detection using contour currents) or Human contour recognition algorithm based on Opencv.
7. The method for automatic door control based on contour detection and head and shoulder detection as claimed in claim 1, wherein the head and shoulder detection adopts a head and shoulder detection algorithm based on feature description or classifier learning.
8. An automatic door control system based on contour detection and head and shoulder detection, comprising:
a module for presetting a virtual door in a video picture collected by a camera corresponding to the automatic door, recording vertex coordinates of the virtual door, presetting a rectangular frame outside the virtual door as a virtual detection area, and recording the vertex coordinates of the rectangular frame;
a module for decoding the video stream collected by the camera in real time to obtain a video frame;
a module for detecting the outline of the video frame, extracting the human-shaped outline in the video frame, generating a tracking ID, recording the vertex coordinate point of the human-shaped outline, and then outputting the video frame with the tracking ID and the tracking ID of each human-shaped outline in the video frame, namely the outline TrackID, and the outline vertex coordinates;
the tracking ID generation device is used for carrying out head and shoulder detection on the output video frame with the tracking ID, extracting each head and shoulder contour in the video frame, generating the tracking ID, namely the head and shoulder TrackID, and recording head and shoulder vertex coordinates; then comparing the contour vertex coordinates with the head shoulder vertex coordinates, if the comparison is consistent, updating the head shoulder TrackID to be the contour TrackID, otherwise, not updating, and outputting the head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates;
a module for detecting whether the head shoulder TrackID is a new TrackID in a TrackID monitoring list according to the output head shoulder contour, the head shoulder TrackID and the head shoulder vertex coordinates, if the head shoulder TrackID is the new TrackID, inserting the head shoulder TrackID monitoring list into the TrackID monitoring list and updating the TrackID monitoring list, recording the head shoulder vertex coordinates corresponding to the head shoulder TrackID as a starting coordinate point, and if the head shoulder TrackID is not the new TrackID, indicating the existing TrackID and recording the head shoulder vertex coordinates;
a module for comparing the head and shoulder vertex coordinates with the coordinates of the detection area, wherein if the head and shoulder vertex coordinates are outside the virtual detection area, no processing is performed, and if the head and shoulder vertex coordinates are inside the virtual detection area, the tendency to go out is judged;
a module for outputting the TrackID of the head shoulder according to the trend of the TrackID of the head shoulder in the virtual detection area and responding to the tendency of going out, otherwise, discarding the head shoulder TrackID which does not act;
a module for determining whether the virtual door is in a closed state, wherein: if the door is in a closed state, sending a door opening signal to the door access controller to control the opening of the automatic door; if the virtual door is in the open state, no processing is performed.
9. The system of claim 8, further comprising:
and the module is used for detecting the TrackID monitoring list, if the head shoulder TrackID still exists, the operation is not carried out, and if the head shoulder TrackID does not exist, a door closing signal is sent to the access controller to control the closing of the automatic door.
10. The system of claim 8, wherein the trend is configured to be determined by:
marking the last sitting mark of the head shoulder TrackID before entering the virtual detection area as point A, marking the first point of the head shoulder TrackID after entering the virtual detection area as point B, connecting the point A to the point B as an extension line to calculate the intersection point with the virtual door, judging that the door-out tendency exists if the intersection point exists, outputting the head shoulder TrackID, and discarding the tracking if the intersection point does not exist.
CN201911336041.7A 2019-12-23 2019-12-23 Automatic door control method and system based on contour detection and head and shoulder detection Active CN111104554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911336041.7A CN111104554B (en) 2019-12-23 2019-12-23 Automatic door control method and system based on contour detection and head and shoulder detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911336041.7A CN111104554B (en) 2019-12-23 2019-12-23 Automatic door control method and system based on contour detection and head and shoulder detection

Publications (2)

Publication Number Publication Date
CN111104554A true CN111104554A (en) 2020-05-05
CN111104554B CN111104554B (en) 2022-08-16

Family

ID=70422969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911336041.7A Active CN111104554B (en) 2019-12-23 2019-12-23 Automatic door control method and system based on contour detection and head and shoulder detection

Country Status (1)

Country Link
CN (1) CN111104554B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114333134A (en) * 2022-03-10 2022-04-12 深圳灏鹏科技有限公司 Cabin management method, device, equipment and storage medium
CN115953850A (en) * 2023-03-10 2023-04-11 深圳市深圳通有限公司 Ultra-wideband non-inductive payment traffic abnormity identification device and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015126031A1 (en) * 2014-02-24 2015-08-27 에스케이텔레콤 주식회사 Person counting method and device for same
CN109448026A (en) * 2018-11-16 2019-03-08 南京甄视智能科技有限公司 Passenger flow statistical method and system based on head and shoulder detection

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015126031A1 (en) * 2014-02-24 2015-08-27 에스케이텔레콤 주식회사 Person counting method and device for same
CN109448026A (en) * 2018-11-16 2019-03-08 南京甄视智能科技有限公司 Passenger flow statistical method and system based on head and shoulder detection

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114333134A (en) * 2022-03-10 2022-04-12 深圳灏鹏科技有限公司 Cabin management method, device, equipment and storage medium
CN115953850A (en) * 2023-03-10 2023-04-11 深圳市深圳通有限公司 Ultra-wideband non-inductive payment traffic abnormity identification device and method
CN115953850B (en) * 2023-03-10 2023-05-09 深圳市深圳通有限公司 Passing anomaly identification device and method for ultra-wideband non-inductive payment

Also Published As

Publication number Publication date
CN111104554B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN108230594B (en) Method for generating alarm in video monitoring system
AU2017233723B2 (en) System and method for training object classifier by machine learning
Gowsikhaa et al. Automated human behavior analysis from surveillance videos: a survey
EP2801956B1 (en) Passenger counter
KR100831122B1 (en) Face authentication apparatus, face authentication method, and entrance and exit management apparatus
Stalder et al. Cascaded confidence filtering for improved tracking-by-detection
EP3418944A2 (en) Information processing apparatus, information processing method, and program
CN105913528A (en) Method and device for processing access control data, method and device for access control
JP2021513690A (en) Article identification method and system, electronic equipment
WO2015131734A1 (en) Method, device, and storage medium for pedestrian counting in forward looking surveillance scenario
KR101653278B1 (en) Face tracking system using colar-based face detection method
JP2016072964A (en) System and method for subject re-identification
CN107911663A (en) A kind of elevator passenger hazardous act intelligent recognition early warning system based on Computer Vision Detection
CN111104554B (en) Automatic door control method and system based on contour detection and head and shoulder detection
US20230368559A1 (en) Information processing apparatus, information processing method, and non-transitory computer-readable storage medium
JP2006236260A (en) Face authentication device, face authentication method, and entrance/exit management device
CN111814510A (en) Detection method and device for remnant body
JP2014059655A (en) Road situation-monitoring device, and road situation-monitoring method
CN105227918B (en) A kind of intelligent control method
CN103577832A (en) People flow statistical method based on spatio-temporal context
Yan-yan et al. Pedestrian detection and tracking for counting applications in metro station
CN107038786A (en) Gate inhibition's face identification method and its system
JP2021531598A (en) Systems and methods for use in object detection from video streams
Ilao et al. Crowd estimation using region-specific HOG With SVM
Virgona et al. Sensing and perception technology to enable real time monitoring of passenger movement behaviours through congested rail stations

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: No.568 longmian Avenue, gaoxinyuan, Jiangning District, Nanjing City, Jiangsu Province, 211000

Patentee after: Xiaoshi Technology (Jiangsu) Co.,Ltd.

Address before: No.568 longmian Avenue, gaoxinyuan, Jiangning District, Nanjing City, Jiangsu Province, 211000

Patentee before: NANJING ZHENSHI INTELLIGENT TECHNOLOGY Co.,Ltd.