WO2021180060A1 - Channel gate control method, apparatus and system - Google Patents

Channel gate control method, apparatus and system Download PDF

Info

Publication number
WO2021180060A1
WO2021180060A1 PCT/CN2021/079701 CN2021079701W WO2021180060A1 WO 2021180060 A1 WO2021180060 A1 WO 2021180060A1 CN 2021079701 W CN2021079701 W CN 2021079701W WO 2021180060 A1 WO2021180060 A1 WO 2021180060A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
time
space size
gate
channel
Prior art date
Application number
PCT/CN2021/079701
Other languages
French (fr)
Chinese (zh)
Inventor
任志浩
徐晖
Original Assignee
杭州海康威视数字技术股份有限公司
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 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2021180060A1 publication Critical patent/WO2021180060A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/285Analysis of motion using a sequence of stereo image pairs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/55Depth or shape recovery from multiple images
    • G06T7/579Depth or shape recovery from multiple images from motion
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/10Movable barriers with registering means
    • G07C9/15Movable barriers with registering means with arrangements to prevent the passage of more than one individual at a time
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/30Individual registration on entry or exit not involving the use of a pass
    • G07C9/32Individual registration on entry or exit not involving the use of a pass in combination with an identity check
    • G07C9/37Individual registration on entry or exit not involving the use of a pass in combination with an identity check using biometric data, e.g. fingerprints, iris scans or voice recognition
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/30Individual registration on entry or exit not involving the use of a pass
    • G07C9/38Individual registration on entry or exit not involving the use of a pass with central registration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/08Indexing scheme for image data processing or generation, in general involving all processing steps from image acquisition to 3D model generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person

Definitions

  • This application relates to the field of security, and in particular to a method, device and system for controlling access gates.
  • the personnel can only be released after they have passed the identity verification.
  • the verification method including but not limited to swiping card, fingerprint, face, iris, vein, etc.
  • the person needs to stop in front of the gate and take the necessary actions during the travel process of the person.
  • the face authorization verification is For example, during the passage of people, it is necessary for the passers to walk to the gates of the gates to stand, and they can only pass after the facial recognition authentication is qualified, which affects the passage efficiency of the gates.
  • the present application provides a method, device and system for controlling passage gates, so as to improve the passage efficiency of passage gates.
  • the specific technical solutions are as follows:
  • an embodiment of the present application provides a method for controlling an access gate, the method including:
  • the position of the first target is acquired based on the depth image, and when the position of the first target is at a set distance threshold, non-contact verification of the first target is triggered, wherein the distance threshold is determined according to the movement rate;
  • the opening of the gate channel is controlled.
  • an embodiment of the present application provides a control device for a passage gate, the device including:
  • the acquisition module is used to acquire the current image in the entrance direction of the gate channel, where the current image includes at least a two-dimensional image and a depth image;
  • the detection module is used to perform pedestrian detection on the first target based on the two-dimensional image
  • the verification module is configured to obtain the position of the first target based on the depth image, and when the position of the first target is at a set distance threshold, trigger non-contact verification of the first target, wherein the distance threshold is determined according to the moving speed;
  • the control module is used to control the opening of the gate channel based on the verification result.
  • an embodiment of the present application provides a gate system, including a verification module and an image data processing module, the system also includes a memory and a processor,
  • the memory stores instructions that can be executed by the processor, and the instructions are executed by the processor so that the processor controls the verification module and the image data processing module to execute the method provided in the first aspect of the embodiment of the present application.
  • an embodiment of the present application provides a computer-readable storage medium in which a computer program is stored.
  • the computer program is executed by a processor, the method provided in the first aspect of the embodiment of the present application is implemented.
  • the embodiment of the present application provides a computer program product for executing at runtime: the method provided in the first aspect of the embodiment of the present application.
  • the non-contact verification of the first target is triggered by detecting whether the position of the first target is within the distance threshold determined according to the moving rate, so that the verification is performed on the first target relative to the passage from far to near
  • the process is executed at the same time period, which avoids the waiting time in the prior art of stopping in front of the channel gate and waiting for the recognition result before passing, improves the passage efficiency of the channel gate, and achieves the effect of non-inductive passage.
  • the user experience is improved, and the control and judgment accuracy of the gate channel is improved.
  • FIG. 1 is a schematic diagram of the installation position of a depth camera device according to an embodiment of the application.
  • FIG. 2 is a schematic diagram of the installation position of a depth camera device according to another embodiment of the application.
  • FIG. 3 is a schematic flowchart of a single-channel gate control method equipped with a depth camera module according to an embodiment of the application.
  • FIG. 4 is a schematic diagram of the positional relationship between the gate and the distance threshold according to an embodiment of the application.
  • FIG. 5 is a schematic diagram of the space of a multi-channel gate equipped with a depth camera module according to an embodiment of the application.
  • Fig. 6 is a schematic flow chart of a method for controlling a multi-channel gate equipped with a depth camera module according to an embodiment of the application.
  • FIG. 7 is a schematic diagram of the space of a multi-channel gate equipped with a depth camera module according to another embodiment of the application.
  • FIG. 8 is a schematic flowchart of a method for controlling a multi-channel gate equipped with a depth camera module according to another embodiment of the application.
  • Fig. 9 is a schematic structural diagram of a control device for a passage gate according to an embodiment of the application.
  • Fig. 10 is a schematic structural diagram of a multi-channel gate system according to an embodiment of the application.
  • the embodiment of the application detects that the first target is a pedestrian through the acquired two-dimensional image information, it determines whether the first target is within a set threshold from the gate entrance by acquiring the three-dimensional spatial information of the first target, and if so, triggers The non-contact verification of the first target, further, through the acquired two-dimensional image information, to identify the second target accompanying the first target, when the second target is identified as large luggage and/or children, Based on the acquired three-dimensional space information, the three-dimensional space size of the first target and the second target are determined, and the passage time of the gate passage is controlled according to the three-dimensional space size.
  • the velocity and moving direction of the first target are calculated based on the three-dimensional space information of the first target, and according to the velocity and movement of the first target Direction, predict the gate channel to be entered by the first target, and trigger the gate channel to verify the first target.
  • a depth camera module In order to collect two-dimensional images and three-dimensional spatial information of the target, a depth camera module can be used.
  • One of the implementation manners uses binocular stereo vision equipment, that is, at least two VIS (Visual, visible light) cameras; the second implementation manner, uses structured light machine vision equipment, that is, at least one projector, one NIR (Near Infrared) , Near-infrared) camera and a VIS camera; the third implementation mode uses a ToF (Time of Flight) machine vision device solution, that is, there is at least one ToF camera and one VIS camera.
  • binocular stereo vision equipment that is, at least two VIS (Visual, visible light) cameras
  • the second implementation manner uses structured light machine vision equipment, that is, at least one projector, one NIR (Near Infrared) , Near-infrared) camera and a VIS camera
  • the third implementation mode uses a ToF (Time of Flight) machine vision device solution, that is, there is at least one
  • a NIR camera can also be added to meet the needs of biometric identification under extremely low illumination conditions; in the second embodiment, a NIR camera can be added to increase the measurement accuracy and accuracy.
  • a projector. quantity It can be designed flexibly according to actual scenarios and user needs.
  • the two-dimensional images collected by the VIS camera in the depth camera module can be directly used for pedestrian detection, biometric recognition and other functions, or it can be completed by separately configuring other imaging modules.
  • FIG. 1 is a schematic diagram of an installation position of a depth camera device according to an embodiment of the application.
  • a depth camera is installed at the end of the gate body extending along the entrance of the passage, and the monitored field of view covers the passage.
  • FIG. 2 is another schematic diagram of the installation of the depth camera device according to the embodiment of the application.
  • the depth camera is separated from the gate body, for example, is installed in the upper area of the gate.
  • This installation scheme is more suitable for indoors or occasions where the depth camera and other equipment are conveniently fixed above the gate, and can have a better field of view.
  • the equipment on the left side of the gate near the entrance in Figure 2 is used to interact with pedestrians and display information such as facial images.
  • FIG. 3 is a schematic diagram of a flow chart of a single-channel gate control installed with a depth camera module according to an embodiment of the application.
  • Step 301 Control the depth camera device to collect the current image within its field of view to obtain two-dimensional image and three-dimensional spatial information, that is, a depth map.
  • Step 302 Perform first target detection based on the two-dimensional image to determine whether there is a pedestrian, that is, perform pedestrian detection on the first target, if yes, perform step 303, otherwise, return to step 302.
  • this step it is possible to first detect whether there is a pedestrian based on the gait, and then further perform the first target detection on the detected pedestrian. In this way, the search range of the target can be narrowed by the gait recognition first.
  • Step 303 Acquire the current position of the first target based on the depth map, and determine whether the current position is within a preset distance threshold, and if so, trigger a non-contact verification process based on the two-dimensional image, for example, triggering a non-contact verification process based on the two-dimensional image.
  • the verification process of face recognition otherwise, keep the current state.
  • the position of the depth camera can be used as the origin of the world coordinate system, and the three-dimensional space information of the first target in the world coordinate system can be calculated based on the depth map.
  • this embodiment wakes up the current channel gate when the first target reaches the distance threshold to trigger the verification process, that is, completes the opening of the gate when the first target is close to the gate passage entrance action.
  • the background main control chip can wake up the current channel gate, and the main control chip triggers the verification module to execute the verification process.
  • the verification module can be a module installed inside the gate or a background verification server.
  • the distance threshold is set according to the algorithm time, pedestrian moving average speed, and motor control time.
  • the algorithm time includes one of pedestrian detection time, verification time, or any combination thereof.
  • the distance threshold is the pedestrian moving average speed.
  • Distance threshold average pedestrian moving speed* (algorithm time-consuming + motor system control time-consuming)
  • the pedestrian moving average speed is obtained based on statistical data.
  • the applicable distance of pedestrian detection is generally longer than the applicable distance of biometric identification. Therefore, first perform pedestrian detection. If a pedestrian is detected, then perform biometric identification when the pedestrian travels to the gate of the gate and enters a certain area. Authentication, no need for passers-by to stop at the gate entrance and then identify.
  • Step 304 Extract a second target accompanying the first target based on the current image, and detect and recognize the second target according to the two-dimensional image. If the second target is detected as an object and/or child with a certain spatial size, the The first target and the second target are taken as a whole, and the three-dimensional space size information of the first target and the second target as a whole is obtained based on the depth map, and then step 305 is executed. Otherwise, it is determined that there is a trailing person and an alarm is triggered.
  • the pre-trained detection and recognition model based on the deep learning method to identify the category and size of the second target. If the space size of the second target is recognized to meet the set space size , And the second target is an object and/or a pedestrian, it can be confirmed that the detected second target is an object and/or child with a certain size of space.
  • step 305 when the verification result of the verification process is passable, the channel is triggered to open, and according to the three-dimensional space size information determined in step 304, the length of time that the channel remains open, that is, the length of pass time is determined.
  • the length of the travel time can be determined according to the length information (depth information) in the three-dimensional space size and the pedestrian moving average speed.
  • the travel time length is the quotient of the length information and the pedestrian moving average speed, expressed in a mathematical formula for:
  • Travel time length length information in the three-dimensional space size / pedestrian moving average speed
  • the depth camera can monitor in real time during the passage of passengers. If someone is passing through the gate channel, the gate channel is controlled to remain open at all times to further prevent the passage of people from holding the gate.
  • Step 306 When the passage time is reached, the gate channel is closed.
  • the embodiment of the application narrows the search range through pedestrian detection, and then uses biometric identification to confirm the authority, which makes full use of the travel time of the passer, avoids the waiting time of the passer, and improves The passage efficiency is realized, and the non-inductive passage is realized; the passage time length determined according to the three-dimensional space size of the passer effectively reduces the occurrence of the passage of the passer The user body.
  • Figure 5 is a schematic diagram of a multi-channel gate equipped with a depth camera module according to an embodiment of the application.
  • a depth camera device is installed in each channel, and the field of view of each depth camera device is same.
  • the installation position of the depth camera device and the angle at which the image is collected can be the same.
  • FIG. 6 is a schematic diagram of a process flow of controlling a multi-channel gate with a depth camera module installed in the second embodiment of the application.
  • Step 601 Control each depth camera device to collect the current image within its field of view, so as to obtain a two-dimensional image and three-dimensional spatial information, that is, a depth map.
  • Step 602 Perform first target detection based on the two-dimensional image, and determine whether there is a passer-by, if yes, perform step 603, otherwise, return to step 602.
  • Step 603 Obtain the current position of the first target based on the depth map, and determine whether the current position is within a preset distance threshold, and if so, calculate the current movement rate and direction of the first target according to at least two consecutive depth images; otherwise, , The current gate status is maintained, and step 603 is returned.
  • the distance threshold is the sum of the algorithm time-consuming, motor control time-consuming, and channel-matching time-consuming
  • the result of the product of the pedestrian moving average speed is mathematically expressed as:
  • Distance threshold current moving average speed* (algorithm time-consuming + motor system control time-consuming + channel matching time-consuming)
  • the current moving rate and moving direction are calculated by the change of the depth information of the first target in two consecutive depth images, which is expressed mathematically as:
  • d2 and d1 are the depth values of the first target in two consecutive depth images
  • t is the time difference between the two consecutive depth images
  • v is the current moving rate
  • the moving direction is determined according to the changes in the depth values of the two consecutive frames .
  • Step 604 Assign a matching channel according to the current moving direction of the first target, and trigger the verification process of the matching channel.
  • Step 605 Extract a second target accompanying the first target based on the current image, and detect and recognize the second target according to the two-dimensional image. If the second target is detected as an object and/or child with a certain space size, the The first target and the second target are taken as a whole, and the three-dimensional space size information of the first target and the second target as a whole is obtained based on the depth map, and then step 606 is executed. Otherwise, it is determined that there is a trailing person and an alarm is triggered.
  • Step 606 When the verification result of the verification process is passable, trigger the channel to open, and determine the length of time that the channel remains open according to the three-dimensional space size information determined in step 605 and the current moving average speed, that is, the length of travel time.
  • the travel time length can be determined according to the length information in the three-dimensional space size and the current moving average speed.
  • the travel time length is the quotient of the length information and the pedestrian moving average speed, which is expressed mathematically as:
  • Travel time length length information / current moving average speed
  • the depth camera can monitor in real time during the passage of passengers. If someone is passing through the gate channel, the gate channel is controlled to remain open at all times to further prevent the passage of people from holding the gate.
  • Step 607 When the passage time is reached, the gate channel is closed.
  • the moving direction is predicted by the depth image, and the matching channel is allocated according to the moving direction, which further improves the user experience of non-inductive traffic; the current moving average speed calculated in real time is used to determine the length of the traffic time, so that each traffic The passing time of the personnel can be different, which improves the humanization of the turnstile and more effectively reduces the probability of the passage holding the passing personnel.
  • FIG. 7 is a schematic diagram of a multi-channel gate equipped with a depth camera module according to an embodiment of the present application, wherein at least one of the multi-channels has a width larger than other channels, so as to facilitate the carrying of large luggage Of passers-by.
  • FIG. 8 is a schematic diagram of a process of controlling a multi-channel gate with a depth camera module installed in the third embodiment.
  • Step 801 Control each depth camera device to collect the current image within its field of view, so as to obtain a two-dimensional image and three-dimensional spatial information, that is, a depth map.
  • Step 802 Perform a first target detection based on the two-dimensional image to determine whether there is a passer-by. If yes, perform step 803; otherwise, return to step 802.
  • Step 803 Obtain the current position of the first target based on the depth map, and determine whether the current position is within a preset distance threshold. If so, perform step 804; otherwise, maintain the current gate state and return to step 803.
  • Step 804 Extract the second target accompanying the first target based on the current image, and detect and recognize the second target according to the two-dimensional image. If the second target is detected as an object and/or child with a certain space size, the The first target and the second target as a whole, obtain the three-dimensional space size information of the first target and the second target based on the depth map, allocate the matching channel according to the three-dimensional space size, and trigger the matching channel verification process; otherwise, it is determined that there is a trailing person To trigger an alarm.
  • matching channels can be allocated according to the maximum width of the three-dimensional space size.
  • Step 805 Calculate the current movement rate of the first target according to at least two consecutive depth image frames.
  • the current movement rate is calculated by changing the depth information of the first target in two consecutive depth image frames, which is expressed mathematically as:
  • d2 and d1 are the depth values of the first target in two consecutive frames
  • t is the time difference between the two consecutive frames
  • v is the current moving rate
  • step 806 when the verification result of the verification process is passable, the channel is triggered to open, and according to the determined three-dimensional space size information and the current moving average rate, the length of time that the channel remains open is determined, that is, the length of travel time.
  • the travel time length can be determined according to the length information (depth information) in the three-dimensional space size and the current moving average speed.
  • the travel time length is the quotient of the length information and the pedestrian moving average speed, which is expressed mathematically as :
  • Travel time length length information in the three-dimensional space size/current moving average speed
  • the depth camera can monitor in real time during the passage of passengers. If someone is passing through the gate channel, the gate channel is controlled to remain open at all times to further prevent the passage of people from holding the gate.
  • step 807 when the passage time is reached, the gate channel is closed.
  • matching passages are allocated to the passers-by and their carry-on luggage, which avoids human error selection and realizes the automation and intelligence of passage; according to real-time calculations
  • the current moving average speed and the length of the space size determine the length of the passage time, so that the passage time of each passer can be different, which improves the humanization of the gate and the intelligence of the control, and more effectively reduces the passage of the passage. Probability of personnel.
  • the images collected by the depth camera can also be used for video surveillance in the gate area and integrated into the overall intelligent system, for example, into the building monitoring system, the toll system of the subway gate, and so on.
  • FIG. 9 is a schematic structural diagram of a control device for a passage gate to which an embodiment of the present application is applied, and the control device may include:
  • the acquisition module 910 is configured to acquire a current image in the entrance direction of the gate channel, where the current image includes at least a two-dimensional image and a depth image;
  • the detection module 920 is configured to perform pedestrian detection on the first target based on the two-dimensional image
  • the verification module 930 is configured to obtain the position of the first target based on the depth image, and when the position of the first target is within a set distance threshold, trigger non-contact verification of the first target, wherein the distance threshold is determined according to the moving speed;
  • the control module 940 is configured to control the opening of the gate channel based on the verification result.
  • the detection module 920 may also be used to extract the second target accompanying the first target based on the two-dimensional image at the same time when the first target is non-contacted verification, and to detect and recognize the second target; If it is detected that the second target is an object and/or a child with a set space size, acquiring three-dimensional space size information of the first target and the second target based on the depth image;
  • the control module 940 may be specifically used to trigger the opening of the gate channel when the verification is passed, and control the length of time that the gate channel remains open according to the three-dimensional space size information.
  • the gate channel is a single channel
  • the detection module 920 can also be used to determine that the second target is a trailing person and trigger an alarm if it is detected that the second target is not an object and/or child with a set space size;
  • the detection module 920 When the detection module 920 is used to obtain the three-dimensional space size information of the first target and the second target based on the depth image, it can be specifically used to take the first target and the second target as a whole, and determine the three-dimensional size of the whole according to the image data of the depth image. Space size information;
  • the control module 940 can be specifically used to divide the length information in the three-dimensional space size information by the moving average speed as the length of time that the gate channel remains open, where the pedestrian moving average speed is the statistical value of the pedestrian movement sample; where ,
  • the distance threshold is set according to the time consumption of all algorithms, the average speed of pedestrians, and the time consumption of motor control.
  • the algorithm time consumption includes one of the time consumption of pedestrian detection and verification or any combination thereof.
  • the gate channel includes more than two single channels
  • the device may also include:
  • the detection module 920 can also be used to extract the second target accompanying the first target based on the two-dimensional image when the position of the first target is at the set distance threshold, and detect and recognize the second target; if the second target is detected If the target is an item and/or child with a set space size, the current movement rate and direction of the first target are calculated according to at least two consecutive depth images, the matching channel is allocated according to the moving direction, and the matching channel’s non-compliance with the first target is triggered.
  • Contact verification at the same time as the non-contact verification of the first target, the second target accompanying the first target is extracted based on the two-dimensional image, and the second target is detected and identified. If the second target is detected as having For items and/or children whose spatial size is set, the three-dimensional spatial size information of the first target and the second target is acquired based on the depth image;
  • the control module 940 may be specifically used to trigger the opening of the gate channel when the verification is passed, and control the length of time that the gate channel remains open according to the three-dimensional space size information and the current movement rate of the first target.
  • the gate channel includes two or more single channels, and the width of each channel is different;
  • the detection module 920 can also be used to extract the second target accompanying the first target based on the two-dimensional image when the position of the first target is at the set distance threshold, and detect and recognize the second target; if the second target is detected If the target is an item and/or child with a set spatial size, the three-dimensional spatial size information of the first target and the second target is acquired based on the depth image, the matching channel is allocated according to the three-dimensional spatial size information, and the matching channel is triggered for the first target.
  • Contact verification Calculate the current movement rate of the first target based on at least two consecutive depth images at the same time during the non-contact verification of the first target;
  • the control module 940 may be specifically used to trigger the opening of the gate channel when the verification is passed, and control the length of time that the gate channel remains open according to the three-dimensional space size information and the current movement rate of the first target.
  • the device may also include:
  • the detection module 920 can also be used to determine that the second target is a trailing person and trigger an alarm if it is detected that the second target is not an object and/or a child with a set space size;
  • the detection module 920 when used to obtain the three-dimensional space size information of the first target and the second target based on the depth image, can be specifically used to take the first target and the second target as a whole, and determine the overall size according to the image data of the depth image.
  • Three-dimensional space size information when used to obtain the three-dimensional space size information of the first target and the second target based on the depth image, can be specifically used to take the first target and the second target as a whole, and determine the overall size according to the image data of the depth image.
  • the control module 940 can be specifically used to divide the length information in the three-dimensional space size information with the current movement rate of the first target as the length of time the gate channel remains open; wherein the distance threshold is time-consuming and pedestrian based on all algorithms
  • the moving average speed, motor control time, and allocation matching channel time-consuming settings are set, where the algorithm time-consuming includes one of pedestrian detection time, verification time-consuming one or any combination thereof, and the pedestrian moving average speed is the statistical value of the pedestrian movement sample.
  • the detection module 920 can be specifically used to calculate the depth information change of the first target in two consecutive frames of depth images, and use the ratio of the depth information change to the time difference between the two consecutive frames of depth images as the current movement rate; The average value of two or more current moving speeds to obtain the current moving average speed of the first target;
  • the control module 940 can be specifically used to divide the length information in the three-dimensional space size information by the current moving average speed of the first target as the length of time the gate channel remains open; where the distance threshold is: algorithm time-consuming, The product of the time-consuming motor system control, the time-consuming allocation and matching channel and the average pedestrian moving speed.
  • the non-contact verification of the first target is triggered by detecting whether the position of the first target is within the distance threshold determined according to the moving rate, so that the verification is performed on the first target relative to the passage from far to near
  • the process is executed at the same time period, which avoids the waiting time in the prior art of stopping in front of the channel gate and waiting for the recognition result before passing, improves the passage efficiency of the channel gate, and achieves the effect of non-inductive passage.
  • the user experience is improved, and the control and judgment accuracy of the gate channel is improved.
  • FIG. 10 is a schematic diagram of a multi-channel gate system to which the control method of the present application is applied.
  • Each channel in the gate system includes a depth camera module for acquiring two-dimensional images and depth information, a verification module for verifying each channel, and image processing for processing image data Module, the system also includes memory and processor, for example, the main control chip MCU, the modules of each channel communicate and control through the main control chip MCU:
  • the main control chip controls the image acquisition of the depth camera module
  • Control the image processing module to perform pedestrian detection on the first target based on the two-dimensional image, and obtain the position of the first target based on the depth image.
  • control the verification module to trigger the detection of the first target
  • the non-contact verification based on the verification result, controls the opening of the gate channel.
  • the modules of each channel can be integrated according to specific design requirements, for example, the depth camera module and the verification module are integrated, or the image processing module and the depth camera module are integrated; the integration of the modules The separation does not affect the realization of its function.
  • the aforementioned processor may be a general-purpose processor, including CPU (Central Processing Unit), NP (Network Processor), etc.; it may also be DSP (Digital Signal Processor), ASIC ( Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array, Field Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array, Field Programmable Gate Array
  • other programmable logic devices discrete gates or transistor logic devices, discrete hardware components.
  • the memory may include RAM (Random Access Memory, random access memory), and may also include NVM (Non-Volatile Memory, volatile memory), such as at least one disk storage.
  • NVM Non-Volatile Memory, volatile memory
  • the memory may also be at least one storage device located far away from the foregoing processor.
  • the gate system of the present application controls gate channels through images, and does not require a complicated infrared beaming system, which is beneficial to cost reduction, facilitates the integration and systemization of modules, and facilitates the dispatch and control of the gate system.
  • the embodiment of the present application also provides a computer-readable storage medium, and a computer program is stored in the computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the position of the first target is acquired based on the depth image, and when the position of the first target is at a set distance threshold, non-contact verification of the first target is triggered, wherein the distance threshold is determined according to the movement rate;
  • the opening of the gate channel is controlled.
  • the embodiment of the present application also provides a computer program product, which is used to execute any of the above-mentioned channel gate control methods at runtime.
  • the computer may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD (Digital Versatile Disc)), or a semiconductor medium (such as an SSD (Solid State Disk)), etc. .
  • the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment description. .

Abstract

A channel gate control method, apparatus and system. The method comprises: collecting current images in the gate channel entrance direction, the current images at least comprising a two-dimensional image and a depth image; performing pedestrian detection on a first target on the basis of the two-dimensional image; acquiring the position of the first target on the basis of the depth image; when the position of the first target is at a set distance threshold, triggering non-contact verification on the first target, wherein the distance threshold is determined according to a movement rate; and controlling opening of the gate channel on the basis of the verification result. Therefore, the waiting time of stopping in front of a channel gate, waiting for the identification result and then passing the gate is saved, the passing efficiency of the channel gate is improved, senseless passing effect is achieved, user experience is improved, and the control and determination accuracy of the gate channel is improved.

Description

一种通道闸机的控制方法、装置及系统Control method, device and system of channel gate
本申请要求于2020年03月11日提交中国专利局、申请号为202010165868.2发明名称为“一种通道闸机的控制方法、系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on March 11, 2020, with an application number of 202010165868.2 and the invention title is "a method and system for controlling access gates", the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本申请涉及安防领域,尤其涉及一种通道闸机的控制方法、装置及系统。This application relates to the field of security, and in particular to a method, device and system for controlling access gates.
背景技术Background technique
目前的通道闸机控制方法中,在对人员身份验证合格后方可放行。无论是何种验证方式,包括且不限于刷卡、指纹、人脸、虹膜、静脉等,在人员的行进过程中都需要人员在闸机前停顿,并作出必要的动作,以人脸授权验证为例,在人员的通行过程中,需要通行人员行至闸机通道站立,待人脸识别认证合格后方可放行,影响了通道闸机的通行效率。In the current channel gate control method, the personnel can only be released after they have passed the identity verification. Regardless of the verification method, including but not limited to swiping card, fingerprint, face, iris, vein, etc., the person needs to stop in front of the gate and take the necessary actions during the travel process of the person. The face authorization verification is For example, during the passage of people, it is necessary for the passers to walk to the gates of the gates to stand, and they can only pass after the facial recognition authentication is qualified, which affects the passage efficiency of the gates.
发明内容Summary of the invention
本申请提供了一种通道闸机的控制方法、装置及系统,以提高通道闸机的通行效率。具体技术方案如下:The present application provides a method, device and system for controlling passage gates, so as to improve the passage efficiency of passage gates. The specific technical solutions are as follows:
第一方面,本申请实施例提供了一种通道闸机的控制方法,该方法包括,In the first aspect, an embodiment of the present application provides a method for controlling an access gate, the method including:
采集闸机通道入口方向上的当前图像,其中,当前图像至少包括二维图像和深度图像;Collect the current image in the entrance direction of the gate channel, where the current image includes at least a two-dimensional image and a depth image;
基于二维图像对第一目标进行行人检测;Perform pedestrian detection on the first target based on the two-dimensional image;
基于深度图像获取第一目标的位置,当第一目标的位置在设定的距离阈值时,触发对第一目标的非接触式验证,其中,距离阈值根据移动速率确定;The position of the first target is acquired based on the depth image, and when the position of the first target is at a set distance threshold, non-contact verification of the first target is triggered, wherein the distance threshold is determined according to the movement rate;
基于验证结果,控制闸机通道的开启。Based on the verification result, the opening of the gate channel is controlled.
第二方面,本申请实施例提供了一种通道闸机的控制装置,该装置包括:In the second aspect, an embodiment of the present application provides a control device for a passage gate, the device including:
采集模块,用于采集闸机通道入口方向上的当前图像,其中,当前图像至少包括二维图像和深度图像;The acquisition module is used to acquire the current image in the entrance direction of the gate channel, where the current image includes at least a two-dimensional image and a depth image;
检测模块,用于基于二维图像对第一目标进行行人检测;The detection module is used to perform pedestrian detection on the first target based on the two-dimensional image;
验证模块,用于基于深度图像获取第一目标的位置,当第一目标的位置在设定的距离阈值时,触发对第一目标的非接触式验证,其中,距离阈值根据移动速率确定;The verification module is configured to obtain the position of the first target based on the depth image, and when the position of the first target is at a set distance threshold, trigger non-contact verification of the first target, wherein the distance threshold is determined according to the moving speed;
控制模块,用于基于验证结果,控制闸机通道的开启。The control module is used to control the opening of the gate channel based on the verification result.
第三方面,本申请实施例提供了一种闸机系统,包括验证模组和图像数据处理模组,该系统还包括存储器和处理器,In a third aspect, an embodiment of the present application provides a gate system, including a verification module and an image data processing module, the system also includes a memory and a processor,
存储器存储有可被处理器执行的指令,指令被处理器执行,以使处理器控制验证模组和图像数据处理模组执行如本申请实施例第一方面所提供的方法。The memory stores instructions that can be executed by the processor, and the instructions are executed by the processor so that the processor controls the verification module and the image data processing module to execute the method provided in the first aspect of the embodiment of the present application.
第四方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时,实现本申请实施例第一方面所提供的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium in which a computer program is stored. When the computer program is executed by a processor, the method provided in the first aspect of the embodiment of the present application is implemented.
第五方面,本申请实施例提供了一种计算机程序产品,用于在运行时执行:本申请实施例第一方面所提供的方法。In the fifth aspect, the embodiment of the present application provides a computer program product for executing at runtime: the method provided in the first aspect of the embodiment of the present application.
应用本申请实施例,通过检测第一目标的位置是否在根据移动速率所确定的距离阈值,来触发对第一目标的非接触式验证,使得验证在第一目标相对通道由远及近的行进过程中的同一时间段被执行,避免了现有技术中在通道闸机前停顿、等待识别结果后再通行的等待时间,提高了通道闸机的通行效率,达到了无感通行的效果,提升了用户体验,提高了闸机通道的控制和判断精度。Applying the embodiment of the application, the non-contact verification of the first target is triggered by detecting whether the position of the first target is within the distance threshold determined according to the moving rate, so that the verification is performed on the first target relative to the passage from far to near The process is executed at the same time period, which avoids the waiting time in the prior art of stopping in front of the channel gate and waiting for the recognition result before passing, improves the passage efficiency of the channel gate, and achieves the effect of non-inductive passage. The user experience is improved, and the control and judgment accuracy of the gate channel is improved.
附图说明Description of the drawings
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application and the technical solutions of the prior art more clearly, the following briefly introduces the drawings that need to be used in the embodiments and the prior art. Obviously, the drawings in the following description are merely the present invention. For some of the embodiments of the application, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为本申请一实施例的深度相机设备安装位置的示意图。FIG. 1 is a schematic diagram of the installation position of a depth camera device according to an embodiment of the application.
图2为本申请另一实施例的深度相机设备安装位置的示意图。FIG. 2 is a schematic diagram of the installation position of a depth camera device according to another embodiment of the application.
图3为本申请实施例的安装有深度相机模组的单通道闸机控制方法的流程示意图。FIG. 3 is a schematic flowchart of a single-channel gate control method equipped with a depth camera module according to an embodiment of the application.
图4为本申请实施例的闸机与距离阈值的位置关系的示意图。FIG. 4 is a schematic diagram of the positional relationship between the gate and the distance threshold according to an embodiment of the application.
图5为本申请一实施例的安装有深度相机模组的多通道闸机的空间示意图。FIG. 5 is a schematic diagram of the space of a multi-channel gate equipped with a depth camera module according to an embodiment of the application.
图6为本申请一实施例的安装有深度相机模组的多通道闸机控制方法的 流程示意图。Fig. 6 is a schematic flow chart of a method for controlling a multi-channel gate equipped with a depth camera module according to an embodiment of the application.
图7为本申请另一实施例的安装有深度相机模组的多通道闸机的空间示意图。FIG. 7 is a schematic diagram of the space of a multi-channel gate equipped with a depth camera module according to another embodiment of the application.
图8为本申请另一实施例的安装有深度相机模组的多通道闸机控制方法的流程示意图。FIG. 8 is a schematic flowchart of a method for controlling a multi-channel gate equipped with a depth camera module according to another embodiment of the application.
图9为本申请实施例的通道闸机的控制装置的结构示意图。Fig. 9 is a schematic structural diagram of a control device for a passage gate according to an embodiment of the application.
图10为本申请实施例的多通道闸机系统的结构示意图。Fig. 10 is a schematic structural diagram of a multi-channel gate system according to an embodiment of the application.
具体实施方式Detailed ways
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请实施例通过获取的二维图像信息检测到第一目标为行人后,通过获取第一目标的三维空间信息,判断第一目标是否位于距离闸机入口设定阈值内,如果是,则触发对第一目标的非接触式验证,进一步地,通过获取的二维图像信息,对与第一目标随行的第二目标进行识别,当识别出第二目标为大件行李和/或孩子时,基于所获取的三维空间信息,确定第一目标和第二目标的三维空间尺寸,根据三维空间尺寸控制闸机通道的通行时长。After the embodiment of the application detects that the first target is a pedestrian through the acquired two-dimensional image information, it determines whether the first target is within a set threshold from the gate entrance by acquiring the three-dimensional spatial information of the first target, and if so, triggers The non-contact verification of the first target, further, through the acquired two-dimensional image information, to identify the second target accompanying the first target, when the second target is identified as large luggage and/or children, Based on the acquired three-dimensional space information, the three-dimensional space size of the first target and the second target are determined, and the passage time of the gate passage is controlled according to the three-dimensional space size.
对于多个通道,通过获取距离闸机入口设定阈值内第一目标的三维空间信息,基于第一目标的三维空间信息计算出第一目标的速率和移动方向,根据第一目标的速率和移动方向,预测第一目标待进入的闸机通道,触发该闸机通道对第一目标进行验证。For multiple channels, by acquiring the three-dimensional space information of the first target within a threshold set from the gate entrance, the velocity and moving direction of the first target are calculated based on the three-dimensional space information of the first target, and according to the velocity and movement of the first target Direction, predict the gate channel to be entered by the first target, and trigger the gate channel to verify the first target.
为了采集目标的二维图像和三维空间信息,可以采用深度相机模组。实施方式之一,采用双目立体视觉设备,即,至少有两个VIS(Visual,可见光)摄像头;实施方式之二,采用结构光机器视觉设备,即至少有一个投射器、一个NIR(Near Infrared,近红外)摄像头和一个VIS摄像头;实施方式之三,采用ToF(Time of Flight,飞行时间)机器视觉设备方案,即至少有一个ToF摄像头和一个VIS摄像头。In order to collect two-dimensional images and three-dimensional spatial information of the target, a depth camera module can be used. One of the implementation manners uses binocular stereo vision equipment, that is, at least two VIS (Visual, visible light) cameras; the second implementation manner, uses structured light machine vision equipment, that is, at least one projector, one NIR (Near Infrared) , Near-infrared) camera and a VIS camera; the third implementation mode uses a ToF (Time of Flight) machine vision device solution, that is, there is at least one ToF camera and one VIS camera.
此外,从成本、系统鲁棒性等因素综合考虑也可以增加摄像头数量。例如,实施方式一中也可以增加NIR摄像头,以满足极低照度条件下的生物特 征识别;实施方式二中可以增加一个NIR摄像头以增加测量精度和准确性,相应的也可以考虑增加投射器的数量。具体可依据实际场景和用户需求灵活设计。In addition, considering factors such as cost and system robustness can also increase the number of cameras. For example, in the first embodiment, a NIR camera can also be added to meet the needs of biometric identification under extremely low illumination conditions; in the second embodiment, a NIR camera can be added to increase the measurement accuracy and accuracy. Correspondingly, you can also consider adding a projector. quantity. It can be designed flexibly according to actual scenarios and user needs.
深度相机模组中的VIS摄像头采集的二维图像可直接用于行人检测、生物特征识别等功能,也可以单独配置其他成像模组完成。The two-dimensional images collected by the VIS camera in the depth camera module can be directly used for pedestrian detection, biometric recognition and other functions, or it can be completed by separately configuring other imaging modules.
参见图1所示,图1为本申请实施例的深度相机设备安装位置的一种示意图。在该示例中,深度相机安装于沿通道入口延伸、闸机本体末端,监控的视场角覆盖该通道。Referring to FIG. 1, FIG. 1 is a schematic diagram of an installation position of a depth camera device according to an embodiment of the application. In this example, a depth camera is installed at the end of the gate body extending along the entrance of the passage, and the monitored field of view covers the passage.
参见图2所示,图2为本申请实施例的深度相机设备安装的另一种示意图。在该示例中,深度相机与闸机本体分离,例如,安装于闸机的上方区域。该安装方案更适合室内,或者闸机上方有便于深度相机等设备固定的场合,能够具有更好的视场角。图2中闸机左侧靠近入口方向的设备用于和行人交互,显示人脸图像等信息。Refer to FIG. 2, which is another schematic diagram of the installation of the depth camera device according to the embodiment of the application. In this example, the depth camera is separated from the gate body, for example, is installed in the upper area of the gate. This installation scheme is more suitable for indoors or occasions where the depth camera and other equipment are conveniently fixed above the gate, and can have a better field of view. The equipment on the left side of the gate near the entrance in Figure 2 is used to interact with pedestrians and display information such as facial images.
实施例一Example one
参见图3所示,图3为本申请实施例的安装有深度相机模组的单通道闸机控制的一种流程示意图。Referring to FIG. 3, FIG. 3 is a schematic diagram of a flow chart of a single-channel gate control installed with a depth camera module according to an embodiment of the application.
步骤301,控制深度相机设备采集其视场角内的当前图像,以获取二维图像和三维空间信息,即深度图。Step 301: Control the depth camera device to collect the current image within its field of view to obtain two-dimensional image and three-dimensional spatial information, that is, a depth map.
步骤302,基于二维图像进行第一目标检测,判断是否存在通行人员,即,对第一目标进行行人检测,如果是,则执行步骤303,否则,返回步骤302。Step 302: Perform first target detection based on the two-dimensional image to determine whether there is a pedestrian, that is, perform pedestrian detection on the first target, if yes, perform step 303, otherwise, return to step 302.
在该步骤中,可以先基于步态来检测是否有行人,再进一步对检测到的行人进行第一目标检测,这样,可以先通过步态识别缩小目标的搜索范围。In this step, it is possible to first detect whether there is a pedestrian based on the gait, and then further perform the first target detection on the detected pedestrian. In this way, the search range of the target can be narrowed by the gait recognition first.
步骤303,基于深度图获取第一目标的当前位置,判断当前位置是否在预设的距离阈值内,如果是,则基于二维图像触发非接触式验证进程,例如,针对二维图像触发基于人脸识别的验证进程,否则,则保持当前状态。Step 303: Acquire the current position of the first target based on the depth map, and determine whether the current position is within a preset distance threshold, and if so, trigger a non-contact verification process based on the two-dimensional image, for example, triggering a non-contact verification process based on the two-dimensional image. The verification process of face recognition, otherwise, keep the current state.
在该步骤中,可以以深度相机所在位置作为世界坐标系的原点,基于深度图计算第一目标在世界坐标系下的三维空间信息。In this step, the position of the depth camera can be used as the origin of the world coordinate system, and the three-dimensional space information of the first target in the world coordinate system can be calculated based on the depth map.
为了使得通行人员无感地通过闸机而不必等待验证,本实施例在第一目标到达距离阈值时唤醒当前通道闸机,触发验证进程,即,在第一目标靠近闸机通道入口时完成开门动作。具体可以由后台主控芯片唤醒当前通道闸机,并由主控芯片触发验证模组执行验证进程,验证模组可以是闸机内部安装的 模块,也可以是后台的验证服务器。In order to make the passers-by pass through the gate without waiting for verification, this embodiment wakes up the current channel gate when the first target reaches the distance threshold to trigger the verification process, that is, completes the opening of the gate when the first target is close to the gate passage entrance action. Specifically, the background main control chip can wake up the current channel gate, and the main control chip triggers the verification module to execute the verification process. The verification module can be a module installed inside the gate or a background verification server.
参见图4所示,图4为本申请实施例的闸机与距离阈值的位置关系的一种示意图。其中,距离阈值根据算法耗时、行人移动平均速率、电机控制耗时设定,算法耗时包括行人检测耗时、验证耗时之一或其任意组合,具体地,距离阈值为行人移动平均速率与算法耗时的乘积结果、电机控制耗时之和,用数学式表达为:Refer to FIG. 4, which is a schematic diagram of the positional relationship between the gate and the distance threshold according to the embodiment of the application. Among them, the distance threshold is set according to the algorithm time, pedestrian moving average speed, and motor control time. The algorithm time includes one of pedestrian detection time, verification time, or any combination thereof. Specifically, the distance threshold is the pedestrian moving average speed The result of multiplying with the time-consuming algorithm and the sum of the time-consuming motor control can be expressed mathematically as:
距离阈值=行人移动平均速率*(算法耗时+电机系统控制耗时)Distance threshold = average pedestrian moving speed* (algorithm time-consuming + motor system control time-consuming)
其中,行人移动平均速率根据统计数据得到。Among them, the pedestrian moving average speed is obtained based on statistical data.
行人检测的适用距离一般比生物特征识别的适用距离要远,因此,先进行行人检测,如果检测到是行人,再在该行人向闸机通道入口行进到一定区域内时,进行生物特征的识别认证,无需通行人员在闸机入口处停顿再进行识别。The applicable distance of pedestrian detection is generally longer than the applicable distance of biometric identification. Therefore, first perform pedestrian detection. If a pedestrian is detected, then perform biometric identification when the pedestrian travels to the gate of the gate and enters a certain area. Authentication, no need for passers-by to stop at the gate entrance and then identify.
步骤304,基于当前图像提取与第一目标随行的第二目标,根据二维图像对第二目标进行检测识别,如果检测到第二目标为具有一定空间大小的物品和/或小孩,则将第一目标和第二目标作为一个整体,基于深度图获取第一目标和第二目标整体的三维空间尺寸信息,然后执行步骤305,否则,判定有尾随人员,触发报警。Step 304: Extract a second target accompanying the first target based on the current image, and detect and recognize the second target according to the two-dimensional image. If the second target is detected as an object and/or child with a certain spatial size, the The first target and the second target are taken as a whole, and the three-dimensional space size information of the first target and the second target as a whole is obtained based on the depth map, and then step 305 is executed. Otherwise, it is determined that there is a trailing person and an alarm is triggered.
在对第二目标进行检测识别时,可以基于深度学习的方法,利用预先训练的检测识别模型,识别出第二目标的类别和大小,如果识别出第二目标的空间大小满足设定的空间大小、且第二目标为物品和/或行人,则可确认检测到第二目标为具有一定空间大小的物品和/或小孩。When detecting and recognizing the second target, you can use the pre-trained detection and recognition model based on the deep learning method to identify the category and size of the second target. If the space size of the second target is recognized to meet the set space size , And the second target is an object and/or a pedestrian, it can be confirmed that the detected second target is an object and/or child with a certain size of space.
步骤305,当验证进程的验证结果是可以通行时,则触发通道开启,并根据步骤304确定的三维空间尺寸信息,确定通道保持开启状态的时间长度,即通行时间长度。In step 305, when the verification result of the verification process is passable, the channel is triggered to open, and according to the three-dimensional space size information determined in step 304, the length of time that the channel remains open, that is, the length of pass time is determined.
在该步骤中,可以根据三维空间尺寸中的长度信息(深度信息),结合行人移动平均速率,确定通行时间长度,例如,通行时间长度为长度信息与行人移动平均速率的商,用数学式表达为:In this step, the length of the travel time can be determined according to the length information (depth information) in the three-dimensional space size and the pedestrian moving average speed. For example, the travel time length is the quotient of the length information and the pedestrian moving average speed, expressed in a mathematical formula for:
通行时间长度=三维空间尺寸中的长度信息/行人移动平均速率Travel time length = length information in the three-dimensional space size / pedestrian moving average speed
为了对当前通道进行监控,在通行人员通行期间,深度相机可实时监控,如果有人员正在通过闸机通道,则控制闸机通道始终保持开启状态,进一步防止通道夹持通行人员的发生。In order to monitor the current passage, the depth camera can monitor in real time during the passage of passengers. If someone is passing through the gate channel, the gate channel is controlled to remain open at all times to further prevent the passage of people from holding the gate.
步骤306,当到达通行时间长度后,闸机通道关闭。Step 306: When the passage time is reached, the gate channel is closed.
本申请实施例在通行人员由远及近的过程中,通过行人检测缩小搜索范围,再使用生物特征识别进行权限确认,充分地利用了通行人员的行进时间,避免了通行人员的等待时间,提高了通行效率,实现了无感通行;根据通行人员的三维空间尺寸所确定的通行时间长度,既有效降低了通道夹持通行人员的发生,又有效地阻止了尾随人员的通行,提升了通信人员的用户体。In the process of passing personnel from far to near, the embodiment of the application narrows the search range through pedestrian detection, and then uses biometric identification to confirm the authority, which makes full use of the travel time of the passer, avoids the waiting time of the passer, and improves The passage efficiency is realized, and the non-inductive passage is realized; the passage time length determined according to the three-dimensional space size of the passer effectively reduces the occurrence of the passage of the passer The user body.
实施例二Example two
参见图5所示,图5为本申请实施例的安装有深度相机模组的多通道闸机的一种示意图,在每个通道分别安装有一深度相机设备,每个深度相机设备的视场角相同。深度相机设备的安装位置、采集图像的角度可以相同。Referring to Figure 5, Figure 5 is a schematic diagram of a multi-channel gate equipped with a depth camera module according to an embodiment of the application. A depth camera device is installed in each channel, and the field of view of each depth camera device is same. The installation position of the depth camera device and the angle at which the image is collected can be the same.
参见图6所示,图6为本申请实施例二安装有深度相机模组的多通道闸机控制的一种流程示意图。Refer to FIG. 6, which is a schematic diagram of a process flow of controlling a multi-channel gate with a depth camera module installed in the second embodiment of the application.
步骤601,控制各个深度相机设备采集其视场角内的当前图像,以获取二维图像和三维空间信息,即深度图。Step 601: Control each depth camera device to collect the current image within its field of view, so as to obtain a two-dimensional image and three-dimensional spatial information, that is, a depth map.
对于每个当前图像,执行如下步骤:For each current image, perform the following steps:
步骤602,基于二维图像进行第一目标检测,判断是否存在通行人员,如果是,则执行步骤603,否则,返回步骤602。Step 602: Perform first target detection based on the two-dimensional image, and determine whether there is a passer-by, if yes, perform step 603, otherwise, return to step 602.
步骤603,基于深度图获取第一目标的当前位置,判断当前位置是否在预设的距离阈值内,如果是,则根据连续至少两帧深度图像计算第一目标的当前移动速率和移动方向;否则,则保持当前闸机状态,返回步骤603。Step 603: Obtain the current position of the first target based on the depth map, and determine whether the current position is within a preset distance threshold, and if so, calculate the current movement rate and direction of the first target according to at least two consecutive depth images; otherwise, , The current gate status is maintained, and step 603 is returned.
在该步骤中,由于后续将为第一目标匹配通道,故而距离阈值还需要考虑通道匹配的耗时,具体为,距离阈值为算法耗时、电机控制耗时、通道匹配的耗时之和与行人移动平均速率的乘积结果,用数学式表达为:In this step, since the channel will be matched to the first target later, the distance threshold also needs to consider the time-consuming channel matching. Specifically, the distance threshold is the sum of the algorithm time-consuming, motor control time-consuming, and channel-matching time-consuming The result of the product of the pedestrian moving average speed is mathematically expressed as:
距离阈值=当前移动平均速率*(算法耗时+电机系统控制耗时+通道匹配耗时)Distance threshold = current moving average speed* (algorithm time-consuming + motor system control time-consuming + channel matching time-consuming)
此外,通过连续两帧深度图像中第一目标的深度信息变化,计算出当前移动速率和移动方向,数学表示为:In addition, the current moving rate and moving direction are calculated by the change of the depth information of the first target in two consecutive depth images, which is expressed mathematically as:
v=(d2-d1)/tv=(d2-d1)/t
其中,d2、d1为第一目标在连续两帧深度图像中的深度值,t为该连续两帧深度图像之间的时间差,v为当前移动速率;移动方向根据连续两帧深度值的变化确定。Among them, d2 and d1 are the depth values of the first target in two consecutive depth images, t is the time difference between the two consecutive depth images, and v is the current moving rate; the moving direction is determined according to the changes in the depth values of the two consecutive frames .
为了提高当前移动速率的准确性,可计算多个速率值,然后求得当前移 动速率的平均值。In order to improve the accuracy of the current moving speed, multiple speed values can be calculated, and then the average value of the current moving speed can be obtained.
步骤604,根据第一目标的当前移动方向分配匹配通道,并触发该匹配通道的验证进程。Step 604: Assign a matching channel according to the current moving direction of the first target, and trigger the verification process of the matching channel.
步骤605,基于当前图像提取与第一目标随行的第二目标,根据二维图像对第二目标进行检测识别,如果检测到第二目标为具有一定空间大小的物品和/或小孩,则将第一目标和第二目标作为一个整体,基于深度图获取第一目标和第二目标整体的三维空间尺寸信息,然后执行步骤606,否则,判定有尾随人员,触发报警。Step 605: Extract a second target accompanying the first target based on the current image, and detect and recognize the second target according to the two-dimensional image. If the second target is detected as an object and/or child with a certain space size, the The first target and the second target are taken as a whole, and the three-dimensional space size information of the first target and the second target as a whole is obtained based on the depth map, and then step 606 is executed. Otherwise, it is determined that there is a trailing person and an alarm is triggered.
步骤606,当验证进程的验证结果是可以通行时,则触发通道开启,并根据步骤605确定的三维空间尺寸信息以及当前移动平均速率,确定通道保持开启状态的时间长度,即通行时间长度。Step 606: When the verification result of the verification process is passable, trigger the channel to open, and determine the length of time that the channel remains open according to the three-dimensional space size information determined in step 605 and the current moving average speed, that is, the length of travel time.
在该步骤中,可以根据三维空间尺寸中的长度信息和当前移动平均速率,确定通行时间长度,例如,通行时间长度为长度信息与行人移动平均速率的商,用数学式表达为:In this step, the travel time length can be determined according to the length information in the three-dimensional space size and the current moving average speed. For example, the travel time length is the quotient of the length information and the pedestrian moving average speed, which is expressed mathematically as:
通行时间长度=长度信息/当前移动平均速率Travel time length = length information / current moving average speed
为了对当前通道进行监控,在通行人员通行期间,深度相机可实时监控,如果有人员正在通过闸机通道,则控制闸机通道始终保持开启状态,进一步防止通道夹持通行人员的发生。In order to monitor the current passage, the depth camera can monitor in real time during the passage of passengers. If someone is passing through the gate channel, the gate channel is controlled to remain open at all times to further prevent the passage of people from holding the gate.
步骤607,当到达通行时间长度后,闸机通道关闭。Step 607: When the passage time is reached, the gate channel is closed.
在本实施例中,通过深度图像预测出移动方向,根据移动方向分配匹配通道,进一步地提高了无感通行的用户体验;根据实时计算的当前移动平均速率来确定通行时间长度,使得每个通行人员的通行时间可以不同,提高了闸机的人性化,更有效地降低了通道夹持通行人员的概率。In this embodiment, the moving direction is predicted by the depth image, and the matching channel is allocated according to the moving direction, which further improves the user experience of non-inductive traffic; the current moving average speed calculated in real time is used to determine the length of the traffic time, so that each traffic The passing time of the personnel can be different, which improves the humanization of the turnstile and more effectively reduces the probability of the passage holding the passing personnel.
实施例三Example three
参见图7所示,图7为本申请实施例的安装有深度相机模组的多通道闸机的一种示意图,其中,多通道中至少有一通道的宽度大于其它通道,以便于携带大件行李的通行人员通行。Refer to FIG. 7, which is a schematic diagram of a multi-channel gate equipped with a depth camera module according to an embodiment of the present application, wherein at least one of the multi-channels has a width larger than other channels, so as to facilitate the carrying of large luggage Of passers-by.
参见图8所示,图8为实施例三安装有深度相机模组的多通道闸机控制的一种流程的示意图。Referring to FIG. 8, FIG. 8 is a schematic diagram of a process of controlling a multi-channel gate with a depth camera module installed in the third embodiment.
步骤801,控制各个深度相机设备采集其视场角内的当前图像,以获取二维图像和三维空间信息,即深度图。Step 801: Control each depth camera device to collect the current image within its field of view, so as to obtain a two-dimensional image and three-dimensional spatial information, that is, a depth map.
对于每个当前图像,执行如下步骤:For each current image, perform the following steps:
步骤802,基于二维图像进行第一目标检测,判断是否存在通行人员,如果是,则执行步骤803,否则,返回步骤802。Step 802: Perform a first target detection based on the two-dimensional image to determine whether there is a passer-by. If yes, perform step 803; otherwise, return to step 802.
步骤803,基于深度图获取第一目标的当前位置,判断当前位置是否在预设的距离阈值内,如果是,则执行步骤804,否则,则保持当前闸机状态,返回步骤803。Step 803: Obtain the current position of the first target based on the depth map, and determine whether the current position is within a preset distance threshold. If so, perform step 804; otherwise, maintain the current gate state and return to step 803.
在该步骤中,距离阈值的确定与步骤603中的相同。In this step, the determination of the distance threshold is the same as in step 603.
步骤804,基于当前图像提取与第一目标随行的第二目标,根据二维图像对第二目标进行检测识别,如果检测到第二目标为具有一定空间大小的物品和/或小孩,则将第一目标和第二目标作为一个整体,基于深度图获取第一目标和第二目标整体的三维空间尺寸信息,根据三维空间尺寸分配匹配的通道,并触发匹配通道验证进程;否则,判定有尾随人员,触发报警。Step 804: Extract the second target accompanying the first target based on the current image, and detect and recognize the second target according to the two-dimensional image. If the second target is detected as an object and/or child with a certain space size, the The first target and the second target as a whole, obtain the three-dimensional space size information of the first target and the second target based on the depth map, allocate the matching channel according to the three-dimensional space size, and trigger the matching channel verification process; otherwise, it is determined that there is a trailing person To trigger an alarm.
在该步骤中,可以根据三维空间尺寸的最大宽度分配匹配的通道。In this step, matching channels can be allocated according to the maximum width of the three-dimensional space size.
步骤805,根据连续至少两深度图像帧计算第一目标的当前移动速率。Step 805: Calculate the current movement rate of the first target according to at least two consecutive depth image frames.
在该步骤中,通过连续两深度图像帧中第一目标的深度信息变化,计算出当前移动速率,数学表示为:In this step, the current movement rate is calculated by changing the depth information of the first target in two consecutive depth image frames, which is expressed mathematically as:
v=(d2-d1)/tv=(d2-d1)/t
其中,d2、d1为第一目标连续两帧深度值,t为该连续两帧之间的时间差,v为当前移动速率。Among them, d2 and d1 are the depth values of the first target in two consecutive frames, t is the time difference between the two consecutive frames, and v is the current moving rate.
为了提高当前移动速率的准确性,可计算多个速率值,然后求得当前移动速率的平均值。In order to improve the accuracy of the current moving speed, multiple speed values can be calculated, and then the average value of the current moving speed can be obtained.
步骤806,当验证进程的验证结果是可以通行时,则触发通道开启,并根据确定的三维空间尺寸信息以及当前移动平均速率,确定通道保持开启状态的时间长度,即通行时间长度。In step 806, when the verification result of the verification process is passable, the channel is triggered to open, and according to the determined three-dimensional space size information and the current moving average rate, the length of time that the channel remains open is determined, that is, the length of travel time.
在该步骤中,可以根据三维空间尺寸中的长度信息(深度信息)和当前移动平均速率,确定通行时间长度,例如,通行时间长度为长度信息与行人移动平均速率的商,用数学式表达为:In this step, the travel time length can be determined according to the length information (depth information) in the three-dimensional space size and the current moving average speed. For example, the travel time length is the quotient of the length information and the pedestrian moving average speed, which is expressed mathematically as :
通行时间长度=三维空间尺寸中的长度信息/当前移动平均速率Travel time length = length information in the three-dimensional space size/current moving average speed
为了对当前通道进行监控,在通行人员通行期间,深度相机可实时监控,如果有人员正在通过闸机通道,则控制闸机通道始终保持开启状态,进一步防止通道夹持通行人员的发生。In order to monitor the current passage, the depth camera can monitor in real time during the passage of passengers. If someone is passing through the gate channel, the gate channel is controlled to remain open at all times to further prevent the passage of people from holding the gate.
步骤807,当到达通行时间长度后,闸机通道关闭。In step 807, when the passage time is reached, the gate channel is closed.
在本实施例中,按照第一目标和第二目标整体的空间尺寸为通行人员以及其随身行李分配匹配的通行通道,避免了人为的错误选择,实现了通行的自动化和智能化;根据实时计算的当前移动平均速率、以及空间尺寸的长度来确定通行时间长度,使得每个通行人员的通行时间可以不同,提高了闸机的人性化和控制的智能化,更有效地降低了通道夹持通行人员的概率。In this embodiment, according to the overall space size of the first target and the second target, matching passages are allocated to the passers-by and their carry-on luggage, which avoids human error selection and realizes the automation and intelligence of passage; according to real-time calculations The current moving average speed and the length of the space size determine the length of the passage time, so that the passage time of each passer can be different, which improves the humanization of the gate and the intelligence of the control, and more effectively reduces the passage of the passage. Probability of personnel.
上述实施例中,深度相机所采集的图像还可用于闸机区域的视频监控,并融入整体的智能体系中,例如,融入楼宇的监控系统、地铁闸机的收费系统等。In the above embodiment, the images collected by the depth camera can also be used for video surveillance in the gate area and integrated into the overall intelligent system, for example, into the building monitoring system, the toll system of the subway gate, and so on.
参见图9所示,图9为应用本申请实施例的一种通道闸机的控制装置的结构示意图,该控制装置可以包括:As shown in FIG. 9, FIG. 9 is a schematic structural diagram of a control device for a passage gate to which an embodiment of the present application is applied, and the control device may include:
采集模块910,用于采集闸机通道入口方向上的当前图像,其中,当前图像至少包括二维图像和深度图像;The acquisition module 910 is configured to acquire a current image in the entrance direction of the gate channel, where the current image includes at least a two-dimensional image and a depth image;
检测模块920,用于基于二维图像对第一目标进行行人检测;The detection module 920 is configured to perform pedestrian detection on the first target based on the two-dimensional image;
验证模块930,用于基于深度图像获取第一目标的位置,当第一目标的位置在设定的距离阈值时,触发对第一目标的非接触式验证,其中,距离阈值根据移动速率确定;The verification module 930 is configured to obtain the position of the first target based on the depth image, and when the position of the first target is within a set distance threshold, trigger non-contact verification of the first target, wherein the distance threshold is determined according to the moving speed;
控制模块940,用于基于验证结果,控制闸机通道的开启。The control module 940 is configured to control the opening of the gate channel based on the verification result.
可选的,检测模块920,还可以用于在对第一目标进行非接触式验证的同一时间内,基于二维图像提取与第一目标随行的第二目标,对第二目标进行检测识别;如果检测到第二目标为具有设定空间尺寸的物品和/或小孩,则基于深度图像获取第一目标和第二目标的三维空间尺寸信息;Optionally, the detection module 920 may also be used to extract the second target accompanying the first target based on the two-dimensional image at the same time when the first target is non-contacted verification, and to detect and recognize the second target; If it is detected that the second target is an object and/or a child with a set space size, acquiring three-dimensional space size information of the first target and the second target based on the depth image;
控制模块940,具体可以用于当验证通过时,触发闸机通道开启,并根据三维空间尺寸信息控制闸机通道保持开启的时长。The control module 940 may be specifically used to trigger the opening of the gate channel when the verification is passed, and control the length of time that the gate channel remains open according to the three-dimensional space size information.
可选的,闸机通道为单通道;Optionally, the gate channel is a single channel;
检测模块920,还可以用于如果检测到第二目标不是具有设定空间尺寸的物品和/或小孩,则判定第二目标为尾随人员,触发报警;The detection module 920 can also be used to determine that the second target is a trailing person and trigger an alarm if it is detected that the second target is not an object and/or child with a set space size;
检测模块920在用于基于深度图像获取第一目标和第二目标的三维空间尺寸信息时,具体可以用于将第一目标和第二目标作为整体,根据深度图像的图像数据确定该整体的三维空间尺寸信息;When the detection module 920 is used to obtain the three-dimensional space size information of the first target and the second target based on the depth image, it can be specifically used to take the first target and the second target as a whole, and determine the three-dimensional size of the whole according to the image data of the depth image. Space size information;
控制模块940,具体可以用于将三维空间尺寸信息中的长度信息与移动平 均速率相除的结果,作为闸机通道保持开启的时长,其中,行人移动平均速率为行人移动样本的统计值;其中,距离阈值根据所有算法耗时、行人移动平均速率、电机控制耗时设定,算法耗时包括行人检测耗时、验证耗时之一或其任意组合。The control module 940 can be specifically used to divide the length information in the three-dimensional space size information by the moving average speed as the length of time that the gate channel remains open, where the pedestrian moving average speed is the statistical value of the pedestrian movement sample; where , The distance threshold is set according to the time consumption of all algorithms, the average speed of pedestrians, and the time consumption of motor control. The algorithm time consumption includes one of the time consumption of pedestrian detection and verification or any combination thereof.
可选的,闸机通道包括两个以上单通道;Optionally, the gate channel includes more than two single channels;
该装置还可以包括:The device may also include:
检测模块920,还可以用于当第一目标的位置在设定的距离阈值时,基于二维图像提取与第一目标随行的第二目标,对第二目标进行检测识别;如果检测到第二目标为具有设定空间尺寸的物品和/或小孩,则根据连续至少两帧深度图像计算第一目标的当前移动速率和移动方向,根据移动方向分配匹配通道,触发匹配通道对第一目标的非接触式验证;在对第一目标进行非接触式验证的同一时间内,基于二维图像提取与第一目标随行的第二目标,对第二目标进行检测识别,如果检测到第二目标为具有设定空间尺寸的物品和/或小孩,则基于深度图像获取第一目标和第二目标的三维空间尺寸信息;The detection module 920 can also be used to extract the second target accompanying the first target based on the two-dimensional image when the position of the first target is at the set distance threshold, and detect and recognize the second target; if the second target is detected If the target is an item and/or child with a set space size, the current movement rate and direction of the first target are calculated according to at least two consecutive depth images, the matching channel is allocated according to the moving direction, and the matching channel’s non-compliance with the first target is triggered. Contact verification; at the same time as the non-contact verification of the first target, the second target accompanying the first target is extracted based on the two-dimensional image, and the second target is detected and identified. If the second target is detected as having For items and/or children whose spatial size is set, the three-dimensional spatial size information of the first target and the second target is acquired based on the depth image;
控制模块940,具体可以用于当验证通过时,触发闸机通道开启,并根据三维空间尺寸信息和第一目标的当前移动速率,控制闸机通道保持开启的时长。The control module 940 may be specifically used to trigger the opening of the gate channel when the verification is passed, and control the length of time that the gate channel remains open according to the three-dimensional space size information and the current movement rate of the first target.
可选的,闸机通道包括两个以上单通道,各通道的宽度不相同;Optionally, the gate channel includes two or more single channels, and the width of each channel is different;
检测模块920,还可以用于当第一目标的位置在设定的距离阈值时,基于二维图像提取与第一目标随行的第二目标,对第二目标进行检测识别;如果检测到第二目标为具有设定空间尺寸的物品和/或小孩,则基于深度图像获取第一目标和第二目标的三维空间尺寸信息,根据三维空间尺寸信息分配匹配通道,触发匹配通道对第一目标的非接触式验证;在对第一目标进行非接触式验证的同一时间内,根据连续至少两帧深度图像计算第一目标的当前移动速率;The detection module 920 can also be used to extract the second target accompanying the first target based on the two-dimensional image when the position of the first target is at the set distance threshold, and detect and recognize the second target; if the second target is detected If the target is an item and/or child with a set spatial size, the three-dimensional spatial size information of the first target and the second target is acquired based on the depth image, the matching channel is allocated according to the three-dimensional spatial size information, and the matching channel is triggered for the first target. Contact verification: Calculate the current movement rate of the first target based on at least two consecutive depth images at the same time during the non-contact verification of the first target;
控制模块940,具体可以用于当验证通过时,触发闸机通道开启,并根据三维空间尺寸信息和第一目标的当前移动速率,控制闸机通道保持开启的时长。The control module 940 may be specifically used to trigger the opening of the gate channel when the verification is passed, and control the length of time that the gate channel remains open according to the three-dimensional space size information and the current movement rate of the first target.
可选的,该装置还可以包括:Optionally, the device may also include:
检测模块920,还可以用于如果检测到所述第二目标不是具有设定空间尺寸的物品和/或小孩,则判定所述第二目标为尾随人员,触发报警;The detection module 920 can also be used to determine that the second target is a trailing person and trigger an alarm if it is detected that the second target is not an object and/or a child with a set space size;
检测模块920,在用于基于深度图像获取第一目标和第二目标的三维空间尺寸信息时,具体可以用于将第一目标和第二目标作为整体,根据深度图像的图像数据确定该整体的三维空间尺寸信息;The detection module 920, when used to obtain the three-dimensional space size information of the first target and the second target based on the depth image, can be specifically used to take the first target and the second target as a whole, and determine the overall size according to the image data of the depth image. Three-dimensional space size information;
控制模块940,具体可以用于将三维空间尺寸信息中的长度信息与第一目标的当前移动速率相除的结果,作为闸机通道保持开启的时长;其中,距离阈值根据所有算法耗时、行人移动平均速率、电机控制耗时、分配匹配通道耗时设定,其中,算法耗时包括行人检测耗时、验证耗时之一或其任意组合,行人移动平均速率为行人移动样本的统计值。The control module 940 can be specifically used to divide the length information in the three-dimensional space size information with the current movement rate of the first target as the length of time the gate channel remains open; wherein the distance threshold is time-consuming and pedestrian based on all algorithms The moving average speed, motor control time, and allocation matching channel time-consuming settings are set, where the algorithm time-consuming includes one of pedestrian detection time, verification time-consuming one or any combination thereof, and the pedestrian moving average speed is the statistical value of the pedestrian movement sample.
可选的,检测模块920,具体可以用于计算连续两帧深度图像中第一目标的深度信息变化,将深度信息变化与连续两帧深度图像之间的时间差的比值作为当前移动速率;求取两个以上当前移动速率的平均值,得到第一目标当前移动平均速率;Optionally, the detection module 920 can be specifically used to calculate the depth information change of the first target in two consecutive frames of depth images, and use the ratio of the depth information change to the time difference between the two consecutive frames of depth images as the current movement rate; The average value of two or more current moving speeds to obtain the current moving average speed of the first target;
控制模块940,具体可以用于将三维空间尺寸信息中的长度信息与第一目标的当前移动平均速率相除的结果,作为闸机通道保持开启的时长;其中,距离阈值为:算法耗时、电机系统控制耗时、分配匹配通道耗时之和与行人移动平均速率的乘积。The control module 940 can be specifically used to divide the length information in the three-dimensional space size information by the current moving average speed of the first target as the length of time the gate channel remains open; where the distance threshold is: algorithm time-consuming, The product of the time-consuming motor system control, the time-consuming allocation and matching channel and the average pedestrian moving speed.
应用本申请实施例,通过检测第一目标的位置是否在根据移动速率所确定的距离阈值,来触发对第一目标的非接触式验证,使得验证在第一目标相对通道由远及近的行进过程中的同一时间段被执行,避免了现有技术中在通道闸机前停顿、等待识别结果后再通行的等待时间,提高了通道闸机的通行效率,达到了无感通行的效果,提升了用户体验,提高了闸机通道的控制和判断精度。Applying the embodiment of the application, the non-contact verification of the first target is triggered by detecting whether the position of the first target is within the distance threshold determined according to the moving rate, so that the verification is performed on the first target relative to the passage from far to near The process is executed at the same time period, which avoids the waiting time in the prior art of stopping in front of the channel gate and waiting for the recognition result before passing, improves the passage efficiency of the channel gate, and achieves the effect of non-inductive passage. The user experience is improved, and the control and judgment accuracy of the gate channel is improved.
参见图10所示,图10为应用本申请控制方法的一种多通道闸机系统的示意图。该闸机系统中的每个通道分别包括,用于获取二维图像和深度信息的深度相机模组,用于对各通道分别进行验证的验证模组,用于对图像数据进行处理的图像处理模组,该系统还包括存储器和处理器,例如,主控芯片MCU,各个通道的模组通过主控芯片MCU进行通信和控制:Refer to FIG. 10, which is a schematic diagram of a multi-channel gate system to which the control method of the present application is applied. Each channel in the gate system includes a depth camera module for acquiring two-dimensional images and depth information, a verification module for verifying each channel, and image processing for processing image data Module, the system also includes memory and processor, for example, the main control chip MCU, the modules of each channel communicate and control through the main control chip MCU:
主控芯片控制深度相机模组的图像采集,The main control chip controls the image acquisition of the depth camera module,
控制图像处理模组基于二维图像对第一目标进行行人检测,基于深度图像获取第一目标的位置,当第一目标的位置在设定的距离阈值时,控制验证模组触发对第一目标的非接触式验证,基于验证结果,控制闸机通道的开启。Control the image processing module to perform pedestrian detection on the first target based on the two-dimensional image, and obtain the position of the first target based on the depth image. When the position of the first target is within the set distance threshold, control the verification module to trigger the detection of the first target The non-contact verification, based on the verification result, controls the opening of the gate channel.
通过上述控制以实现本申请实施例的闸机通道的控制方法。Through the above control, the gate channel control method in the embodiment of the present application is realized.
每个通道的各个模组可以根据具体设计的需求集成为一体,例如,深度相机模组与验证模组集成为一体,或者,图像处理模组与深度相机模组集成为一体;模组的集成与分离不影响其功能的实现。The modules of each channel can be integrated according to specific design requirements, for example, the depth camera module and the verification module are integrated, or the image processing module and the depth camera module are integrated; the integration of the modules The separation does not affect the realization of its function.
上述的处理器可以是通用处理器,包括CPU(Central Processing Unit,中央处理器)、NP(Network Processor,网络处理器)等;还可以是DSP(Digital Signal Processor,数字信号处理器)、ASIC(Application Specific Integrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The aforementioned processor may be a general-purpose processor, including CPU (Central Processing Unit), NP (Network Processor), etc.; it may also be DSP (Digital Signal Processor), ASIC ( Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array, Field Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
存储器可以包括RAM(Random Access Memory,随机存取存储器),也可以包括NVM非(Non-Volatile Memory,易失性存储器),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include RAM (Random Access Memory, random access memory), and may also include NVM (Non-Volatile Memory, volatile memory), such as at least one disk storage. Optionally, the memory may also be at least one storage device located far away from the foregoing processor.
本申请的闸机系统通过图像控制闸机通道,无需复杂的红外对射系统,有利于成本的降低,有利于模组的集成和系统化,便于闸机系统的调度和控制。The gate system of the present application controls gate channels through images, and does not require a complicated infrared beaming system, which is beneficial to cost reduction, facilitates the integration and systemization of modules, and facilitates the dispatch and control of the gate system.
本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现如下步骤:The embodiment of the present application also provides a computer-readable storage medium, and a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented:
采集闸机通道入口方向上的当前图像,其中,当前图像至少包括二维图像和深度图像;Collect the current image in the entrance direction of the gate channel, where the current image includes at least a two-dimensional image and a depth image;
基于二维图像对第一目标进行行人检测;Perform pedestrian detection on the first target based on the two-dimensional image;
基于深度图像获取第一目标的位置,当第一目标的位置在设定的距离阈值时,触发对第一目标的非接触式验证,其中,距离阈值根据移动速率确定;The position of the first target is acquired based on the depth image, and when the position of the first target is at a set distance threshold, non-contact verification of the first target is triggered, wherein the distance threshold is determined according to the movement rate;
基于验证结果,控制闸机通道的开启。Based on the verification result, the opening of the gate channel is controlled.
本申请实施例还提供了一种计算机程序产品,用于在运行时执行上述任一通道闸机的控制方法。The embodiment of the present application also provides a computer program product, which is used to execute any of the above-mentioned channel gate control methods at runtime.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的 流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、DSL(Digital Subscriber Line,数字用户线))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如软盘、硬盘、磁带)、光介质(例如DVD(Digital Versatile Disc,数字多功能光盘))、或者半导体介质(例如SSD(Solid State Disk,固态硬盘))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, DSL (Digital Subscriber Line)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD (Digital Versatile Disc)), or a semiconductor medium (such as an SSD (Solid State Disk)), etc. .
对于装置/多通道闸机系统/计算机可读存储介质/计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device/multi-channel gate system/computer-readable storage medium/computer program product embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment description. .
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、多通道闸机系统、计算机可读存储介质、计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, multi-channel gate system, computer readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For related parts, please refer to the description of the method embodiments. That's it.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above descriptions are only preferred embodiments of this application, and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection of this application. Within the range.

Claims (18)

  1. 一种通道闸机的控制方法,其特征在于,所述方法包括:A method for controlling channel gates, characterized in that the method includes:
    采集闸机通道入口方向上的当前图像,所述当前图像至少包括二维图像和深度图像;Acquiring a current image in the entrance direction of the gate passage, where the current image includes at least a two-dimensional image and a depth image;
    基于所述二维图像对第一目标进行行人检测;Performing pedestrian detection on the first target based on the two-dimensional image;
    基于所述深度图像获取所述第一目标的位置,当所述第一目标的位置在设定的距离阈值时,触发对所述第一目标的非接触式验证,所述距离阈值根据移动速率确定;The position of the first target is acquired based on the depth image, and when the position of the first target is within a set distance threshold, a non-contact verification of the first target is triggered, and the distance threshold is based on the moving speed Sure;
    基于验证结果,控制闸机通道的开启。Based on the verification result, the opening of the gate channel is controlled.
  2. 如权利要求1所述的控制方法,其特征在于,在所述当所述第一目标的位置在设定的距离阈值时,触发对所述第一目标的非接触式验证的步骤之后,所述方法还包括:The control method of claim 1, wherein after the step of triggering non-contact verification of the first target when the position of the first target is at a set distance threshold, the The method also includes:
    在对所述第一目标进行非接触式验证的同一时间内,基于所述二维图像提取与所述第一目标随行的第二目标,对所述第二目标进行检测识别;At the same time when non-contact verification is performed on the first target, extracting a second target accompanying the first target based on the two-dimensional image, and detecting and identifying the second target;
    如果检测到所述第二目标为具有设定空间尺寸的物品和/或小孩,则基于所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息;If it is detected that the second target is an object and/or a child with a set space size, acquiring three-dimensional space size information of the first target and the second target based on the depth image;
    所述基于验证结果,控制闸机通道的开启的步骤,包括:The step of controlling the opening of the gate channel based on the verification result includes:
    当验证通过时,触发闸机通道开启,并根据所述三维空间尺寸信息控制闸机通道保持开启的时长。When the verification is passed, the gate channel is triggered to open, and the length of time that the gate channel remains open is controlled according to the three-dimensional space size information.
  3. 如权利要求2所述的控制方法,其特征在于,所述闸机通道为单通道;The control method according to claim 2, wherein the gate channel is a single channel;
    在所述对所述第二目标进行检测识别的步骤之后,所述方法还包括:After the step of detecting and identifying the second target, the method further includes:
    如果检测到所述第二目标不是具有设定空间尺寸的物品和/或小孩,则判定所述第二目标为尾随人员,触发报警;If it is detected that the second target is not an object and/or child with a set space size, it is determined that the second target is a trailing person, and an alarm is triggered;
    所述基于所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息的步骤,包括:The step of acquiring three-dimensional space size information of the first target and the second target based on the depth image includes:
    将所述第一目标和所述第二目标作为整体,根据所述深度图像的图像数据确定该整体的三维空间尺寸信息;Taking the first target and the second target as a whole, and determining the three-dimensional space size information of the whole according to the image data of the depth image;
    所述根据所述三维空间尺寸信息控制闸机通道保持开启的时长的步骤, 包括:The step of controlling the length of time that the gate channel remains open according to the three-dimensional space size information includes:
    将所述三维空间尺寸信息中的长度信息与移动平均速率相除的结果,作为闸机通道保持开启的时长,其中,所述行人移动平均速率为行人移动样本的统计值;所述距离阈值根据所有算法耗时、行人移动平均速率、电机控制耗时设定,算法耗时包括行人检测耗时、验证耗时之一或其任意组合。The result of dividing the length information in the three-dimensional space size information by the moving average speed is used as the length of time the gate channel remains open, where the pedestrian moving average speed is a statistical value of pedestrian movement samples; the distance threshold is based on All algorithm time-consuming, pedestrian moving average speed, motor control time-consuming setting, algorithm time-consuming includes one of pedestrian detection time, verification time-consuming one or any combination thereof.
  4. 如权利要求1所述的控制方法,其特征在于,所述闸机通道包括两个以上单通道;The control method according to claim 1, wherein the gate channel includes two or more single channels;
    在所述基于所述深度图像获取所述第一目标的位置的步骤之后,所述方法还包括:After the step of acquiring the position of the first target based on the depth image, the method further includes:
    当所述第一目标的位置在设定的距离阈值时,基于所述二维图像提取与所述第一目标随行的第二目标,对所述第二目标进行检测识别;When the position of the first target is within the set distance threshold, extracting a second target accompanying the first target based on the two-dimensional image, and detecting and identifying the second target;
    如果检测到所述第二目标为具有设定空间尺寸的物品和/或小孩,则根据连续至少两帧深度图像计算所述第一目标的当前移动速率和移动方向,根据所述移动方向分配匹配通道,触发所述匹配通道对所述第一目标的非接触式验证;If it is detected that the second target is an article and/or child with a set space size, the current movement rate and direction of the first target are calculated according to at least two consecutive depth images, and the matching is allocated according to the movement direction Channel to trigger the non-contact verification of the first target by the matching channel;
    在对所述第一目标进行非接触式验证的同一时间内,基于所述二维图像提取与所述第一目标随行的第二目标,对所述第二目标进行检测识别,如果检测到所述第二目标为具有设定空间尺寸的物品和/或小孩,则基于所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息;At the same time as the non-contact verification of the first target, the second target accompanying the first target is extracted based on the two-dimensional image, and the second target is detected and recognized. If the second target is an item and/or a child with a set space size, then acquiring three-dimensional space size information of the first target and the second target based on the depth image;
    所述基于验证结果,控制闸机通道的开启的步骤,包括:The step of controlling the opening of the gate channel based on the verification result includes:
    当验证通过时,触发闸机通道开启,并根据所述三维空间尺寸信息和所述第一目标的当前移动速率,控制闸机通道保持开启的时长。When the verification is passed, the gate channel is triggered to open, and the length of time the gate channel remains open is controlled according to the three-dimensional space size information and the current movement rate of the first target.
  5. 如权利要求1所述的控制方法,其特征在于,所述闸机通道包括两个以上单通道,各通道的宽度不相同;The control method according to claim 1, wherein the gate channel includes two or more single channels, and the width of each channel is different;
    在所述基于所述深度图像获取所述第一目标的位置的步骤之后,所述方法还包括:After the step of acquiring the position of the first target based on the depth image, the method further includes:
    当所述第一目标的位置在设定的距离阈值时,基于所述二维图像提取与所述第一目标随行的第二目标,对所述第二目标进行检测识别;When the position of the first target is within the set distance threshold, extracting a second target accompanying the first target based on the two-dimensional image, and detecting and identifying the second target;
    如果检测到所述第二目标为具有设定空间尺寸的物品和/或小孩,则基于 所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息,根据所述三维空间尺寸信息分配匹配通道,触发所述匹配通道对所述第一目标的非接触式验证;If it is detected that the second target is an article and/or a child with a set spatial size, the three-dimensional size information of the first target and the second target is acquired based on the depth image, and the three-dimensional space size information is obtained according to the three-dimensional space. The size information allocates a matching channel, and triggers the non-contact verification of the first target by the matching channel;
    在对所述第一目标进行非接触式验证的同一时间内,根据连续至少两帧深度图像计算所述第一目标的当前移动速率;Calculating the current movement rate of the first target according to at least two consecutive depth images at the same time when the first target is subjected to non-contact verification;
    所述基于验证结果,控制闸机通道的开启的步骤,包括:The step of controlling the opening of the gate channel based on the verification result includes:
    当验证通过时,触发闸机通道开启,并根据所述三维空间尺寸信息和所述第一目标的当前移动速率,控制闸机通道保持开启的时长。When the verification is passed, the gate channel is triggered to open, and the length of time the gate channel remains open is controlled according to the three-dimensional space size information and the current movement rate of the first target.
  6. 如权利要求4或5所述的控制方法,其特征在于,在所述对所述第二目标进行检测识别的步骤之后,所述方法还包括:The control method according to claim 4 or 5, wherein after the step of detecting and recognizing the second target, the method further comprises:
    如果检测到所述第二目标不是具有设定空间尺寸的物品和/或小孩,则判定所述第二目标为尾随人员,触发报警;If it is detected that the second target is not an object and/or child with a set space size, it is determined that the second target is a trailing person, and an alarm is triggered;
    所述基于所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息的步骤,包括:The step of acquiring three-dimensional space size information of the first target and the second target based on the depth image includes:
    将所述第一目标和所述第二目标作为整体,根据所述深度图像的图像数据确定该整体的三维空间尺寸信息;Taking the first target and the second target as a whole, and determining the three-dimensional space size information of the whole according to the image data of the depth image;
    所述根据所述三维空间尺寸信息和所述第一目标的当前移动速率,控制闸机通道保持开启的时长的步骤,包括:The step of controlling the length of time that the gate channel remains open according to the three-dimensional space size information and the current movement rate of the first target includes:
    将所述三维空间尺寸信息中的长度信息与所述第一目标的当前移动速率相除的结果,作为闸机通道保持开启的时长;所述距离阈值根据所有算法耗时、行人移动平均速率、电机控制耗时、分配匹配通道耗时设定,其中,算法耗时包括行人检测耗时、验证耗时之一或其任意组合,所述行人移动平均速率为行人移动样本的统计值。The result of dividing the length information in the three-dimensional space size information by the current movement rate of the first target is used as the length of time that the gate channel remains open; the distance threshold is based on the time consumption of all algorithms, the average speed of pedestrian movement, Motor control time-consuming and allocation matching channel time-consuming settings, where the algorithm time-consuming includes one of pedestrian detection time, verification time-consuming one or any combination thereof, and the pedestrian moving average velocity is a statistical value of pedestrian movement samples.
  7. 如权利要求6所述的控制方法,其特征在于,所述根据连续至少两帧深度图像计算所述第一目标的当前移动速率和移动方向的步骤,包括:7. The control method according to claim 6, wherein the step of calculating the current moving rate and moving direction of the first target according to at least two consecutive depth images comprises:
    计算连续两帧深度图像中所述第一目标的深度信息变化,将所述深度信息变化与连续两帧深度图像之间的时间差的比值作为当前移动速率;Calculate the depth information change of the first target in two consecutive frames of depth images, and use the ratio of the depth information change to the time difference between the two consecutive frames of depth images as the current movement rate;
    求取两个以上当前移动速率的平均值,得到所述第一目标当前移动平均速率;Obtaining an average value of two or more current moving rates to obtain the current moving average rate of the first target;
    所述根据所述三维空间尺寸信息和所述第一目标的当前移动速率,控制闸机通道保持开启的时长的步骤,包括:The step of controlling the length of time that the gate channel remains open according to the three-dimensional space size information and the current movement rate of the first target includes:
    将所述三维空间尺寸信息中的长度信息与所述第一目标的当前移动平均速率相除的结果,作为闸机通道保持开启的时长;所述距离阈值为:算法耗时、电机系统控制耗时、分配匹配通道耗时之和与行人移动平均速率的乘积。The result of dividing the length information in the three-dimensional space size information by the current moving average speed of the first target is used as the length of time the gate channel remains open; the distance threshold is: algorithm time consumption, motor system control consumption The product of the sum of the time and the time-consuming distribution matching channel and the pedestrian moving average velocity.
  8. 一种通道闸机的控制装置,其特征在于,所述装置包括:A control device for a passage gate, characterized in that the device comprises:
    采集模块,用于采集闸机通道入口方向上的当前图像,所述当前图像至少包括二维图像和深度图像;An acquisition module for acquiring a current image in the entrance direction of the gate passage, the current image including at least a two-dimensional image and a depth image;
    检测模块,用于基于所述二维图像对第一目标进行行人检测;The detection module is configured to perform pedestrian detection on the first target based on the two-dimensional image;
    验证模块,用于基于所述深度图像获取所述第一目标的位置,当所述第一目标的位置在设定的距离阈值时,触发对所述第一目标的非接触式验证,所述距离阈值根据移动速率确定;The verification module is configured to acquire the position of the first target based on the depth image, and trigger non-contact verification of the first target when the position of the first target is within a set distance threshold. The distance threshold is determined according to the moving speed;
    控制模块,用于基于验证结果,控制闸机通道的开启。The control module is used to control the opening of the gate channel based on the verification result.
  9. 如权利要求8所述的控制装置,其特征在于,所述检测模块,还用于在所述验证模块对所述第一目标进行非接触式验证的同一时间内,基于所述二维图像提取与所述第一目标随行的第二目标,对所述第二目标进行检测识别;如果检测到所述第二目标为具有设定空间尺寸的物品和/或小孩,则基于所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息;The control device according to claim 8, wherein the detection module is further configured to extract based on the two-dimensional image at the same time when the verification module performs non-contact verification on the first target. The second target accompanying the first target is detected and identified; if the second target is detected as an object and/or child with a set space size, it is acquired based on the depth image Three-dimensional space size information of the first target and the second target;
    所述控制模块,具体用于当验证通过时,触发闸机通道开启,并根据所述三维空间尺寸信息控制闸机通道保持开启的时长。The control module is specifically configured to trigger the opening of the gate channel when the verification is passed, and control the length of time that the gate channel remains open according to the three-dimensional space size information.
  10. 如权利要求9所述的控制装置,其特征在于,所述闸机通道为单通道;9. The control device of claim 9, wherein the gate channel is a single channel;
    所述检测模块,还用于如果检测到所述第二目标不是具有设定空间尺寸的物品和/或小孩,则判定所述第二目标为尾随人员,触发报警;The detection module is further configured to determine that the second target is a trailing person and trigger an alarm if it is detected that the second target is not an object and/or a child with a set space size;
    所述检测模块在用于所述基于所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息时,具体用于将所述第一目标和所述第二目标作为整体,根据所述深度图像的图像数据确定该整体的三维空间尺寸信息;When the detection module is used for acquiring the three-dimensional space size information of the first target and the second target based on the depth image, it is specifically used for taking the first target and the second target as a whole , Determining the overall three-dimensional space size information according to the image data of the depth image;
    所述控制模块,具体用于将所述三维空间尺寸信息中的长度信息与移动 平均速率相除的结果,作为闸机通道保持开启的时长,其中,所述行人移动平均速率为行人移动样本的统计值;所述距离阈值根据所有算法耗时、行人移动平均速率、电机控制耗时设定,算法耗时包括行人检测耗时、验证耗时之一或其任意组合。The control module is specifically configured to divide the length information in the three-dimensional space size information by the moving average speed as the length of time for which the gate channel remains open, wherein the pedestrian moving average speed is the result of the pedestrian movement sample Statistical value; the distance threshold is set according to all algorithm time-consuming, pedestrian moving average speed, motor control time-consuming, and the algorithm time-consuming includes one of the time-consuming pedestrian detection and the time-consuming verification or any combination thereof.
  11. 如权利要求8所述的控制装置,其特征在于,所述闸机通道包括两个以上单通道;The control device according to claim 8, wherein the gate channel includes more than two single channels;
    所述检测模块,还用于当所述第一目标的位置在设定的距离阈值时,基于所述二维图像提取与所述第一目标随行的第二目标,对所述第二目标进行检测识别;如果检测到所述第二目标为具有设定空间尺寸的物品和/或小孩,则根据连续至少两帧深度图像计算所述第一目标的当前移动速率和移动方向,根据所述移动方向分配匹配通道,触发所述匹配通道对所述第一目标的非接触式验证;在对所述第一目标进行非接触式验证的同一时间内,基于所述二维图像提取与所述第一目标随行的第二目标,对所述第二目标进行检测识别,如果检测到所述第二目标为具有设定空间尺寸的物品和/或小孩,则基于所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息;The detection module is further configured to extract a second target accompanying the first target based on the two-dimensional image when the position of the first target is within a set distance threshold, and perform Detection and recognition; if it is detected that the second target is an item and/or a child with a set space size, the current movement rate and direction of the first target are calculated according to at least two consecutive depth images, and according to the movement The matching channel is assigned to the direction to trigger the non-contact verification of the first target by the matching channel; at the same time as the non-contact verification of the first target, based on the two-dimensional image extraction and the first target A second target accompanied by a target is detected and identified. If it is detected that the second target is an object and/or a child with a set space size, the first target is acquired based on the depth image. Three-dimensional space size information of the target and the second target;
    所述控制模块,具体用于当验证通过时,触发闸机通道开启,并根据所述三维空间尺寸信息和所述第一目标的当前移动速率,控制闸机通道保持开启的时长。The control module is specifically configured to trigger the opening of the gate channel when the verification is passed, and control the length of time that the gate channel remains open according to the three-dimensional space size information and the current movement rate of the first target.
  12. 如权利要求8所述的控制装置,其特征在于,所述闸机通道包括两个以上单通道,各通道的宽度不相同;The control device according to claim 8, wherein the gate channel includes more than two single channels, and the width of each channel is different;
    所述检测模块,还用于当所述第一目标的位置在设定的距离阈值时,基于所述二维图像提取与所述第一目标随行的第二目标,对所述第二目标进行检测识别;如果检测到所述第二目标为具有设定空间尺寸的物品和/或小孩,则基于所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息,根据所述三维空间尺寸信息分配匹配通道,触发所述匹配通道对所述第一目标的非接触式验证;在对所述第一目标进行非接触式验证的同一时间内,根据连续至少两帧深度图像计算所述第一目标的当前移动速率;The detection module is further configured to extract a second target accompanying the first target based on the two-dimensional image when the position of the first target is within a set distance threshold, and perform Detection and recognition; if it is detected that the second target is an article and/or child with a set spatial size, the three-dimensional spatial size information of the first target and the second target is acquired based on the depth image, and the three-dimensional space size information of the first target and the second target is acquired according to the The three-dimensional space size information allocates a matching channel to trigger the non-contact verification of the first target by the matching channel; at the same time as the non-contact verification of the first target, according to at least two consecutive depth images Calculating the current moving speed of the first target;
    所述控制模块,具体用于当验证通过时,触发闸机通道开启,并根据所述三维空间尺寸信息和所述第一目标的当前移动速率,控制闸机通道保持开 启的时长。The control module is specifically configured to trigger the opening of the gate channel when the verification is passed, and control the length of time that the gate channel remains open according to the three-dimensional space size information and the current movement rate of the first target.
  13. 如权利要求11或12所述的控制装置,其特征在于,所述装置还包括:The control device according to claim 11 or 12, wherein the device further comprises:
    所述检测模块,还用于如果检测到所述第二目标不是具有设定空间尺寸的物品和/或小孩,则判定所述第二目标为尾随人员,触发报警;The detection module is further configured to determine that the second target is a trailing person and trigger an alarm if it is detected that the second target is not an object and/or a child with a set space size;
    所述检测模型在用于所述基于所述深度图像获取所述第一目标和所述第二目标的三维空间尺寸信息时,具体用于将所述第一目标和所述第二目标作为整体,根据所述深度图像的图像数据确定该整体的三维空间尺寸信息;When the detection model is used in the acquisition of the three-dimensional space size information of the first target and the second target based on the depth image, it is specifically used to integrate the first target and the second target as a whole , Determining the overall three-dimensional space size information according to the image data of the depth image;
    所述控制模块,具体用于将所述三维空间尺寸信息中的长度信息与所述第一目标的当前移动速率相除的结果,作为闸机通道保持开启的时长;所述距离阈值根据所有算法耗时、行人移动平均速率、电机控制耗时、分配匹配通道耗时设定,其中,算法耗时包括行人检测耗时、验证耗时之一或其任意组合,所述行人移动平均速率为行人移动样本的统计值。The control module is specifically configured to divide the length information in the three-dimensional space size information by the current movement rate of the first target as the length of time that the gate channel remains open; the distance threshold is based on all algorithms Time-consuming, pedestrian moving average speed, motor control time-consuming, and allocation matching channel time-consuming setting, where algorithm time-consuming includes one of pedestrian detection time, verification time-consuming one or any combination thereof, said pedestrian moving average speed is pedestrian The statistical value of the moving sample.
  14. 如权利要求13所述的控制装置,其特征在于,所述检测模块,具体用于计算连续两帧深度图像中所述第一目标的深度信息变化,将所述深度信息变化与连续两帧深度图像之间的时间差的比值作为当前移动速率;求取两个以上当前移动速率的平均值,得到所述第一目标当前移动平均速率;The control device according to claim 13, wherein the detection module is specifically configured to calculate the depth information change of the first target in two consecutive frames of depth images, and compare the depth information change with the two consecutive frames of depth information. The ratio of the time difference between the images is used as the current moving speed; calculating the average of two or more current moving speeds to obtain the current moving average speed of the first target;
    所述控制模块,具体用于将所述三维空间尺寸信息中的长度信息与所述第一目标的当前移动平均速率相除的结果,作为闸机通道保持开启的时长;所述距离阈值为:算法耗时、电机系统控制耗时、分配匹配通道耗时之和与行人移动平均速率的乘积。The control module is specifically configured to divide the length information in the three-dimensional space size information by the current moving average speed of the first target as the length of time the gate channel remains open; the distance threshold is: The product of the time-consuming algorithm, the time-consuming motor system control, the time-consuming allocation of matching channels and the average velocity of pedestrians.
  15. 一种闸机系统,包括验证模组和图像数据处理模组,其特征在于,该系统还包括存储器和处理器,A gate system includes a verification module and an image data processing module, characterized in that the system also includes a memory and a processor,
    所述存储器存储有可被处理器执行的指令,所述指令被处理器执行,以使所述处理器控制验证模组和图像数据处理模组执行如权利要求1至7任一所述的控制方法。The memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor controls the verification module and the image data processing module to execute the control according to any one of claims 1 to 7 method.
  16. 如权利要求15所述的闸机系统,其特征在于,所述闸机系统中的闸机本体上安装有用于采集二维图像和深度图像的深度相机设备,所述深度相 机设备位于沿闸机通道入口延伸的闸机本体末端;和/或,在所述闸机系统中的闸机通道的上方区域安装有用于采集二维图像和深度图像的深度相机设备。The gate system of claim 15, wherein the gate body in the gate system is equipped with a depth camera device for collecting two-dimensional images and depth images, and the depth camera device is located along the gate. The end of the gate body extending from the entrance of the passage; and/or a depth camera device for collecting two-dimensional images and depth images is installed in the upper area of the gate passage in the gate system.
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任一所述的控制方法。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the control method according to any one of claims 1 to 7 is realized.
  18. 一种计算机程序产品,其特征在于,用于在运行时执行:如权利要求1至7任一所述的控制方法。A computer program product, which is characterized in that it is used to execute the control method according to any one of claims 1 to 7.
PCT/CN2021/079701 2020-03-11 2021-03-09 Channel gate control method, apparatus and system WO2021180060A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010165868.2A CN113393603B (en) 2020-03-11 2020-03-11 Control method and system of channel gate
CN202010165868.2 2020-03-11

Publications (1)

Publication Number Publication Date
WO2021180060A1 true WO2021180060A1 (en) 2021-09-16

Family

ID=77615344

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/079701 WO2021180060A1 (en) 2020-03-11 2021-03-09 Channel gate control method, apparatus and system

Country Status (2)

Country Link
CN (1) CN113393603B (en)
WO (1) WO2021180060A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114973468A (en) * 2022-05-23 2022-08-30 北京声智科技有限公司 Gate control method, device, equipment and storage medium
CN115150504A (en) * 2022-06-01 2022-10-04 杭州海康威视数字技术股份有限公司 Channel control method, device, equipment, storage medium and system
CN115346301A (en) * 2022-08-09 2022-11-15 南京北路智控科技股份有限公司 Rapid personnel identification passing method and system for card gate
CN115690959A (en) * 2022-10-29 2023-02-03 深圳市通达智科技有限公司 Control method for AB door
CN117001654A (en) * 2022-04-29 2023-11-07 深圳市普渡科技有限公司 Robot gate passing method and device and computer equipment
CN117218678A (en) * 2023-08-11 2023-12-12 浙江深象智能科技有限公司 Behavior detection method and device and electronic equipment
CN115690959B (en) * 2022-10-29 2024-04-23 深圳市通达智科技有限公司 AB door control method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114025078A (en) * 2021-09-27 2022-02-08 苏州雷格特智能设备股份有限公司 Binocular three-layer framework

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080290990A1 (en) * 2005-01-14 2008-11-27 Schaffzin Richard A Universal hands free key and lock system and method
CN201785712U (en) * 2010-09-17 2011-04-06 深圳市富士智能系统有限公司 System for managing pedestrian passage
CN103402080A (en) * 2013-08-13 2013-11-20 北海和思科技有限公司 Building intercom system
US20140049361A1 (en) * 2012-08-16 2014-02-20 Schlage Lock Company Llc Wireless reader system
CN106200539A (en) * 2016-08-31 2016-12-07 浙江网新电气技术有限公司 A kind of ticket check gate passes through logic control system and method
CN109472900A (en) * 2018-11-02 2019-03-15 广州新科佳都科技有限公司 Gate passes through behavioral value device
CN109671190A (en) * 2018-11-27 2019-04-23 杭州天翼智慧城市科技有限公司 A kind of multi-pass barrier gate device management method and system based on recognition of face
CN110297536A (en) * 2019-06-30 2019-10-01 联想(北京)有限公司 A kind of control method and electronic equipment
CN110379050A (en) * 2019-06-06 2019-10-25 上海学印教育科技有限公司 A kind of gate control method, apparatus and system

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002279466A (en) * 2001-03-15 2002-09-27 Toshiba Corp Device and method for admission control
US20040239481A1 (en) * 2001-07-10 2004-12-02 American Express Travel Related Services Company, Inc. Method and system for facial recognition biometrics on a fob
CN101859412A (en) * 2010-05-27 2010-10-13 无锡市天业智能科技有限公司 Personnel sensing and leading system based on RFID of Internet-of-things
CN101937587B (en) * 2010-09-17 2013-01-16 深圳市富士智能系统有限公司 Pedestrian passageway management system and method
CN102542294A (en) * 2011-12-29 2012-07-04 河海大学常州校区 Centralized control type soccer robot identification system and identification method for double visual information fusion
CN102819882B (en) * 2012-07-25 2015-05-06 江苏汉武智能科技有限公司 Identification control system and identification method for passing objects in automatic ticket inspection pedestrian passageway
BR102014019625B1 (en) * 2014-03-19 2021-01-26 Digicon S/a Controle Eletrônico Para Mecânica control and monitoring system and method for access in a restricted area
US9972149B2 (en) * 2015-08-24 2018-05-15 Cubic Corporation Vision-based fare collection
CN105869253A (en) * 2016-05-27 2016-08-17 成都千帆科技开发有限公司 People-certificate-ticket comprehensive verification pedestrian gate machine based on human face identification
CN107871350A (en) * 2016-09-28 2018-04-03 武汉广宏利机电设备有限公司 A kind of intelligent building management method based on recognition of face
CN108022333A (en) * 2016-11-04 2018-05-11 杭州海康威视数字技术股份有限公司 A kind of access control method, access controller and access control system
CN106600774A (en) * 2016-12-07 2017-04-26 深圳市万睿智能科技有限公司 Face identification gate inhibition control method provided with door opening detection area and system thereof
GB2550286B (en) * 2017-04-21 2018-04-25 Integrated Design Ltd Optical system for monitoring the movement of people through a passageway
CN107170078A (en) * 2017-04-27 2017-09-15 胡渐佳 Intelligent Recognition is entered tailing access control system
KR20190128478A (en) * 2018-05-08 2019-11-18 (주)리감 Automatic Gate Management System based on Kiosk
CN109147126A (en) * 2018-08-11 2019-01-04 深圳市罗德韦尔智能科技有限公司 The noninductive open-door system of intelligent door lock and control method based on recognition of face
CN109243035B (en) * 2018-09-27 2022-02-25 云教(北京)科技有限公司 Access control system capable of positioning and managing personnel and assets in real time and implementation method thereof
CN209603003U (en) * 2018-10-29 2019-11-08 哈尔滨理工大学 A kind of passageway gate machine passed through suitable for carrying large piece article
CN110728607A (en) * 2019-09-25 2020-01-24 邵刚 Big data airport security check management system and method based on intelligent vision

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080290990A1 (en) * 2005-01-14 2008-11-27 Schaffzin Richard A Universal hands free key and lock system and method
CN201785712U (en) * 2010-09-17 2011-04-06 深圳市富士智能系统有限公司 System for managing pedestrian passage
US20140049361A1 (en) * 2012-08-16 2014-02-20 Schlage Lock Company Llc Wireless reader system
CN103402080A (en) * 2013-08-13 2013-11-20 北海和思科技有限公司 Building intercom system
CN106200539A (en) * 2016-08-31 2016-12-07 浙江网新电气技术有限公司 A kind of ticket check gate passes through logic control system and method
CN109472900A (en) * 2018-11-02 2019-03-15 广州新科佳都科技有限公司 Gate passes through behavioral value device
CN109671190A (en) * 2018-11-27 2019-04-23 杭州天翼智慧城市科技有限公司 A kind of multi-pass barrier gate device management method and system based on recognition of face
CN110379050A (en) * 2019-06-06 2019-10-25 上海学印教育科技有限公司 A kind of gate control method, apparatus and system
CN110297536A (en) * 2019-06-30 2019-10-01 联想(北京)有限公司 A kind of control method and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117001654A (en) * 2022-04-29 2023-11-07 深圳市普渡科技有限公司 Robot gate passing method and device and computer equipment
CN114973468A (en) * 2022-05-23 2022-08-30 北京声智科技有限公司 Gate control method, device, equipment and storage medium
CN115150504A (en) * 2022-06-01 2022-10-04 杭州海康威视数字技术股份有限公司 Channel control method, device, equipment, storage medium and system
CN115346301A (en) * 2022-08-09 2022-11-15 南京北路智控科技股份有限公司 Rapid personnel identification passing method and system for card gate
CN115346301B (en) * 2022-08-09 2023-06-27 南京北路智控科技股份有限公司 Quick personnel identification passing method and system for bayonet
CN115690959A (en) * 2022-10-29 2023-02-03 深圳市通达智科技有限公司 Control method for AB door
CN115690959B (en) * 2022-10-29 2024-04-23 深圳市通达智科技有限公司 AB door control method
CN117218678A (en) * 2023-08-11 2023-12-12 浙江深象智能科技有限公司 Behavior detection method and device and electronic equipment

Also Published As

Publication number Publication date
CN113393603B (en) 2022-09-23
CN113393603A (en) 2021-09-14

Similar Documents

Publication Publication Date Title
WO2021180060A1 (en) Channel gate control method, apparatus and system
WO2017202169A1 (en) Access control data processing method, access control method, and electronic apparatus
Liu et al. Detecting and counting people in surveillance applications
CN106144861B (en) Depth sensor based passenger sensing for passenger transport control
CN106144862B (en) Depth sensor based passenger sensing for passenger transport door control
Xu et al. A people counting system based on head-shoulder detection and tracking in surveillance video
US10936859B2 (en) Techniques for automatically identifying secondary objects in a stereo-optical counting system
CN103049459A (en) Feature recognition based quick video retrieval method
CN108701211A (en) For detecting, tracking, estimating and identifying the system based on depth sense occupied in real time
KR20160035121A (en) Method and Apparatus for Counting Entity by Using Location Information Extracted from Depth Image
Stahlschmidt et al. Applications for a people detection and tracking algorithm using a time-of-flight camera
JP7303384B2 (en) Passenger number counting system and passenger number counting device
US8873804B2 (en) Traffic monitoring device
KR101917783B1 (en) Parking lot management system
TWI674002B (en) Operation method for security monitoring system
WO2017206152A1 (en) Method and device for counting vehicle passengers
KR20140122616A (en) Access Control system and method
US20210133491A1 (en) System and method for detecting, tracking and counting human objects of interest with an improved height calculation
CN110874551A (en) Image processing method for access control gate passage logic control
Desai et al. Real-time implementation of Indian license plate recognition system
KR20110092848A (en) Method for recognizing and registering face
Yanakova et al. Facial recognition technology on ELcore semantic processors for smart cameras
CN116246402A (en) Monitoring method and device
KR20200074351A (en) Information management system for free passenger and information management method therefor
US20220012968A1 (en) Door access control system based on user intent

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21768809

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21768809

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21768809

Country of ref document: EP

Kind code of ref document: A1