WO2021000587A1 - Vehicle door unlocking method and device, system, vehicle, electronic equipment and storage medium - Google Patents

Vehicle door unlocking method and device, system, vehicle, electronic equipment and storage medium Download PDF

Info

Publication number
WO2021000587A1
WO2021000587A1 PCT/CN2020/076713 CN2020076713W WO2021000587A1 WO 2021000587 A1 WO2021000587 A1 WO 2021000587A1 CN 2020076713 W CN2020076713 W CN 2020076713W WO 2021000587 A1 WO2021000587 A1 WO 2021000587A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
depth
target object
pixel
depth map
Prior art date
Application number
PCT/CN2020/076713
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 上海商汤智能科技有限公司
Priority to JP2021572948A priority Critical patent/JP2022537923A/en
Priority to KR1020217043021A priority patent/KR20220016184A/en
Priority to KR1020227017334A priority patent/KR20220070581A/en
Publication of WO2021000587A1 publication Critical patent/WO2021000587A1/en
Priority to JP2022059357A priority patent/JP2022118730A/en

Links

Images

Classifications

    • 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/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00563Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys using personal physical data of the operator, e.g. finger prints, retinal images, voicepatterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive
    • 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/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • 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/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • 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/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C2009/00753Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by active electrical keys
    • G07C2009/00769Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by active electrical keys with data transmission performed by wireless means
    • 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
    • G07C2209/00Indexing scheme relating to groups G07C9/00 - G07C9/38
    • G07C2209/60Indexing scheme relating to groups G07C9/00174 - G07C9/00944
    • G07C2209/63Comprising locating means for detecting the position of the data carrier, i.e. within the vehicle or within a certain distance from the vehicle
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present disclosure relates to the field of vehicle technology, and in particular to a method and device for unlocking a vehicle door, a system, a vehicle, an electronic device, and a storage medium.
  • Brushing the face to open the door is a new technology for smart vehicles.
  • the camera needs to be kept open; in order to be able to determine whether a person approaching the vehicle is the owner of the car in time, the image collected by the camera needs to be processed in real time to quickly identify the owner to quickly open the door.
  • this method has high operating power consumption, and long-term high-power operation may cause the vehicle to fail to start due to insufficient power, which will affect the normal use of the vehicle and the user experience.
  • the present disclosure proposes a technical solution for unlocking a vehicle door.
  • a method for unlocking a vehicle door including:
  • a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
  • a method for unlocking a vehicle door including:
  • a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
  • a vehicle door unlocking device including:
  • the search module is used to search for the Bluetooth device with the preset identification via the Bluetooth module installed in the car;
  • the wake-up module is used to establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification in response to searching for the Bluetooth device with the preset identification, and to wake up and control in response to the successful Bluetooth pairing connection
  • the image acquisition module provided in the vehicle collects the first image of the target object, or, in response to searching for the Bluetooth device with the preset identification, wakes up and controls the image acquisition module provided in the vehicle to acquire the target object First image
  • a face recognition module configured to perform face recognition based on the first image
  • the unlocking module is used for sending a door unlocking instruction and/or opening a door instruction to at least one door of the vehicle in response to successful face recognition.
  • a vehicle-mounted face unlocking system including: a memory, a face recognition module, an image acquisition module, and a Bluetooth module; the face recognition module is connected to the memory and the Bluetooth module, respectively.
  • the image acquisition module is connected to the Bluetooth module;
  • the Bluetooth module includes a device for waking up the face recognition module when the Bluetooth pairing connection with the Bluetooth device with the preset identification succeeds or the Bluetooth device with the preset identification is searched
  • the face recognition module is also provided with a communication interface for connecting with the door domain controller, and if the face recognition is successful, the The door domain controller sends control information for unlocking the door.
  • a vehicle including the vehicle-mounted face unlocking system, and the vehicle-mounted face unlocking system is connected to a door domain controller of the vehicle.
  • an electronic device including:
  • a memory for storing processor executable instructions
  • the processor is configured to execute the method of the first aspect described above.
  • an electronic device including:
  • a memory for storing processor executable instructions
  • the processor is configured to execute the method of the second aspect described above.
  • a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method of the first aspect described above is implemented.
  • a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method of the second aspect described above is implemented.
  • a computer program including computer readable code, and when the computer readable code is executed in an electronic device, a processor in the electronic device executes to implement the above method.
  • the Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification is established in response to searching for the Bluetooth device with the preset identification, and in response to the successful Bluetooth pairing and connection, the face recognition module is awakened and controlled
  • the image acquisition module collects the first image of the target object, and thus based on the successful Bluetooth pairing connection and then wakes up the face recognition module, it can effectively reduce the probability of falsely waking up the face recognition module, thereby improving user experience and effectively reducing The power consumption of the face recognition module.
  • the Bluetooth-based pairing connection method compared with short-range sensor technologies such as ultrasonic and infrared, the Bluetooth-based pairing connection method has the advantages of high security and support for larger distances.
  • the embodiments of the present disclosure provide a solution that can better weigh the face recognition module's power saving, user experience, and security by successfully waking up the face recognition module based on the Bluetooth pairing connection.
  • Fig. 1 shows a flowchart of a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • Figure 2 shows a schematic diagram of the B-pillar of the car.
  • FIG. 3 shows a schematic diagram of the installation height and the recognizable height range of the vehicle door unlocking device in the vehicle door unlocking method according to an embodiment of the present disclosure.
  • Fig. 4a shows a schematic diagram of an image sensor and a depth sensor in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • Fig. 4b shows another schematic diagram of an image sensor and a depth sensor in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • FIG. 5 shows a schematic diagram of an example of a living body detection method according to an embodiment of the present disclosure.
  • FIG. 6 shows a schematic diagram of an example of determining the result of the living body detection of the target object in the first image based on the first image and the second depth map in the living body detection method according to an embodiment of the present disclosure.
  • Fig. 7 shows a schematic diagram of a depth prediction neural network in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • FIG. 8 shows a schematic diagram of a correlation detection neural network in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • Fig. 9 shows an exemplary schematic diagram of updating the depth map in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • FIG. 10 shows a schematic diagram of surrounding pixels in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • FIG. 11 shows another schematic diagram of surrounding pixels in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • FIG. 12 shows another flowchart of a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • FIG. 13 shows a block diagram of a vehicle door unlocking device according to an embodiment of the present disclosure.
  • Fig. 14 shows a block diagram of a vehicle face unlocking system according to an embodiment of the present disclosure.
  • Fig. 15 shows a schematic diagram of a vehicle face unlocking system according to an embodiment of the present disclosure.
  • FIG. 16 shows a schematic diagram of a car according to an embodiment of the present disclosure.
  • Fig. 17 is a block diagram showing an electronic device 800 according to an exemplary embodiment.
  • Fig. 1 shows a flowchart of a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • the vehicle door unlocking method may be executed by a vehicle door unlocking device.
  • the method for unlocking the vehicle door may be executed by an in-vehicle device or other processing device.
  • the vehicle door unlocking device may be installed in at least one of the following positions: a B-pillar of a vehicle, at least one vehicle door, and at least one rearview mirror.
  • Figure 2 shows a schematic diagram of the B-pillar of the car.
  • the door unlocking device can be installed on the B-pillar from 130 cm to 160 cm above the ground, and the horizontal recognition distance of the door unlocking device can be 30 cm to 100 cm, which is not limited here.
  • FIG. 3 shows a schematic diagram of the installation height and the recognizable height range of the vehicle door unlocking device in the vehicle door unlocking method according to an embodiment of the present disclosure.
  • the installation height of the door unlocking device is 160 cm
  • the recognizable height range is 140 cm to 190 cm.
  • the method for unlocking the vehicle door may be implemented by a processor calling a computer readable instruction stored in the memory.
  • the method for unlocking the vehicle door includes steps S11 to S15.
  • step S11 a Bluetooth device with a preset identification is searched through the Bluetooth module installed in the car.
  • searching for a Bluetooth device with a preset identifier via a Bluetooth module installed in the car includes: searching for a preset identifier via a Bluetooth module installed in the car when the car is turned off or in a state where the door is locked. Set the identified Bluetooth device.
  • Bluetooth devices which can further reduce power consumption.
  • the Bluetooth module may be a Bluetooth Low Energy (BLE, Bluetooth Low Energy) module.
  • BLE Bluetooth Low Energy
  • the Bluetooth module can be in the broadcast mode and broadcast a broadcast data packet to the surroundings at regular intervals (for example, 100 milliseconds).
  • the surrounding Bluetooth devices are performing the scan action, if they receive the broadcast data packet broadcast by the Bluetooth module, they will send a scan request to the Bluetooth module.
  • the Bluetooth module can respond to the scan request and return the scan to the Bluetooth device that sent the scan request. Response packet.
  • a scan request sent by a Bluetooth device with a preset identification is received, it is determined that the Bluetooth device with the preset identification is searched.
  • the Bluetooth module can be in the scanning state when the car is turned off or when the car is turned off and the door is locked. If a Bluetooth device with a preset logo is scanned, it is determined that the device with the preset logo is found. Bluetooth device.
  • the Bluetooth module and the face recognition module can be integrated in the face recognition system.
  • the Bluetooth module can be independent of the face recognition system. That is, the Bluetooth module can be installed outside the face recognition system.
  • the embodiment of the present disclosure does not limit the maximum search distance of the Bluetooth module.
  • the maximum search distance may be about 30 m.
  • the identification of the Bluetooth device may refer to the unique identifier of the Bluetooth device.
  • the identification of the Bluetooth device may be the ID, name or address of the Bluetooth device.
  • the preset identification may be an identification of a device that is successfully paired with the Bluetooth module of the car based on the Bluetooth secure connection technology.
  • the number of Bluetooth devices with preset identification may be one or more.
  • the identification of the Bluetooth device is the ID of the Bluetooth device
  • one or more Bluetooth IDs with permission to drive the door can be preset.
  • the Bluetooth device with preset identification may be the Bluetooth device of the vehicle owner; when the number of Bluetooth devices with preset identification is multiple, the multiple
  • the Bluetooth devices with the preset identification may include the Bluetooth devices of the vehicle owner and the Bluetooth devices of the vehicle owner's family, friends, and pre-registered contacts.
  • the pre-registered contact person may be a pre-registered courier or property staff.
  • the Bluetooth device may be any mobile device with Bluetooth function.
  • the Bluetooth device may be a mobile phone, a wearable device, or an electronic key.
  • the wearable device may be a smart bracelet or smart glasses.
  • step S12 in response to searching for a Bluetooth device with a preset identification, a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification is established.
  • a Bluetooth pairing between the Bluetooth module and the Bluetooth device with the preset identification is established connection.
  • the Bluetooth module in response to searching for a Bluetooth device with a preset logo, performs identity authentication on the Bluetooth device with the preset logo, and after the identity authentication is passed, the Bluetooth module and the Bluetooth device with the preset logo are established.
  • the Bluetooth pairing connection of the device can thereby improve the security of the Bluetooth pairing connection.
  • step S13 in response to the successful Bluetooth pairing connection, wake up and control the image acquisition module installed in the car to acquire the first image of the target object.
  • waking up and controlling the image acquisition module installed in the car to collect the first image of the target object includes: awakening the face recognition module installed in the car; control by the awakened face recognition module The image acquisition module acquires the first image of the target object.
  • a Bluetooth device with a preset identifier if a Bluetooth device with a preset identifier is searched, it can indicate to a large extent that a user (such as a car owner) carrying the Bluetooth device with the preset identifier has entered the search range of the Bluetooth module.
  • a user such as a car owner
  • the Bluetooth device with the preset logo by responding to the search for the Bluetooth device with the preset logo, establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset logo, and in response to the successful Bluetooth pairing connection, wake up the face recognition module and control the image acquisition module Collecting the first image of the target object, based on the successful Bluetooth pairing connection and then waking up the face recognition module, can effectively reduce the probability of falsely waking up the face recognition module, thereby improving the user experience and effectively reducing the face recognition module.
  • the Bluetooth-based pairing connection method has the advantages of high security and support for larger distances.
  • Practice has shown that the time when a user carrying a Bluetooth device with a preset logo reaches the car through this distance (the distance between the user and the car when the Bluetooth pairing connection is successful), and when the car wakes up, the face recognition module switches from a sleep state to a working state
  • the face recognition module can be used to recognize the car door immediately without having to wait for the face recognition module to be awakened after the user arrives at the car door. Improve the efficiency of face recognition and improve user experience.
  • the embodiments of the present disclosure provide a solution that can better weigh the face recognition module's power saving, user experience, and security by successfully waking up the face recognition module based on the Bluetooth pairing connection.
  • the method further includes: if the face image is not collected within a preset time, controlling the face recognition module to enter a sleep state .
  • This implementation method controls the face recognition module to enter a sleep state when no face image is collected within a preset time after the face recognition module is awakened, thereby reducing power consumption.
  • the method further includes: if the face recognition fails within a preset time, controlling the face recognition module to enter a sleep state.
  • This implementation method controls the face recognition module to enter the sleep state when the face recognition module fails to pass the face recognition within a preset time after waking up the face recognition module, thereby reducing power consumption.
  • step S14 face recognition is performed based on the first image.
  • face recognition includes: living body detection and face authentication; performing face recognition based on the first image includes: collecting the first image through the image sensor in the image acquisition module, and based on the first image. The image and pre-registered facial features are used for face authentication; the first depth map corresponding to the first image is collected by the depth sensor in the image acquisition module, and the living body detection is performed based on the first image and the first depth map.
  • the first image contains the target object.
  • the target object may be a human face or at least a part of a human body, which is not limited in the embodiment of the present disclosure.
  • the first image may be a static image or a video frame image.
  • the first image may be an image selected from a video sequence, where the image may be selected from the video sequence in a variety of ways.
  • the first image is an image selected from a video sequence that meets a preset quality condition, and the preset quality condition may include one or any combination of the following: whether the target object is included, whether the target object is located in the image The center area of the target object, whether the target object is completely contained in the image, the proportion of the target object in the image, the state of the target object (such as the angle of the face), the image clarity, the image exposure, etc., the embodiments of the present disclosure This is not limited.
  • the living body detection can be performed first and then the face authentication can be performed. For example, if the live body detection result of the target object is that the target object is a living body, the face authentication process is triggered; if the live body detection result of the target object is that the target object is a prosthesis, the face authentication process is not triggered.
  • face authentication can be performed first and then live body detection can be performed. For example, if the face authentication is passed, the living body detection process is triggered; if the face authentication is not passed, the living body detection process is not triggered.
  • living body detection and face authentication can be performed at the same time.
  • the living body detection is used to verify whether the target object is a living body, for example, it can be used to verify whether the target object is a human body.
  • Face authentication is used to extract the facial features in the collected images, compare the facial features in the collected images with the pre-registered facial features to determine whether they belong to the same person's facial features, for example, you can determine the collected facial features Whether the facial features in the image belong to the facial features of the vehicle owner.
  • the depth sensor means a sensor for collecting depth information.
  • the embodiments of the present disclosure do not limit the working principle and working band of the depth sensor.
  • the image sensor and the depth sensor of the image acquisition module can be installed separately or together.
  • the image sensor and the depth sensor of the image acquisition module can be set separately, the image sensor adopts RGB (Red, red; Green, green; Blue, blue) sensor or infrared sensor, and the depth sensor adopts binocular infrared sensor or TOF (Time of Flight, time of flight) sensor; the image sensor of the image acquisition module and the depth sensor can be set together.
  • the image acquisition module adopts RGBD (Red, red; Green, green; Blue, blue; Deep, depth) sensor to realize the image sensor And the function of the depth sensor.
  • the image sensor is an RGB sensor. If the image sensor is an RGB sensor, the image collected by the image sensor is an RGB image.
  • the image sensor is an infrared sensor. If the image sensor is an infrared sensor, the image collected by the image sensor is an infrared image. Among them, the infrared image may be an infrared image with a light spot, or an infrared image without a light spot.
  • the image sensor may be other types of sensors, which is not limited in the embodiment of the present disclosure.
  • the vehicle door unlocking device may obtain the first image in multiple ways.
  • the vehicle door unlocking device is provided with a camera, and the vehicle door unlocking device uses the camera to collect static images or video streams to obtain the first image, which is not limited in the embodiment of the present disclosure.
  • the depth sensor is a three-dimensional sensor.
  • the depth sensor is a binocular infrared sensor, a time-of-flight TOF sensor, or a structured light sensor, where the binocular infrared sensor includes two infrared cameras.
  • the structured light sensor may be a coded structured light sensor or a speckle structured light sensor.
  • the TOF sensor uses a TOF module based on the infrared band.
  • a TOF module based on the infrared band by using a TOF module based on the infrared band, the influence of external light on the depth map shooting can be reduced.
  • the first depth map corresponds to the first image.
  • the first depth map and the first image are respectively acquired by the depth sensor and the image sensor for the same scene, or the first depth map and the first image are acquired by the depth sensor and the image sensor for the same target area at the same time , But the embodiment of the present disclosure does not limit this.
  • Fig. 4a shows a schematic diagram of an image sensor and a depth sensor in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • the image sensor is an RGB sensor
  • the camera of the image sensor is an RGB camera
  • the depth sensor is a binocular infrared sensor.
  • the depth sensor includes two infrared (IR) cameras and two infrared binocular infrared sensors.
  • the cameras are arranged on both sides of the RGB camera of the image sensor. Among them, two infrared cameras collect depth information based on the principle of binocular parallax.
  • the image acquisition module further includes at least one fill light, the at least one fill light is arranged between the infrared camera of the binocular infrared sensor and the camera of the image sensor, and the at least one fill light includes At least one of the fill light for the sensor and the fill light for the depth sensor.
  • the fill light used for the image sensor can be a white light
  • the fill light used for the image sensor can be an infrared light
  • the depth sensor is a binocular Infrared sensor
  • the fill light used for the depth sensor can be an infrared light.
  • an infrared lamp is provided between the infrared camera of the binocular infrared sensor and the camera of the image sensor.
  • the infrared lamp can use 940nm infrared.
  • the fill light may be in the normally-on mode. In this example, when the camera of the image acquisition module is in the working state, the fill light is in the on state.
  • the fill light can be turned on when the light is insufficient.
  • the ambient light intensity can be obtained through the ambient light sensor, and when the ambient light intensity is lower than the light intensity threshold, it is determined that the light is insufficient, and the fill light is turned on.
  • Fig. 4b shows another schematic diagram of an image sensor and a depth sensor in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • the image sensor is an RGB sensor
  • the camera of the image sensor is an RGB camera
  • the depth sensor is a TOF sensor.
  • the image acquisition module further includes a laser
  • the laser is disposed between the camera of the depth sensor and the camera of the image sensor.
  • the laser is arranged between the camera of the TOF sensor and the camera of the RGB sensor.
  • the laser may be a VCSEL (Vertical Cavity Surface Emitting Laser), and the TOF sensor may collect a depth map based on the laser emitted by the VCSEL.
  • the depth sensor is used to collect a depth map
  • the image sensor is used to collect a two-dimensional image.
  • RGB sensors and infrared sensors are used as examples to describe image sensors
  • binocular infrared sensors, TOF sensors, and structured light sensors are used as examples to describe depth sensors, those skilled in the art can understand
  • the embodiments of the present disclosure should not be limited to this. Those skilled in the art can select the types of the image sensor and the depth sensor according to actual application requirements, as long as the two-dimensional image and the depth map can be collected respectively.
  • step S15 in response to successful face recognition, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
  • the vehicle door in the embodiment of the present disclosure may include a vehicle door through which people enter and exit (for example, a left front door, a right front door, a left rear door, and a right rear door), and may also include a trunk door of the vehicle.
  • the at least one vehicle door lock may include at least one of a left front door lock, a right front door lock, a left rear door lock, a right rear door lock, and a trunk door lock.
  • sending a door unlocking instruction and/or opening a door instruction to at least one door of the vehicle includes: in response to successful face recognition, acquiring at least the vehicle's The state information of a vehicle door; if the state information of the vehicle door is not unlocked, send a door unlock instruction and an open door instruction to the vehicle door; if the state information of the vehicle door is unlocked and not opened, send the vehicle door Send the door open command.
  • sending a door unlock instruction and/or a door opening instruction to at least one door of the vehicle includes: in response to successful face recognition, determining that the target object has a door opening permission ; Send a door unlock instruction and/or open a door instruction to at least one door of the vehicle according to the door for which the target object has the authority to open the door.
  • the doors for which the target object has the authority to open doors may be all doors, or may be trunk doors.
  • the doors for which the owner or his family or friends have the authority to open doors may be all doors, and the doors for which the courier or property staff has the authority to open doors may be the trunk doors.
  • the vehicle owner can set the door information for other personnel with the authority to open the door.
  • the doors for which passengers have the right to open doors may be non-cockpit doors and trunk doors. If the door of the target object with the authority to open the door is a trunk door, the door unlocking instruction can be sent to the trunk door lock.
  • the door of the target object with the permission to open the door only includes the trunk door, it can send the door closing instruction to the trunk door lock after the preset duration of the door unlocking instruction is sent to the trunk door lock, for example, preset The duration can be 3 minutes.
  • the door that the courier has the right to open includes only the trunk door, he can send the door unlock instruction to the trunk door lock 3 minutes after sending the door close instruction to the trunk door lock, which can satisfy the courier's backup
  • the need for express delivery in the box can improve the safety of the car.
  • the time during which the target object has the permission to open the door may also be determined.
  • the time when the target object has the right to open the door may be all times, or may be a preset time period.
  • the time when the owner or the owner's family member has the authority to open the door may be all the time.
  • the owner can set the time for other personnel with the authority to open the door. For example, in an application scenario where a friend of a car owner borrows a car from the car owner, the car owner can set the time for the friend to have the permission to open the door to two days. For another example, after the courier contacts the car owner, the car owner can set the time for the courier to open the door to 13:00-14:00 on September 29, 2019.
  • the staff of the car rental agency can set the time for the customer to have the right to open the door to 3 days.
  • the time when the passenger has the permission to open the door may be the service period of the travel order.
  • the number of door opening permissions corresponding to the target object may be an unlimited number of times or a limited number of times.
  • the number of door opening permissions corresponding to the car owner or the car owner's family or friends may be unlimited.
  • the number of door opening permissions corresponding to the courier may be a limited number of times, such as 1 time.
  • the SoC of the door unlocking device may send a door unlocking instruction to the door domain controller to control the door to unlock.
  • performing live detection based on the first image and the first depth map includes: updating the first depth map based on the first image to obtain the second depth map; based on the first image and the second depth map , To determine the live detection result of the target object.
  • the depth value of one or more pixels in the first depth map is updated to obtain the second depth map.
  • the depth value of the depth failure pixel in the first depth map is updated to obtain the second depth map.
  • the depth invalid pixel in the depth map may refer to a pixel with an invalid depth value included in the depth map, that is, a pixel whose depth value is inaccurate or clearly inconsistent with the actual situation.
  • the number of depth failure pixels can be one or more. By updating the depth value of at least one depth failure pixel in the depth map, the depth value of the depth failure pixel is more accurate, which helps to improve the accuracy of living body detection.
  • the first depth map is a depth map with missing values
  • the second depth map is obtained by repairing the first depth map based on the first image, wherein, optionally, repairing the first depth map includes correcting
  • the depth value of pixels with missing values is determined or supplemented, but the embodiments of the present disclosure are not limited thereto.
  • the first depth map can be updated or repaired in various ways.
  • the first image is directly used for living body detection, for example, the first image is directly used to update the first depth map.
  • the first image is preprocessed, and the living body detection is performed based on the preprocessed first image.
  • the image of the target object is acquired from the first image, and the first depth map is updated based on the image of the target object.
  • the image of the target object can be intercepted from the first image in various ways.
  • perform target detection on the first image to obtain the location information of the target object, such as the location information of the bounding box of the target object, and intercept the image of the target object from the first image based on the location information of the target object .
  • the image of the area where the bounding box of the target object is intercepted from the first image is taken as the image of the target object, another example is to enlarge the bounding box of the target object by a certain multiple and intercept the area where the enlarged bounding box is located from the first image.
  • the image is the image of the target object.
  • the key point information of the target object in the first image is acquired, and based on the key point information of the target object, the image of the target object is acquired from the first image.
  • the key point information of the target object may include position information of multiple key points of the target object.
  • the key points of the target object may include one or more of eye key points, eyebrow key points, nose key points, mouth key points, and face contour key points.
  • the eye key points may include one or more of eye contour key points, eye corner key points, and pupil key points.
  • the contour of the target object is determined based on the key point information of the target object, and the image of the target object is intercepted from the first image according to the contour of the target object.
  • the position of the target object obtained through the key point information is more accurate, which is beneficial to improve the accuracy of subsequent living body detection.
  • the contour of the target object in the first image can be determined based on the key points of the target object in the first image, and the image of the area where the contour of the target object in the first image is located or the image of the area obtained after a certain magnification Determine the image of the target object.
  • the elliptical area determined based on the key points of the target object in the first image may be determined as the image of the target object, or the minimum circumscribed rectangular area of the elliptical area determined based on the key points of the target object in the first image may be determined It is the image of the target object, but the embodiment of the present disclosure does not limit this.
  • the interference of the background information in the first image on the living body detection can be reduced.
  • the acquired original depth map may be updated, or, in some embodiments, the depth map of the target object is acquired from the first depth map, and the target object’s depth map is updated based on the first image. Depth map to get the second depth map.
  • the position information of the target object in the first image is acquired, and based on the position information of the target object, the depth map of the target object is acquired from the first depth map.
  • the first depth map and the first image may be registered or aligned in advance, but the embodiment of the present disclosure does not limit this.
  • the second depth map is obtained, which can reduce the background information in the first depth map for living body detection The interference produced.
  • the first image and the first depth map corresponding to the first image are acquired, the first image and the first depth map are aligned according to the parameters of the image sensor and the parameters of the depth sensor.
  • conversion processing may be performed on the first depth map, so that the first depth map after the conversion processing is aligned with the first image.
  • the first conversion matrix can be determined according to the parameters of the depth sensor and the parameters of the image sensor, and the first depth map can be converted according to the first conversion matrix.
  • at least a part of the converted first depth map may be updated to obtain a second depth map.
  • the first depth map after the conversion processing is updated to obtain the second depth map.
  • the depth map of the target object intercepted from the first depth map is updated to obtain the second depth map, and so on.
  • conversion processing may be performed on the first image, so that the converted first image is aligned with the first depth map.
  • the second conversion matrix can be determined according to the parameters of the depth sensor and the parameters of the image sensor, and the first image can be converted according to the second conversion matrix.
  • at least a part of the converted first image at least a part of the first depth map may be updated to obtain a second depth map.
  • the parameters of the depth sensor may include internal parameters and/or external parameters of the depth sensor
  • the parameters of the image sensor may include internal parameters and/or external parameters of the image sensor.
  • the first image is an original image (for example, an RGB or infrared image).
  • the first image may also refer to an image of a target object intercepted from the original image.
  • the first image A depth map may also refer to a depth map of the target object intercepted from the original depth map, which is not limited in the embodiment of the present disclosure.
  • FIG. 5 shows a schematic diagram of an example of a living body detection method according to an embodiment of the present disclosure.
  • the first image is an RGB image and the target object is a human face.
  • the RGB image and the first depth map are aligned and corrected, and the processed image is input into the face key point model for processing , Get the RGB face map (the image of the target object) and the depth face map (the depth map of the target object), and update or repair the depth face map based on the RGB face map.
  • Get the RGB face map the image of the target object
  • the depth face map the depth map of the target object
  • the live detection result of the target object may be that the target object is a living body or the target object is a prosthesis.
  • the first image and the second depth map are input to the living body detection neural network for processing, and the living body detection result of the target object in the first image is obtained.
  • the first image and the second depth map are processed by other living body detection algorithms to obtain the living body detection result.
  • feature extraction is performed on the first image to obtain first feature information; feature extraction is performed on the second depth map to obtain second feature information; based on the first feature information and the second feature information, the first feature information is determined The live detection result of the target object in an image.
  • the feature extraction process can be implemented by a neural network or other machine learning algorithms, and the type of feature information extracted can optionally be obtained by learning a sample, which is not limited in the embodiment of the present disclosure.
  • the acquired depth map (such as the depth map collected by the depth sensor) may be partially invalid.
  • the depth map may randomly cause partial failure of the depth map.
  • some special paper quality can make the printed face photos produce a similar effect of large-area failure or partial failure of the depth map.
  • the depth map can also be partially invalidated, and the imaging of the prosthesis on the image sensor is normal. Therefore, in the case of partial or complete failure of some depth maps, using the depth map to distinguish between the living body and the prosthesis will cause errors. Therefore, in the embodiments of the present disclosure, by repairing or updating the first depth map, and using the repaired or updated depth map for living body detection, it is beneficial to improve the accuracy of living body detection.
  • FIG. 6 shows a schematic diagram of an example of determining the result of the living body detection of the target object in the first image based on the first image and the second depth map in the living body detection method according to an embodiment of the present disclosure.
  • the first image and the second depth map are input into the living body detection network for living body detection processing, and the living body detection result is obtained.
  • the living body detection network includes two branches, namely a first sub-network and a second sub-network.
  • the first sub-network is used to perform feature extraction processing on the first image to obtain first feature information.
  • the two sub-networks are used to perform feature extraction processing on the second depth map to obtain second feature information.
  • the first sub-network may include a convolutional layer, a downsampling layer, and a fully connected layer.
  • the first sub-network may include a first-level convolutional layer, a first-level down-sampling layer, and a first-level fully connected layer.
  • the level of convolutional layer may include one or more convolutional layers
  • the level of downsampling layer may include one or more downsampling layers
  • the level of fully connected layer may include one or more fully connected layers.
  • the first sub-network may include a multi-level convolutional layer, a multi-level down-sampling layer, and a first-level fully connected layer.
  • each level of convolutional layer may include one or more convolutional layers
  • each level of downsampling layer may include one or more downsampling layers
  • this level of fully connected layer may include one or more fully connected layers.
  • the i-th convolutional layer is cascaded after the i-th down-sampling layer
  • the i-th down-sampling layer is cascaded after the i+1-th convolutional layer
  • the n-th down-sampling layer is cascaded after the fully connected layer, where , I and n are both positive integers, 1 ⁇ i ⁇ n, n represents the number of convolutional layers and downsampling layers in the depth prediction neural network.
  • the first sub-network may include a convolutional layer, a down-sampling layer, a normalization layer, and a fully connected layer.
  • the first sub-network may include a first-level convolutional layer, a normalization layer, a first-level down-sampling layer, and a first-level fully connected layer.
  • the level of convolutional layer may include one or more convolutional layers
  • the level of downsampling layer may include one or more downsampling layers
  • the level of fully connected layer may include one or more fully connected layers.
  • the first sub-network may include a multi-level convolutional layer, a plurality of normalization layers, a multi-level down-sampling layer, and a first-level fully connected layer.
  • each level of convolutional layer may include one or more convolutional layers
  • each level of downsampling layer may include one or more downsampling layers
  • this level of fully connected layer may include one or more fully connected layers.
  • the i-th normalized layer is cascaded after the i-th convolutional layer
  • the i-th downsampling layer is cascaded after the i-th normalized layer
  • the i+1-th level is cascaded after the i-th down-sampling layer Convolutional layer, cascaded fully connected layer after the nth downsampling layer, where i and n are both positive integers, 1 ⁇ i ⁇ n, and n represents the number of convolutional and downsampling layers in the first sub-network And the number of normalization layers.
  • the first image may be subjected to convolution processing and down-sampling processing through a first-level convolution layer and a first-level down-sampling layer.
  • the level of convolutional layer may include one or more convolutional layers
  • the level of downsampling layer may include one or more downsampling layers.
  • the first image may be subjected to convolution processing and down-sampling processing through a multi-level convolution layer and a multi-level down-sampling layer.
  • each level of convolutional layer may include one or more convolutional layers
  • each level of downsampling layer may include one or more downsampling layers.
  • performing down-sampling processing on the first convolution result to obtain the first down-sampling result may include: performing normalization processing on the first convolution result to obtain the first normalization result; and performing the first normalization result Perform down-sampling processing to obtain the first down-sampling result.
  • the first down-sampling result may be input to the fully connected layer, and the first down-sampling result may be fused through the fully connected layer to obtain the first characteristic information.
  • the second sub-network and the first sub-network have the same network structure, but have different parameters.
  • the second sub-network has a different network structure from the first sub-network, which is not limited in the embodiment of the present disclosure.
  • the living body detection network also includes a third sub-network for processing the first feature information obtained by the first sub-network and the second feature information obtained by the second sub-network to obtain the target in the first image.
  • the result of the live test of the subject may include a fully connected layer and an output layer.
  • the output layer adopts the softmax function. If the output of the output layer is 1, it means that the target object is a living body, and if the output of the output layer is 0, it means that the target object is a prosthesis.
  • the specific implementation is not limited.
  • the first feature information and the second feature information are fused to obtain the third feature information; based on the third feature information, the live detection result of the target object in the first image is determined.
  • the first feature information and the second feature information are fused through the fully connected layer to obtain the third feature information.
  • the probability that the target object in the first image is a living body is obtained, and the living body detection result of the target object is determined according to the probability that the target object is a living body.
  • the target object's living body detection result is that the target object is a living body.
  • the probability that the target object is a living body is less than or equal to the second threshold, it is determined that the living body detection result of the target object is a prosthesis.
  • the probability that the target object is a prosthesis is obtained, and the live detection result of the target object is determined according to the probability that the target object is the prosthesis. For example, if the probability that the target object is a prosthesis is greater than the third threshold, it is determined that the target object's live body detection result is that the target object is a prosthesis. For another example, if the probability that the target object is a prosthesis is less than or equal to the third threshold, it is determined that the live body detection result of the target object is a live body.
  • the third feature information can be input into the Softmax layer, and the probability that the target object is a living body or a prosthesis can be obtained through the Softmax layer.
  • the output of the Softmax layer includes two neurons, where one neuron represents the probability that the target object is a living body, and the other neuron represents the probability that the target object is a prosthesis, but the embodiments of the present disclosure are not limited thereto.
  • the live detection result of the target object in the first image is determined, so that the depth map can be perfected, thereby improving the accuracy of the live detection.
  • updating the first depth map based on the first image to obtain the second depth map includes: determining depth prediction values and associated information of multiple pixels in the first image based on the first image, where , The association information of the plurality of pixels indicates the degree of association between the plurality of pixels; based on the depth prediction value and the association information of the plurality of pixels, the first depth map is updated to obtain the second depth map.
  • the depth prediction values of multiple pixels in the first image are determined based on the first image, and the first depth map is repaired and perfected based on the depth prediction values of the multiple pixels.
  • the depth prediction values of multiple pixels in the first image are obtained.
  • the first image is input into the depth prediction depth network for processing to obtain the depth prediction results of multiple pixels, for example, the depth prediction map corresponding to the first image is obtained, but the embodiment of the present disclosure does not limit this.
  • the depth prediction values of multiple pixels in the first image are determined.
  • the first image and the first depth map are input to the depth prediction neural network for processing to obtain depth prediction values of multiple pixels in the first image.
  • the first image and the first depth map are processed in other ways to obtain depth prediction values of multiple pixels, which is not limited in the embodiment of the present disclosure.
  • Fig. 7 shows a schematic diagram of a depth prediction neural network in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • the first image and the first depth map can be input to the depth prediction neural network for processing to obtain an initial depth estimation map.
  • the depth prediction values of multiple pixels in the first image can be determined.
  • the pixel value of the initial depth estimation map is the depth prediction value of the corresponding pixel in the first image.
  • the deep prediction neural network can be realized through a variety of network structures.
  • the depth prediction neural network includes an encoding part and a decoding part.
  • the encoding part may include a convolutional layer and a downsampling layer
  • the decoding part may include a deconvolutional layer and/or an upsampling layer.
  • the encoding part and/or the decoding part may further include a normalization layer, and the embodiment of the present disclosure does not limit the specific implementation of the encoding part and the decoding part.
  • the resolution of the feature map gradually decreases, and the number of feature maps gradually increases, so that rich semantic features and image spatial features can be obtained; in the decoding part, the resolution of the feature map gradually increases Large, the resolution of the feature map finally output by the decoding part is the same as the resolution of the first depth map.
  • fusion processing is performed on the first image and the first depth map to obtain a fusion result, and based on the fusion result, the depth prediction values of multiple pixels in the first image are determined.
  • the first image and the first depth map can be concat to obtain the fusion result.
  • convolution processing is performed on the fusion result to obtain the second convolution result; down-sampling processing is performed based on the second convolution result to obtain the first encoding result; based on the first encoding result, multiple images in the first image are determined The predicted depth value of the pixel.
  • convolution processing may be performed on the fusion result through the convolution layer to obtain the second convolution result.
  • normalization processing is performed on the second convolution result to obtain the second normalization result; down sampling processing is performed on the second normalization result to obtain the first encoding result.
  • the second normalized result can be normalized by the normalization layer to obtain the second normalized result; the second normalized result can be down-sampled by the down-sampling layer to obtain the first encoding result .
  • the second convolution result may be down-sampled through the down-sampling layer to obtain the first encoding result.
  • the first encoding result can be deconvolved by the deconvolution layer to obtain the first deconvolution result; the first deconvolution result can be normalized by the normalization layer to obtain the depth prediction value .
  • the first encoding result may be deconvolved through the deconvolution layer to obtain the depth prediction value.
  • the up-sampling process may be performed on the first encoding result through the up-sampling layer to obtain the first up-sampling result; the first up-sampling result may be normalized through the normalization layer to obtain the depth prediction value.
  • the upsampling process may be performed on the first encoding result through the upsampling layer to obtain the depth prediction value.
  • the association information of the plurality of pixels in the first image may include the degree of association between each pixel in the plurality of pixels of the first image and its surrounding pixels.
  • the surrounding pixels of the pixel may include at least one adjacent pixel of the pixel, or include a plurality of pixels that are separated from the pixel by no more than a certain value.
  • the surrounding pixels of pixel 5 include pixels 1, pixel 2, pixel 3, pixel 4, pixel 6, pixel 7, pixel 8, and pixel 9 adjacent to it. Accordingly, there are more pixels in the first image.
  • the associated information of each pixel includes pixel 1, pixel 2, pixel 3, pixel 4, pixel 6, pixel 7, pixel 8, and the degree of association between pixel 9 and pixel 5.
  • the degree of association between the first pixel and the second pixel may be measured by the correlation between the first pixel and the second pixel.
  • the embodiments of the present disclosure may use related technologies to determine the correlation between pixels. This will not be repeated here.
  • the associated information of multiple pixels can be determined in various ways.
  • the first image is input to the correlation detection neural network for processing to obtain correlation information of multiple pixels in the first image.
  • the associated feature map corresponding to the first image is obtained.
  • other algorithms may be used to obtain the associated information of multiple pixels, which is not limited in the embodiment of the present disclosure.
  • Fig. 8 shows a schematic diagram of a correlation detection neural network in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • the first image is input to the correlation detection neural network for processing, and multiple correlation feature maps are obtained.
  • the associated information of multiple pixels in the first image can be determined.
  • the surrounding pixels of a certain pixel refer to the pixels whose distance from the pixel is equal to 0, that is, the surrounding pixels of the pixel refer to the pixels adjacent to the pixel
  • the correlation detection neural network can output 8 correlations Feature map.
  • the correlation detection neural network can be realized through a variety of network structures.
  • the correlation detection neural network may include an encoding part and a decoding part.
  • the coding part may include a convolutional layer and a downsampling layer, and the decoding part may include a deconvolutional layer and/or an upsampling layer.
  • the encoding part may also include a normalization layer, and the decoding part may also include a normalization layer.
  • the resolution of the feature map gradually decreases, and the number of feature maps gradually increases, so as to obtain rich semantic features and image spatial features; in the decoding part, the resolution of the feature map gradually increases, and the final output feature map of the decoding part
  • the resolution is the same as the resolution of the first image.
  • the associated information may be an image, or may be other data forms, such as a matrix.
  • inputting the first image into the correlation detection neural network for processing to obtain correlation information of multiple pixels in the first image may include: performing convolution processing on the first image to obtain a third convolution result; The third convolution result is subjected to down-sampling processing to obtain the second encoding result; based on the second encoding result, the associated information of multiple pixels in the first image is obtained.
  • the first image may be convolved through the convolution layer to obtain the third convolution result.
  • performing down-sampling processing based on the third convolution result to obtain the second encoding result may include: normalizing the third convolution result to obtain the third normalization result; normalizing the third The transformation result is subjected to down-sampling processing to obtain the second encoding result.
  • the third convolution result can be normalized by the normalization layer to obtain the third normalized result; the third normalized result can be downsampled by the downsampling layer to obtain the second Encoding results.
  • the third convolution result may be down-sampled through the down-sampling layer to obtain the second encoding result.
  • determining the associated information based on the second encoding result may include: performing deconvolution processing on the second encoding result to obtain a second deconvolution result; performing normalization processing on the second deconvolution result, Get related information.
  • the second encoding result can be deconvolved through the deconvolution layer to obtain the second deconvolution result; the second deconvolution result can be normalized through the normalization layer to obtain the correlation information.
  • the second encoding result may be deconvolved through the deconvolution layer to obtain the associated information.
  • determining the associated information based on the second encoding result may include: performing up-sampling processing on the second encoding result to obtain the second up-sampling result; normalizing the second up-sampling result to obtain the associated information .
  • the second encoding result may be up-sampled through the up-sampling layer to obtain the second up-sampling result; the second up-sampling result may be normalized through the normalization layer to obtain the associated information.
  • the second encoding result may be up-sampled through the up-sampling layer to obtain the associated information.
  • the 3D living body detection algorithm based on the self-improvement of the depth map proposed in the embodiments of the present disclosure improves the performance of the 3D living body detection algorithm by perfecting and repairing the depth map detected by the 3D sensor.
  • the first depth map is updated based on the depth prediction values and associated information of the multiple pixels to obtain the second depth map.
  • Fig. 9 shows an exemplary schematic diagram of updating the depth map in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • the first depth map is a depth map with missing values
  • the obtained depth prediction values and associated information of multiple pixels are the initial depth estimation map and the associated feature map.
  • the value depth map, the initial depth estimation map, and the associated feature map are input to the depth map update module (for example, the depth update neural network) for processing to obtain the final depth map, that is, the second depth map.
  • the depth map update module for example, the depth update neural network
  • the depth prediction value of the depth failure pixel and the depth prediction value of multiple surrounding pixels of the depth failure pixel are obtained from the depth prediction values of the plurality of pixels; the depth failure value is obtained from the associated information of the plurality of pixels
  • the correlation between the pixel and the multiple surrounding pixels of the depth-failed pixel; based on the depth prediction value of the depth-failed pixel, the depth prediction value of the multiple surrounding pixels of the depth-failed pixel, and the relationship between the depth-failed pixel and the surrounding pixels of the depth-failed pixel The correlation degree between the two determines the updated depth value of the depth failure pixel.
  • the depth invalid pixels in the depth map can be determined in various ways.
  • a pixel with a depth value equal to 0 in the first depth map is determined as a depth failure pixel, or a pixel in the first depth map without a depth value is determined as a depth failure pixel.
  • the depth value part of the first depth map with missing values that is, the depth value is not 0
  • we believe that the depth value is correct and credible and this part is not updated and the original depth is retained value.
  • the depth value of the pixel whose depth value is 0 in the first depth map is updated.
  • the depth sensor may set the depth value of the depth failure pixel to one or more preset values or preset ranges.
  • pixels whose depth values in the first depth map are equal to a preset value or belonging to a preset range may be determined as depth-invalidated pixels.
  • the embodiment of the present disclosure may also determine the depth failure pixel in the first depth map based on other statistical methods, which is not limited in the embodiment of the present disclosure.
  • the depth value of the pixel in the first image with the same position as the depth failure pixel can be determined as the depth prediction value of the depth failure pixel.
  • the surrounding pixel positions of the depth failure pixel in the first image can be determined.
  • the depth value of the same pixel is determined as the depth prediction value of the surrounding pixels of the depth failure pixel.
  • the distance between the surrounding pixels of the depth failure pixel and the depth failure pixel is less than or equal to the first threshold.
  • FIG. 10 shows a schematic diagram of surrounding pixels in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • the first threshold is 0, only neighbor pixels are used as surrounding pixels.
  • the neighboring pixels of pixel 5 include pixel 1, pixel 2, pixel 3, pixel 4, pixel 6, pixel 7, pixel 8, and pixel 9, then only pixel 1, pixel 2, pixel 3, pixel 4, pixel 6, Pixel 7, pixel 8, and pixel 9 serve as surrounding pixels of pixel 5.
  • FIG. 11 shows another schematic diagram of surrounding pixels in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • the first threshold is 1, in addition to using neighbor pixels as surrounding pixels, neighbor pixels of neighbor pixels are also used as surrounding pixels. That is, in addition to pixels 1, pixel 2, pixel 3, pixel 4, pixel 6, pixel 7, pixel 8, and pixel 9 as surrounding pixels of pixel 5, pixels 10 to 25 are used as surrounding pixels of pixel 5.
  • the depth correlation value of the depth failure pixel is determined; depth prediction based on the depth failure pixel The value and the depth associated value determine the updated depth value of the depth failure pixel.
  • the effective depth value of the surrounding pixel for the depth failing pixel determines the effective depth value of the surrounding pixel for the depth failing pixel; based on each surrounding of the depth failing pixel
  • the effective depth value of the pixel for the depth failure pixel and the depth prediction value of the depth failure pixel determine the updated depth value of the depth failure pixel.
  • the product of the depth prediction value of a certain surrounding pixel of the depth failure pixel and the correlation degree corresponding to the surrounding pixel can be determined as the effective depth value of the surrounding pixel for the depth failure pixel, where the correlation degree corresponding to the surrounding pixel It refers to the degree of correlation between the surrounding pixels and the depth failure pixels.
  • the product of the sum of the effective depth values of the depth-failed pixels for the depth-failed pixels and the first preset coefficient is determined to obtain the first product; determine the depth prediction value of the depth-failed pixels and the second preset coefficient
  • the product is multiplied to obtain the second product; the sum of the first product and the second product is determined as the updated depth value of the depth failure pixel.
  • the sum of the first preset coefficient and the second preset coefficient is 1.
  • the degree of association between the depth failure pixel and each surrounding pixel is used as the weight of each surrounding pixel, and the depth prediction values of multiple surrounding pixels of the depth failure pixel are weighted and summed to obtain the depth failure pixel The depth of the correlation value. For example, if pixel 5 is a depth failure pixel, the depth correlation value of depth failure pixel 5 is And formula 1 can be used to determine the updated depth value F 5 ′ of the depth failure pixel 5,
  • W i represents the correlation between the pixel i and the pixel 5
  • F i represents the depth of the prediction value of pixel i.
  • the product of the correlation between each surrounding pixel and the depth failing pixel in the multiple surrounding pixels of the depth failure pixel and the depth prediction value of each surrounding pixel is determined; the maximum value of the product is determined as the depth failure The depth associated value of the pixel.
  • the sum of the depth prediction value of the depth failure pixel and the depth associated value is determined as the updated depth value of the depth failure pixel.
  • the product of the depth prediction value of the depth failure pixel and the third preset coefficient is determined to obtain the third product; the product of the depth correlation value and the fourth preset coefficient is determined to obtain the fourth product; and the third product is multiplied by The sum of the fourth product is determined as the updated depth value of the depth failure pixel. In some embodiments, the sum of the third preset coefficient and the fourth preset coefficient is 1.
  • the depth value of the non-depth failure pixel in the second depth map is equal to the depth value of the non-depth failure pixel in the first depth map.
  • the depth value of the non-depth failure pixel may also be updated to obtain a more accurate second depth map, which can further improve the accuracy of the living body detection.
  • the Bluetooth module provided in the car searches for the Bluetooth device with the preset identification, and in response to the search for the Bluetooth device with the preset identification, the Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification is established, in response to The Bluetooth pairing connection is successful, wake up and control the image acquisition module installed in the car to collect the first image of the target object, perform face recognition based on the first image, and send the door unlock to at least one door of the car in response to the successful face recognition Commands and/or open door commands, so that when a Bluetooth pairing connection is not established with a Bluetooth device with a preset logo, the face recognition module can be in a dormant state to maintain low-power operation, thereby reducing the amount of face recognition and opening the door.
  • the embodiments of the present disclosure can not only meet the requirements of low-power operation, but also meet the requirements of fast opening doors.
  • the living body detection and face authentication process can be automatically triggered, and it is automatically turned on after the owner passes the living body detection and face authentication. Car door.
  • the method further includes: in response to a face recognition failure, activating a password unlocking module provided in the car to start a password unlocking process.
  • password unlocking is an alternative to face recognition unlocking.
  • the reasons for the failure of face recognition may include at least one of the result of the living body detection being that the target object is a prosthesis, the face authentication failure, the failure of image collection (for example, a camera failure), and the number of recognition times exceeding a predetermined number.
  • the password unlocking process is initiated.
  • the password entered by the user can be obtained through the touch screen on the B-pillar.
  • the password unlocking will become invalid, for example, M is equal to 5.
  • the method further includes one or both of the following: performing vehicle owner registration based on the facial image of the vehicle owner collected by the image acquisition module; performing remotely based on the facial image of the vehicle owner collected by the vehicle owner’s terminal device Register and send the registration information to the car, where the registration information includes the face image of the car owner.
  • the registration of the car owner based on the face image of the car owner collected by the image acquisition module includes: when the registration button on the touch screen is detected to be clicked, the user is requested to enter a password, and after the password verification is passed, the image acquisition module is started.
  • the RGB cameras in the group acquire the user’s face image, and register according to the acquired face image, and extract the facial features in the face image as pre-registered facial features to be based on the pre-registered facial features during subsequent face authentication. Compare the registered face features.
  • remote registration is performed according to the face image of the vehicle owner collected by the terminal device of the vehicle owner, and the registration information is sent to the vehicle, where the registration information includes the face image of the vehicle owner.
  • the car owner can send a registration request to the TSP (Telematics Service Provider) cloud through the mobile phone App (Application), where the registration request can carry the face image of the car owner; the TSP cloud sends the registration request Send to the vehicle-mounted T-Box (Telematics Box, telematics processor) of the door unlocking device.
  • the vehicle-mounted T-Box activates the face recognition function according to the registration request, and uses the facial features in the face image carried in the registration request as the pre- The registered facial features are compared based on the pre-registered facial features in subsequent face authentication.
  • FIG. 12 shows another flowchart of a method for unlocking a vehicle door according to an embodiment of the present disclosure.
  • the vehicle door unlocking method may be executed by a vehicle door unlocking device.
  • the method for unlocking the vehicle door may be implemented by a processor calling a computer readable instruction stored in the memory.
  • the method for unlocking the vehicle door includes steps S21 to S24.
  • step S21 the Bluetooth module installed in the car searches for a Bluetooth device with a preset identification.
  • the search for a Bluetooth device with a preset identifier via the Bluetooth module provided in the car includes: when the car is in a stalled state or in a stalled state with the door locked, The Bluetooth module of the car searches for the Bluetooth device with preset identification.
  • step S22 in response to searching for the Bluetooth device with the preset identifier, wake up and control the image acquisition module provided in the vehicle to acquire the first image of the target object.
  • the number of Bluetooth devices with the preset identification is one.
  • the number of Bluetooth devices with the preset identification is multiple; and in response to searching for the Bluetooth device with the preset identification, wake up and control the image collection set in the car
  • the module collecting the first image of the target object includes: in response to searching for any Bluetooth device with a preset identification, waking up and controlling the image collecting module installed in the vehicle to collect the first image of the target object.
  • the awakening and controlling the image acquisition module installed in the car to collect the first image of the target object includes: awakening the face recognition module installed in the car; The face recognition module controls the image acquisition module to acquire the first image of the target object.
  • the embodiments of the present disclosure can support a larger distance by adopting Bluetooth.
  • Practice shows that the time when a user carrying a Bluetooth device with a preset logo passes through this distance (the distance between the user and the car when the Bluetooth module of the car searches for the Bluetooth device with the user's preset logo), and the car wakes up the face
  • the time for the recognition module to switch from the sleep state to the working state roughly matches, so that when the user arrives at the door, the face recognition module can be used to recognize the door immediately without having to wait after the user arrives at the door
  • the face recognition module is awakened, which can increase the efficiency of face recognition and improve user experience.
  • the embodiments of the present disclosure provide a way of waking up the face recognition module in response to searching for the Bluetooth device with the preset identification, which can better weigh the face recognition module power saving, user experience, and security. Aspects of the solution.
  • the method further includes: if no face image is collected within a preset time, controlling the person The face recognition module enters a sleep state.
  • the method further includes: if the face recognition fails within a preset time, controlling the face The recognition module enters a sleep state.
  • step S23 face recognition is performed based on the first image.
  • step S24 in response to successful face recognition, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
  • sending a door unlocking instruction and/or opening a door instruction to at least one door of the vehicle includes: determining the target in response to successful face recognition The door for which the object has the authority to open the door; according to the door for which the target object has the authority to open the door, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
  • the face recognition includes: living body detection and face authentication;
  • the performing face recognition based on the first image includes: collecting by an image sensor in the image acquisition module The first image, and perform face authentication based on the first image and pre-registered facial features; collect the first depth map corresponding to the first image through the depth sensor in the image acquisition module, and Performing living body detection based on the first image and the first depth map.
  • the performing living body detection based on the first image and the first depth map includes: updating the first depth map based on the first image to obtain a second depth map ; Based on the first image and the second depth map, determine the live detection result of the target object.
  • the image sensor includes an RGB image sensor or an infrared sensor;
  • the depth sensor includes a binocular infrared sensor or a time-of-flight TOF sensor.
  • the TOF sensor adopts a TOF module based on an infrared band.
  • the updating the first depth map based on the first image to obtain the second depth map includes: comparing the data in the first depth map based on the first image The depth value of the depth failure pixel is updated to obtain the second depth map.
  • the updating the first depth map based on the first image to obtain the second depth map includes: determining a plurality of the first images based on the first image The depth prediction value and associated information of the pixel, wherein the associated information of the plurality of pixels indicates the degree of association between the plurality of pixels; based on the depth prediction value and the associated information of the plurality of pixels, the first Depth map to get the second depth map.
  • the updating the first depth map based on the depth prediction values and associated information of the plurality of pixels to obtain a second depth map includes: determining the value in the first depth map Depth failure pixel; obtaining the depth prediction value of the depth failure pixel and the depth prediction value of a plurality of surrounding pixels of the depth failure pixel from the depth prediction values of the plurality of pixels; from the associated information of the plurality of pixels Obtaining the correlation between the depth failure pixel and multiple surrounding pixels of the depth failure pixel; based on the depth prediction value of the depth failure pixel, the depth prediction value of the multiple surrounding pixels of the depth failure pixel, And the degree of association between the depth failure pixel and surrounding pixels of the depth failure pixel to determine the updated depth value of the depth failure pixel.
  • the depth prediction value based on the depth failure pixel, the depth prediction values of multiple surrounding pixels of the depth failure pixel, and the difference between the depth failure pixel and the depth failure pixel Determining the updated depth value of the depth failure pixel based on the correlation between multiple surrounding pixels, including: the depth prediction value of the surrounding pixels based on the depth failure pixel and the depth failure pixel and the depth failure pixel Determine the depth correlation value of the depth failure pixel; determine the updated depth of the depth failure pixel based on the depth prediction value of the depth failure pixel and the depth correlation value value.
  • the determining the depth prediction value based on the depth prediction value of the surrounding pixels of the depth failure pixel and the correlation between the depth failure pixel and the multiple surrounding pixels of the depth failure pixel includes: using the correlation degree between the depth failure pixel and each surrounding pixel as the weight of each surrounding pixel, and predicting the depth of multiple surrounding pixels of the depth failure pixel The value is weighted and summed to obtain the depth associated value of the depth failure pixel.
  • the determining depth prediction values of multiple pixels in the first image based on the first image includes: determining based on the first image and the first depth map Depth prediction values of multiple pixels in the first image.
  • the determining the depth prediction values of multiple pixels in the first image based on the first image and the first depth map includes: combining the first image and the The first depth map is input to a depth prediction neural network for processing to obtain depth prediction values of multiple pixels in the first image.
  • the determining the depth prediction values of multiple pixels in the first image based on the first image and the first depth map includes: comparing the first image and the first depth map.
  • the first depth map is subjected to fusion processing to obtain a fusion result; based on the fusion result, the depth prediction values of multiple pixels in the first image are determined.
  • the determining the association information of multiple pixels in the first image based on the first image includes: inputting the first image to a correlation detection neural network for processing, Obtain the associated information of multiple pixels in the first image.
  • the updating the first depth map based on the first image includes: acquiring an image of the target object from the first image; and based on the image of the target object , Update the first depth map.
  • the obtaining an image of the target object from the first image includes: obtaining key point information of the target object in the first image;
  • the key point information is to obtain the image of the target object from the first image.
  • the acquiring key point information of the target object in the first image includes: performing target detection on the first image to obtain the area where the target object is located; The image of the area where the target object is located performs key point detection to obtain the key point information of the target object in the first image.
  • the updating the first depth map based on the first image to obtain a second depth map includes: obtaining a depth map of the target object from the first depth map ; Based on the first image, update the depth map of the target object to obtain the second depth map.
  • the determining the live detection result of the target object based on the first image and the second depth map includes: combining the first image and the second depth map Input to the living body detection neural network for processing, and obtain the living body detection result of the target object.
  • the determining the live detection result of the target object based on the first image and the second depth map includes: performing feature extraction processing on the first image to obtain the first image One feature information; performing feature extraction processing on the second depth map to obtain second feature information; and determining the live detection result of the target object based on the first feature information and the second feature information.
  • the determining the live detection result of the target object based on the first feature information and the second feature information includes: comparing the first feature information and the second feature information The feature information is fused to obtain third feature information; based on the third feature information, the live detection result of the target object is determined.
  • the determining the live detection result of the target object based on the third characteristic information includes: obtaining the probability that the target object is alive based on the third characteristic information; The probability that the target object is a living body determines the result of the living body detection of the target object.
  • the method further includes: in response to the face recognition failure, activating a password unlocking module provided in the car to activate the password Unlocking process.
  • the method further includes one or both of the following: performing vehicle owner registration based on the face image of the vehicle owner collected by the image acquisition module; and performing vehicle owner registration based on the vehicle owner’s terminal device collected
  • the face image of the vehicle owner is remotely registered and the registration information is sent to the vehicle, where the registration information includes the face image of the vehicle owner.
  • the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possibility.
  • the inner logic is determined.
  • the present disclosure also provides a vehicle door unlocking device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any of the vehicle door unlocking methods provided in the present disclosure.
  • a vehicle door unlocking device an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any of the vehicle door unlocking methods provided in the present disclosure.
  • FIG. 13 shows a block diagram of a vehicle door unlocking device according to an embodiment of the present disclosure.
  • the vehicle door unlocking device includes: a search module 31, which is used to search for a Bluetooth device with a preset identification via a Bluetooth module provided in the car;
  • the Bluetooth device establishes a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification, and in response to the successful Bluetooth pairing connection, wakes up and controls the image acquisition module set in the car to collect the second target object An image, or, in response to searching for the Bluetooth device with the preset identification, wake up and control the image acquisition module installed in the car to collect the first image of the target object;
  • the face recognition module 33 is used to The first image performs face recognition;
  • the unlocking module 34 is configured to send a door unlocking instruction and/or a door opening instruction to at least one door of the vehicle in response to a successful face recognition.
  • the Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification is established in response to searching for the Bluetooth device with the preset identification, and in response to the successful Bluetooth pairing and connection, the face recognition module is awakened and controlled
  • the image acquisition module collects the first image of the target object, and thus based on the successful Bluetooth pairing connection and then wakes up the face recognition module, it can effectively reduce the probability of falsely waking up the face recognition module, thereby improving user experience and effectively reducing The power consumption of the face recognition module.
  • the search module 31 is used to search for a Bluetooth device with a preset identification via the Bluetooth module provided in the car when the car is in the flameout state or in the flameout state and the door is locked. .
  • a Bluetooth device with a preset identification through the Bluetooth module before the car is turned off or there is no need to search for a preset identification through the Bluetooth module before the car is turned off and when the car is turned off but the door is not locked.
  • Bluetooth devices which can further reduce power consumption.
  • the number of Bluetooth devices with the preset identification is one.
  • the number of Bluetooth devices with the preset identification is multiple;
  • the wake-up module 32 is configured to establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification in response to searching for any Bluetooth device with the preset identification, or in response to searching for any preset identification
  • the Bluetooth device wakes up and controls the image acquisition module installed in the car to acquire the first image of the target object.
  • the wake-up module 32 includes: a wake-up sub-module for waking up the face recognition module installed in the car; a control sub-module for the wake-up face recognition module The group controls the image acquisition module to acquire the first image of the target object.
  • a Bluetooth device with a preset identifier if a Bluetooth device with a preset identifier is searched, it can indicate to a large extent that a user (such as a car owner) carrying the Bluetooth device with the preset identifier has entered the search range of the Bluetooth module.
  • a user such as a car owner
  • the Bluetooth device with the preset logo by responding to the search for the Bluetooth device with the preset logo, establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset logo, and in response to the successful Bluetooth pairing connection, wake up the face recognition module and control the image acquisition module Collecting the first image of the target object, based on the successful Bluetooth pairing connection and then waking up the face recognition module, can effectively reduce the probability of falsely waking up the face recognition module, thereby improving the user experience and effectively reducing the face recognition module.
  • the Bluetooth-based pairing connection method has the advantages of high security and support for larger distances.
  • Practice has shown that the time when a user carrying a Bluetooth device with a preset logo reaches the car through this distance (the distance between the user and the car when the Bluetooth pairing connection is successful), and when the car wakes up, the face recognition module switches from a sleep state to a working state
  • the face recognition module can be used to recognize the car door immediately without having to wait for the face recognition module to be awakened after the user arrives at the car door. Improve the efficiency of face recognition and improve user experience.
  • the embodiments of the present disclosure provide a solution that can better weigh the face recognition module's power saving, user experience, and security by successfully waking up the face recognition module based on the Bluetooth pairing connection.
  • the device further includes: a first control module, configured to control the face recognition module to enter a sleep state if the face image is not collected within a preset time.
  • This implementation method controls the face recognition module to enter a sleep state when no face image is collected within a preset time after the face recognition module is awakened, thereby reducing power consumption.
  • the device further includes: a second control module, configured to control the face recognition module to enter a sleep state if the face recognition fails within a preset time.
  • This implementation method controls the face recognition module to enter the sleep state when the face recognition module fails to pass the face recognition within a preset time after waking up the face recognition module, thereby reducing power consumption.
  • the unlocking module 34 is configured to: in response to successful face recognition, determine that the target object has a door opening permission; according to the door of the target object having the door opening permission, send a message to the car At least one of the doors sends a door unlock command and/or a door open command.
  • the face recognition includes: living body detection and face authentication;
  • the face recognition module 33 includes: a face authentication module, which is configured to pass through the image sensor in the image acquisition module The first image is collected, and face authentication is performed based on the first image and pre-registered facial features;
  • the living body detection module is used to collect the corresponding first image through the depth sensor in the image collection module And performing live detection based on the first image and the first depth map.
  • the living body detection is used to verify whether the target object is a living body, for example, it can be used to verify whether the target object is a human body.
  • Face authentication is used to extract the facial features in the collected images, compare the facial features in the collected images with the pre-registered facial features to determine whether they belong to the same person's facial features, for example, you can determine the collected facial features Whether the facial features in the image belong to the facial features of the vehicle owner.
  • the living body detection module includes: an update sub-module for updating the first depth map based on the first image to obtain a second depth map; and a determining sub-module for obtaining a second depth map based on the The first image and the second depth map determine the live detection result of the target object.
  • the image sensor includes an RGB image sensor or an infrared sensor;
  • the depth sensor includes a binocular infrared sensor or a time-of-flight TOF sensor.
  • Using the depth map containing the target object for living body detection can fully mine the depth information of the target object, thereby improving the accuracy of living body detection.
  • the embodiment of the present disclosure uses a depth map containing the human face to perform living body detection, which can fully mine the depth information of the face data, thereby improving the accuracy of living body face detection.
  • the TOF sensor adopts a TOF module based on an infrared band.
  • the TOF module based on the infrared band, the influence of external light on the depth map shooting can be reduced.
  • the update submodule is configured to: based on the first image, update the depth value of the depth failure pixel in the first depth map to obtain the second depth map.
  • the depth invalid pixel in the depth map may refer to a pixel with an invalid depth value included in the depth map, that is, a pixel whose depth value is inaccurate or clearly inconsistent with the actual situation.
  • the number of depth failure pixels can be one or more. By updating the depth value of at least one depth failure pixel in the depth map, the depth value of the depth failure pixel is more accurate, which helps to improve the accuracy of living body detection.
  • the update sub-module is configured to: determine the depth prediction value and associated information of multiple pixels in the first image based on the first image, wherein The association information indicates the degree of association between the plurality of pixels; based on the depth prediction values and the association information of the plurality of pixels, the first depth map is updated to obtain a second depth map.
  • the update submodule is configured to: determine a depth failure pixel in the first depth map; obtain the depth prediction of the depth failure pixel from the depth prediction values of the multiple pixels Value and the depth prediction values of the multiple surrounding pixels of the depth failing pixel; obtaining the degree of association between the depth failing pixel and the plurality of surrounding pixels of the depth failing pixel from the associated information of the plurality of pixels; Based on the depth prediction value of the depth failure pixel, the depth prediction values of a plurality of surrounding pixels of the depth failure pixel, and the degree of association between the depth failure pixel and the surrounding pixels of the depth failure pixel, the determination The updated depth value of the depth failure pixel.
  • the update sub-module is configured to: based on the depth prediction value of the surrounding pixels of the depth failure pixel and the relationship between the depth failure pixel and multiple surrounding pixels of the depth failure pixel The degree of association determines the depth associated value of the depth failing pixel; based on the depth prediction value of the depth failing pixel and the depth associated value, determining the updated depth value of the depth failing pixel.
  • the update sub-module is configured to: use the degree of association between the depth failure pixel and each surrounding pixel as the weight of each surrounding pixel, The depth prediction values of multiple surrounding pixels are weighted and summed to obtain the depth correlation value of the depth failure pixel.
  • the update submodule is configured to determine depth prediction values of multiple pixels in the first image based on the first image and the first depth map.
  • the update submodule is used to: input the first image and the first depth map to a depth prediction neural network for processing, and obtain the information of multiple pixels in the first image Depth prediction value.
  • the update submodule is configured to: perform fusion processing on the first image and the first depth map to obtain a fusion result; and determine the first image based on the fusion result The depth prediction value of multiple pixels in.
  • the update sub-module is configured to: input the first image to a correlation detection neural network for processing, and obtain correlation information of multiple pixels in the first image.
  • the update submodule is configured to: obtain an image of the target object from the first image; and update the first depth map based on the image of the target object.
  • the update sub-module is used to: obtain key point information of the target object in the first image; based on the key point information of the target object, from the first image Obtain an image of the target object.
  • the contour of the target object is determined based on the key point information of the target object, and the image of the target object is intercepted from the first image according to the contour of the target object.
  • the position of the target object obtained through the key point information is more accurate, which is beneficial to improve the accuracy of subsequent living body detection.
  • the interference of the background information in the first image on the living body detection can be reduced.
  • the update submodule is used to: perform target detection on the first image to obtain the area where the target object is located; perform key point detection on the image of the area where the target object is located to obtain Key point information of the target object in the first image.
  • the update submodule is configured to: obtain a depth map of the target object from the first depth map; update the depth map of the target object based on the first image, Obtain the second depth map.
  • the second depth map is obtained, which can reduce the background information in the first depth map for living body detection The interference produced.
  • the acquired depth map (such as the depth map collected by the depth sensor) may be partially invalid.
  • the depth map may randomly cause partial failure of the depth map.
  • some special paper quality can make the printed face photos produce a similar effect of large-area failure or partial failure of the depth map.
  • the depth map can also be partially invalidated, and the imaging of the prosthesis on the image sensor is normal. Therefore, in the case of partial or complete failure of some depth maps, using the depth map to distinguish between the living body and the prosthesis will cause errors. Therefore, in the embodiments of the present disclosure, by repairing or updating the first depth map, and using the repaired or updated depth map for living body detection, it is beneficial to improve the accuracy of living body detection.
  • the determining submodule is configured to: input the first image and the second depth map into a living body detection neural network for processing, and obtain a living body detection result of the target object.
  • the determining submodule is configured to: perform feature extraction processing on the first image to obtain first feature information; perform feature extraction processing on the second depth map to obtain a second feature Information; based on the first feature information and the second feature information, determine the live detection result of the target object.
  • the feature extraction process can be implemented by a neural network or other machine learning algorithms, and the type of feature information extracted can optionally be obtained by learning a sample, which is not limited in the embodiment of the present disclosure.
  • the determining submodule is configured to: perform fusion processing on the first feature information and the second feature information to obtain third feature information; and determine based on the third feature information The live detection result of the target object.
  • the determining submodule is configured to: obtain the probability that the target object is a living body based on the third characteristic information; determine the target object according to the probability that the target object is a living body Live test results.
  • the device further includes an activation and activation module, configured to activate a password unlocking module provided in the car in response to a face recognition failure to initiate a password unlocking process.
  • password unlocking is an alternative to face recognition unlocking.
  • the reasons for the failure of face recognition may include at least one of the result of the living body detection being that the target object is a prosthesis, the face authentication failure, the failure of image collection (for example, a camera failure), and the number of recognition times exceeding a predetermined number.
  • the password unlocking process is initiated.
  • the password entered by the user can be obtained through the touch screen on the B-pillar.
  • the device further includes a registration module, the registration module is used for one or both of the following: Carrying out car owner registration according to the face image of the car owner collected by the image collection module; The face image of the vehicle owner collected by the terminal device of the vehicle owner is remotely registered, and the registration information is sent to the vehicle, where the registration information includes the face image of the vehicle owner.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • Fig. 14 shows a block diagram of a vehicle face unlocking system according to an embodiment of the present disclosure.
  • the vehicle face unlocking system includes: a memory 41, a face recognition module 42, an image acquisition module 43 and a Bluetooth module 44; the face recognition module 42 is connected to the memory 41, The image acquisition module 43 is connected to the Bluetooth module 44; the Bluetooth module 44 includes waking up the face recognition when the Bluetooth pairing connection with the Bluetooth device with the preset identification succeeds or the Bluetooth device with the preset identification is searched
  • the microprocessor 441 of the module 42 and the Bluetooth sensor 442 connected to the microprocessor 441; the face recognition module 42 is also provided with a communication interface for connecting with the door domain controller, if the face recognition is successful, Sending control information for unlocking the door to the door domain controller based on the communication interface.
  • the memory 41 may include at least one of flash memory (Flash) and DDR3 (Double Date Rate 3, third-generation double data rate) memory.
  • the face recognition module 42 may be implemented by SoC (System on Chip).
  • the face recognition module 42 is connected to the door domain controller through a CAN (Controller Area Network, Controller Area Network) bus.
  • CAN Controller Area Network, Controller Area Network
  • the image acquisition module 43 includes an image sensor and a depth sensor.
  • the depth sensor includes at least one of a binocular infrared sensor and a time-of-flight TOF sensor.
  • the depth sensor includes a binocular infrared sensor, and two infrared cameras of the binocular infrared sensor are arranged on both sides of the camera of the image sensor.
  • the image sensor is an RGB sensor
  • the camera of the image sensor is an RGB camera
  • the depth sensor is a binocular infrared sensor.
  • the depth sensor includes two IR (infrared) cameras and two binocular infrared sensors. Two infrared cameras are arranged on both sides of the RGB camera of the image sensor.
  • the image acquisition module 43 further includes at least one fill light, the at least one fill light is arranged between the infrared camera of the binocular infrared sensor and the camera of the image sensor, and the at least one fill light includes At least one of the fill light for the image sensor and the fill light for the depth sensor.
  • the fill light used for the image sensor can be a white light
  • the fill light used for the image sensor can be an infrared light
  • the depth sensor is a binocular Infrared sensor
  • the fill light used for the depth sensor can be an infrared light.
  • an infrared lamp is provided between the infrared camera of the binocular infrared sensor and the camera of the image sensor.
  • the infrared lamp can use 940nm infrared.
  • the fill light may be in the normally-on mode. In this example, when the camera of the image acquisition module is in the working state, the fill light is in the on state.
  • the fill light can be turned on when the light is insufficient.
  • the ambient light intensity can be obtained through the ambient light sensor, and when the ambient light intensity is lower than the light intensity threshold, it is determined that the light is insufficient, and the fill light is turned on.
  • the image acquisition module 43 further includes a laser, and the laser is disposed between the camera of the depth sensor and the camera of the image sensor.
  • the image sensor is an RGB sensor
  • the camera of the image sensor is an RGB camera
  • the depth sensor is a TOF sensor
  • the laser is arranged between the camera of the TOF sensor and the camera of the RGB sensor.
  • the laser may be a VCSEL
  • the TOF sensor may collect a depth map based on the laser emitted by the VCSEL.
  • the depth sensor is connected to the face recognition system 42 through an LVDS (Low-Voltage Differential Signaling) interface.
  • LVDS Low-Voltage Differential Signaling
  • the vehicle face unlocking system further includes: a password unlocking module 45 for unlocking a vehicle door, and the password unlocking module 45 is connected to the face recognition module 42.
  • the password unlocking module 45 includes one or both of a touch screen and a keyboard.
  • the touch screen is connected to the face recognition module 42 through FPD-Link (Flat Panel Display Link, flat panel display link).
  • FPD-Link Flexible Panel Display Link, flat panel display link
  • the vehicle face unlocking system further includes a battery module 46, and the battery module 46 is respectively connected to the microprocessor 441 and the face recognition module 42.
  • the memory 41, the face recognition module 42, the Bluetooth module 44, and the battery module 46 may be built on an ECU (Electronic Control Unit, electronic control unit).
  • ECU Electronic Control Unit, electronic control unit
  • Fig. 15 shows a schematic diagram of a vehicle face unlocking system according to an embodiment of the present disclosure.
  • the face recognition module is implemented by SoC101
  • the memory includes flash memory (Flash) 102 and DDR3 memory 103
  • the Bluetooth module includes a Bluetooth sensor (Bluetooth) 104 and a microprocessor (MCU, Microcontroller Unit) 105
  • SoC101 SoC101
  • flash memory 102 DDR3 memory 103
  • Bluetooth sensor 104 microprocessor
  • microprocessor 105 battery module
  • Power Management Power Management
  • the image acquisition module includes depth sensor (3D Camera) 200, and depth sensor 200 passes LVDS
  • the interface is connected with SoC101
  • the password unlocking module includes a touch screen (Touch Screen) 300
  • the touch screen 300 is connected with SoC101 through FPD-Link
  • SoC101 is connected with door domain controller 400 through CAN bus.
  • FIG. 16 shows a schematic diagram of a car according to an embodiment of the present disclosure. As shown in FIG. 16, the vehicle includes a vehicle-mounted face unlocking system 51, and the vehicle-mounted face unlocking system 51 is connected to the door domain controller 52 of the vehicle.
  • the image acquisition module is arranged outside the exterior of the vehicle.
  • the image acquisition module is arranged in at least one of the following positions: a B-pillar of the vehicle, at least one door, and at least one rearview mirror.
  • the face recognition module is arranged in the vehicle, and the face recognition module is connected to the door domain controller via a CAN bus.
  • the embodiment of the present disclosure also proposes a computer program, including computer readable code, when the computer readable code is executed in an electronic device, the processor in the electronic device is executed to implement the above method.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above-mentioned method when executed by a processor.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium.
  • An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured as the above method.
  • the electronic device can be provided as a terminal, server or other form of device.
  • Fig. 17 is a block diagram showing an electronic device 800 according to an exemplary embodiment.
  • the electronic device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
  • the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, and a sensor component 814 , And communication component 816.
  • the processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components.
  • the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
  • the memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 804 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the power supply component 806 provides power for various components of the electronic device 800.
  • the power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device 800.
  • the multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC).
  • the microphone is configured to receive external audio signals.
  • the received audio signal may be further stored in the memory 804 or transmitted via the communication component 816.
  • the audio component 810 further includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
  • the peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation.
  • the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components.
  • the component is the display and the keypad of the electronic device 800.
  • the sensor component 814 can also detect the electronic device 800 or the electronic device 800.
  • the position of the component changes, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration/deceleration of the electronic device 800, and the temperature change of the electronic device 800.
  • the sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof.
  • the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the electronic device 800 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • ASIC application specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field A programmable gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • a non-volatile computer-readable storage medium such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the foregoing method.
  • the present disclosure may be a system, method, and/or computer program product.
  • the computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
  • the computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • flash memory flash memory
  • SRAM static random access memory
  • CD-ROM compact disk read-only memory
  • DVD digital versatile disk
  • memory stick floppy disk
  • mechanical encoding device such as a printer with instructions stored thereon
  • the computer-readable storage medium used here is not interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
  • the computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • the network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
  • the computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, or in one or more programming languages.
  • Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages.
  • Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server carried out.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to access the Internet connection).
  • LAN local area network
  • WAN wide area network
  • an electronic circuit such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions.
  • the computer-readable program instructions are executed to realize various aspects of the present disclosure.
  • These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowchart and/or block diagram is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more functions for implementing the specified logical function.
  • Executable instructions may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Lock And Its Accessories (AREA)
  • Image Analysis (AREA)
  • Collating Specific Patterns (AREA)

Abstract

Provided are a vehicle door unlocking method and device, a system, a vehicle, an electronic equipment and a storage medium. The method comprises: searching a bluetooth device with a preset identifier via a bluetooth module disposed in a vehicle (S11); in response to finding the bluetooth device with the preset identifier, establishing a bluetooth pairing connection between the bluetooth module and the bluetooth device with the preset identifier (S12); in response to successful bluetooth pairing connection, waking up and controlling an image acquisition moduledisposed in the vehicle to acquirea first image of a target object (S13); performing face recognition on the basis of the first image (S14); and in response to successful face recognition, sending a vehicle door unlocking instruction and/or a vehicle door opening instruction to at least one vehicle door (S15) of the vehicle. The technical solution can satisfythe requirements of low power consumption, quickopening of the vehicle door and improvement of user experience.

Description

车门解锁方法及装置、系统、车、电子设备和存储介质Vehicle door unlocking method and device, system, vehicle, electronic equipment and storage medium
本申请要求在2019年7月1日提交中国专利局、申请号为201910586845.6、申请名称为“车门解锁方法及装置、系统、车、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of a Chinese patent application filed with the Chinese Patent Office on July 1, 2019, the application number is 201910586845.6, and the application name is "car door unlocking method and device, system, vehicle, electronic equipment and storage medium", all of which The content is incorporated in this application by reference.
技术领域Technical field
本公开涉及车辆技术领域,尤其涉及一种车门解锁方法及装置、系统、车、电子设备和存储介质。The present disclosure relates to the field of vehicle technology, and in particular to a method and device for unlocking a vehicle door, a system, a vehicle, an electronic device, and a storage medium.
背景技术Background technique
刷脸开车门是智能车辆的一项新技术。目前,为了能够及时检测到人脸,需要保持摄像头处于打开状态;为了能够及时判断靠近车辆的人是否为车主,需要对摄像头采集的图像进行实时处理,以便快速识别车主以快速打开车门。然而,这种方式的运行功耗较高,长时间高功耗运行可能导致车辆因电量不足而无法启动,导致影响用户正常使用车辆、影响用户体验。Brushing the face to open the door is a new technology for smart vehicles. At present, in order to be able to detect the face in time, the camera needs to be kept open; in order to be able to determine whether a person approaching the vehicle is the owner of the car in time, the image collected by the camera needs to be processed in real time to quickly identify the owner to quickly open the door. However, this method has high operating power consumption, and long-term high-power operation may cause the vehicle to fail to start due to insufficient power, which will affect the normal use of the vehicle and the user experience.
发明内容Summary of the invention
本公开提出了一种车门解锁技术方案。The present disclosure proposes a technical solution for unlocking a vehicle door.
根据本公开的第一方面,提供了一种车门解锁方法,包括:According to a first aspect of the present disclosure, there is provided a method for unlocking a vehicle door, including:
经设置于车的蓝牙模块搜索预设标识的蓝牙设备;Search for Bluetooth devices with preset identification via the Bluetooth module installed in the car;
响应于搜索到所述预设标识的蓝牙设备,建立所述蓝牙模块与所述预设标识的蓝牙设备的蓝牙配对连接;In response to searching for the Bluetooth device with the preset identifier, establishing a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identifier;
响应于所述蓝牙配对连接成功,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像;In response to the successful Bluetooth pairing connection, waking up and controlling the image acquisition module provided in the vehicle to acquire the first image of the target object;
基于所述第一图像进行人脸识别;Performing face recognition based on the first image;
响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。In response to successful face recognition, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
根据本公开的第二方面,提供了一种车门解锁方法,包括:According to a second aspect of the present disclosure, there is provided a method for unlocking a vehicle door, including:
经设置于车的蓝牙模块搜索预设标识的蓝牙设备;Search for Bluetooth devices with preset identification via the Bluetooth module installed in the car;
响应于搜索到所述预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像;In response to searching for the Bluetooth device with the preset identifier, awakening and controlling the image acquisition module provided in the vehicle to acquire the first image of the target object;
基于所述第一图像进行人脸识别;Performing face recognition based on the first image;
响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。In response to successful face recognition, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
根据公开的第三方面,提供了一种车门解锁装置,包括:According to the disclosed third aspect, a vehicle door unlocking device is provided, including:
搜索模块,用于经设置于车的蓝牙模块搜索预设标识的蓝牙设备;The search module is used to search for the Bluetooth device with the preset identification via the Bluetooth module installed in the car;
唤醒模块,用于响应于搜索到所述预设标识的蓝牙设备,建立所述蓝牙模块与所述预设标识的蓝牙设备的蓝牙配对连接,并响应于所述蓝牙配对连接成功,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像,或者,响应于搜索到所述预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像;The wake-up module is used to establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification in response to searching for the Bluetooth device with the preset identification, and to wake up and control in response to the successful Bluetooth pairing connection The image acquisition module provided in the vehicle collects the first image of the target object, or, in response to searching for the Bluetooth device with the preset identification, wakes up and controls the image acquisition module provided in the vehicle to acquire the target object First image
人脸识别模块,用于基于所述第一图像进行人脸识别;A face recognition module, configured to perform face recognition based on the first image;
解锁模块,用于响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。The unlocking module is used for sending a door unlocking instruction and/or opening a door instruction to at least one door of the vehicle in response to successful face recognition.
根据本公开的第四方面,提供了一种车载人脸解锁系统,包括:存储器、人脸识别模组、图像采集模组和蓝牙模块;所述人脸识别模组分别与所述存储器、所述图像采集模组和所述蓝牙模块连接;所述蓝牙模块包括在与预设标识的蓝牙设备蓝牙配对连接成功或者搜索到所述预设标识的蓝牙设备时唤醒所述人脸识别模组的微处理器和与所述微处理器连接的蓝牙传感器;所述人脸识别模组还设置有用于与车门域控制器连接的通信接口,若人脸识别成功则基于所述通信接口向所述车门域控制器发送用于解锁车门的控制信息。According to a fourth aspect of the present disclosure, a vehicle-mounted face unlocking system is provided, including: a memory, a face recognition module, an image acquisition module, and a Bluetooth module; the face recognition module is connected to the memory and the Bluetooth module, respectively. The image acquisition module is connected to the Bluetooth module; the Bluetooth module includes a device for waking up the face recognition module when the Bluetooth pairing connection with the Bluetooth device with the preset identification succeeds or the Bluetooth device with the preset identification is searched A microprocessor and a Bluetooth sensor connected to the microprocessor; the face recognition module is also provided with a communication interface for connecting with the door domain controller, and if the face recognition is successful, the The door domain controller sends control information for unlocking the door.
根据本公开的第五方面,提供了一种车,所述车包括所述车载人脸解锁系统,所述车载人脸解锁系统与所述车的车门域控制器连接。According to a fifth aspect of the present disclosure, there is provided a vehicle including the vehicle-mounted face unlocking system, and the vehicle-mounted face unlocking system is connected to a door domain controller of the vehicle.
根据本公开的第六方面,提供了一种电子设备,包括:According to a sixth aspect of the present disclosure, there is provided an electronic device, including:
处理器;processor;
用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
其中,所述处理器被配置为:执行上述第一方面的方法。Wherein, the processor is configured to execute the method of the first aspect described above.
根据本公开的第七方面,提供了一种电子设备,包括:According to a seventh aspect of the present disclosure, there is provided an electronic device including:
处理器;processor;
用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
其中,所述处理器被配置为:执行上述第二方面的方法。Wherein, the processor is configured to execute the method of the second aspect described above.
根据本公开的第八方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述第一方面的方法。According to an eighth aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method of the first aspect described above is implemented.
根据本公开的第九方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述第二方面的方法。According to a ninth aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method of the second aspect described above is implemented.
根据本公开的第十方面,提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现上述方法。According to a tenth aspect of the present disclosure, there is provided a computer program including computer readable code, and when the computer readable code is executed in an electronic device, a processor in the electronic device executes to implement the above method.
在本公开实施例中,通过响应于搜索到预设标识的蓝牙设备,建立蓝牙模块与预设标识的蓝牙设备的蓝牙配对连接,并响应于蓝牙配对连接成功,唤醒人脸识别模组并控制图像采集模组采集目标对象的第一图像,由此基于蓝牙配对连接成功再唤醒人脸识别模组的方式,能够有效减少误唤醒人脸识别模组的概率,从而能够提高用户体验,有效降低人脸识别模组的功耗。此外,相对于超声波、红外等短距离传感器技术,基于蓝牙的配对连接方式具有安全性高和支持较大的距离的优点。实践表明,携带预设标识的蓝牙设备的用户通过这段距离(蓝牙配对连接成功时用户与车之间的距离)到达车的时间,与车唤醒人脸识别模组由休眠状态转换为工作状态的时间大致匹配,由此在用户到达车门时,能够立即通过唤醒的人脸识别模组进行人脸识别开车门,而无需在用户到达车门后让用户等待人脸识别模组被唤醒,进而能够提高人脸识别效率,改善用户体验。另外,在蓝牙配对连接的过程中,用户无感知,从而能够进一步提高用户体验。因此,本公开实施例通过基于蓝牙配对连接成功唤醒人脸识别模组的方式提供了一种能够较好地权衡人脸识别模组功耗节省、用户体验和安全性等各方面的解决方案。In the embodiment of the present disclosure, the Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification is established in response to searching for the Bluetooth device with the preset identification, and in response to the successful Bluetooth pairing and connection, the face recognition module is awakened and controlled The image acquisition module collects the first image of the target object, and thus based on the successful Bluetooth pairing connection and then wakes up the face recognition module, it can effectively reduce the probability of falsely waking up the face recognition module, thereby improving user experience and effectively reducing The power consumption of the face recognition module. In addition, compared with short-range sensor technologies such as ultrasonic and infrared, the Bluetooth-based pairing connection method has the advantages of high security and support for larger distances. Practice has shown that the time when a user carrying a Bluetooth device with a preset logo reaches the car through this distance (the distance between the user and the car when the Bluetooth pairing connection is successful), and when the car wakes up, the face recognition module switches from a sleep state to a working state When the user arrives at the car door, the face recognition module can be used to recognize the car door immediately without having to wait for the face recognition module to be awakened after the user arrives at the car door. Improve the efficiency of face recognition and improve user experience. In addition, the user has no perception during the Bluetooth pairing and connection process, which can further improve the user experience. Therefore, the embodiments of the present disclosure provide a solution that can better weigh the face recognition module's power saving, user experience, and security by successfully waking up the face recognition module based on the Bluetooth pairing connection.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the present disclosure.
根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。According to the following detailed description of exemplary embodiments with reference to the accompanying drawings, other features and aspects of the present disclosure will become clear.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments that conform to the disclosure and are used together with the specification to explain the technical solutions of the disclosure.
图1示出根据本公开实施例的车门解锁方法的流程图。Fig. 1 shows a flowchart of a method for unlocking a vehicle door according to an embodiment of the present disclosure.
图2示出车的B柱的示意图。Figure 2 shows a schematic diagram of the B-pillar of the car.
图3示出根据本公开实施例的车门解锁方法中车门解锁装置的安装高度与可识别的身高范围的示意图。FIG. 3 shows a schematic diagram of the installation height and the recognizable height range of the vehicle door unlocking device in the vehicle door unlocking method according to an embodiment of the present disclosure.
图4a示出根据本公开实施例的车门解锁方法中图像传感器和深度传感器的示意图。Fig. 4a shows a schematic diagram of an image sensor and a depth sensor in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
图4b示出根据本公开实施例的车门解锁方法中图像传感器和深度传感器的另一示意图。Fig. 4b shows another schematic diagram of an image sensor and a depth sensor in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
图5示出根据本公开实施例的活体检测方法的一个示例的示意图。FIG. 5 shows a schematic diagram of an example of a living body detection method according to an embodiment of the present disclosure.
图6示出根据本公开实施例的活体检测方法中基于第一图像和第二深度图,确定第一图像中的目标对象的活体检测结果的一个示例的示意图。FIG. 6 shows a schematic diagram of an example of determining the result of the living body detection of the target object in the first image based on the first image and the second depth map in the living body detection method according to an embodiment of the present disclosure.
图7示出根据本公开实施例的车门解锁方法中的深度预测神经网络的示意图。Fig. 7 shows a schematic diagram of a depth prediction neural network in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
图8示出根据本公开实施例的车门解锁方法中的关联度检测神经网络的示意图。FIG. 8 shows a schematic diagram of a correlation detection neural network in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
图9示出根据本公开实施例的车门解锁方法中深度图更新的一示例性的示意图。Fig. 9 shows an exemplary schematic diagram of updating the depth map in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
图10示出根据本公开实施例的车门解锁方法中周围像素的示意图。FIG. 10 shows a schematic diagram of surrounding pixels in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
图11示出根据本公开实施例的车门解锁方法中周围像素的另一示意图。FIG. 11 shows another schematic diagram of surrounding pixels in a method for unlocking a vehicle door according to an embodiment of the present disclosure.
图12示出根据本公开实施例的车门解锁方法的另一流程图。FIG. 12 shows another flowchart of a method for unlocking a vehicle door according to an embodiment of the present disclosure.
图13示出根据本公开实施例的车门解锁装置的框图。FIG. 13 shows a block diagram of a vehicle door unlocking device according to an embodiment of the present disclosure.
图14示出根据本公开实施例的车载人脸解锁系统的框图。Fig. 14 shows a block diagram of a vehicle face unlocking system according to an embodiment of the present disclosure.
图15示出根据本公开实施例的车载人脸解锁系统的示意图。Fig. 15 shows a schematic diagram of a vehicle face unlocking system according to an embodiment of the present disclosure.
图16示出根据本公开实施例的车的示意图。FIG. 16 shows a schematic diagram of a car according to an embodiment of the present disclosure.
图17是根据一示例性实施例示出的一种电子设备800的框图。Fig. 17 is a block diagram showing an electronic device 800 according to an exemplary embodiment.
具体实施方式Detailed ways
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the drawings. The same reference numerals in the drawings indicate elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, unless otherwise noted, the drawings are not necessarily drawn to scale.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The dedicated word "exemplary" here means "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" need not be construed as being superior or better than other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, exist alone B these three situations. In addition, the term "at least one" in this document means any one or any combination of at least two of the multiple, for example, including at least one of A, B, and C, may mean including A, Any one or more elements selected in the set formed by B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. Those skilled in the art should understand that the present disclosure can also be implemented without some specific details. In some instances, the methods, means, elements, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the gist of the present disclosure.
图1示出根据本公开实施例的车门解锁方法的流程图。该车门解锁方法的执行主体可以是车门解锁装置。例如,所述车门解锁方法可以由车载设备或其它处理设备执行。例如,该车门解锁装置可以安装在以下至少一个位置上:车的B柱、至少一个车门、至少一个后视镜。图2示出车的B柱的示意图。例如,车门解锁装置可以安装在B柱上离地130cm至160cm处,车门解锁装置的水平识别距离可以为30cm至100cm,在此不作限定。图3示出根据本公开实施例的车门解锁方法中车门解锁装置的安装高度与可识别的身高范围的示意图。在图3所示的示例中,车门解锁装置的安装高度为160cm,可识别的身高范围为140cm至190cm。Fig. 1 shows a flowchart of a method for unlocking a vehicle door according to an embodiment of the present disclosure. The vehicle door unlocking method may be executed by a vehicle door unlocking device. For example, the method for unlocking the vehicle door may be executed by an in-vehicle device or other processing device. For example, the vehicle door unlocking device may be installed in at least one of the following positions: a B-pillar of a vehicle, at least one vehicle door, and at least one rearview mirror. Figure 2 shows a schematic diagram of the B-pillar of the car. For example, the door unlocking device can be installed on the B-pillar from 130 cm to 160 cm above the ground, and the horizontal recognition distance of the door unlocking device can be 30 cm to 100 cm, which is not limited here. FIG. 3 shows a schematic diagram of the installation height and the recognizable height range of the vehicle door unlocking device in the vehicle door unlocking method according to an embodiment of the present disclosure. In the example shown in FIG. 3, the installation height of the door unlocking device is 160 cm, and the recognizable height range is 140 cm to 190 cm.
在一种可能的实现方式中,该车门解锁方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In a possible implementation manner, the method for unlocking the vehicle door may be implemented by a processor calling a computer readable instruction stored in the memory.
如图1所示,该车门解锁方法包括步骤S11至步骤S15。As shown in Fig. 1, the method for unlocking the vehicle door includes steps S11 to S15.
在步骤S11中,经设置于车的蓝牙模块搜索预设标识的蓝牙设备。In step S11, a Bluetooth device with a preset identification is searched through the Bluetooth module installed in the car.
在一种可能的实现方式中,经设置于车的蓝牙模块搜索预设标识的蓝牙设备,包括:在车处于熄火状态或处于熄火且车门锁闭状态时,经设置于车的蓝牙模块搜索预设标识的蓝牙设备。在该实现方式中,在车熄火前无需通过蓝牙模块搜索预设标识的蓝牙设备,或者,在车熄火前以及在车处于熄火状态但车门不处于锁闭状态时无需通过蓝牙模块搜索预设标识的蓝牙设备,由此能够进一步降低功耗。In a possible implementation manner, searching for a Bluetooth device with a preset identifier via a Bluetooth module installed in the car includes: searching for a preset identifier via a Bluetooth module installed in the car when the car is turned off or in a state where the door is locked. Set the identified Bluetooth device. In this implementation, there is no need to search for a Bluetooth device with a preset identification through the Bluetooth module before the car is turned off, or there is no need to search for a preset identification through the Bluetooth module before the car is turned off and when the car is turned off but the door is not locked. Bluetooth devices, which can further reduce power consumption.
在一种可能的实现方式中,蓝牙模块可以为低功耗蓝牙(BLE,Bluetooth Low Energy)模块。在该实现方式中,在车处于熄火状态或处于熄火且车门锁闭状态时,蓝牙模块可以处于广播模式,每隔一定的时间(例如100毫秒)向周围广播一个广播数据包。周围的蓝牙设备在执行扫描动作时,若接收到蓝牙模块广播出来的广播数据包,则向该蓝牙模块发送扫描请求,该蓝牙模块可以响应于扫描请求,向发送该扫描请求的蓝牙设备返回扫描响应数据包。在该实现方式中,若接收到预设标识的蓝牙设备发来的扫描请求,则确定搜索到该预设标识的蓝牙设备。In a possible implementation manner, the Bluetooth module may be a Bluetooth Low Energy (BLE, Bluetooth Low Energy) module. In this implementation, when the car is in the off state or in the off state and the door is locked, the Bluetooth module can be in the broadcast mode and broadcast a broadcast data packet to the surroundings at regular intervals (for example, 100 milliseconds). When the surrounding Bluetooth devices are performing the scan action, if they receive the broadcast data packet broadcast by the Bluetooth module, they will send a scan request to the Bluetooth module. The Bluetooth module can respond to the scan request and return the scan to the Bluetooth device that sent the scan request. Response packet. In this implementation manner, if a scan request sent by a Bluetooth device with a preset identification is received, it is determined that the Bluetooth device with the preset identification is searched.
在另一种可能的实现方式中,在车处于熄火状态或处于熄火且车门锁闭状态时,蓝牙模块可以处于扫描状态,若扫描到预设标识的蓝牙设备,则确定搜索到预设标识的蓝牙设备。In another possible implementation, the Bluetooth module can be in the scanning state when the car is turned off or when the car is turned off and the door is locked. If a Bluetooth device with a preset logo is scanned, it is determined that the device with the preset logo is found. Bluetooth device.
在一种可能的实现方式中,蓝牙模块与人脸识别模组可以集成在人脸识别系统中。In a possible implementation, the Bluetooth module and the face recognition module can be integrated in the face recognition system.
在另一种可能的实现方式中,蓝牙模块可以独立于人脸识别系统。即,蓝牙模块可以设置在人脸识别系统的外部。In another possible implementation, the Bluetooth module can be independent of the face recognition system. That is, the Bluetooth module can be installed outside the face recognition system.
本公开实施例不对蓝牙模块的最大搜索距离进行限定,在一个示例中,最大搜索距离可以为30m左右。The embodiment of the present disclosure does not limit the maximum search distance of the Bluetooth module. In an example, the maximum search distance may be about 30 m.
在本公开实施例中,蓝牙设备的标识可以指蓝牙设备的唯一标识符。例如,蓝牙设备的标识可以为蓝牙设备的ID、名称或者地址等。In the embodiments of the present disclosure, the identification of the Bluetooth device may refer to the unique identifier of the Bluetooth device. For example, the identification of the Bluetooth device may be the ID, name or address of the Bluetooth device.
在本公开实施例中,预设标识可以是基于蓝牙安全连接技术预先和车的蓝牙模块配对成功的设备的标识。In the embodiment of the present disclosure, the preset identification may be an identification of a device that is successfully paired with the Bluetooth module of the car based on the Bluetooth secure connection technology.
在本公开实施例中,预设标识的蓝牙设备的数量可以为一个或多个。例如,若蓝牙设备的标识为蓝牙设备的ID,则可以预设一个或多个有权限开车门的蓝牙ID。例如,在预设标识的蓝牙设备的数量为一个的情况下,该预设标识的蓝牙设备可以为车主的蓝牙设备;在预设标识的蓝牙设备的数量为多个的情况下,该多个预设标识的蓝牙设备可以包括车主的蓝牙设备以及车主的家人、朋友、预先注册的联系人的蓝牙设备。其中,预先注册的联系人可以为预先注册的快递员或者物业工作人员等。In the embodiment of the present disclosure, the number of Bluetooth devices with preset identification may be one or more. For example, if the identification of the Bluetooth device is the ID of the Bluetooth device, one or more Bluetooth IDs with permission to drive the door can be preset. For example, when the number of Bluetooth devices with preset identification is one, the Bluetooth device with preset identification may be the Bluetooth device of the vehicle owner; when the number of Bluetooth devices with preset identification is multiple, the multiple The Bluetooth devices with the preset identification may include the Bluetooth devices of the vehicle owner and the Bluetooth devices of the vehicle owner's family, friends, and pre-registered contacts. Among them, the pre-registered contact person may be a pre-registered courier or property staff.
在本公开实施例中,蓝牙设备可以是任何具有蓝牙功能的移动设备,例如,蓝牙设备可以是手机、可穿戴设备或 者电子钥匙等。其中,可穿戴设备可以为智能手环或者智能眼镜等。In the embodiments of the present disclosure, the Bluetooth device may be any mobile device with Bluetooth function. For example, the Bluetooth device may be a mobile phone, a wearable device, or an electronic key. Among them, the wearable device may be a smart bracelet or smart glasses.
在步骤S12中,响应于搜索到预设标识的蓝牙设备,建立蓝牙模块与预设标识的蓝牙设备的蓝牙配对连接。In step S12, in response to searching for a Bluetooth device with a preset identification, a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification is established.
在一种可能的实现方式中,若预设标识的蓝牙设备的数量为多个,则响应于搜索到任意一个预设标识的蓝牙设备,建立蓝牙模块与该预设标识的蓝牙设备的蓝牙配对连接。In a possible implementation, if the number of Bluetooth devices with preset identification is multiple, in response to searching for any Bluetooth device with preset identification, a Bluetooth pairing between the Bluetooth module and the Bluetooth device with the preset identification is established connection.
在一种可能的实现方式中,响应于搜索到预设标识的蓝牙设备,蓝牙模块对该预设标识的蓝牙设备进行身份认证,在身份认证通过后,再建立蓝牙模块与预设标识的蓝牙设备的蓝牙配对连接,由此能够提高蓝牙配对连接的安全性。In a possible implementation, in response to searching for a Bluetooth device with a preset logo, the Bluetooth module performs identity authentication on the Bluetooth device with the preset logo, and after the identity authentication is passed, the Bluetooth module and the Bluetooth device with the preset logo are established. The Bluetooth pairing connection of the device can thereby improve the security of the Bluetooth pairing connection.
在步骤S13中,响应于蓝牙配对连接成功,唤醒并控制设置于车的图像采集模组采集目标对象的第一图像。In step S13, in response to the successful Bluetooth pairing connection, wake up and control the image acquisition module installed in the car to acquire the first image of the target object.
在一种可能的实现方式中,唤醒并控制设置于车的图像采集模组采集目标对象的第一图像,包括:唤醒设置于车的人脸识别模组;经唤醒的人脸识别模组控制图像采集模组采集目标对象的第一图像。In a possible implementation manner, waking up and controlling the image acquisition module installed in the car to collect the first image of the target object includes: awakening the face recognition module installed in the car; control by the awakened face recognition module The image acquisition module acquires the first image of the target object.
在本公开实施例中,若搜索到预设标识的蓝牙设备,则可以在很大程度上表明携带预设标识的蓝牙设备的用户(例如车主)进入蓝牙模块的搜索范围内。此时,通过响应于搜索到预设标识的蓝牙设备,建立蓝牙模块与预设标识的蓝牙设备的蓝牙配对连接,并响应于蓝牙配对连接成功,唤醒人脸识别模组并控制图像采集模组采集目标对象的第一图像,由此基于蓝牙配对连接成功再唤醒人脸识别模组的方式,能够有效减少误唤醒人脸识别模组的概率,从而能够提高用户体验,有效降低人脸识别模组的功耗。此外,相对于超声波、红外等短距离传感器技术,基于蓝牙的配对连接方式具有安全性高和支持较大的距离的优点。实践表明,携带预设标识的蓝牙设备的用户通过这段距离(蓝牙配对连接成功时用户与车之间的距离)到达车的时间,与车唤醒人脸识别模组由休眠状态转换为工作状态的时间大致匹配,由此在用户到达车门时,能够立即通过唤醒的人脸识别模组进行人脸识别开车门,而无需在用户到达车门后让用户等待人脸识别模组被唤醒,进而能够提高人脸识别效率,改善用户体验。另外,在蓝牙配对连接的过程中,用户无感知,从而能够进一步提高用户体验。因此,本公开实施例通过基于蓝牙配对连接成功唤醒人脸识别模组的方式提供了一种能够较好地权衡人脸识别模组功耗节省、用户体验和安全性等各方面的解决方案。In the embodiments of the present disclosure, if a Bluetooth device with a preset identifier is searched, it can indicate to a large extent that a user (such as a car owner) carrying the Bluetooth device with the preset identifier has entered the search range of the Bluetooth module. At this time, by responding to the search for the Bluetooth device with the preset logo, establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset logo, and in response to the successful Bluetooth pairing connection, wake up the face recognition module and control the image acquisition module Collecting the first image of the target object, based on the successful Bluetooth pairing connection and then waking up the face recognition module, can effectively reduce the probability of falsely waking up the face recognition module, thereby improving the user experience and effectively reducing the face recognition module. The power consumption of the group. In addition, compared with short-range sensor technologies such as ultrasonic and infrared, the Bluetooth-based pairing connection method has the advantages of high security and support for larger distances. Practice has shown that the time when a user carrying a Bluetooth device with a preset logo reaches the car through this distance (the distance between the user and the car when the Bluetooth pairing connection is successful), and when the car wakes up, the face recognition module switches from a sleep state to a working state When the user arrives at the car door, the face recognition module can be used to recognize the car door immediately without having to wait for the face recognition module to be awakened after the user arrives at the car door. Improve the efficiency of face recognition and improve user experience. In addition, the user has no perception during the Bluetooth pairing and connection process, which can further improve the user experience. Therefore, the embodiments of the present disclosure provide a solution that can better weigh the face recognition module's power saving, user experience, and security by successfully waking up the face recognition module based on the Bluetooth pairing connection.
在一种可能的实现方式中,在唤醒设置于车的人脸识别模组之后,该方法还包括:若在预设时间内未采集到人脸图像,则控制人脸识别模组进入休眠状态。该实现方式通过在唤醒人脸识别模组后预设时间内未采集到人脸图像时,控制人脸识别模组进入休眠状态,由此能够降低功耗。In a possible implementation, after waking up the face recognition module installed in the car, the method further includes: if the face image is not collected within a preset time, controlling the face recognition module to enter a sleep state . This implementation method controls the face recognition module to enter a sleep state when no face image is collected within a preset time after the face recognition module is awakened, thereby reducing power consumption.
在一种可能的实现方式中,在唤醒设置于车的人脸识别模组之后,该方法还包括:若在预设时间内未通过人脸识别,则控制人脸识别模组进入休眠状态。该实现方式通过在唤醒人脸识别模组后预设时间内未通过人脸识别时,控制人脸识别模组进入休眠状态,由此能够降低功耗。In a possible implementation manner, after waking up the face recognition module installed in the car, the method further includes: if the face recognition fails within a preset time, controlling the face recognition module to enter a sleep state. This implementation method controls the face recognition module to enter the sleep state when the face recognition module fails to pass the face recognition within a preset time after waking up the face recognition module, thereby reducing power consumption.
在步骤S14中,基于第一图像进行人脸识别。In step S14, face recognition is performed based on the first image.
在一种可能的实现方式中,人脸识别包括:活体检测和人脸认证;基于第一图像进行人脸识别,包括:经图像采集模组中的图像传感器采集第一图像,并基于第一图像和预注册的人脸特征进行人脸认证;经图像采集模组中的深度传感器采集第一图像对应的第一深度图,并基于第一图像和第一深度图进行活体检测。In a possible implementation, face recognition includes: living body detection and face authentication; performing face recognition based on the first image includes: collecting the first image through the image sensor in the image acquisition module, and based on the first image. The image and pre-registered facial features are used for face authentication; the first depth map corresponding to the first image is collected by the depth sensor in the image acquisition module, and the living body detection is performed based on the first image and the first depth map.
在本公开实施例中,第一图像包含目标对象。其中,目标对象可以为人脸或者人体的至少一部分,本公开实施例对此不做限定。In the embodiment of the present disclosure, the first image contains the target object. The target object may be a human face or at least a part of a human body, which is not limited in the embodiment of the present disclosure.
其中,第一图像可以为静态图像或者为视频帧图像。例如,第一图像可以为从视频序列中选取的图像,其中,可以通过多种方式从视频序列中选取图像。在一个具体例子中,第一图像为从视频序列中选取的满足预设质量条件的图像,该预设质量条件可以包括下列中的一种或任意组合:是否包含目标对象、目标对象是否位于图像的中心区域、目标对象是否完整地包含在图像中、目标对象在图像中所占比例、目标对象的状态(例如人脸角度)、图像清晰度、图像曝光度,等等,本公开实施例对此不做限定。Wherein, the first image may be a static image or a video frame image. For example, the first image may be an image selected from a video sequence, where the image may be selected from the video sequence in a variety of ways. In a specific example, the first image is an image selected from a video sequence that meets a preset quality condition, and the preset quality condition may include one or any combination of the following: whether the target object is included, whether the target object is located in the image The center area of the target object, whether the target object is completely contained in the image, the proportion of the target object in the image, the state of the target object (such as the angle of the face), the image clarity, the image exposure, etc., the embodiments of the present disclosure This is not limited.
在一个示例中,可以先进行活体检测再进行人脸认证。例如,若目标对象的活体检测结果为目标对象为活体,则触发人脸认证流程;若目标对象的活体检测结果为目标对象为假体,则不触发人脸认证流程。In one example, the living body detection can be performed first and then the face authentication can be performed. For example, if the live body detection result of the target object is that the target object is a living body, the face authentication process is triggered; if the live body detection result of the target object is that the target object is a prosthesis, the face authentication process is not triggered.
在另一个示例中,可以先进行人脸认证再进行活体检测。例如,若人脸认证通过,则触发活体检测流程;若人脸认证不通过,则不触发活体检测流程。In another example, face authentication can be performed first and then live body detection can be performed. For example, if the face authentication is passed, the living body detection process is triggered; if the face authentication is not passed, the living body detection process is not triggered.
在另一个示例中,可以同时进行活体检测和人脸认证。In another example, living body detection and face authentication can be performed at the same time.
在该实现方式中,活体检测用于验证目标对象是否是活体,例如可以用于验证目标对象是否是人体。人脸认证用于提取采集的图像中的人脸特征,将采集的图像中的人脸特征与预注册的人脸特征进行比对,判断是否属于同一个人的人脸特征,例如可以判断采集的图像中的人脸特征是否属于车主的人脸特征。In this implementation manner, the living body detection is used to verify whether the target object is a living body, for example, it can be used to verify whether the target object is a human body. Face authentication is used to extract the facial features in the collected images, compare the facial features in the collected images with the pre-registered facial features to determine whether they belong to the same person's facial features, for example, you can determine the collected facial features Whether the facial features in the image belong to the facial features of the vehicle owner.
在本公开实施例中,深度传感器表示用于采集深度信息的传感器。本公开实施例不对深度传感器的工作原理和工作波段进行限定。In the embodiments of the present disclosure, the depth sensor means a sensor for collecting depth information. The embodiments of the present disclosure do not limit the working principle and working band of the depth sensor.
在本公开实施例中,图像采集模组的图像传感器和深度传感器可以分开设置,也可以一起设置。例如,图像采集模组的图像传感器和深度传感器分开设置可以为,图像传感器采用RGB(Red,红;Green,绿;Blue,蓝)传感器或红外传感器,深度传感器采用双目红外传感器或者TOF(Time of Flight,飞行时间)传感器;图像采集模组的图像传感器和深度传感器一起设置可以为,图像采集模组采用RGBD(Red,红;Green,绿;Blue,蓝;Deep,深度)传感器实现图像传感器和深度传感器的功能。In the embodiments of the present disclosure, the image sensor and the depth sensor of the image acquisition module can be installed separately or together. For example, the image sensor and the depth sensor of the image acquisition module can be set separately, the image sensor adopts RGB (Red, red; Green, green; Blue, blue) sensor or infrared sensor, and the depth sensor adopts binocular infrared sensor or TOF (Time of Flight, time of flight) sensor; the image sensor of the image acquisition module and the depth sensor can be set together. The image acquisition module adopts RGBD (Red, red; Green, green; Blue, blue; Deep, depth) sensor to realize the image sensor And the function of the depth sensor.
作为一个示例,图像传感器为RGB传感器。若图像传感器为RGB传感器,则图像传感器采集到的图像为RGB图像。As an example, the image sensor is an RGB sensor. If the image sensor is an RGB sensor, the image collected by the image sensor is an RGB image.
作为另一个示例,图像传感器为红外传感器。若图像传感器为红外传感器,则图像传感器采集到的图像为红外图像。其中,红外图像可以为带光斑的红外图像,也可以为不带光斑的红外图像。As another example, the image sensor is an infrared sensor. If the image sensor is an infrared sensor, the image collected by the image sensor is an infrared image. Among them, the infrared image may be an infrared image with a light spot, or an infrared image without a light spot.
在其他示例中,图像传感器可以为其他类型的传感器,本公开实施例对此不做限定。In other examples, the image sensor may be other types of sensors, which is not limited in the embodiment of the present disclosure.
可选地,车门解锁装置可以通过多种方式获取第一图像。例如,在一些实施例中,车门解锁装置上设置有摄像头,车门解锁装置通过摄像头进行静态图像或视频流采集,得到第一图像,本公开实施例对此不做限定。Optionally, the vehicle door unlocking device may obtain the first image in multiple ways. For example, in some embodiments, the vehicle door unlocking device is provided with a camera, and the vehicle door unlocking device uses the camera to collect static images or video streams to obtain the first image, which is not limited in the embodiment of the present disclosure.
作为一个示例,深度传感器为三维传感器。例如,深度传感器为双目红外传感器、飞行时间TOF传感器或者结构光传感器,其中,双目红外传感器包括两个红外摄像头。结构光传感器可以为编码结构光传感器或者散斑结构光传感器。通过深度传感器获取目标对象的深度图,可以获得高精度的深度图。本公开实施例利用包含目标对象的深度图进行活体检测,能够充分挖掘目标对象的深度信息,从而能够提高活体检测的准确性。例如,当目标对象为人脸时,本公开实施例利用包含人脸的深度图进行活体检测,能够充分挖掘人脸数据的深度信息,从而能够提高活体人脸检测的准确性。As an example, the depth sensor is a three-dimensional sensor. For example, the depth sensor is a binocular infrared sensor, a time-of-flight TOF sensor, or a structured light sensor, where the binocular infrared sensor includes two infrared cameras. The structured light sensor may be a coded structured light sensor or a speckle structured light sensor. By acquiring the depth map of the target object through the depth sensor, a highly accurate depth map can be obtained. In the embodiments of the present disclosure, the depth map containing the target object is used for living body detection, which can fully mine the depth information of the target object, thereby improving the accuracy of living body detection. For example, when the target object is a human face, the embodiment of the present disclosure uses a depth map containing the human face to perform living body detection, which can fully mine the depth information of the face data, thereby improving the accuracy of living body face detection.
在一个示例中,TOF传感器采用基于红外波段的TOF模组。在该示例中,通过采用基于红外波段的TOF模组,能够降低外界光线对深度图拍摄造成的影响。In one example, the TOF sensor uses a TOF module based on the infrared band. In this example, by using a TOF module based on the infrared band, the influence of external light on the depth map shooting can be reduced.
在本公开实施例中,第一深度图和第一图像相对应。例如,第一深度图和第一图像分别为深度传感器和图像传感器针对同一场景采集到的,或者,第一深度图和第一图像为深度传感器和图像传感器在同一时刻针对同一目标区域采集到的,但本公开实施例对此不做限定。In the embodiment of the present disclosure, the first depth map corresponds to the first image. For example, the first depth map and the first image are respectively acquired by the depth sensor and the image sensor for the same scene, or the first depth map and the first image are acquired by the depth sensor and the image sensor for the same target area at the same time , But the embodiment of the present disclosure does not limit this.
图4a示出根据本公开实施例的车门解锁方法中图像传感器和深度传感器的示意图。在图4a所示的示例中,图像传感器为RGB传感器,图像传感器的摄像头为RGB摄像头,深度传感器为双目红外传感器,深度传感器包括两个红外(IR)摄像头,双目红外传感器的两个红外摄像头设置在图像传感器的RGB摄像头的两侧。其中,两个红外摄像头基于双目视差原理采集深度信息。Fig. 4a shows a schematic diagram of an image sensor and a depth sensor in a method for unlocking a vehicle door according to an embodiment of the present disclosure. In the example shown in Figure 4a, the image sensor is an RGB sensor, the camera of the image sensor is an RGB camera, and the depth sensor is a binocular infrared sensor. The depth sensor includes two infrared (IR) cameras and two infrared binocular infrared sensors. The cameras are arranged on both sides of the RGB camera of the image sensor. Among them, two infrared cameras collect depth information based on the principle of binocular parallax.
在一个示例中,图像采集模组还包括至少一个补光灯,该至少一个补光灯设置在双目红外传感器的红外摄像头和图像传感器的摄像头之间,该至少一个补光灯包括用于图像传感器的补光灯和用于深度传感器的补光灯中的至少一种。例如,若图像传感器为RGB传感器,则用于图像传感器的补光灯可以为白光灯;若图像传感器为红外传感器,则用于图像传感器的补光灯可以为红外灯;若深度传感器为双目红外传感器,则用于深度传感器的补光灯可以为红外灯。在图4a所示的示例中,在双目红外传感器的红外摄像头和图像传感器的摄像头之间设置红外灯。例如,红外灯可以采用940nm的红外线。In an example, the image acquisition module further includes at least one fill light, the at least one fill light is arranged between the infrared camera of the binocular infrared sensor and the camera of the image sensor, and the at least one fill light includes At least one of the fill light for the sensor and the fill light for the depth sensor. For example, if the image sensor is an RGB sensor, the fill light used for the image sensor can be a white light; if the image sensor is an infrared sensor, the fill light used for the image sensor can be an infrared light; if the depth sensor is a binocular Infrared sensor, the fill light used for the depth sensor can be an infrared light. In the example shown in FIG. 4a, an infrared lamp is provided between the infrared camera of the binocular infrared sensor and the camera of the image sensor. For example, the infrared lamp can use 940nm infrared.
在一个示例中,补光灯可以处于常开模式。在该示例中,在图像采集模组的摄像头处于工作状态时,补光灯处于开启状态。In one example, the fill light may be in the normally-on mode. In this example, when the camera of the image acquisition module is in the working state, the fill light is in the on state.
在另一个示例中,可以在光线不足时开启补光灯。例如,可以通过环境光传感器获取环境光强度,并在环境光强度低于光强阈值时判定光线不足,并开启补光灯。In another example, the fill light can be turned on when the light is insufficient. For example, the ambient light intensity can be obtained through the ambient light sensor, and when the ambient light intensity is lower than the light intensity threshold, it is determined that the light is insufficient, and the fill light is turned on.
图4b示出根据本公开实施例的车门解锁方法中图像传感器和深度传感器的另一示意图。在图4b所示的示例中,图像传感器为RGB传感器,图像传感器的摄像头为RGB摄像头,深度传感器为TOF传感器。Fig. 4b shows another schematic diagram of an image sensor and a depth sensor in a method for unlocking a vehicle door according to an embodiment of the present disclosure. In the example shown in FIG. 4b, the image sensor is an RGB sensor, the camera of the image sensor is an RGB camera, and the depth sensor is a TOF sensor.
在一个示例中,图像采集模组还包括激光器,激光器设置在深度传感器的摄像头和图像传感器的摄像头之间。例如,激光器设置在TOF传感器的摄像头和RGB传感器的摄像头之间。例如,激光器可以为VCSEL(Vertical Cavity Surface Emitting Laser,垂直腔面发射激光器),TOF传感器可以基于VCSEL发出的激光采集深度图。In an example, the image acquisition module further includes a laser, and the laser is disposed between the camera of the depth sensor and the camera of the image sensor. For example, the laser is arranged between the camera of the TOF sensor and the camera of the RGB sensor. For example, the laser may be a VCSEL (Vertical Cavity Surface Emitting Laser), and the TOF sensor may collect a depth map based on the laser emitted by the VCSEL.
在本公开实施例中,深度传感器用于采集深度图,图像传感器用于采集二维图像。需要说明的是,尽管以RGB传感器和红外传感器为例对图像传感器进行了说明,并以双目红外传感器、TOF传感器和结构光传感器为例对深度传感 器进行了说明,但本领域技术人员能够理解,本公开实施例应不限于此。本领域技术人员可以根据实际应用需求选择图像传感器和深度传感器的类型,只要分别能够实现对二维图像和深度图的采集即可。In the embodiments of the present disclosure, the depth sensor is used to collect a depth map, and the image sensor is used to collect a two-dimensional image. It should be noted that although RGB sensors and infrared sensors are used as examples to describe image sensors, and binocular infrared sensors, TOF sensors, and structured light sensors are used as examples to describe depth sensors, those skilled in the art can understand The embodiments of the present disclosure should not be limited to this. Those skilled in the art can select the types of the image sensor and the depth sensor according to actual application requirements, as long as the two-dimensional image and the depth map can be collected respectively.
在步骤S15中,响应于人脸识别成功,向车的至少一车门发送车门解锁指令和/或打开车门指令。In step S15, in response to successful face recognition, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
本公开实施例中的车门可以包括人进出的车门(例如左前门、右前门、左后门、右后门),也可以包括车的后备箱门等。相应地,所述至少一车门锁可以包括左前门锁、右前门锁、左后门锁、右后门锁和后备箱门锁等中的至少之一。The vehicle door in the embodiment of the present disclosure may include a vehicle door through which people enter and exit (for example, a left front door, a right front door, a left rear door, and a right rear door), and may also include a trunk door of the vehicle. Correspondingly, the at least one vehicle door lock may include at least one of a left front door lock, a right front door lock, a left rear door lock, a right rear door lock, and a trunk door lock.
在一种可能的实现方式中,所述响应于人脸识别成功,向车的至少一车门发送车门解锁指令和/或打开车门指令,包括:响应于人脸识别成功,获取所述车的至少一车门的状态信息;若所述车门的状态信息为未解锁,则向所述车门发送车门解锁指令和打开车门指令;若所述车门的状态信息为已解锁且未打开,则向所述车门发送打开车门指令。In a possible implementation manner, in response to successful face recognition, sending a door unlocking instruction and/or opening a door instruction to at least one door of the vehicle includes: in response to successful face recognition, acquiring at least the vehicle's The state information of a vehicle door; if the state information of the vehicle door is not unlocked, send a door unlock instruction and an open door instruction to the vehicle door; if the state information of the vehicle door is unlocked and not opened, send the vehicle door Send the door open command.
在一种可能的实现方式中,响应于人脸识别成功,向车的至少一车门发送车门解锁指令和/或打开车门指令,包括:响应于人脸识别成功,确定目标对象具有开门权限的车门;根据目标对象具有开门权限的车门,向车的至少一车门发送车门解锁指令和/或打开车门指令。例如,目标对象具有开门权限的车门可以是所有车门,或者可以是后备箱门。In a possible implementation manner, in response to successful face recognition, sending a door unlock instruction and/or a door opening instruction to at least one door of the vehicle includes: in response to successful face recognition, determining that the target object has a door opening permission ; Send a door unlock instruction and/or open a door instruction to at least one door of the vehicle according to the door for which the target object has the authority to open the door. For example, the doors for which the target object has the authority to open doors may be all doors, or may be trunk doors.
例如,车主或者车主的家人、朋友具有开门权限的车门可以是所有车门,快递员或者物业工作人员具有开门权限的车门可以是后备箱门。其中,车主可以为其他人员设置具有开门权限的车门的信息。又如,在网约车的场景中,乘客具有开门权限的车门可以是非驾驶舱的车门和后备箱门。若目标对象具有开门权限的车门为后备箱门,则可以向后备箱门锁发送车门解锁指令。For example, the doors for which the owner or his family or friends have the authority to open doors may be all doors, and the doors for which the courier or property staff has the authority to open doors may be the trunk doors. Among them, the vehicle owner can set the door information for other personnel with the authority to open the door. For another example, in the scene of online car-hailing, the doors for which passengers have the right to open doors may be non-cockpit doors and trunk doors. If the door of the target object with the authority to open the door is a trunk door, the door unlocking instruction can be sent to the trunk door lock.
在一个示例中,若目标对象具有开门权限的车门仅包括后备箱门,则可以向后备箱门锁发送车门解锁指令的预设时长后,向后备箱门锁发送车门关闭指令,例如,预设时长可以为3分钟。例如,快递员具有开门权限的车门仅包括后备箱门,则可以向后备箱门锁发送车门解锁指令的3分钟后,向后备箱门锁发送车门关闭指令,由此既能满足快递员往后备箱中放置快递的需求,又能够提高车的安全性。In an example, if the door of the target object with the permission to open the door only includes the trunk door, it can send the door closing instruction to the trunk door lock after the preset duration of the door unlocking instruction is sent to the trunk door lock, for example, preset The duration can be 3 minutes. For example, if the door that the courier has the right to open includes only the trunk door, he can send the door unlock instruction to the trunk door lock 3 minutes after sending the door close instruction to the trunk door lock, which can satisfy the courier's backup The need for express delivery in the box can improve the safety of the car.
在一种可能的实现方式中,除了确定目标对象具有开门权限的车门之外,还可以确定所述目标对象具有开门权限的时间、所述目标对象对应的开门权限次数等。In a possible implementation manner, in addition to determining the door for which the target object has the permission to open the door, the time during which the target object has the permission to open the door, the number of times the permission to open the door corresponding to the target object, etc. may also be determined.
例如,目标对象具有开门权限的时间可以是所有时间,或者可以是预设时间段。例如,车主或者车主的家人具有开门权限的时间可以是所有时间。车主可以为其他人员设置具有开门权限的时间。例如,在车主的朋友向车主借车的应用场景中,车主可以为朋友设置具有开门权限的时间为两天。又如,在快递员联系车主后,车主可以为快递员设置具有开门权限的时间为2019年9月29日13:00-14:00。又如,在租车的场景中,若顾客租车3天,则租车行工作人员可以为该顾客设置具有开门权限的时间为3天。又如,在网约车的场景中,乘客具有开门权限的时间可以是出行订单的服务期间。For example, the time when the target object has the right to open the door may be all times, or may be a preset time period. For example, the time when the owner or the owner's family member has the authority to open the door may be all the time. The owner can set the time for other personnel with the authority to open the door. For example, in an application scenario where a friend of a car owner borrows a car from the car owner, the car owner can set the time for the friend to have the permission to open the door to two days. For another example, after the courier contacts the car owner, the car owner can set the time for the courier to open the door to 13:00-14:00 on September 29, 2019. For another example, in a car rental scenario, if a customer rents a car for 3 days, the staff of the car rental agency can set the time for the customer to have the right to open the door to 3 days. For another example, in the online car-hailing scenario, the time when the passenger has the permission to open the door may be the service period of the travel order.
例如,目标对象对应的开门权限次数可以是不限次数或者有限次数。例如,车主或者车主的家人、朋友对应的开门权限次数可以是不限次数。又如,快递员对应的开门权限次数可以是有限次数,例如1次。For example, the number of door opening permissions corresponding to the target object may be an unlimited number of times or a limited number of times. For example, the number of door opening permissions corresponding to the car owner or the car owner's family or friends may be unlimited. For another example, the number of door opening permissions corresponding to the courier may be a limited number of times, such as 1 time.
在一个示例中,车门解锁装置的SoC可以向车门域控制器发送车门解锁指令,以控制车门进行解锁。In an example, the SoC of the door unlocking device may send a door unlocking instruction to the door domain controller to control the door to unlock.
在一种可能的实现方式中,基于第一图像和第一深度图进行活体检测,包括:基于第一图像,更新第一深度图,得到第二深度图;基于第一图像和第二深度图,确定目标对象的活体检测结果。In a possible implementation manner, performing live detection based on the first image and the first depth map includes: updating the first depth map based on the first image to obtain the second depth map; based on the first image and the second depth map , To determine the live detection result of the target object.
具体地,基于第一图像,更新第一深度图中一个或多个像素的深度值,得到第二深度图。Specifically, based on the first image, the depth value of one or more pixels in the first depth map is updated to obtain the second depth map.
在一些实施例中,基于第一图像,对第一深度图中的深度失效像素的深度值进行更新,得到第二深度图。In some embodiments, based on the first image, the depth value of the depth failure pixel in the first depth map is updated to obtain the second depth map.
其中,深度图中的深度失效像素可以指深度图中包括的深度值无效的像素,即深度值不准确或与实际情况明显不符的像素。深度失效像素的个数可以为一个或多个。通过更新深度图中的至少一个深度失效像素的深度值,使得深度失效像素的深度值更为准确,有助于提高活体检测的准确率。Wherein, the depth invalid pixel in the depth map may refer to a pixel with an invalid depth value included in the depth map, that is, a pixel whose depth value is inaccurate or clearly inconsistent with the actual situation. The number of depth failure pixels can be one or more. By updating the depth value of at least one depth failure pixel in the depth map, the depth value of the depth failure pixel is more accurate, which helps to improve the accuracy of living body detection.
在一些实施例中,第一深度图为带缺失值的深度图,通过基于第一图像修复第一深度图,得到第二深度图,其中,可选地,对第一深度图的修复包括对缺失值的像素的深度值的确定或补充,但本公开实施例不限于此。In some embodiments, the first depth map is a depth map with missing values, and the second depth map is obtained by repairing the first depth map based on the first image, wherein, optionally, repairing the first depth map includes correcting The depth value of pixels with missing values is determined or supplemented, but the embodiments of the present disclosure are not limited thereto.
在本公开实施例中,可以通过多种方式更新或修复第一深度图。在一些实施例中,直接利用第一图像进行活体检测,例如直接利用第一图像更新第一深度图。在另一些实施例中,对第一图像进行预处理,并基于预处理后的第一图像进行活体检测。例如,从第一图像中获取目标对象的图像,并基于目标对象的图像,更新第一深度图。In the embodiment of the present disclosure, the first depth map can be updated or repaired in various ways. In some embodiments, the first image is directly used for living body detection, for example, the first image is directly used to update the first depth map. In other embodiments, the first image is preprocessed, and the living body detection is performed based on the preprocessed first image. For example, the image of the target object is acquired from the first image, and the first depth map is updated based on the image of the target object.
可以通过多种方式从第一图像中截取目标对象的图像。作为一个示例,对第一图像进行目标检测,得到目标对象的位置信息,例如目标对象的限定框(bounding box)的位置信息,并基于目标对象的位置信息从第一图像中截取目标对象的图像。例如,从第一图像中截取目标对象的限定框所在区域的图像作为目标对象的图像,再例如,将目标对 象的限定框放大一定倍数并从第一图像中截取放大后的限定框所在区域的图像作为目标对象的图像。作为另一个示例,获取第一图像中目标对象的关键点信息,并基于目标对象的关键点信息,从第一图像中获取目标对象的图像。The image of the target object can be intercepted from the first image in various ways. As an example, perform target detection on the first image to obtain the location information of the target object, such as the location information of the bounding box of the target object, and intercept the image of the target object from the first image based on the location information of the target object . For example, the image of the area where the bounding box of the target object is intercepted from the first image is taken as the image of the target object, another example is to enlarge the bounding box of the target object by a certain multiple and intercept the area where the enlarged bounding box is located from the first image. The image is the image of the target object. As another example, the key point information of the target object in the first image is acquired, and based on the key point information of the target object, the image of the target object is acquired from the first image.
可选地,对第一图像进行目标检测,得到目标对象所在区域的位置信息;对目标对象所在区域的图像进行关键点检测,得到第一图像中目标对象的关键点信息。Optionally, perform target detection on the first image to obtain position information of the area where the target object is located; perform key point detection on the image of the area where the target object is located to obtain key point information of the target object in the first image.
可选地,目标对象的关键点信息可以包括目标对象的多个关键点的位置信息。若目标对象为人脸,则目标对象的关键点可以包括眼睛关键点、眉毛关键点、鼻子关键点、嘴巴关键点和人脸轮廓关键点等中的一项或多项。其中,眼睛关键点可以包括眼睛轮廓关键点、眼角关键点和瞳孔关键点等中的一项或多项。Optionally, the key point information of the target object may include position information of multiple key points of the target object. If the target object is a human face, the key points of the target object may include one or more of eye key points, eyebrow key points, nose key points, mouth key points, and face contour key points. Among them, the eye key points may include one or more of eye contour key points, eye corner key points, and pupil key points.
在一个示例中,基于目标对象的关键点信息,确定目标对象的轮廓,并根据目标对象的轮廓,从第一图像中截取目标对象的图像。与通过目标检测得到的目标对象的位置信息相比,通过关键点信息得到的目标对象的位置更为准确,从而有利于提高后续活体检测的准确率。In an example, the contour of the target object is determined based on the key point information of the target object, and the image of the target object is intercepted from the first image according to the contour of the target object. Compared with the position information of the target object obtained through target detection, the position of the target object obtained through the key point information is more accurate, which is beneficial to improve the accuracy of subsequent living body detection.
可选地,可以基于第一图像中目标对象的关键点,确定第一图像中目标对象的轮廓,并将第一图像中目标对象的轮廓所在区域的图像或放大一定倍数后得到的区域的图像确定为目标对象的图像。例如,可以将第一图像中基于目标对象的关键点确定的椭圆形区域确定为目标对象的图像,或者可以将第一图像中基于目标对象的关键点确定的椭圆形区域的最小外接矩形区域确定为目标对象的图像,但本公开实施例对此不作限定。Optionally, the contour of the target object in the first image can be determined based on the key points of the target object in the first image, and the image of the area where the contour of the target object in the first image is located or the image of the area obtained after a certain magnification Determine the image of the target object. For example, the elliptical area determined based on the key points of the target object in the first image may be determined as the image of the target object, or the minimum circumscribed rectangular area of the elliptical area determined based on the key points of the target object in the first image may be determined It is the image of the target object, but the embodiment of the present disclosure does not limit this.
这样,通过从第一图像中获取目标对象的图像,基于目标对象的图像进行活体检测,能够降低第一图像中的背景信息对活体检测产生的干扰。In this way, by acquiring the image of the target object from the first image, and performing the living body detection based on the image of the target object, the interference of the background information in the first image on the living body detection can be reduced.
在本公开实施例中,可以对获取到的原始深度图进行更新处理,或者,在一些实施例中,从第一深度图中获取目标对象的深度图,并基于第一图像,更新目标对象的深度图,得到第二深度图。In the embodiments of the present disclosure, the acquired original depth map may be updated, or, in some embodiments, the depth map of the target object is acquired from the first depth map, and the target object’s depth map is updated based on the first image. Depth map to get the second depth map.
作为一个示例,获取第一图像中目标对象的位置信息,并基于目标对象的位置信息,从第一深度图中获取目标对象的深度图。其中,可选地,可以预先对第一深度图和第一图像进行配准或对齐处理,但本公开实施例对此不做限定。As an example, the position information of the target object in the first image is acquired, and based on the position information of the target object, the depth map of the target object is acquired from the first depth map. Optionally, the first depth map and the first image may be registered or aligned in advance, but the embodiment of the present disclosure does not limit this.
这样,通过从第一深度图中获取目标对象的深度图,并基于第一图像,更新目标对象的深度图,得到第二深度图,由此能够降低第一深度图中的背景信息对活体检测产生的干扰。In this way, by acquiring the depth map of the target object from the first depth map, and updating the depth map of the target object based on the first image, the second depth map is obtained, which can reduce the background information in the first depth map for living body detection The interference produced.
在一些实施例中,在获取第一图像和第一图像对应的第一深度图之后,根据图像传感器的参数以及深度传感器的参数,对齐第一图像和第一深度图。In some embodiments, after the first image and the first depth map corresponding to the first image are acquired, the first image and the first depth map are aligned according to the parameters of the image sensor and the parameters of the depth sensor.
作为一个示例,可以对第一深度图进行转换处理,以使得转换处理后的第一深度图和第一图像对齐。例如,可以根据深度传感器的参数和图像传感器的参数,确定第一转换矩阵,并根据第一转换矩阵,对第一深度图进行转换处理。相应地,可以基于第一图像的至少一部分,对转换处理后的第一深度图的至少一部分进行更新,得到第二深度图。例如,基于第一图像,对转换处理后的第一深度图进行更新,得到第二深度图。再例如,基于从第一图像中截取的目标对象的图像,对从第一深度图中截取的目标对象的深度图进行更新,得到第二深度图,等等。As an example, conversion processing may be performed on the first depth map, so that the first depth map after the conversion processing is aligned with the first image. For example, the first conversion matrix can be determined according to the parameters of the depth sensor and the parameters of the image sensor, and the first depth map can be converted according to the first conversion matrix. Correspondingly, based on at least a part of the first image, at least a part of the converted first depth map may be updated to obtain a second depth map. For example, based on the first image, the first depth map after the conversion processing is updated to obtain the second depth map. For another example, based on the image of the target object intercepted from the first image, the depth map of the target object intercepted from the first depth map is updated to obtain the second depth map, and so on.
作为另一个示例,可以对第一图像进行转换处理,以使得转换处理后的第一图像与第一深度图对齐。例如,可以根据深度传感器的参数和图像传感器的参数,确定第二转换矩阵,并根据第二转换矩阵,对第一图像进行转换处理。相应地,可以基于转换处理后的第一图像的至少一部分,对第一深度图的至少一部分进行更新,得到第二深度图。As another example, conversion processing may be performed on the first image, so that the converted first image is aligned with the first depth map. For example, the second conversion matrix can be determined according to the parameters of the depth sensor and the parameters of the image sensor, and the first image can be converted according to the second conversion matrix. Correspondingly, based on at least a part of the converted first image, at least a part of the first depth map may be updated to obtain a second depth map.
可选地,深度传感器的参数可以包括深度传感器的内参数和/或外参数,图像传感器的参数可以包括图像传感器的内参数和/或外参数。通过对齐第一深度图和第一图像,能够使第一深度图和第一图像中相应的部分在两个图像中的位置相同。Optionally, the parameters of the depth sensor may include internal parameters and/or external parameters of the depth sensor, and the parameters of the image sensor may include internal parameters and/or external parameters of the image sensor. By aligning the first depth map and the first image, the positions of the corresponding parts in the first depth map and the first image can be the same in the two images.
在上文的例子中,第一图像为原始图像(例如RGB或红外图像),而在另一些实施例中,第一图像也可以指从原始图像中截取的目标对象的图像,类似地,第一深度图也可以指从原始深度图中截取的目标对象的深度图,本公开实施例对此不做限定。In the above example, the first image is an original image (for example, an RGB or infrared image). In other embodiments, the first image may also refer to an image of a target object intercepted from the original image. Similarly, the first image A depth map may also refer to a depth map of the target object intercepted from the original depth map, which is not limited in the embodiment of the present disclosure.
图5示出根据本公开实施例的活体检测方法的一个示例的示意图。在图5示出的例子中,第一图像为RGB图像且目标对象为人脸,将RGB图像和第一深度图进行对齐校正处理,并将处理后的图像输入到人脸关键点模型中进行处理,得到RGB人脸图(目标对象的图像)和深度人脸图(目标对象的深度图),并基于RGB人脸图对深度人脸图进行更新或修复。这样,能够降低后续的数据处理量,提高活体检测效率和准确率。FIG. 5 shows a schematic diagram of an example of a living body detection method according to an embodiment of the present disclosure. In the example shown in Figure 5, the first image is an RGB image and the target object is a human face. The RGB image and the first depth map are aligned and corrected, and the processed image is input into the face key point model for processing , Get the RGB face map (the image of the target object) and the depth face map (the depth map of the target object), and update or repair the depth face map based on the RGB face map. In this way, the amount of subsequent data processing can be reduced, and the efficiency and accuracy of living body detection can be improved.
在本公开实施例中,目标对象的活体检测结果可以为目标对象为活体或者目标对象为假体。In the embodiment of the present disclosure, the live detection result of the target object may be that the target object is a living body or the target object is a prosthesis.
在一些实施例中,将第一图像和第二深度图输入到活体检测神经网络进行处理,得到第一图像中的目标对象的活体检测结果。或者,通过其他活体检测算法对第一图像和第二深度图进行处理,得到活体检测结果。In some embodiments, the first image and the second depth map are input to the living body detection neural network for processing, and the living body detection result of the target object in the first image is obtained. Alternatively, the first image and the second depth map are processed by other living body detection algorithms to obtain the living body detection result.
在一些实施例中,对第一图像进行特征提取处理,得到第一特征信息;对第二深度图进行特征提取处理,得到第二特征信息;基于第一特征信息和第二特征信息,确定第一图像中的目标对象的活体检测结果。In some embodiments, feature extraction is performed on the first image to obtain first feature information; feature extraction is performed on the second depth map to obtain second feature information; based on the first feature information and the second feature information, the first feature information is determined The live detection result of the target object in an image.
其中,可选地,特征提取处理可以通过神经网络或其他机器学习算法实现,提取到的特征信息的类型可选地可以通过对样本的学习得到,本公开实施例对此不做限定。Optionally, the feature extraction process can be implemented by a neural network or other machine learning algorithms, and the type of feature information extracted can optionally be obtained by learning a sample, which is not limited in the embodiment of the present disclosure.
在某些特定场景(如室外强光场景)下,获取到的深度图(例如深度传感器采集到的深度图)可能会出现部分面积失效的情况。此外,正常光照下,由于眼镜反光、黑色头发或者黑色眼镜边框等因素也会随机引起深度图局部失效。而某些特殊的纸质能够使得打印出的人脸照片产生类似的深度图大面积失效或者局部失效的效果。另外,通过遮挡深度传感器的主动光源也可以使得深度图部分失效,同时假体在图像传感器的成像正常。因此,在一些深度图的部分或全部失效的情况下,利用深度图区分活体和假体会造成误差。因此,在本公开实施例中,通过对第一深度图进行修复或更新,并利用修复或更新后的深度图进行活体检测,有利于提高活体检测的准确率。In some specific scenes (such as outdoor scenes with strong light), the acquired depth map (such as the depth map collected by the depth sensor) may be partially invalid. In addition, under normal light, due to spectacle reflections, black hair, or black spectacle frames, etc., the depth map may randomly cause partial failure of the depth map. And some special paper quality can make the printed face photos produce a similar effect of large-area failure or partial failure of the depth map. In addition, by blocking the active light source of the depth sensor, the depth map can also be partially invalidated, and the imaging of the prosthesis on the image sensor is normal. Therefore, in the case of partial or complete failure of some depth maps, using the depth map to distinguish between the living body and the prosthesis will cause errors. Therefore, in the embodiments of the present disclosure, by repairing or updating the first depth map, and using the repaired or updated depth map for living body detection, it is beneficial to improve the accuracy of living body detection.
图6示出根据本公开实施例的活体检测方法中基于第一图像和第二深度图,确定第一图像中的目标对象的活体检测结果的一个示例的示意图。FIG. 6 shows a schematic diagram of an example of determining the result of the living body detection of the target object in the first image based on the first image and the second depth map in the living body detection method according to an embodiment of the present disclosure.
在该示例中,将第一图像和第二深度图输入到活体检测网络中进行活体检测处理,得到活体检测结果。In this example, the first image and the second depth map are input into the living body detection network for living body detection processing, and the living body detection result is obtained.
如图6所示,该活体检测网络包括两个分支,即第一子网络和第二子网络,其中,第一子网络用于对第一图像进行特征提取处理,得到第一特征信息,第二子网络用于对第二深度图进行特征提取处理,得到第二特征信息。As shown in Figure 6, the living body detection network includes two branches, namely a first sub-network and a second sub-network. The first sub-network is used to perform feature extraction processing on the first image to obtain first feature information. The two sub-networks are used to perform feature extraction processing on the second depth map to obtain second feature information.
在一个可选示例中,第一子网络可以包括卷积层、下采样层和全连接层。In an optional example, the first sub-network may include a convolutional layer, a downsampling layer, and a fully connected layer.
例如,第一子网络可以包括一级卷积层、一级下采样层和一级全连接层。其中,该级卷积层可以包括一个或多个卷积层,该级下采样层可以包括一个或多个下采样层,该级全连接层可以包括一个或多个全连接层。For example, the first sub-network may include a first-level convolutional layer, a first-level down-sampling layer, and a first-level fully connected layer. Wherein, the level of convolutional layer may include one or more convolutional layers, the level of downsampling layer may include one or more downsampling layers, and the level of fully connected layer may include one or more fully connected layers.
又如,第一子网络可以包括多级卷积层、多级下采样层和一级全连接层。其中,每级卷积层可以包括一个或多个卷积层,每级下采样层可以包括一个或多个下采样层,该级全连接层可以包括一个或多个全连接层。其中,第i级卷积层后级联第i级下采样层,第i级下采样层后级联第i+1级卷积层,第n级下采样层后级联全连接层,其中,i和n均为正整数,1≤i≤n,n表示深度预测神经网络中卷积层和下采样层的级数。For another example, the first sub-network may include a multi-level convolutional layer, a multi-level down-sampling layer, and a first-level fully connected layer. Wherein, each level of convolutional layer may include one or more convolutional layers, each level of downsampling layer may include one or more downsampling layers, and this level of fully connected layer may include one or more fully connected layers. Among them, the i-th convolutional layer is cascaded after the i-th down-sampling layer, the i-th down-sampling layer is cascaded after the i+1-th convolutional layer, and the n-th down-sampling layer is cascaded after the fully connected layer, where , I and n are both positive integers, 1≤i≤n, n represents the number of convolutional layers and downsampling layers in the depth prediction neural network.
或者,第一子网络可以包括卷积层、下采样层、归一化层和全连接层。Alternatively, the first sub-network may include a convolutional layer, a down-sampling layer, a normalization layer, and a fully connected layer.
例如,第一子网络可以包括一级卷积层、一个归一化层、一级下采样层和一级全连接层。其中,该级卷积层可以包括一个或多个卷积层,该级下采样层可以包括一个或多个下采样层,该级全连接层可以包括一个或多个全连接层。For example, the first sub-network may include a first-level convolutional layer, a normalization layer, a first-level down-sampling layer, and a first-level fully connected layer. Wherein, the level of convolutional layer may include one or more convolutional layers, the level of downsampling layer may include one or more downsampling layers, and the level of fully connected layer may include one or more fully connected layers.
又如,第一子网络可以包括多级卷积层、多个归一化层和多级下采样层和一级全连接层。其中,每级卷积层可以包括一个或多个卷积层,每级下采样层可以包括一个或多个下采样层,该级全连接层可以包括一个或多个全连接层。其中,第i级卷积层后级联第i个归一化层,第i个归一化层后级联第i级下采样层,第i级下采样层后级联第i+1级卷积层,第n级下采样层后级联全连接层,其中,i和n均为正整数,1≤i≤n,n表示第一子网络中卷积层、下采样层的级数和归一化层的个数。For another example, the first sub-network may include a multi-level convolutional layer, a plurality of normalization layers, a multi-level down-sampling layer, and a first-level fully connected layer. Wherein, each level of convolutional layer may include one or more convolutional layers, each level of downsampling layer may include one or more downsampling layers, and this level of fully connected layer may include one or more fully connected layers. Among them, the i-th normalized layer is cascaded after the i-th convolutional layer, the i-th downsampling layer is cascaded after the i-th normalized layer, and the i+1-th level is cascaded after the i-th down-sampling layer Convolutional layer, cascaded fully connected layer after the nth downsampling layer, where i and n are both positive integers, 1≤i≤n, and n represents the number of convolutional and downsampling layers in the first sub-network And the number of normalization layers.
作为一个示例,对第一图像进行卷积处理,得到第一卷积结果;对第一卷积结果进行下采样处理,得到第一下采样结果;基于第一下采样结果,得到第一特征信息。As an example, perform convolution processing on the first image to obtain the first convolution result; perform down-sampling processing on the first convolution result to obtain the first down-sampling result; and obtain the first feature information based on the first down-sampling result .
例如,可以通过一级卷积层和一级下采样层对第一图像进行卷积处理和下采样处理。其中,其中,该级卷积层可以包括一个或多个卷积层,该级下采样层可以包括一个或多个下采样层。For example, the first image may be subjected to convolution processing and down-sampling processing through a first-level convolution layer and a first-level down-sampling layer. Wherein, the level of convolutional layer may include one or more convolutional layers, and the level of downsampling layer may include one or more downsampling layers.
又如,可以通过多级卷积层和多级下采样层对第一图像进行卷积处理和下采样处理。其中,每级卷积层可以包括一个或多个卷积层,每级下采样层可以包括一个或多个下采样层。For another example, the first image may be subjected to convolution processing and down-sampling processing through a multi-level convolution layer and a multi-level down-sampling layer. Wherein, each level of convolutional layer may include one or more convolutional layers, and each level of downsampling layer may include one or more downsampling layers.
例如,对第一卷积结果进行下采样处理,得到第一下采样结果,可以包括:对第一卷积结果进行归一化处理,得到第一归一化结果;对第一归一化结果进行下采样处理,得到第一下采样结果。For example, performing down-sampling processing on the first convolution result to obtain the first down-sampling result may include: performing normalization processing on the first convolution result to obtain the first normalization result; and performing the first normalization result Perform down-sampling processing to obtain the first down-sampling result.
例如,可以将第一下采样结果输入全连接层,通过全连接层对第一下采样结果进行融合处理,得到第一特征信息。For example, the first down-sampling result may be input to the fully connected layer, and the first down-sampling result may be fused through the fully connected layer to obtain the first characteristic information.
可选地,第二子网络和第一子网络具有相同的网络结构,但具有不同的参数。或者,第二子网络具有与第一子网络不同的网络结构,本公开实施例对此不做限定。Optionally, the second sub-network and the first sub-network have the same network structure, but have different parameters. Alternatively, the second sub-network has a different network structure from the first sub-network, which is not limited in the embodiment of the present disclosure.
如图6所示,活体检测网络还包括第三子网络,用于对第一子网络得到的第一特征信息和第二子网络得到的第二特征信息进行处理,得到第一图像中的目标对象的活体检测结果。可选地,第三子网络可以包括全连接层和输出层。例如,输出层采用softmax函数,若输出层的输出为1,则表示目标对象为活体,若输出层的输出为0,则表示目标对象为假体,但本公开实施例对第三子网络的具体实现不做限定。As shown in Figure 6, the living body detection network also includes a third sub-network for processing the first feature information obtained by the first sub-network and the second feature information obtained by the second sub-network to obtain the target in the first image. The result of the live test of the subject. Optionally, the third sub-network may include a fully connected layer and an output layer. For example, the output layer adopts the softmax function. If the output of the output layer is 1, it means that the target object is a living body, and if the output of the output layer is 0, it means that the target object is a prosthesis. The specific implementation is not limited.
作为一个示例,对第一特征信息和第二特征信息进行融合处理,得到第三特征信息;基于第三特征信息,确定第一图像中的目标对象的活体检测结果。As an example, the first feature information and the second feature information are fused to obtain the third feature information; based on the third feature information, the live detection result of the target object in the first image is determined.
例如,通过全连接层对第一特征信息和第二特征信息进行融合处理,得到第三特征信息。For example, the first feature information and the second feature information are fused through the fully connected layer to obtain the third feature information.
在一些实施例中,基于第三特征信息,得到第一图像中的目标对象为活体的概率,并根据目标对象为活体的概率,确定目标对象的活体检测结果。In some embodiments, based on the third feature information, the probability that the target object in the first image is a living body is obtained, and the living body detection result of the target object is determined according to the probability that the target object is a living body.
例如,若目标对象为活体的概率大于第二阈值,则确定目标对象的活体检测结果为目标对象为活体。再例如,若目标对象为活体的概率小于或等于第二阈值,则确定目标对象的活体检测结果为假体。For example, if the probability that the target object is a living body is greater than the second threshold, it is determined that the target object's living body detection result is that the target object is a living body. For another example, if the probability that the target object is a living body is less than or equal to the second threshold, it is determined that the living body detection result of the target object is a prosthesis.
在另一些实施例中,基于第三特征信息,得到目标对象为假体的概率,并根据目标对象为假体的概率,确定目标对象的活体检测结果。例如,若目标对象为假体的概率大于第三阈值,则确定目标对象的活体检测结果为目标对象为假体。再例如,若目标对象为假体的概率小于或等于第三阈值,则确定目标对象的活体检测结果为活体。In other embodiments, based on the third characteristic information, the probability that the target object is a prosthesis is obtained, and the live detection result of the target object is determined according to the probability that the target object is the prosthesis. For example, if the probability that the target object is a prosthesis is greater than the third threshold, it is determined that the target object's live body detection result is that the target object is a prosthesis. For another example, if the probability that the target object is a prosthesis is less than or equal to the third threshold, it is determined that the live body detection result of the target object is a live body.
在一个例子中,可以将第三特征信息输入Softmax层中,通过Softmax层得到目标对象为活体或假体的概率。例如,Softmax层的输出包括两个神经元,其中,一个神经元代表目标对象为活体的概率,另一个神经元代表目标对象为假体的概率,但本公开实施例不限于此。In an example, the third feature information can be input into the Softmax layer, and the probability that the target object is a living body or a prosthesis can be obtained through the Softmax layer. For example, the output of the Softmax layer includes two neurons, where one neuron represents the probability that the target object is a living body, and the other neuron represents the probability that the target object is a prosthesis, but the embodiments of the present disclosure are not limited thereto.
在本公开实施例中,通过获取第一图像和第一图像对应的第一深度图,基于第一图像,更新第一深度图,得到第二深度图,基于第一图像和第二深度图,确定第一图像中的目标对象的活体检测结果,由此能够完善深度图,从而提高活体检测的准确性。In the embodiment of the present disclosure, by acquiring the first image and the first depth map corresponding to the first image, based on the first image, updating the first depth map to obtain the second depth map, based on the first image and the second depth map, The live detection result of the target object in the first image is determined, so that the depth map can be perfected, thereby improving the accuracy of the live detection.
在一种可能的实现方式中,基于第一图像,更新第一深度图,得到第二深度图,包括:基于第一图像,确定第一图像中多个像素的深度预测值和关联信息,其中,该多个像素的关联信息指示该多个像素之间的关联度;基于该多个像素的深度预测值和关联信息,更新第一深度图,得到第二深度图。In a possible implementation manner, updating the first depth map based on the first image to obtain the second depth map includes: determining depth prediction values and associated information of multiple pixels in the first image based on the first image, where , The association information of the plurality of pixels indicates the degree of association between the plurality of pixels; based on the depth prediction value and the association information of the plurality of pixels, the first depth map is updated to obtain the second depth map.
具体地,基于第一图像确定第一图像中多个像素的深度预测值,并基于多个像素的深度预测值对第一深度图进行修复完善。Specifically, the depth prediction values of multiple pixels in the first image are determined based on the first image, and the first depth map is repaired and perfected based on the depth prediction values of the multiple pixels.
具体地,通过对第一图像进行处理,得到第一图像中多个像素的深度预测值。例如,将第一图像输入到深度预测深度网络中进行处理,得到多个像素的深度预测结果,例如,得到第一图像对应的深度预测图,但本公开实施例对此不做限定。Specifically, by processing the first image, the depth prediction values of multiple pixels in the first image are obtained. For example, the first image is input into the depth prediction depth network for processing to obtain the depth prediction results of multiple pixels, for example, the depth prediction map corresponding to the first image is obtained, but the embodiment of the present disclosure does not limit this.
在一些实施例中,基于第一图像和第一深度图,确定第一图像中多个像素的深度预测值。In some embodiments, based on the first image and the first depth map, the depth prediction values of multiple pixels in the first image are determined.
作为一个示例,将第一图像和第一深度图输入到深度预测神经网络进行处理,得到第一图像中多个像素的深度预测值。或者,通过其他方式对第一图像和第一深度图进行处理,得到多个像素的深度预测值,本公开实施例对此不做限定。As an example, the first image and the first depth map are input to the depth prediction neural network for processing to obtain depth prediction values of multiple pixels in the first image. Alternatively, the first image and the first depth map are processed in other ways to obtain depth prediction values of multiple pixels, which is not limited in the embodiment of the present disclosure.
图7示出根据本公开实施例的车门解锁方法中的深度预测神经网络的示意图。如图7所示,可以将第一图像和第一深度图输入到深度预测神经网络进行处理,得到初始深度估计图。基于初始深度估计图,可以确定第一图像中多个像素的深度预测值。例如,初始深度估计图的像素值为第一图像中的相应像素的深度预测值。Fig. 7 shows a schematic diagram of a depth prediction neural network in a method for unlocking a vehicle door according to an embodiment of the present disclosure. As shown in FIG. 7, the first image and the first depth map can be input to the depth prediction neural network for processing to obtain an initial depth estimation map. Based on the initial depth estimation map, the depth prediction values of multiple pixels in the first image can be determined. For example, the pixel value of the initial depth estimation map is the depth prediction value of the corresponding pixel in the first image.
深度预测神经网络可以通过多种网络结构实现。在一个示例中,深度预测神经网络包括编码部分和解码部分。其中,可选地,编码部分可以包括卷积层和下采样层,解码部分包括反卷积层和/或上采样层。此外,编码部分和/或解码部分还可以包括归一化层,本公开实施例对编码部分和解码部分的具体实现不做限定。在编码部分,随着网络层数的增加,特征图的分辨率逐渐降低,特征图的数量逐渐增多,从而能够获取丰富的语义特征和图像空间特征;在解码部分,特征图的分辨率逐渐增大,解码部分最终输出的特征图的分辨率与第一深度图的分辨率相同。The deep prediction neural network can be realized through a variety of network structures. In one example, the depth prediction neural network includes an encoding part and a decoding part. Wherein, optionally, the encoding part may include a convolutional layer and a downsampling layer, and the decoding part may include a deconvolutional layer and/or an upsampling layer. In addition, the encoding part and/or the decoding part may further include a normalization layer, and the embodiment of the present disclosure does not limit the specific implementation of the encoding part and the decoding part. In the encoding part, as the number of network layers increases, the resolution of the feature map gradually decreases, and the number of feature maps gradually increases, so that rich semantic features and image spatial features can be obtained; in the decoding part, the resolution of the feature map gradually increases Large, the resolution of the feature map finally output by the decoding part is the same as the resolution of the first depth map.
在一些实施例中,对第一图像和第一深度图进行融合处理,得到融合结果,并基于融合结果,确定第一图像中多个像素的深度预测值。In some embodiments, fusion processing is performed on the first image and the first depth map to obtain a fusion result, and based on the fusion result, the depth prediction values of multiple pixels in the first image are determined.
在一个示例中,可以对第一图像和第一深度图进行连接(concat),得到融合结果。In an example, the first image and the first depth map can be concat to obtain the fusion result.
在一个示例中,对融合结果进行卷积处理,得到第二卷积结果;基于第二卷积结果进行下采样处理,得到第一编码结果;基于第一编码结果,确定第一图像中多个像素的深度预测值。In one example, convolution processing is performed on the fusion result to obtain the second convolution result; down-sampling processing is performed based on the second convolution result to obtain the first encoding result; based on the first encoding result, multiple images in the first image are determined The predicted depth value of the pixel.
例如,可以通过卷积层对融合结果进行卷积处理,得到第二卷积结果。For example, convolution processing may be performed on the fusion result through the convolution layer to obtain the second convolution result.
例如,对第二卷积结果进行归一化处理,得到第二归一化结果;对第二归一化结果进行下采样处理,得到第一编码结果。在这里,可以通过归一化层对第二卷积结果进行归一化处理,得到第二归一化结果;通过下采样层对第二归一化结果进行下采样处理,得到第一编码结果。或者,可以通过下采样层对第二卷积结果进行下采样处理,得到第一 编码结果。For example, normalization processing is performed on the second convolution result to obtain the second normalization result; down sampling processing is performed on the second normalization result to obtain the first encoding result. Here, the second normalized result can be normalized by the normalization layer to obtain the second normalized result; the second normalized result can be down-sampled by the down-sampling layer to obtain the first encoding result . Alternatively, the second convolution result may be down-sampled through the down-sampling layer to obtain the first encoding result.
例如,对第一编码结果进行反卷积处理,得到第一反卷积结果;对第一反卷积结果进行归一化处理,得到深度预测值。在这里,可以通过反卷积层对第一编码结果进行反卷积处理,得到第一反卷积结果;通过归一化层对第一反卷积结果进行归一化处理,得到深度预测值。或者,可以通过反卷积层对第一编码结果进行反卷积处理,得到深度预测值。For example, perform deconvolution processing on the first encoding result to obtain the first deconvolution result; perform normalization processing on the first deconvolution result to obtain the depth prediction value. Here, the first encoding result can be deconvolved by the deconvolution layer to obtain the first deconvolution result; the first deconvolution result can be normalized by the normalization layer to obtain the depth prediction value . Alternatively, the first encoding result may be deconvolved through the deconvolution layer to obtain the depth prediction value.
例如,对第一编码结果进行上采样处理,得到第一上采样结果;对第一上采样结果进行归一化处理,得到深度预测值。在这里,可以通过上采样层对第一编码结果进行上采样处理,得到第一上采样结果;通过归一化层对第一上采样结果进行归一化处理,得到深度预测值。或者,可以通过上采样层对第一编码结果进行上采样处理,得到深度预测值。For example, performing up-sampling processing on the first encoding result to obtain the first up-sampling result; performing normalization processing on the first up-sampling result to obtain the depth prediction value. Here, the up-sampling process may be performed on the first encoding result through the up-sampling layer to obtain the first up-sampling result; the first up-sampling result may be normalized through the normalization layer to obtain the depth prediction value. Alternatively, the upsampling process may be performed on the first encoding result through the upsampling layer to obtain the depth prediction value.
此外,通过对第一图像进行处理,得到第一图像中多个像素的关联信息。其中,第一图像中多个像素的关联信息可以包括第一图像的多个像素中每个像素与其周围像素之间的关联度。其中,像素的周围像素可以包括像素的至少一个相邻像素,或者包括与该像素间隔不超过一定数值的多个像素。例如,如图10所示,像素5的周围像素包括与其相邻的像素1、像素2、像素3、像素4、像素6、像素7、像素8和像素9,相应地,第一图像中多个像素的关联信息包括像素1、像素2、像素3、像素4、像素6、像素7、像素8和像素9与像素5之间的关联度。作为一个示例,第一像素与第二像素之间的关联度可以利用第一像素与第二像素的相关性来度量,其中,本公开实施例可以采用相关技术确定像素之间的相关性,在此不再赘述。In addition, by processing the first image, the associated information of multiple pixels in the first image is obtained. Wherein, the association information of the plurality of pixels in the first image may include the degree of association between each pixel in the plurality of pixels of the first image and its surrounding pixels. Wherein, the surrounding pixels of the pixel may include at least one adjacent pixel of the pixel, or include a plurality of pixels that are separated from the pixel by no more than a certain value. For example, as shown in FIG. 10, the surrounding pixels of pixel 5 include pixels 1, pixel 2, pixel 3, pixel 4, pixel 6, pixel 7, pixel 8, and pixel 9 adjacent to it. Accordingly, there are more pixels in the first image. The associated information of each pixel includes pixel 1, pixel 2, pixel 3, pixel 4, pixel 6, pixel 7, pixel 8, and the degree of association between pixel 9 and pixel 5. As an example, the degree of association between the first pixel and the second pixel may be measured by the correlation between the first pixel and the second pixel. The embodiments of the present disclosure may use related technologies to determine the correlation between pixels. This will not be repeated here.
在本公开实施例中,可以通过多种方式确定多个像素的关联信息。在一些实施例中,将第一图像输入到关联度检测神经网络进行处理,得到第一图像中多个像素的关联信息。例如,得到第一图像对应的关联特征图。或者,也可以通过其他算法得到多个像素的关联信息,本公开实施例对此不做限定。In the embodiments of the present disclosure, the associated information of multiple pixels can be determined in various ways. In some embodiments, the first image is input to the correlation detection neural network for processing to obtain correlation information of multiple pixels in the first image. For example, the associated feature map corresponding to the first image is obtained. Alternatively, other algorithms may be used to obtain the associated information of multiple pixels, which is not limited in the embodiment of the present disclosure.
图8示出根据本公开实施例的车门解锁方法中的关联度检测神经网络的示意图。如图8所示,将第一图像输入到关联度检测神经网络进行处理,得到多张关联特征图。基于多张关联特征图,可以确定第一图像中多个像素的关联信息。例如,某一像素的周围像素指的是与该像素的距离等于0的像素,即,该像素的周围像素指的是与该像素相邻的像素,则关联度检测神经网络可以输出8张关联特征图。例如,在第一张关联特征图中,像素P i,j的像素值=第一图像中像素P i-1,j-1与像素P i,j之间的关联度,其中,P i,j表示第i行第j列的像素;在第二张关联特征图中,像素P i,j的像素值=第一图像中像素P i-1,j与像素P i,j之间的关联度;在第三张关联特征图中,像素P i,j的像素值=第一图像中像素P i-1,j+1与像素P i,j之间的关联度;在第四张关联特征图中,像素P i,j的像素值=第一图像中像素P i,j-1与像素P i,j之间的关联度;在第五张关联特征图中,像素P i,j的像素值=第一图像中像素P i,j+1与像素P i,j之间的关联度;在第六张关联特征图中,像素P i,j的像素值=第一图像中像素P i+1,j-1与像素P i,j之间的关联度;在第七张关联特征图中,像素P i,j的像素值=第一图像中像素P i+1,j与像素P i,j之间的关联度;在第八张关联特征图中,像素P i,j的像素值=第一图像中像素P i+1,j+1与像素P i,j之间的关联度。 Fig. 8 shows a schematic diagram of a correlation detection neural network in a method for unlocking a vehicle door according to an embodiment of the present disclosure. As shown in Figure 8, the first image is input to the correlation detection neural network for processing, and multiple correlation feature maps are obtained. Based on multiple associated feature maps, the associated information of multiple pixels in the first image can be determined. For example, the surrounding pixels of a certain pixel refer to the pixels whose distance from the pixel is equal to 0, that is, the surrounding pixels of the pixel refer to the pixels adjacent to the pixel, the correlation detection neural network can output 8 correlations Feature map. For example, in the first associated feature map, the pixel value of the pixel Pi ,j = the degree of correlation between the pixel Pi -1,j-1 and the pixel Pi ,j in the first image, where Pi , j represents the pixel in the i-th row and j-th column; in the second correlation feature map, the pixel value of the pixel Pi ,j = the correlation between the pixel Pi -1,j and the pixel Pi ,j in the first image Degree; in the third associated feature map, the pixel value of the pixel Pi ,j = the degree of association between the pixel Pi -1,j+1 and the pixel Pi ,j in the first image; in the fourth image FIG feature, the correlation between the pixel P i, j of the pixel values of the first image pixel = P i, j-1 and the pixel P i, j; in FIG fifth related feature, the pixel P i, j The pixel value of = the correlation degree between the pixel Pi ,j+1 and the pixel Pi ,j in the first image; in the sixth associated feature map , the pixel value of the pixel Pi ,j = the pixel in the first image The degree of association between Pi+1,j-1 and pixels Pi ,j ; in the seventh associated feature map , the pixel value of pixels Pi ,j =pixels Pi +1,j in the first image and The degree of correlation between pixels Pi ,j ; in the eighth associated feature map, the pixel value of pixel Pi ,j =between pixel Pi +1,j+1 and pixel Pi ,j in the first image The degree of relevance.
关联度检测神经网络可以通过多种网络结构实现。作为一个示例,关联度检测神经网络可以包括编码部分和解码部分。其中,编码部分可以包括卷积层和下采样层,解码部分可以包括反卷积层和/或上采样层。编码部分还可以包括归一化层,解码部分也可以包括归一化层。在编码部分,特征图的分辨率逐渐降低,特征图的数量逐渐增多,从而获取丰富的语义特征和图像空间特征;在解码部分,特征图的分辨率逐渐增大,解码部分最终输出的特征图的分辨率与第一图像的分辨率相同。在本公开实施例中,关联信息可以为图像,也可以为其他数据形式,例如矩阵等。The correlation detection neural network can be realized through a variety of network structures. As an example, the correlation detection neural network may include an encoding part and a decoding part. The coding part may include a convolutional layer and a downsampling layer, and the decoding part may include a deconvolutional layer and/or an upsampling layer. The encoding part may also include a normalization layer, and the decoding part may also include a normalization layer. In the coding part, the resolution of the feature map gradually decreases, and the number of feature maps gradually increases, so as to obtain rich semantic features and image spatial features; in the decoding part, the resolution of the feature map gradually increases, and the final output feature map of the decoding part The resolution is the same as the resolution of the first image. In the embodiment of the present disclosure, the associated information may be an image, or may be other data forms, such as a matrix.
作为一个示例,将第一图像输入到关联度检测神经网络进行处理,得到第一图像中多个像素的关联信息,可以包括:对第一图像进行卷积处理,得到第三卷积结果;基于第三卷积结果进行下采样处理,得到第二编码结果;基于第二编码结果,得到第一图像中多个像素的关联信息。As an example, inputting the first image into the correlation detection neural network for processing to obtain correlation information of multiple pixels in the first image may include: performing convolution processing on the first image to obtain a third convolution result; The third convolution result is subjected to down-sampling processing to obtain the second encoding result; based on the second encoding result, the associated information of multiple pixels in the first image is obtained.
在一个示例中,可以通过卷积层对第一图像进行卷积处理,得到第三卷积结果。In an example, the first image may be convolved through the convolution layer to obtain the third convolution result.
在一个示例中,基于第三卷积结果进行下采样处理,得到第二编码结果,可以包括:对第三卷积结果进行归一化处理,得到第三归一化结果;对第三归一化结果进行下采样处理,得到第二编码结果。在该示例中,可以通过归一化层对第三卷积结果进行归一化处理,得到第三归一化结果;通过下采样层对第三归一化结果进行下采样处理,得到第二编码结果。或者,可以通过下采样层对第三卷积结果进行下采样处理,得到第二编码结果。In one example, performing down-sampling processing based on the third convolution result to obtain the second encoding result may include: normalizing the third convolution result to obtain the third normalization result; normalizing the third The transformation result is subjected to down-sampling processing to obtain the second encoding result. In this example, the third convolution result can be normalized by the normalization layer to obtain the third normalized result; the third normalized result can be downsampled by the downsampling layer to obtain the second Encoding results. Alternatively, the third convolution result may be down-sampled through the down-sampling layer to obtain the second encoding result.
在一个示例中,基于第二编码结果,确定关联信息,可以包括:对第二编码结果进行反卷积处理,得到第二反卷积结果;对第二反卷积结果进行归一化处理,得到关联信息。在该示例中,可以通过反卷积层对第二编码结果进行反卷积处理,得到第二反卷积结果;通过归一化层对第二反卷积结果进行归一化处理,得到关联信息。或者,可以通过 反卷积层对第二编码结果进行反卷积处理,得到关联信息。In one example, determining the associated information based on the second encoding result may include: performing deconvolution processing on the second encoding result to obtain a second deconvolution result; performing normalization processing on the second deconvolution result, Get related information. In this example, the second encoding result can be deconvolved through the deconvolution layer to obtain the second deconvolution result; the second deconvolution result can be normalized through the normalization layer to obtain the correlation information. Alternatively, the second encoding result may be deconvolved through the deconvolution layer to obtain the associated information.
在一个示例中,基于第二编码结果,确定关联信息,可以包括:对第二编码结果进行上采样处理,得到第二上采样结果;对第二上采样结果进行归一化处理,得到关联信息。在示例中,可以通过上采样层对第二编码结果进行上采样处理,得到第二上采样结果;通过归一化层对第二上采样结果进行归一化处理,得到关联信息。或者,可以通过上采样层对第二编码结果进行上采样处理,得到关联信息。In one example, determining the associated information based on the second encoding result may include: performing up-sampling processing on the second encoding result to obtain the second up-sampling result; normalizing the second up-sampling result to obtain the associated information . In an example, the second encoding result may be up-sampled through the up-sampling layer to obtain the second up-sampling result; the second up-sampling result may be normalized through the normalization layer to obtain the associated information. Alternatively, the second encoding result may be up-sampled through the up-sampling layer to obtain the associated information.
当前的TOF、结构光等3D传感器,在室外容易受到阳光的影响,导致深度图有大面积的空洞缺失,从而影响3D活体检测算法的性能。本公开实施例提出的基于深度图自完善的3D活体检测算法,通过对3D传感器检测到的深度图的完善修复,提高了3D活体检测算法的性能。Current 3D sensors such as TOF and structured light are easily affected by sunlight outdoors, resulting in a large area of voids in the depth map, which affects the performance of the 3D live detection algorithm. The 3D living body detection algorithm based on the self-improvement of the depth map proposed in the embodiments of the present disclosure improves the performance of the 3D living body detection algorithm by perfecting and repairing the depth map detected by the 3D sensor.
在一些实施例中,在得到多个像素的深度预测值和关联信息之后,基于多个像素的深度预测值和关联信息,对第一深度图进行更新处理,得到第二深度图。图9示出根据本公开实施例的车门解锁方法中深度图更新的一示例性的示意图。在图9所示的例子中,第一深度图为带缺失值的深度图,得到的多个像素的深度预测值和关联信息分别为初始深度估计图和关联特征图,此时,将带缺失值的深度图、初始深度估计图和关联特征图输入到深度图更新模块(例如深度更新神经网络)中进行处理,得到最终深度图,即第二深度图。In some embodiments, after obtaining the depth prediction values and associated information of multiple pixels, the first depth map is updated based on the depth prediction values and associated information of the multiple pixels to obtain the second depth map. Fig. 9 shows an exemplary schematic diagram of updating the depth map in a method for unlocking a vehicle door according to an embodiment of the present disclosure. In the example shown in Figure 9, the first depth map is a depth map with missing values, and the obtained depth prediction values and associated information of multiple pixels are the initial depth estimation map and the associated feature map. At this time, there will be missing values. The value depth map, the initial depth estimation map, and the associated feature map are input to the depth map update module (for example, the depth update neural network) for processing to obtain the final depth map, that is, the second depth map.
在一些实施例中,从该多个像素的深度预测值中获取深度失效像素的深度预测值以及深度失效像素的多个周围像素的深度预测值;从该多个像素的关联信息中获取深度失效像素与深度失效像素的多个周围像素之间的关联度;基于深度失效像素的深度预测值、深度失效像素的多个周围像素的深度预测值、以及深度失效像素与深度失效像素的周围像素之间的关联度,确定深度失效像素的更新后的深度值。In some embodiments, the depth prediction value of the depth failure pixel and the depth prediction value of multiple surrounding pixels of the depth failure pixel are obtained from the depth prediction values of the plurality of pixels; the depth failure value is obtained from the associated information of the plurality of pixels The correlation between the pixel and the multiple surrounding pixels of the depth-failed pixel; based on the depth prediction value of the depth-failed pixel, the depth prediction value of the multiple surrounding pixels of the depth-failed pixel, and the relationship between the depth-failed pixel and the surrounding pixels of the depth-failed pixel The correlation degree between the two determines the updated depth value of the depth failure pixel.
在本公开实施例中,可以通过多种方式确定深度图中的深度失效像素。作为一个示例,将第一深度图中深度值等于0的像素确定为深度失效像素,或将第一深度图中不具有深度值的像素确定为深度失效像素。In the embodiments of the present disclosure, the depth invalid pixels in the depth map can be determined in various ways. As an example, a pixel with a depth value equal to 0 in the first depth map is determined as a depth failure pixel, or a pixel in the first depth map without a depth value is determined as a depth failure pixel.
在该示例中,对于带缺失值的第一深度图中有值的部分(即深度值不为0),我们认为其深度值是正确可信的,对这部分不进行更新,保留原始的深度值。而对第一深度图中深度值为0的像素的深度值进行更新。In this example, for the value part of the first depth map with missing values (that is, the depth value is not 0), we believe that the depth value is correct and credible, and this part is not updated and the original depth is retained value. The depth value of the pixel whose depth value is 0 in the first depth map is updated.
作为另一个示例,深度传感器可以将深度失效像素的深度值设置为一个或多个预设数值或预设范围。在示例中,可以将第一深度图中深度值等于预设数值或者属于预设范围的像素确定为深度失效像素。As another example, the depth sensor may set the depth value of the depth failure pixel to one or more preset values or preset ranges. In an example, pixels whose depth values in the first depth map are equal to a preset value or belonging to a preset range may be determined as depth-invalidated pixels.
本公开实施例也可以基于其他统计方式确定第一深度图中的深度失效像素,本公开实施例对此不做限定。The embodiment of the present disclosure may also determine the depth failure pixel in the first depth map based on other statistical methods, which is not limited in the embodiment of the present disclosure.
在该实现方式中,可以将第一图像中与深度失效像素位置相同的像素的深度值确定为深度失效像素的深度预测值,类似地,可以将第一图像中与深度失效像素的周围像素位置相同的像素的深度值确定为深度失效像素的周围像素的深度预测值。In this implementation manner, the depth value of the pixel in the first image with the same position as the depth failure pixel can be determined as the depth prediction value of the depth failure pixel. Similarly, the surrounding pixel positions of the depth failure pixel in the first image can be determined. The depth value of the same pixel is determined as the depth prediction value of the surrounding pixels of the depth failure pixel.
作为一个示例,深度失效像素的周围像素与深度失效像素之间的距离小于或等于第一阈值。As an example, the distance between the surrounding pixels of the depth failure pixel and the depth failure pixel is less than or equal to the first threshold.
图10示出根据本公开实施例的车门解锁方法中周围像素的示意图。例如,第一阈值为0,则只将邻居像素作为周围像素。例如,像素5的邻居像素包括像素1、像素2、像素3、像素4、像素6、像素7、像素8和像素9,则只将像素1、像素2、像素3、像素4、像素6、像素7、像素8和像素9作为像素5的周围像素。FIG. 10 shows a schematic diagram of surrounding pixels in a method for unlocking a vehicle door according to an embodiment of the present disclosure. For example, if the first threshold is 0, only neighbor pixels are used as surrounding pixels. For example, if the neighboring pixels of pixel 5 include pixel 1, pixel 2, pixel 3, pixel 4, pixel 6, pixel 7, pixel 8, and pixel 9, then only pixel 1, pixel 2, pixel 3, pixel 4, pixel 6, Pixel 7, pixel 8, and pixel 9 serve as surrounding pixels of pixel 5.
图11示出根据本公开实施例的车门解锁方法中周围像素的另一示意图。例如,第一阈值为1,则除了将邻居像素作为周围像素,还将邻居像素的邻居像素作为周围像素。即,除了将像素1、像素2、像素3、像素4、像素6、像素7、像素8和像素9作为像素5的周围像素,还将像素10至像素25作为像素5的周围像素。FIG. 11 shows another schematic diagram of surrounding pixels in a method for unlocking a vehicle door according to an embodiment of the present disclosure. For example, if the first threshold is 1, in addition to using neighbor pixels as surrounding pixels, neighbor pixels of neighbor pixels are also used as surrounding pixels. That is, in addition to pixels 1, pixel 2, pixel 3, pixel 4, pixel 6, pixel 7, pixel 8, and pixel 9 as surrounding pixels of pixel 5, pixels 10 to 25 are used as surrounding pixels of pixel 5.
作为一个示例,基于深度失效像素的周围像素的深度预测值以及深度失效像素与深度失效像素的多个周围像素之间的关联度,确定深度失效像素的深度关联值;基于深度失效像素的深度预测值以及深度关联值,确定深度失效像素的更新后的深度值。As an example, based on the depth prediction value of the surrounding pixels of the depth failure pixel and the correlation between the depth failure pixel and multiple surrounding pixels of the depth failure pixel, the depth correlation value of the depth failure pixel is determined; depth prediction based on the depth failure pixel The value and the depth associated value determine the updated depth value of the depth failure pixel.
作为另一个示例,基于深度失效像素的周围像素的深度预测值以及深度失效像素与该周围像素之间的关联度,确定该周围像素对于深度失效像素的有效深度值;基于深度失效像素的各个周围像素对于深度失效像素的有效深度值,以及深度失效像素的深度预测值,确定深度失效像素的更新后的深度值。例如,可以将深度失效像素的某一周围像素的深度预测值与该周围像素对应的关联度的乘积,确定为该周围像素对于深度失效像素的有效深度值,其中,该周围像素对应的关联度指的是该周围像素与深度失效像素之间的关联度。例如,可以确定深度失效像素的各个周围像素对于深度失效像素的有效深度值之和与第一预设系数的乘积,得到第一乘积;确定深度失效像素的深度预测值与第二预设系数的乘积,得到第二乘积;将第一乘积与第二乘积之和确定为深度失效像素的更新后的深度值。在一些实施例中,第一预设系数与第二预设系数之和为1。As another example, based on the depth prediction value of the surrounding pixels of the depth failing pixel and the correlation between the depth failing pixel and the surrounding pixels, determine the effective depth value of the surrounding pixel for the depth failing pixel; based on each surrounding of the depth failing pixel The effective depth value of the pixel for the depth failure pixel and the depth prediction value of the depth failure pixel determine the updated depth value of the depth failure pixel. For example, the product of the depth prediction value of a certain surrounding pixel of the depth failure pixel and the correlation degree corresponding to the surrounding pixel can be determined as the effective depth value of the surrounding pixel for the depth failure pixel, where the correlation degree corresponding to the surrounding pixel It refers to the degree of correlation between the surrounding pixels and the depth failure pixels. For example, it is possible to determine the product of the sum of the effective depth values of the depth-failed pixels for the depth-failed pixels and the first preset coefficient to obtain the first product; determine the depth prediction value of the depth-failed pixels and the second preset coefficient The product is multiplied to obtain the second product; the sum of the first product and the second product is determined as the updated depth value of the depth failure pixel. In some embodiments, the sum of the first preset coefficient and the second preset coefficient is 1.
在一个示例中,将深度失效像素与每个周围像素之间的关联度作为每个周围像素的权重,对深度失效像素的多个周围像素的深度预测值进行加权求和处理,得到深度失效像素的深度关联值。例如,像素5为深度失效像素,则深度失效像素5的深度关联值为
Figure PCTCN2020076713-appb-000001
并可以采用式1确定深度失效像素5的更新后的深度值F 5′,
In one example, the degree of association between the depth failure pixel and each surrounding pixel is used as the weight of each surrounding pixel, and the depth prediction values of multiple surrounding pixels of the depth failure pixel are weighted and summed to obtain the depth failure pixel The depth of the correlation value. For example, if pixel 5 is a depth failure pixel, the depth correlation value of depth failure pixel 5 is
Figure PCTCN2020076713-appb-000001
And formula 1 can be used to determine the updated depth value F 5 ′ of the depth failure pixel 5,
Figure PCTCN2020076713-appb-000002
Figure PCTCN2020076713-appb-000002
其中,
Figure PCTCN2020076713-appb-000003
w i表示像素i与像素5之间的关联度,F i表示像素i的深度预测值。
among them,
Figure PCTCN2020076713-appb-000003
W i represents the correlation between the pixel i and the pixel 5, F i represents the depth of the prediction value of pixel i.
在另一个示例中,确定深度失效像素的多个周围像素中每个周围像素与深度失效像素之间的关联度和每个周围像素的深度预测值的乘积;将乘积的最大值确定为深度失效像素的深度关联值。In another example, the product of the correlation between each surrounding pixel and the depth failing pixel in the multiple surrounding pixels of the depth failure pixel and the depth prediction value of each surrounding pixel is determined; the maximum value of the product is determined as the depth failure The depth associated value of the pixel.
在一个示例中,将深度失效像素的深度预测值与深度关联值之和确定为深度失效像素的更新后的深度值。In one example, the sum of the depth prediction value of the depth failure pixel and the depth associated value is determined as the updated depth value of the depth failure pixel.
在另一个示例中,确定深度失效像素的深度预测值与第三预设系数的乘积,得到第三乘积;确定深度关联值与第四预设系数的乘积,得到第四乘积;将第三乘积与第四乘积之和确定为深度失效像素的更新后的深度值。在一些实施例中,第三预设系数与第四预设系数之和为1。In another example, the product of the depth prediction value of the depth failure pixel and the third preset coefficient is determined to obtain the third product; the product of the depth correlation value and the fourth preset coefficient is determined to obtain the fourth product; and the third product is multiplied by The sum of the fourth product is determined as the updated depth value of the depth failure pixel. In some embodiments, the sum of the third preset coefficient and the fourth preset coefficient is 1.
在一些实施例中,非深度失效像素在第二深度图中的深度值等于该非深度失效像素在第一深度图中的深度值。In some embodiments, the depth value of the non-depth failure pixel in the second depth map is equal to the depth value of the non-depth failure pixel in the first depth map.
在另一些实施例中,也可以对非深度失效像素的深度值进行更新,以得到更准确的第二深度图,从而能够进一步提高活体检测的准确性。In other embodiments, the depth value of the non-depth failure pixel may also be updated to obtain a more accurate second depth map, which can further improve the accuracy of the living body detection.
在本公开实施例中,经设置于车的蓝牙模块搜索预设标识的蓝牙设备,响应于搜索到预设标识的蓝牙设备,建立蓝牙模块与预设标识的蓝牙设备的蓝牙配对连接,响应于蓝牙配对连接成功,唤醒并控制设置于车的图像采集模组采集目标对象的第一图像,基于第一图像进行人脸识别,并响应于人脸识别成功,向车的至少一车门发送车门解锁指令和/或打开车门指令,由此在未与预设标识的蓝牙设备建立蓝牙配对连接时,人脸识别模组可以处于休眠状态以保持低功耗运行,从而能够降低刷脸开车门方式的运行功耗,并且能够在携带预设标识的蓝牙设备的用户到达车门前,使人脸识别模组处于可工作状态,在携带预设标识的蓝牙设备的用户到达车门时,图像采集模组采集到第一图像后能够通过唤醒的人脸识别模组快速进行人脸图像处理,进而能够提高人脸识别效率,改善用户体验。因此,本公开实施例既能满足低功耗运行的要求,也能满足快速开车门的要求。采用本公开实施例,在车主接近车辆时,无需刻意做动作(如触摸按钮或做手势),就能够自动触发活体检测与人脸认证流程,并在车主活体检测和人脸认证通过后自动打开车门。In the embodiment of the present disclosure, the Bluetooth module provided in the car searches for the Bluetooth device with the preset identification, and in response to the search for the Bluetooth device with the preset identification, the Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification is established, in response to The Bluetooth pairing connection is successful, wake up and control the image acquisition module installed in the car to collect the first image of the target object, perform face recognition based on the first image, and send the door unlock to at least one door of the car in response to the successful face recognition Commands and/or open door commands, so that when a Bluetooth pairing connection is not established with a Bluetooth device with a preset logo, the face recognition module can be in a dormant state to maintain low-power operation, thereby reducing the amount of face recognition and opening the door. Operating power consumption, and can make the face recognition module in a working state before the user of the Bluetooth device with the preset logo arrives at the car door, and the image acquisition module collects when the user of the Bluetooth device with the preset logo arrives at the door After the first image is reached, the face image processing can be quickly performed through the awakened face recognition module, thereby improving the efficiency of face recognition and improving user experience. Therefore, the embodiments of the present disclosure can not only meet the requirements of low-power operation, but also meet the requirements of fast opening doors. With the embodiments of the present disclosure, when the owner approaches the vehicle, without deliberately making actions (such as touching a button or making gestures), the living body detection and face authentication process can be automatically triggered, and it is automatically turned on after the owner passes the living body detection and face authentication. Car door.
在一种可能的实现方式中,在基于第一图像进行人脸识别之后,该方法还包括:响应于人脸识别失败,激活设置于车的密码解锁模块以启动密码解锁流程。In a possible implementation manner, after performing face recognition based on the first image, the method further includes: in response to a face recognition failure, activating a password unlocking module provided in the car to start a password unlocking process.
在该实现方式中,密码解锁是人脸识别解锁的备选方案。人脸识别失败的原因可以包括活体检测结果为目标对象为假体、人脸认证失败、图像采集失败(例如摄像头故障)和识别次数超过预定次数等中的至少一项。当目标对象不通过人脸识别时,启动密码解锁流程。例如,可以通过B柱上的触摸屏获取用户输入的密码。在一个示例中,在连续输入M次错误的密码后,密码解锁将失效,例如,M等于5。In this implementation, password unlocking is an alternative to face recognition unlocking. The reasons for the failure of face recognition may include at least one of the result of the living body detection being that the target object is a prosthesis, the face authentication failure, the failure of image collection (for example, a camera failure), and the number of recognition times exceeding a predetermined number. When the target object does not pass face recognition, the password unlocking process is initiated. For example, the password entered by the user can be obtained through the touch screen on the B-pillar. In one example, after entering the wrong password M times in succession, the password unlocking will become invalid, for example, M is equal to 5.
在一种可能的实现方式中,该方法还包括以下一项或两项:根据图像采集模组采集的车主的人脸图像进行车主注册;根据车主的终端设备采集的车主的人脸图像进行远程注册,并将注册信息发送到车上,其中,注册信息包括车主的人脸图像。In a possible implementation, the method further includes one or both of the following: performing vehicle owner registration based on the facial image of the vehicle owner collected by the image acquisition module; performing remotely based on the facial image of the vehicle owner collected by the vehicle owner’s terminal device Register and send the registration information to the car, where the registration information includes the face image of the car owner.
在一个示例中,根据图像采集模组采集的车主的人脸图像进行车主注册,包括:在检测到触摸屏上的注册按钮被点击时,请求用户输入密码,在密码验证通过后,启动图像采集模组中的RGB摄像头获取用户的人脸图像,并根据获取的人脸图像进行注册,提取该人脸图像中的人脸特征作为预注册的人脸特征,以在后续人脸认证时基于该预注册的人脸特征进行人脸比对。In one example, the registration of the car owner based on the face image of the car owner collected by the image acquisition module includes: when the registration button on the touch screen is detected to be clicked, the user is requested to enter a password, and after the password verification is passed, the image acquisition module is started. The RGB cameras in the group acquire the user’s face image, and register according to the acquired face image, and extract the facial features in the face image as pre-registered facial features to be based on the pre-registered facial features during subsequent face authentication. Compare the registered face features.
在一个示例中,根据车主的终端设备采集的车主的人脸图像进行远程注册,并将注册信息发送到车上,其中,注册信息包括车主的人脸图像。在该示例中,车主可以通过手机App(Application,应用)向TSP(Telematics Service Provider,汽车远程服务提供商)云端发送注册请求,其中,注册请求可以携带车主的人脸图像;TSP云端将注册请求发送给车 门解锁装置的车载T-Box(Telematics Box,远程信息处理器),车载T-Box根据注册请求激活人脸识别功能,并将注册请求中携带的人脸图像中的人脸特征作为预注册的人脸特征,以在后续人脸认证时基于该预注册的人脸特征进行人脸比对。In an example, remote registration is performed according to the face image of the vehicle owner collected by the terminal device of the vehicle owner, and the registration information is sent to the vehicle, where the registration information includes the face image of the vehicle owner. In this example, the car owner can send a registration request to the TSP (Telematics Service Provider) cloud through the mobile phone App (Application), where the registration request can carry the face image of the car owner; the TSP cloud sends the registration request Send to the vehicle-mounted T-Box (Telematics Box, telematics processor) of the door unlocking device. The vehicle-mounted T-Box activates the face recognition function according to the registration request, and uses the facial features in the face image carried in the registration request as the pre- The registered facial features are compared based on the pre-registered facial features in subsequent face authentication.
图12示出根据本公开实施例的车门解锁方法的另一流程图。该车门解锁方法的执行主体可以是车门解锁装置。在一种可能的实现方式中,该车门解锁方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。为了简洁,与上文类似的部分,下面将不再赘述。如图12所示,该车门解锁方法包括步骤S21至步骤S24。FIG. 12 shows another flowchart of a method for unlocking a vehicle door according to an embodiment of the present disclosure. The vehicle door unlocking method may be executed by a vehicle door unlocking device. In a possible implementation manner, the method for unlocking the vehicle door may be implemented by a processor calling a computer readable instruction stored in the memory. For the sake of brevity, the similar parts as above will not be repeated below. As shown in FIG. 12, the method for unlocking the vehicle door includes steps S21 to S24.
在步骤S21中,经设置于车的蓝牙模块搜索预设标识的蓝牙设备。In step S21, the Bluetooth module installed in the car searches for a Bluetooth device with a preset identification.
在一种可能的实现方式中,所述经设置于车的蓝牙模块搜索预设标识的蓝牙设备,包括:在所述车处于熄火状态或处于熄火且车门锁闭状态时,经设置于所述车的蓝牙模块搜索预设标识的蓝牙设备。In a possible implementation manner, the search for a Bluetooth device with a preset identifier via the Bluetooth module provided in the car includes: when the car is in a stalled state or in a stalled state with the door locked, The Bluetooth module of the car searches for the Bluetooth device with preset identification.
在步骤S22中,响应于搜索到所述预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像。In step S22, in response to searching for the Bluetooth device with the preset identifier, wake up and control the image acquisition module provided in the vehicle to acquire the first image of the target object.
在一种可能的实现方式中,所述预设标识的蓝牙设备的数量为一个。In a possible implementation manner, the number of Bluetooth devices with the preset identification is one.
在另一种可能的实现方式中,所述预设标识的蓝牙设备的数量为多个;所述响应于搜索到所述预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像,包括:响应于搜索到任意一个预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像。In another possible implementation manner, the number of Bluetooth devices with the preset identification is multiple; and in response to searching for the Bluetooth device with the preset identification, wake up and control the image collection set in the car The module collecting the first image of the target object includes: in response to searching for any Bluetooth device with a preset identification, waking up and controlling the image collecting module installed in the vehicle to collect the first image of the target object.
在一种可能的实现方式中,所述唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像,包括:唤醒设置于所述车的人脸识别模组;经唤醒的所述人脸识别模组控制所述图像采集模组采集目标对象的第一图像。In a possible implementation manner, the awakening and controlling the image acquisition module installed in the car to collect the first image of the target object includes: awakening the face recognition module installed in the car; The face recognition module controls the image acquisition module to acquire the first image of the target object.
相对于超声波、红外等短距离传感器技术,本公开实施例通过采用蓝牙的方式能够支持较大的距离。实践表明,携带预设标识的蓝牙设备的用户通过这段距离(车的蓝牙模块搜索到用户的预设标识的蓝牙设备时用户与车之间的距离)到达车的时间,与车唤醒人脸识别模组由休眠状态转换为工作状态的时间大致匹配,由此在用户到达车门时,能够立即通过唤醒的人脸识别模组进行人脸识别开车门,而无需在用户到达车门后让用户等待人脸识别模组被唤醒,进而能够提高人脸识别效率,改善用户体验。另外,在蓝牙搜索的过程中,用户无感知,从而能够进一步提高用户体验。因此,本公开实施例通过响应于搜索到预设标识的蓝牙设备唤醒人脸识别模组的方式提供了一种能够较好地权衡人脸识别模组功耗节省、用户体验和安全性等各方面的解决方案。Compared with short-distance sensor technologies such as ultrasonic and infrared, the embodiments of the present disclosure can support a larger distance by adopting Bluetooth. Practice shows that the time when a user carrying a Bluetooth device with a preset logo passes through this distance (the distance between the user and the car when the Bluetooth module of the car searches for the Bluetooth device with the user's preset logo), and the car wakes up the face The time for the recognition module to switch from the sleep state to the working state roughly matches, so that when the user arrives at the door, the face recognition module can be used to recognize the door immediately without having to wait after the user arrives at the door The face recognition module is awakened, which can increase the efficiency of face recognition and improve user experience. In addition, the user has no perception during the Bluetooth search process, which can further improve the user experience. Therefore, the embodiments of the present disclosure provide a way of waking up the face recognition module in response to searching for the Bluetooth device with the preset identification, which can better weigh the face recognition module power saving, user experience, and security. Aspects of the solution.
在一种可能的实现方式中,在所述唤醒设置于所述车的人脸识别模组之后,所述方法还包括:若在预设时间内未采集到人脸图像,则控制所述人脸识别模组进入休眠状态。In a possible implementation, after waking up the face recognition module installed in the car, the method further includes: if no face image is collected within a preset time, controlling the person The face recognition module enters a sleep state.
在一种可能的实现方式中,在所述唤醒设置于所述车的人脸识别模组之后,所述方法还包括:若在预设时间内未通过人脸识别,则控制所述人脸识别模组进入休眠状态。In a possible implementation, after waking up the face recognition module installed in the car, the method further includes: if the face recognition fails within a preset time, controlling the face The recognition module enters a sleep state.
在步骤S23中,基于所述第一图像进行人脸识别。In step S23, face recognition is performed based on the first image.
在步骤S24中,响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。In step S24, in response to successful face recognition, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
在一种可能的实现方式中,所述响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令,包括:响应于人脸识别成功,确定所述目标对象具有开门权限的车门;根据所述目标对象具有开门权限的车门,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。In a possible implementation manner, in response to successful face recognition, sending a door unlocking instruction and/or opening a door instruction to at least one door of the vehicle includes: determining the target in response to successful face recognition The door for which the object has the authority to open the door; according to the door for which the target object has the authority to open the door, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
在一种可能的实现方式中,所述人脸识别包括:活体检测和人脸认证;所述基于所述第一图像进行人脸识别,包括:经所述图像采集模组中的图像传感器采集所述第一图像,并基于所述第一图像和预注册的人脸特征进行人脸认证;经所述图像采集模组中的深度传感器采集所述第一图像对应的第一深度图,并基于所述第一图像和所述第一深度图进行活体检测。In a possible implementation manner, the face recognition includes: living body detection and face authentication; the performing face recognition based on the first image includes: collecting by an image sensor in the image acquisition module The first image, and perform face authentication based on the first image and pre-registered facial features; collect the first depth map corresponding to the first image through the depth sensor in the image acquisition module, and Performing living body detection based on the first image and the first depth map.
在一种可能的实现方式中,所述基于所述第一图像和所述第一深度图进行活体检测,包括:基于所述第一图像,更新所述第一深度图,得到第二深度图;基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果。In a possible implementation manner, the performing living body detection based on the first image and the first depth map includes: updating the first depth map based on the first image to obtain a second depth map ; Based on the first image and the second depth map, determine the live detection result of the target object.
在一种可能的实现方式中,所述图像传感器包括RGB图像传感器或者红外传感器;所述深度传感器包括双目红外传感器或者飞行时间TOF传感器。In a possible implementation manner, the image sensor includes an RGB image sensor or an infrared sensor; the depth sensor includes a binocular infrared sensor or a time-of-flight TOF sensor.
在一种可能的实现方式中,所述TOF传感器采用基于红外波段的TOF模组。In a possible implementation manner, the TOF sensor adopts a TOF module based on an infrared band.
在一种可能的实现方式中,所述基于所述第一图像,更新所述第一深度图,得到第二深度图,包括:基于所述第一图像,对所述第一深度图中的深度失效像素的深度值进行更新,得到所述第二深度图。In a possible implementation manner, the updating the first depth map based on the first image to obtain the second depth map includes: comparing the data in the first depth map based on the first image The depth value of the depth failure pixel is updated to obtain the second depth map.
在一种可能的实现方式中,所述基于所述第一图像,更新所述第一深度图,得到第二深度图,包括:基于所述第 一图像,确定所述第一图像中多个像素的深度预测值和关联信息,其中,所述多个像素的关联信息指示所述多个像素之间的关联度;基于所述多个像素的深度预测值和关联信息,更新所述第一深度图,得到第二深度图。In a possible implementation manner, the updating the first depth map based on the first image to obtain the second depth map includes: determining a plurality of the first images based on the first image The depth prediction value and associated information of the pixel, wherein the associated information of the plurality of pixels indicates the degree of association between the plurality of pixels; based on the depth prediction value and the associated information of the plurality of pixels, the first Depth map to get the second depth map.
在一种可能的实现方式中,所述基于所述多个像素的深度预测值和关联信息,更新所述第一深度图,得到第二深度图,包括:确定所述第一深度图中的深度失效像素;从所述多个像素的深度预测值中获取所述深度失效像素的深度预测值以及所述深度失效像素的多个周围像素的深度预测值;从所述多个像素的关联信息中获取所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度;基于所述深度失效像素的深度预测值、所述深度失效像素的多个周围像素的深度预测值、以及所述深度失效像素与所述深度失效像素的周围像素之间的关联度,确定所述深度失效像素的更新后的深度值。In a possible implementation manner, the updating the first depth map based on the depth prediction values and associated information of the plurality of pixels to obtain a second depth map includes: determining the value in the first depth map Depth failure pixel; obtaining the depth prediction value of the depth failure pixel and the depth prediction value of a plurality of surrounding pixels of the depth failure pixel from the depth prediction values of the plurality of pixels; from the associated information of the plurality of pixels Obtaining the correlation between the depth failure pixel and multiple surrounding pixels of the depth failure pixel; based on the depth prediction value of the depth failure pixel, the depth prediction value of the multiple surrounding pixels of the depth failure pixel, And the degree of association between the depth failure pixel and surrounding pixels of the depth failure pixel to determine the updated depth value of the depth failure pixel.
在一种可能的实现方式中,所述基于所述深度失效像素的深度预测值、所述深度失效像素的多个周围像素的深度预测值、以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的更新后的深度值,包括:基于所述深度失效像素的周围像素的深度预测值以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的深度关联值;基于所述深度失效像素的深度预测值以及所述深度关联值,确定所述深度失效像素的更新后的深度值。In a possible implementation, the depth prediction value based on the depth failure pixel, the depth prediction values of multiple surrounding pixels of the depth failure pixel, and the difference between the depth failure pixel and the depth failure pixel Determining the updated depth value of the depth failure pixel based on the correlation between multiple surrounding pixels, including: the depth prediction value of the surrounding pixels based on the depth failure pixel and the depth failure pixel and the depth failure pixel Determine the depth correlation value of the depth failure pixel; determine the updated depth of the depth failure pixel based on the depth prediction value of the depth failure pixel and the depth correlation value value.
在一种可能的实现方式中,所述基于所述深度失效像素的周围像素的深度预测值以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的深度关联值,包括:将所述深度失效像素与每个周围像素之间的关联度作为所述每个周围像素的权重,对所述深度失效像素的多个周围像素的深度预测值进行加权求和处理,得到所述深度失效像素的深度关联值。In a possible implementation manner, the determining the depth prediction value based on the depth prediction value of the surrounding pixels of the depth failure pixel and the correlation between the depth failure pixel and the multiple surrounding pixels of the depth failure pixel The depth correlation value of the depth failure pixel includes: using the correlation degree between the depth failure pixel and each surrounding pixel as the weight of each surrounding pixel, and predicting the depth of multiple surrounding pixels of the depth failure pixel The value is weighted and summed to obtain the depth associated value of the depth failure pixel.
在一种可能的实现方式中,所述基于所述第一图像,确定所述第一图像中多个像素的深度预测值,包括:基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值。In a possible implementation manner, the determining depth prediction values of multiple pixels in the first image based on the first image includes: determining based on the first image and the first depth map Depth prediction values of multiple pixels in the first image.
在一种可能的实现方式中,所述基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值,包括:将所述第一图像和所述第一深度图输入到深度预测神经网络进行处理,得到所述第一图像中多个像素的深度预测值。In a possible implementation manner, the determining the depth prediction values of multiple pixels in the first image based on the first image and the first depth map includes: combining the first image and the The first depth map is input to a depth prediction neural network for processing to obtain depth prediction values of multiple pixels in the first image.
在一种可能的实现方式中,所述基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值,包括:对所述第一图像和所述第一深度图进行融合处理,得到融合结果;基于所述融合结果,确定所述第一图像中多个像素的深度预测值。In a possible implementation manner, the determining the depth prediction values of multiple pixels in the first image based on the first image and the first depth map includes: comparing the first image and the first depth map. The first depth map is subjected to fusion processing to obtain a fusion result; based on the fusion result, the depth prediction values of multiple pixels in the first image are determined.
在一种可能的实现方式中,所述基于所述第一图像,确定所述第一图像中多个像素的关联信息,包括:将所述第一图像输入到关联度检测神经网络进行处理,得到所述第一图像中多个像素的关联信息。In a possible implementation manner, the determining the association information of multiple pixels in the first image based on the first image includes: inputting the first image to a correlation detection neural network for processing, Obtain the associated information of multiple pixels in the first image.
在一种可能的实现方式中,所述基于所述第一图像,更新所述第一深度图,包括:从所述第一图像中获取所述目标对象的图像;基于所述目标对象的图像,更新所述第一深度图。In a possible implementation manner, the updating the first depth map based on the first image includes: acquiring an image of the target object from the first image; and based on the image of the target object , Update the first depth map.
在一种可能的实现方式中,所述从所述第一图像中获取所述目标对象的图像,包括:获取所述第一图像中所述目标对象的关键点信息;基于所述目标对象的关键点信息,从所述第一图像中获取所述目标对象的图像。In a possible implementation manner, the obtaining an image of the target object from the first image includes: obtaining key point information of the target object in the first image; The key point information is to obtain the image of the target object from the first image.
在一种可能的实现方式中,所述获取所述第一图像中所述目标对象的关键点信息,包括:对所述第一图像进行目标检测,得到所述目标对象所在区域;对所述目标对象所在区域的图像进行关键点检测,得到所述第一图像中所述目标对象的关键点信息。In a possible implementation manner, the acquiring key point information of the target object in the first image includes: performing target detection on the first image to obtain the area where the target object is located; The image of the area where the target object is located performs key point detection to obtain the key point information of the target object in the first image.
在一种可能的实现方式中,所述基于所述第一图像,更新所述第一深度图,得到第二深度图,包括:从所述第一深度图中获取所述目标对象的深度图;基于所述第一图像,更新所述目标对象的深度图,得到所述第二深度图。In a possible implementation manner, the updating the first depth map based on the first image to obtain a second depth map includes: obtaining a depth map of the target object from the first depth map ; Based on the first image, update the depth map of the target object to obtain the second depth map.
在一种可能的实现方式中,所述基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果,包括:将所述第一图像和所述第二深度图输入到活体检测神经网络进行处理,得到所述目标对象的活体检测结果。In a possible implementation manner, the determining the live detection result of the target object based on the first image and the second depth map includes: combining the first image and the second depth map Input to the living body detection neural network for processing, and obtain the living body detection result of the target object.
在一种可能的实现方式中,所述基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果,包括:对所述第一图像进行特征提取处理,得到第一特征信息;对所述第二深度图进行特征提取处理,得到第二特征信息;基于所述第一特征信息和所述第二特征信息,确定所述目标对象的活体检测结果。In a possible implementation manner, the determining the live detection result of the target object based on the first image and the second depth map includes: performing feature extraction processing on the first image to obtain the first image One feature information; performing feature extraction processing on the second depth map to obtain second feature information; and determining the live detection result of the target object based on the first feature information and the second feature information.
在一种可能的实现方式中,所述基于所述第一特征信息和所述第二特征信息,确定所述目标对象的活体检测结果,包括:对所述第一特征信息和所述第二特征信息进行融合处理,得到第三特征信息;基于所述第三特征信息,确定所述目标对象的活体检测结果。In a possible implementation, the determining the live detection result of the target object based on the first feature information and the second feature information includes: comparing the first feature information and the second feature information The feature information is fused to obtain third feature information; based on the third feature information, the live detection result of the target object is determined.
在一种可能的实现方式中,所述基于所述第三特征信息,确定所述目标对象的活体检测结果,包括:基于所述第 三特征信息,得到所述目标对象为活体的概率;根据所述目标对象为活体的概率,确定所述目标对象的活体检测结果。In a possible implementation manner, the determining the live detection result of the target object based on the third characteristic information includes: obtaining the probability that the target object is alive based on the third characteristic information; The probability that the target object is a living body determines the result of the living body detection of the target object.
在一种可能的实现方式中,在所述基于所述第一图像进行人脸识别之后,所述方法还包括:响应于人脸识别失败,激活设置于所述车的密码解锁模块以启动密码解锁流程。In a possible implementation, after the face recognition is performed based on the first image, the method further includes: in response to the face recognition failure, activating a password unlocking module provided in the car to activate the password Unlocking process.
在一种可能的实现方式中,所述方法还包括以下一项或两项:根据所述图像采集模组采集的车主的人脸图像进行车主注册;根据所述车主的终端设备采集的所述车主的人脸图像进行远程注册,并将注册信息发送到所述车上,其中,所述注册信息包括所述车主的人脸图像。In a possible implementation, the method further includes one or both of the following: performing vehicle owner registration based on the face image of the vehicle owner collected by the image acquisition module; and performing vehicle owner registration based on the vehicle owner’s terminal device collected The face image of the vehicle owner is remotely registered and the registration information is sent to the vehicle, where the registration information includes the face image of the vehicle owner.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。It can be understood that, without violating the principle logic, the various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment, which is limited in length and will not be repeated in this disclosure.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above methods of the specific implementation, the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possibility. The inner logic is determined.
此外,本公开还提供了车门解锁装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种车门解锁方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides a vehicle door unlocking device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any of the vehicle door unlocking methods provided in the present disclosure. The corresponding technical solutions and descriptions and the corresponding records in the method section ,No longer.
图13示出根据本公开实施例的车门解锁装置的框图。如图13所示,所述车门解锁装置包括:搜索模块31,用于经设置于车的蓝牙模块搜索预设标识的蓝牙设备;唤醒模块32,用于响应于搜索到所述预设标识的蓝牙设备,建立所述蓝牙模块与所述预设标识的蓝牙设备的蓝牙配对连接,并响应于所述蓝牙配对连接成功,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像,或者,响应于搜索到所述预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像;人脸识别模块33,用于基于所述第一图像进行人脸识别;解锁模块34,用于响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。FIG. 13 shows a block diagram of a vehicle door unlocking device according to an embodiment of the present disclosure. As shown in FIG. 13, the vehicle door unlocking device includes: a search module 31, which is used to search for a Bluetooth device with a preset identification via a Bluetooth module provided in the car; The Bluetooth device establishes a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification, and in response to the successful Bluetooth pairing connection, wakes up and controls the image acquisition module set in the car to collect the second target object An image, or, in response to searching for the Bluetooth device with the preset identification, wake up and control the image acquisition module installed in the car to collect the first image of the target object; the face recognition module 33 is used to The first image performs face recognition; the unlocking module 34 is configured to send a door unlocking instruction and/or a door opening instruction to at least one door of the vehicle in response to a successful face recognition.
在本公开实施例中,通过响应于搜索到预设标识的蓝牙设备,建立蓝牙模块与预设标识的蓝牙设备的蓝牙配对连接,并响应于蓝牙配对连接成功,唤醒人脸识别模组并控制图像采集模组采集目标对象的第一图像,由此基于蓝牙配对连接成功再唤醒人脸识别模组的方式,能够有效减少误唤醒人脸识别模组的概率,从而能够提高用户体验,有效降低人脸识别模组的功耗。In the embodiment of the present disclosure, the Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification is established in response to searching for the Bluetooth device with the preset identification, and in response to the successful Bluetooth pairing and connection, the face recognition module is awakened and controlled The image acquisition module collects the first image of the target object, and thus based on the successful Bluetooth pairing connection and then wakes up the face recognition module, it can effectively reduce the probability of falsely waking up the face recognition module, thereby improving user experience and effectively reducing The power consumption of the face recognition module.
在一种可能的实现方式中,所述搜索模块31用于:在所述车处于熄火状态或处于熄火且车门锁闭状态时,经设置于所述车的蓝牙模块搜索预设标识的蓝牙设备。在该实现方式中,在车熄火前无需通过蓝牙模块搜索预设标识的蓝牙设备,或者,在车熄火前以及在车处于熄火状态但车门不处于锁闭状态时无需通过蓝牙模块搜索预设标识的蓝牙设备,由此能够进一步降低功耗。In a possible implementation manner, the search module 31 is used to search for a Bluetooth device with a preset identification via the Bluetooth module provided in the car when the car is in the flameout state or in the flameout state and the door is locked. . In this implementation, there is no need to search for a Bluetooth device with a preset identification through the Bluetooth module before the car is turned off, or there is no need to search for a preset identification through the Bluetooth module before the car is turned off and when the car is turned off but the door is not locked. Bluetooth devices, which can further reduce power consumption.
在一种可能的实现方式中,所述预设标识的蓝牙设备的数量为一个。In a possible implementation manner, the number of Bluetooth devices with the preset identification is one.
在一种可能的实现方式中,所述预设标识的蓝牙设备的数量为多个;In a possible implementation, the number of Bluetooth devices with the preset identification is multiple;
所述唤醒模块32用于:响应于搜索到任意一个预设标识的蓝牙设备,建立所述蓝牙模块与该预设标识的蓝牙设备的蓝牙配对连接,或者,响应于搜索到任意一个预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像。The wake-up module 32 is configured to establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification in response to searching for any Bluetooth device with the preset identification, or in response to searching for any preset identification The Bluetooth device wakes up and controls the image acquisition module installed in the car to acquire the first image of the target object.
在一种可能的实现方式中,所述唤醒模块32包括:唤醒子模块,用于唤醒设置于所述车的人脸识别模组;控制子模块,用于经唤醒的所述人脸识别模组控制所述图像采集模组采集目标对象的第一图像。In a possible implementation, the wake-up module 32 includes: a wake-up sub-module for waking up the face recognition module installed in the car; a control sub-module for the wake-up face recognition module The group controls the image acquisition module to acquire the first image of the target object.
在本公开实施例中,若搜索到预设标识的蓝牙设备,则可以在很大程度上表明携带预设标识的蓝牙设备的用户(例如车主)进入蓝牙模块的搜索范围内。此时,通过响应于搜索到预设标识的蓝牙设备,建立蓝牙模块与预设标识的蓝牙设备的蓝牙配对连接,并响应于蓝牙配对连接成功,唤醒人脸识别模组并控制图像采集模组采集目标对象的第一图像,由此基于蓝牙配对连接成功再唤醒人脸识别模组的方式,能够有效减少误唤醒人脸识别模组的概率,从而能够提高用户体验,有效降低人脸识别模组的功耗。此外,相对于超声波、红外等短距离传感器技术,基于蓝牙的配对连接方式具有安全性高和支持较大的距离的优点。实践表明,携带预设标识的蓝牙设备的用户通过这段距离(蓝牙配对连接成功时用户与车之间的距离)到达车的时间,与车唤醒人脸识别模组由休眠状态转换为工作状态的时间大致匹配,由此在用户到达车门时,能够立即通过唤醒的人脸识别模组进行人脸识别开车门,而无需在用户到达车门后让用户等待人脸识别模组被唤醒,进而能够提高人脸识别效率,改善用户体验。另外,在蓝牙配对连接的过程中,用户无感知,从而能够进一步提高用户体验。因此,本公开实施例通过基于蓝牙配对连接成功唤醒人脸识别模组的方式提供了一种能够较好地权衡人脸识别模组功耗节省、用户体验和安全性等各方面的解决方案。In the embodiments of the present disclosure, if a Bluetooth device with a preset identifier is searched, it can indicate to a large extent that a user (such as a car owner) carrying the Bluetooth device with the preset identifier has entered the search range of the Bluetooth module. At this time, by responding to the search for the Bluetooth device with the preset logo, establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset logo, and in response to the successful Bluetooth pairing connection, wake up the face recognition module and control the image acquisition module Collecting the first image of the target object, based on the successful Bluetooth pairing connection and then waking up the face recognition module, can effectively reduce the probability of falsely waking up the face recognition module, thereby improving the user experience and effectively reducing the face recognition module. The power consumption of the group. In addition, compared with short-range sensor technologies such as ultrasonic and infrared, the Bluetooth-based pairing connection method has the advantages of high security and support for larger distances. Practice has shown that the time when a user carrying a Bluetooth device with a preset logo reaches the car through this distance (the distance between the user and the car when the Bluetooth pairing connection is successful), and when the car wakes up, the face recognition module switches from a sleep state to a working state When the user arrives at the car door, the face recognition module can be used to recognize the car door immediately without having to wait for the face recognition module to be awakened after the user arrives at the car door. Improve the efficiency of face recognition and improve user experience. In addition, the user has no perception during the Bluetooth pairing and connection process, which can further improve the user experience. Therefore, the embodiments of the present disclosure provide a solution that can better weigh the face recognition module's power saving, user experience, and security by successfully waking up the face recognition module based on the Bluetooth pairing connection.
在一种可能的实现方式中,所述装置还包括:第一控制模块,用于若在预设时间内未采集到人脸图像,则控制所 述人脸识别模组进入休眠状态。该实现方式通过在唤醒人脸识别模组后预设时间内未采集到人脸图像时,控制人脸识别模组进入休眠状态,由此能够降低功耗。In a possible implementation manner, the device further includes: a first control module, configured to control the face recognition module to enter a sleep state if the face image is not collected within a preset time. This implementation method controls the face recognition module to enter a sleep state when no face image is collected within a preset time after the face recognition module is awakened, thereby reducing power consumption.
在一种可能的实现方式中,所述装置还包括:第二控制模块,用于若在预设时间内未通过人脸识别,则控制所述人脸识别模组进入休眠状态。该实现方式通过在唤醒人脸识别模组后预设时间内未通过人脸识别时,控制人脸识别模组进入休眠状态,由此能够降低功耗。In a possible implementation manner, the device further includes: a second control module, configured to control the face recognition module to enter a sleep state if the face recognition fails within a preset time. This implementation method controls the face recognition module to enter the sleep state when the face recognition module fails to pass the face recognition within a preset time after waking up the face recognition module, thereby reducing power consumption.
在一种可能的实现方式中,所述解锁模块34用于:响应于人脸识别成功,确定所述目标对象具有开门权限的车门;根据所述目标对象具有开门权限的车门,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。In a possible implementation, the unlocking module 34 is configured to: in response to successful face recognition, determine that the target object has a door opening permission; according to the door of the target object having the door opening permission, send a message to the car At least one of the doors sends a door unlock command and/or a door open command.
在一种可能的实现方式中,所述人脸识别包括:活体检测和人脸认证;所述人脸识别模块33包括:人脸认证模块,用于经所述图像采集模组中的图像传感器采集所述第一图像,并基于所述第一图像和预注册的人脸特征进行人脸认证;活体检测模块,用于经所述图像采集模组中的深度传感器采集所述第一图像对应的第一深度图,并基于所述第一图像和所述第一深度图进行活体检测。In a possible implementation, the face recognition includes: living body detection and face authentication; the face recognition module 33 includes: a face authentication module, which is configured to pass through the image sensor in the image acquisition module The first image is collected, and face authentication is performed based on the first image and pre-registered facial features; the living body detection module is used to collect the corresponding first image through the depth sensor in the image collection module And performing live detection based on the first image and the first depth map.
在该实现方式中,活体检测用于验证目标对象是否是活体,例如可以用于验证目标对象是否是人体。人脸认证用于提取采集的图像中的人脸特征,将采集的图像中的人脸特征与预注册的人脸特征进行比对,判断是否属于同一个人的人脸特征,例如可以判断采集的图像中的人脸特征是否属于车主的人脸特征。In this implementation manner, the living body detection is used to verify whether the target object is a living body, for example, it can be used to verify whether the target object is a human body. Face authentication is used to extract the facial features in the collected images, compare the facial features in the collected images with the pre-registered facial features to determine whether they belong to the same person's facial features, for example, you can determine the collected facial features Whether the facial features in the image belong to the facial features of the vehicle owner.
在一种可能的实现方式中,所述活体检测模块包括:更新子模块,用于基于所述第一图像,更新所述第一深度图,得到第二深度图;确定子模块,用于基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果。In a possible implementation, the living body detection module includes: an update sub-module for updating the first depth map based on the first image to obtain a second depth map; and a determining sub-module for obtaining a second depth map based on the The first image and the second depth map determine the live detection result of the target object.
在一种可能的实现方式中,所述图像传感器包括RGB图像传感器或者红外传感器;所述深度传感器包括双目红外传感器或者飞行时间TOF传感器。利用包含目标对象的深度图进行活体检测,能够充分挖掘目标对象的深度信息,从而能够提高活体检测的准确性。例如,当目标对象为人脸时,本公开实施例利用包含人脸的深度图进行活体检测,能够充分挖掘人脸数据的深度信息,从而能够提高活体人脸检测的准确性。In a possible implementation manner, the image sensor includes an RGB image sensor or an infrared sensor; the depth sensor includes a binocular infrared sensor or a time-of-flight TOF sensor. Using the depth map containing the target object for living body detection can fully mine the depth information of the target object, thereby improving the accuracy of living body detection. For example, when the target object is a human face, the embodiment of the present disclosure uses a depth map containing the human face to perform living body detection, which can fully mine the depth information of the face data, thereby improving the accuracy of living body face detection.
在一种可能的实现方式中,所述TOF传感器采用基于红外波段的TOF模组。通过采用基于红外波段的TOF模组,能够降低外界光线对深度图拍摄造成的影响。In a possible implementation manner, the TOF sensor adopts a TOF module based on an infrared band. By adopting the TOF module based on the infrared band, the influence of external light on the depth map shooting can be reduced.
在一种可能的实现方式中,所述更新子模块用于:基于所述第一图像,对所述第一深度图中的深度失效像素的深度值进行更新,得到所述第二深度图。In a possible implementation manner, the update submodule is configured to: based on the first image, update the depth value of the depth failure pixel in the first depth map to obtain the second depth map.
其中,深度图中的深度失效像素可以指深度图中包括的深度值无效的像素,即深度值不准确或与实际情况明显不符的像素。深度失效像素的个数可以为一个或多个。通过更新深度图中的至少一个深度失效像素的深度值,使得深度失效像素的深度值更为准确,有助于提高活体检测的准确率。Wherein, the depth invalid pixel in the depth map may refer to a pixel with an invalid depth value included in the depth map, that is, a pixel whose depth value is inaccurate or clearly inconsistent with the actual situation. The number of depth failure pixels can be one or more. By updating the depth value of at least one depth failure pixel in the depth map, the depth value of the depth failure pixel is more accurate, which helps to improve the accuracy of living body detection.
在一种可能的实现方式中,所述更新子模块用于:基于所述第一图像,确定所述第一图像中多个像素的深度预测值和关联信息,其中,所述多个像素的关联信息指示所述多个像素之间的关联度;基于所述多个像素的深度预测值和关联信息,更新所述第一深度图,得到第二深度图。In a possible implementation manner, the update sub-module is configured to: determine the depth prediction value and associated information of multiple pixels in the first image based on the first image, wherein The association information indicates the degree of association between the plurality of pixels; based on the depth prediction values and the association information of the plurality of pixels, the first depth map is updated to obtain a second depth map.
在一种可能的实现方式中,所述更新子模块用于:确定所述第一深度图中的深度失效像素;从所述多个像素的深度预测值中获取所述深度失效像素的深度预测值以及所述深度失效像素的多个周围像素的深度预测值;从所述多个像素的关联信息中获取所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度;基于所述深度失效像素的深度预测值、所述深度失效像素的多个周围像素的深度预测值、以及所述深度失效像素与所述深度失效像素的周围像素之间的关联度,确定所述深度失效像素的更新后的深度值。In a possible implementation manner, the update submodule is configured to: determine a depth failure pixel in the first depth map; obtain the depth prediction of the depth failure pixel from the depth prediction values of the multiple pixels Value and the depth prediction values of the multiple surrounding pixels of the depth failing pixel; obtaining the degree of association between the depth failing pixel and the plurality of surrounding pixels of the depth failing pixel from the associated information of the plurality of pixels; Based on the depth prediction value of the depth failure pixel, the depth prediction values of a plurality of surrounding pixels of the depth failure pixel, and the degree of association between the depth failure pixel and the surrounding pixels of the depth failure pixel, the determination The updated depth value of the depth failure pixel.
在一种可能的实现方式中,所述更新子模块用于:基于所述深度失效像素的周围像素的深度预测值以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的深度关联值;基于所述深度失效像素的深度预测值以及所述深度关联值,确定所述深度失效像素的更新后的深度值。In a possible implementation manner, the update sub-module is configured to: based on the depth prediction value of the surrounding pixels of the depth failure pixel and the relationship between the depth failure pixel and multiple surrounding pixels of the depth failure pixel The degree of association determines the depth associated value of the depth failing pixel; based on the depth prediction value of the depth failing pixel and the depth associated value, determining the updated depth value of the depth failing pixel.
在一种可能的实现方式中,所述更新子模块用于:将所述深度失效像素与每个周围像素之间的关联度作为所述每个周围像素的权重,对所述深度失效像素的多个周围像素的深度预测值进行加权求和处理,得到所述深度失效像素的深度关联值。In a possible implementation manner, the update sub-module is configured to: use the degree of association between the depth failure pixel and each surrounding pixel as the weight of each surrounding pixel, The depth prediction values of multiple surrounding pixels are weighted and summed to obtain the depth correlation value of the depth failure pixel.
在一种可能的实现方式中,所述更新子模块用于:基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值。In a possible implementation manner, the update submodule is configured to determine depth prediction values of multiple pixels in the first image based on the first image and the first depth map.
在一种可能的实现方式中,所述更新子模块用于:将所述第一图像和所述第一深度图输入到深度预测神经网络进行处理,得到所述第一图像中多个像素的深度预测值。In a possible implementation manner, the update submodule is used to: input the first image and the first depth map to a depth prediction neural network for processing, and obtain the information of multiple pixels in the first image Depth prediction value.
在一种可能的实现方式中,所述更新子模块用于:对所述第一图像和所述第一深度图进行融合处理,得到融合结果;基于所述融合结果,确定所述第一图像中多个像素的深度预测值。In a possible implementation manner, the update submodule is configured to: perform fusion processing on the first image and the first depth map to obtain a fusion result; and determine the first image based on the fusion result The depth prediction value of multiple pixels in.
在一种可能的实现方式中,所述更新子模块用于:将所述第一图像输入到关联度检测神经网络进行处理,得到所述第一图像中多个像素的关联信息。In a possible implementation manner, the update sub-module is configured to: input the first image to a correlation detection neural network for processing, and obtain correlation information of multiple pixels in the first image.
在一种可能的实现方式中,所述更新子模块用于:从所述第一图像中获取所述目标对象的图像;基于所述目标对象的图像,更新所述第一深度图。In a possible implementation manner, the update submodule is configured to: obtain an image of the target object from the first image; and update the first depth map based on the image of the target object.
在一种可能的实现方式中,所述更新子模块用于:获取所述第一图像中所述目标对象的关键点信息;基于所述目标对象的关键点信息,从所述第一图像中获取所述目标对象的图像。In a possible implementation manner, the update sub-module is used to: obtain key point information of the target object in the first image; based on the key point information of the target object, from the first image Obtain an image of the target object.
在一个示例中,基于目标对象的关键点信息,确定目标对象的轮廓,并根据目标对象的轮廓,从第一图像中截取目标对象的图像。与通过目标检测得到的目标对象的位置信息相比,通过关键点信息得到的目标对象的位置更为准确,从而有利于提高后续活体检测的准确率。In an example, the contour of the target object is determined based on the key point information of the target object, and the image of the target object is intercepted from the first image according to the contour of the target object. Compared with the position information of the target object obtained through target detection, the position of the target object obtained through the key point information is more accurate, which is beneficial to improve the accuracy of subsequent living body detection.
这样,通过从第一图像中获取目标对象的图像,基于目标对象的图像进行活体检测,能够降低第一图像中的背景信息对活体检测产生的干扰。In this way, by acquiring the image of the target object from the first image, and performing the living body detection based on the image of the target object, the interference of the background information in the first image on the living body detection can be reduced.
在一种可能的实现方式中,所述更新子模块用于:对所述第一图像进行目标检测,得到所述目标对象所在区域;对所述目标对象所在区域的图像进行关键点检测,得到所述第一图像中所述目标对象的关键点信息。In a possible implementation, the update submodule is used to: perform target detection on the first image to obtain the area where the target object is located; perform key point detection on the image of the area where the target object is located to obtain Key point information of the target object in the first image.
在一种可能的实现方式中,所述更新子模块用于:从所述第一深度图中获取所述目标对象的深度图;基于所述第一图像,更新所述目标对象的深度图,得到所述第二深度图。In a possible implementation manner, the update submodule is configured to: obtain a depth map of the target object from the first depth map; update the depth map of the target object based on the first image, Obtain the second depth map.
这样,通过从第一深度图中获取目标对象的深度图,并基于第一图像,更新目标对象的深度图,得到第二深度图,由此能够降低第一深度图中的背景信息对活体检测产生的干扰。In this way, by acquiring the depth map of the target object from the first depth map, and updating the depth map of the target object based on the first image, the second depth map is obtained, which can reduce the background information in the first depth map for living body detection The interference produced.
在某些特定场景(如室外强光场景)下,获取到的深度图(例如深度传感器采集到的深度图)可能会出现部分面积失效的情况。此外,正常光照下,由于眼镜反光、黑色头发或者黑色眼镜边框等因素也会随机引起深度图局部失效。而某些特殊的纸质能够使得打印出的人脸照片产生类似的深度图大面积失效或者局部失效的效果。另外,通过遮挡深度传感器的主动光源也可以使得深度图部分失效,同时假体在图像传感器的成像正常。因此,在一些深度图的部分或全部失效的情况下,利用深度图区分活体和假体会造成误差。因此,在本公开实施例中,通过对第一深度图进行修复或更新,并利用修复或更新后的深度图进行活体检测,有利于提高活体检测的准确率。In some specific scenes (such as outdoor scenes with strong light), the acquired depth map (such as the depth map collected by the depth sensor) may be partially invalid. In addition, under normal light, due to spectacle reflections, black hair, or black spectacle frames, etc., the depth map may randomly cause partial failure of the depth map. And some special paper quality can make the printed face photos produce a similar effect of large-area failure or partial failure of the depth map. In addition, by blocking the active light source of the depth sensor, the depth map can also be partially invalidated, and the imaging of the prosthesis on the image sensor is normal. Therefore, in the case of partial or complete failure of some depth maps, using the depth map to distinguish between the living body and the prosthesis will cause errors. Therefore, in the embodiments of the present disclosure, by repairing or updating the first depth map, and using the repaired or updated depth map for living body detection, it is beneficial to improve the accuracy of living body detection.
在一种可能的实现方式中,所述确定子模块用于:将所述第一图像和所述第二深度图输入到活体检测神经网络进行处理,得到所述目标对象的活体检测结果。In a possible implementation manner, the determining submodule is configured to: input the first image and the second depth map into a living body detection neural network for processing, and obtain a living body detection result of the target object.
在一种可能的实现方式中,所述确定子模块用于:对所述第一图像进行特征提取处理,得到第一特征信息;对所述第二深度图进行特征提取处理,得到第二特征信息;基于所述第一特征信息和所述第二特征信息,确定所述目标对象的活体检测结果。In a possible implementation manner, the determining submodule is configured to: perform feature extraction processing on the first image to obtain first feature information; perform feature extraction processing on the second depth map to obtain a second feature Information; based on the first feature information and the second feature information, determine the live detection result of the target object.
其中,可选地,特征提取处理可以通过神经网络或其他机器学习算法实现,提取到的特征信息的类型可选地可以通过对样本的学习得到,本公开实施例对此不做限定。Optionally, the feature extraction process can be implemented by a neural network or other machine learning algorithms, and the type of feature information extracted can optionally be obtained by learning a sample, which is not limited in the embodiment of the present disclosure.
在一种可能的实现方式中,所述确定子模块用于:对所述第一特征信息和所述第二特征信息进行融合处理,得到第三特征信息;基于所述第三特征信息,确定所述目标对象的活体检测结果。In a possible implementation manner, the determining submodule is configured to: perform fusion processing on the first feature information and the second feature information to obtain third feature information; and determine based on the third feature information The live detection result of the target object.
在一种可能的实现方式中,所述确定子模块用于:基于所述第三特征信息,得到所述目标对象为活体的概率;根据所述目标对象为活体的概率,确定所述目标对象的活体检测结果。In a possible implementation manner, the determining submodule is configured to: obtain the probability that the target object is a living body based on the third characteristic information; determine the target object according to the probability that the target object is a living body Live test results.
在一种可能的实现方式中,所述装置还包括:激活与启动模块,用于响应于人脸识别失败,激活设置于所述车的密码解锁模块以启动密码解锁流程。In a possible implementation, the device further includes an activation and activation module, configured to activate a password unlocking module provided in the car in response to a face recognition failure to initiate a password unlocking process.
在该实现方式中,密码解锁是人脸识别解锁的备选方案。人脸识别失败的原因可以包括活体检测结果为目标对象为假体、人脸认证失败、图像采集失败(例如摄像头故障)和识别次数超过预定次数等中的至少一项。当目标对象不通过人脸识别时,启动密码解锁流程。例如,可以通过B柱上的触摸屏获取用户输入的密码。In this implementation, password unlocking is an alternative to face recognition unlocking. The reasons for the failure of face recognition may include at least one of the result of the living body detection being that the target object is a prosthesis, the face authentication failure, the failure of image collection (for example, a camera failure), and the number of recognition times exceeding a predetermined number. When the target object does not pass face recognition, the password unlocking process is initiated. For example, the password entered by the user can be obtained through the touch screen on the B-pillar.
在一种可能的实现方式中,所述装置还包括注册模块,所述注册模块用于以下一项或两项:根据所述图像采集模组采集的车主的人脸图像进行车主注册;根据所述车主的终端设备采集的所述车主的人脸图像进行远程注册,并将注册信息发送到所述车上,其中,所述注册信息包括所述车主的人脸图像。In a possible implementation manner, the device further includes a registration module, the registration module is used for one or both of the following: Carrying out car owner registration according to the face image of the car owner collected by the image collection module; The face image of the vehicle owner collected by the terminal device of the vehicle owner is remotely registered, and the registration information is sent to the vehicle, where the registration information includes the face image of the vehicle owner.
通过该实现方式,能够在后续人脸认证时基于该预注册的人脸特征进行人脸比对。Through this implementation, it is possible to perform face comparison based on the pre-registered facial features during subsequent face authentication.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. For specific implementation, refer to the description of the above method embodiments. For brevity, here No longer.
图14示出根据本公开实施例的车载人脸解锁系统的框图。如图14所示,该车载人脸解锁系统包括:存储器41、人脸识别模组42、图像采集模组43和蓝牙模块44;所述人脸识别模组42分别与所述存储器41、所述图像采集模组43和所述蓝牙模块44连接;所述蓝牙模块44包括在与预设标识的蓝牙设备蓝牙配对连接成功或者搜索到所述预设标识的蓝牙设备时唤醒所述人脸识别模组42的微处理器441和与所述微处理器441连接的蓝牙传感器442;所述人脸识别模组42还设置有用于与车门域控制器连接的通信接口,若人脸识别成功则基于所述通信接口向所述车门域控制器发送用于解锁车门的控制信息。Fig. 14 shows a block diagram of a vehicle face unlocking system according to an embodiment of the present disclosure. As shown in Figure 14, the vehicle face unlocking system includes: a memory 41, a face recognition module 42, an image acquisition module 43 and a Bluetooth module 44; the face recognition module 42 is connected to the memory 41, The image acquisition module 43 is connected to the Bluetooth module 44; the Bluetooth module 44 includes waking up the face recognition when the Bluetooth pairing connection with the Bluetooth device with the preset identification succeeds or the Bluetooth device with the preset identification is searched The microprocessor 441 of the module 42 and the Bluetooth sensor 442 connected to the microprocessor 441; the face recognition module 42 is also provided with a communication interface for connecting with the door domain controller, if the face recognition is successful, Sending control information for unlocking the door to the door domain controller based on the communication interface.
在一个示例中,存储器41可以包括闪存(Flash)和DDR3(Double Date Rate 3,第三代双倍数据率)内存中的至少一项。In an example, the memory 41 may include at least one of flash memory (Flash) and DDR3 (Double Date Rate 3, third-generation double data rate) memory.
在一个示例中,人脸识别模组42可以采用SoC(System on Chip,系统级芯片)实现。In an example, the face recognition module 42 may be implemented by SoC (System on Chip).
在一个示例中,人脸识别模组42通过CAN(Controller Area Network,控制器局域网络)总线与车门域控制器连接。In an example, the face recognition module 42 is connected to the door domain controller through a CAN (Controller Area Network, Controller Area Network) bus.
在一个示例中,所述图像采集模组43包括图像传感器和深度传感器。In an example, the image acquisition module 43 includes an image sensor and a depth sensor.
在一个示例中,深度传感器包括双目红外传感器和飞行时间TOF传感器中的至少一项。In one example, the depth sensor includes at least one of a binocular infrared sensor and a time-of-flight TOF sensor.
在一种可能的实现方式中,深度传感器包括双目红外传感器,双目红外传感器的两个红外摄像头设置在图像传感器的摄像头的两侧。例如,在图4a所示的示例中,图像传感器为RGB传感器,图像传感器的摄像头为RGB摄像头,深度传感器为双目红外传感器,深度传感器包括两个IR(红外)摄像头,双目红外传感器的两个红外摄像头设置在图像传感器的RGB摄像头的两侧。In a possible implementation manner, the depth sensor includes a binocular infrared sensor, and two infrared cameras of the binocular infrared sensor are arranged on both sides of the camera of the image sensor. For example, in the example shown in Figure 4a, the image sensor is an RGB sensor, the camera of the image sensor is an RGB camera, and the depth sensor is a binocular infrared sensor. The depth sensor includes two IR (infrared) cameras and two binocular infrared sensors. Two infrared cameras are arranged on both sides of the RGB camera of the image sensor.
在一个示例中,图像采集模组43还包括至少一个补光灯,该至少一个补光灯设置在双目红外传感器的红外摄像头和图像传感器的摄像头之间,该至少一个补光灯包括用于图像传感器的补光灯和用于深度传感器的补光灯中的至少一种。例如,若图像传感器为RGB传感器,则用于图像传感器的补光灯可以为白光灯;若图像传感器为红外传感器,则用于图像传感器的补光灯可以为红外灯;若深度传感器为双目红外传感器,则用于深度传感器的补光灯可以为红外灯。在图4a所示的示例中,在双目红外传感器的红外摄像头和图像传感器的摄像头之间设置红外灯。例如,红外灯可以采用940nm的红外线。In an example, the image acquisition module 43 further includes at least one fill light, the at least one fill light is arranged between the infrared camera of the binocular infrared sensor and the camera of the image sensor, and the at least one fill light includes At least one of the fill light for the image sensor and the fill light for the depth sensor. For example, if the image sensor is an RGB sensor, the fill light used for the image sensor can be a white light; if the image sensor is an infrared sensor, the fill light used for the image sensor can be an infrared light; if the depth sensor is a binocular Infrared sensor, the fill light used for the depth sensor can be an infrared light. In the example shown in FIG. 4a, an infrared lamp is provided between the infrared camera of the binocular infrared sensor and the camera of the image sensor. For example, the infrared lamp can use 940nm infrared.
在一个示例中,补光灯可以处于常开模式。在该示例中,在图像采集模组的摄像头处于工作状态时,补光灯处于开启状态。In one example, the fill light may be in the normally-on mode. In this example, when the camera of the image acquisition module is in the working state, the fill light is in the on state.
在另一个示例中,可以在光线不足时开启补光灯。例如,可以通过环境光传感器获取环境光强度,并在环境光强度低于光强阈值时判定光线不足,并开启补光灯。In another example, the fill light can be turned on when the light is insufficient. For example, the ambient light intensity can be obtained through the ambient light sensor, and when the ambient light intensity is lower than the light intensity threshold, it is determined that the light is insufficient, and the fill light is turned on.
在一种可能的实现方式中,所述图像采集模组43还包括激光器,所述激光器设置在所述深度传感器的摄像头和所述图像传感器的摄像头之间。例如,在图4b所示的示例中,图像传感器为RGB传感器,图像传感器的摄像头为RGB摄像头,深度传感器为TOF传感器,激光器设置在TOF传感器的摄像头和RGB传感器的摄像头之间。例如,激光器可以为VCSEL,TOF传感器可以基于VCSEL发出的激光采集深度图。In a possible implementation manner, the image acquisition module 43 further includes a laser, and the laser is disposed between the camera of the depth sensor and the camera of the image sensor. For example, in the example shown in FIG. 4b, the image sensor is an RGB sensor, the camera of the image sensor is an RGB camera, the depth sensor is a TOF sensor, and the laser is arranged between the camera of the TOF sensor and the camera of the RGB sensor. For example, the laser may be a VCSEL, and the TOF sensor may collect a depth map based on the laser emitted by the VCSEL.
在一个示例中,深度传感器通过LVDS(Low-Voltage Differential Signaling,低电压差分信号)接口与人脸识别系统42连接。In an example, the depth sensor is connected to the face recognition system 42 through an LVDS (Low-Voltage Differential Signaling) interface.
在一种可能的实现方式中,所述车载人脸解锁系统还包括:用于解锁车门的密码解锁模块45,所述密码解锁模块45与所述人脸识别模组42连接。In a possible implementation, the vehicle face unlocking system further includes: a password unlocking module 45 for unlocking a vehicle door, and the password unlocking module 45 is connected to the face recognition module 42.
在一种可能的实现方式中,所述密码解锁模块45包括触控屏和键盘中的一项或两项。In a possible implementation, the password unlocking module 45 includes one or both of a touch screen and a keyboard.
在一个示例中,触摸屏通过FPD-Link(Flat Panel Display Link,平板显示器链路)与人脸识别模组42连接。In an example, the touch screen is connected to the face recognition module 42 through FPD-Link (Flat Panel Display Link, flat panel display link).
在一种可能的实现方式中,所述车载人脸解锁系统还包括:电池模组46,所述电池模组46分别与所述微处理器441和所述人脸识别模组42连接。In a possible implementation, the vehicle face unlocking system further includes a battery module 46, and the battery module 46 is respectively connected to the microprocessor 441 and the face recognition module 42.
在一种可能的实现方式中,存储器41、人脸识别模组42、蓝牙模块44和电池模组46可以搭建在ECU(Electronic Control Unit,电子控制单元)上。In a possible implementation manner, the memory 41, the face recognition module 42, the Bluetooth module 44, and the battery module 46 may be built on an ECU (Electronic Control Unit, electronic control unit).
图15示出根据本公开实施例的车载人脸解锁系统的示意图。在图15所示的示例中,人脸识别模组采用SoC101实现,存储器包括闪存(Flash)102和DDR3内存103,蓝牙模块包括蓝牙传感器(Bluetooth)104和微处理器(MCU,Microcontroller Unit)105,SoC101、闪存102、DDR3内存103、蓝牙传感器104、微处理器105和电池模组(Power  Management)106搭建在ECU100上,图像采集模组包括深度传感器(3D Camera)200,深度传感器200通过LVDS接口与SoC101连接,密码解锁模块包括触控屏(Touch Screen)300,触摸屏300通过FPD-Link与SoC101连接,SoC101通过CAN总线与车门域控制器400连接。图16示出根据本公开实施例的车的示意图。如图16所示,车包括车载人脸解锁系统51,车载人脸解锁系统51与车的车门域控制器52连接。Fig. 15 shows a schematic diagram of a vehicle face unlocking system according to an embodiment of the present disclosure. In the example shown in Figure 15, the face recognition module is implemented by SoC101, the memory includes flash memory (Flash) 102 and DDR3 memory 103, and the Bluetooth module includes a Bluetooth sensor (Bluetooth) 104 and a microprocessor (MCU, Microcontroller Unit) 105 , SoC101, flash memory 102, DDR3 memory 103, Bluetooth sensor 104, microprocessor 105 and battery module (Power Management) 106 are built on ECU100. The image acquisition module includes depth sensor (3D Camera) 200, and depth sensor 200 passes LVDS The interface is connected with SoC101, the password unlocking module includes a touch screen (Touch Screen) 300, the touch screen 300 is connected with SoC101 through FPD-Link, SoC101 is connected with door domain controller 400 through CAN bus. FIG. 16 shows a schematic diagram of a car according to an embodiment of the present disclosure. As shown in FIG. 16, the vehicle includes a vehicle-mounted face unlocking system 51, and the vehicle-mounted face unlocking system 51 is connected to the door domain controller 52 of the vehicle.
在一种可能的实现方式中,所述图像采集模组设置在所述车的室外部。In a possible implementation manner, the image acquisition module is arranged outside the exterior of the vehicle.
在一种可能的实现方式中,所述图像采集模组设置在以下至少一个位置上:所述车的B柱、至少一个车门、至少一个后视镜。In a possible implementation manner, the image acquisition module is arranged in at least one of the following positions: a B-pillar of the vehicle, at least one door, and at least one rearview mirror.
在一种可能的实现方式中,所述人脸识别模组设置在所述车内,所述人脸识别模组经CAN总线与所述车门域控制器连接。In a possible implementation manner, the face recognition module is arranged in the vehicle, and the face recognition module is connected to the door domain controller via a CAN bus.
本公开实施例还提出一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现上述方法。The embodiment of the present disclosure also proposes a computer program, including computer readable code, when the computer readable code is executed in an electronic device, the processor in the electronic device is executed to implement the above method.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是非易失性计算机可读存储介质或者易失性计算机可读存储介质。The embodiments of the present disclosure also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above-mentioned method when executed by a processor. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium.
本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为上述方法。An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured as the above method.
电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device can be provided as a terminal, server or other form of device.
图17是根据一示例性实施例示出的一种电子设备800的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。Fig. 17 is a block diagram showing an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
参照图17,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。17, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, and a sensor component 814 , And communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power for various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device 800.
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC). When the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以 检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation. For example, the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components. For example, the component is the display and the keypad of the electronic device 800. The sensor component 814 can also detect the electronic device 800 or the electronic device 800. The position of the component changes, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration/deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact. The sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the electronic device 800 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the foregoing method.
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。The computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (non-exhaustive list) include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon The protruding structure in the hole card or the groove, and any suitable combination of the above. The computer-readable storage medium used here is not interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。The computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, or in one or more programming languages. Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server carried out. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to access the Internet connection). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions. The computer-readable program instructions are executed to realize various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Herein, various aspects of the present disclosure are described with reference to flowcharts and/or block diagrams of methods, apparatuses (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and/or block diagrams and combinations of blocks in the flowcharts and/or block diagrams can be implemented by computer-readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指 令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowchart and/or block diagram is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions onto a computer, other programmable data processing device, or other equipment, so that a series of operation steps are executed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , So that the instructions executed on the computer, other programmable data processing apparatus, or other equipment realize the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the drawings show the possible implementation architecture, functions, and operations of the system, method, and computer program product according to multiple embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more functions for implementing the specified logical function. Executable instructions. In some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Without departing from the scope and spirit of the described embodiments, many modifications and changes are obvious to those of ordinary skill in the art. The choice of terms used herein is intended to best explain the principles, practical applications, or technical improvements of the technologies in the market, or to enable other ordinary skilled in the art to understand the embodiments disclosed herein.

Claims (108)

  1. 一种车门解锁方法,其特征在于,包括:A method for unlocking a vehicle door is characterized by comprising:
    经设置于车的蓝牙模块搜索预设标识的蓝牙设备;Search for Bluetooth devices with preset identification via the Bluetooth module installed in the car;
    响应于搜索到所述预设标识的蓝牙设备,建立所述蓝牙模块与所述预设标识的蓝牙设备的蓝牙配对连接;In response to searching for the Bluetooth device with the preset identifier, establishing a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identifier;
    响应于所述蓝牙配对连接成功,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像;In response to the successful Bluetooth pairing connection, waking up and controlling the image acquisition module provided in the vehicle to acquire the first image of the target object;
    基于所述第一图像进行人脸识别;Performing face recognition based on the first image;
    响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。In response to successful face recognition, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
  2. 根据权利要求1所述的方法,其特征在于,所述经设置于车的蓝牙模块搜索预设标识的蓝牙设备,包括:The method according to claim 1, wherein the searching for a Bluetooth device with a preset identifier via the Bluetooth module installed in the car comprises:
    在所述车处于熄火状态或处于熄火且车门锁闭状态时,经设置于所述车的蓝牙模块搜索预设标识的蓝牙设备。When the car is in the off state or in the off state and the door is locked, the Bluetooth module provided in the car searches for a Bluetooth device with a preset identification.
  3. 根据权利要求1或2所述的方法,其特征在于,所述预设标识的蓝牙设备的数量为一个。The method according to claim 1 or 2, wherein the number of Bluetooth devices with the preset identification is one.
  4. 根据权利要求1或2所述的方法,其特征在于,所述预设标识的蓝牙设备的数量为多个;The method according to claim 1 or 2, wherein the number of Bluetooth devices with the preset identification is multiple;
    所述响应于搜索到所述预设标识的蓝牙设备,建立所述蓝牙模块与所述预设标识的蓝牙设备的蓝牙配对连接,包括:The establishing a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification in response to searching for the Bluetooth device with the preset identification includes:
    响应于搜索到任意一个预设标识的蓝牙设备,建立所述蓝牙模块与该预设标识的蓝牙设备的蓝牙配对连接。In response to searching for any Bluetooth device with a preset identification, a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification is established.
  5. 根据权利要求1至4中任意一项所述的方法,其特征在于,所述唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像,包括:The method according to any one of claims 1 to 4, wherein the awakening and controlling the image acquisition module provided in the vehicle to acquire the first image of the target object comprises:
    唤醒设置于所述车的人脸识别模组;Waking up the face recognition module installed in the car;
    经唤醒的所述人脸识别模组控制所述图像采集模组采集目标对象的第一图像。The awakened face recognition module controls the image acquisition module to acquire the first image of the target object.
  6. 根据权利要求5所述的方法,其特征在于,在所述唤醒设置于所述车的人脸识别模组之后,所述方法还包括:The method according to claim 5, characterized in that, after waking up the face recognition module installed in the car, the method further comprises:
    若在预设时间内未采集到人脸图像,则控制所述人脸识别模组进入休眠状态。If the face image is not collected within the preset time, the face recognition module is controlled to enter the sleep state.
  7. 根据权利要求5所述的方法,其特征在于,在所述唤醒设置于所述车的人脸识别模组之后,所述方法还包括:The method according to claim 5, characterized in that, after waking up the face recognition module installed in the car, the method further comprises:
    若在预设时间内未通过人脸识别,则控制所述人脸识别模组进入休眠状态。If the face recognition is not passed within the preset time, the face recognition module is controlled to enter the sleep state.
  8. 根据权利要求1至7中任意一项所述的方法,其特征在于,所述响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令,包括:The method according to any one of claims 1 to 7, wherein the sending a door unlocking instruction and/or opening a door instruction to at least one door of the vehicle in response to successful face recognition includes:
    响应于人脸识别成功,确定所述目标对象具有开门权限的车门;In response to successful face recognition, determining that the target object has a door opening permission;
    根据所述目标对象具有开门权限的车门,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。Send a door unlocking instruction and/or a door opening instruction to at least one door of the vehicle according to the door of the target object with the door opening permission.
  9. 根据权利要求1至8中任意一项所述的方法,其特征在于,所述人脸识别包括:活体检测和人脸认证;The method according to any one of claims 1 to 8, wherein the face recognition comprises: living body detection and face authentication;
    所述基于所述第一图像进行人脸识别,包括:The performing face recognition based on the first image includes:
    经所述图像采集模组中的图像传感器采集所述第一图像,并基于所述第一图像和预注册的人脸特征进行人脸认证;Acquiring the first image via an image sensor in the image acquisition module, and performing face authentication based on the first image and pre-registered facial features;
    经所述图像采集模组中的深度传感器采集所述第一图像对应的第一深度图,并基于所述第一图像和所述第一深度图进行活体检测。A first depth map corresponding to the first image is acquired by a depth sensor in the image acquisition module, and living body detection is performed based on the first image and the first depth map.
  10. 根据权利要求9所述的方法,其特征在于,所述基于所述第一图像和所述第一深度图进行活体检测,包括:The method according to claim 9, wherein the performing live detection based on the first image and the first depth map comprises:
    基于所述第一图像,更新所述第一深度图,得到第二深度图;Based on the first image, update the first depth map to obtain a second depth map;
    基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果。Based on the first image and the second depth map, a live detection result of the target object is determined.
  11. 根据权利要求9或10所述的方法,其特征在于,所述图像传感器包括RGB图像传感器或者红外传感器;The method according to claim 9 or 10, wherein the image sensor comprises an RGB image sensor or an infrared sensor;
    所述深度传感器包括双目红外传感器或者飞行时间TOF传感器。The depth sensor includes a binocular infrared sensor or a time-of-flight TOF sensor.
  12. 根据权利要求11所述的方法,其特征在于,所述TOF传感器采用基于红外波段的TOF模组。The method according to claim 11, wherein the TOF sensor adopts a TOF module based on an infrared band.
  13. 根据权利要求10至12中任意一项所述的方法,其特征在于,所述基于所述第一图像,更新所述第一深度图,得到第二深度图,包括:The method according to any one of claims 10 to 12, wherein the updating the first depth map based on the first image to obtain a second depth map comprises:
    基于所述第一图像,对所述第一深度图中的深度失效像素的深度值进行更新,得到所述第二深度图。Based on the first image, the depth value of the depth failure pixel in the first depth map is updated to obtain the second depth map.
  14. 根据权利要求10至13中任意一项所述的方法,其特征在于,所述基于所述第一图像,更新所述第一深度图,得到第二深度图,包括:The method according to any one of claims 10 to 13, wherein the updating the first depth map based on the first image to obtain a second depth map comprises:
    基于所述第一图像,确定所述第一图像中多个像素的深度预测值和关联信息,其中,所述多个像素的关联信息指示所述多个像素之间的关联度;Based on the first image, determining depth prediction values and associated information of multiple pixels in the first image, wherein the associated information of the multiple pixels indicates the degree of association between the multiple pixels;
    基于所述多个像素的深度预测值和关联信息,更新所述第一深度图,得到第二深度图。Based on the depth prediction values and associated information of the plurality of pixels, the first depth map is updated to obtain a second depth map.
  15. 根据权利要求14所述的方法,其特征在于,所述基于所述多个像素的深度预测值和关联信息,更新所述第一 深度图,得到第二深度图,包括:The method according to claim 14, wherein the updating the first depth map based on the depth prediction values and associated information of the multiple pixels to obtain a second depth map comprises:
    确定所述第一深度图中的深度失效像素;Determining the depth failure pixels in the first depth map;
    从所述多个像素的深度预测值中获取所述深度失效像素的深度预测值以及所述深度失效像素的多个周围像素的深度预测值;Acquiring, from the depth prediction values of the multiple pixels, the depth prediction value of the depth failure pixel and the depth prediction values of multiple surrounding pixels of the depth failure pixel;
    从所述多个像素的关联信息中获取所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度;Acquiring the degree of association between the depth invalid pixel and the plurality of surrounding pixels of the depth invalid pixel from the associated information of the plurality of pixels;
    基于所述深度失效像素的深度预测值、所述深度失效像素的多个周围像素的深度预测值、以及所述深度失效像素与所述深度失效像素的周围像素之间的关联度,确定所述深度失效像素的更新后的深度值。Based on the depth prediction value of the depth failure pixel, the depth prediction values of a plurality of surrounding pixels of the depth failure pixel, and the degree of association between the depth failure pixel and the surrounding pixels of the depth failure pixel, the determination The updated depth value of the depth failure pixel.
  16. 根据权利要求15所述的方法,其特征在于,所述基于所述深度失效像素的深度预测值、所述深度失效像素的多个周围像素的深度预测值、以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的更新后的深度值,包括:The method according to claim 15, wherein the depth prediction value based on the depth failure pixel, the depth prediction value of a plurality of surrounding pixels of the depth failure pixel, and the depth failure pixel and the The correlation between multiple surrounding pixels of the depth-failed pixel and determining the updated depth value of the depth-failed pixel includes:
    基于所述深度失效像素的周围像素的深度预测值以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的深度关联值;Determining the depth correlation value of the depth failure pixel based on the depth prediction value of the surrounding pixels of the depth failure pixel and the degree of association between the depth failure pixel and multiple surrounding pixels of the depth failure pixel;
    基于所述深度失效像素的深度预测值以及所述深度关联值,确定所述深度失效像素的更新后的深度值。Determine the updated depth value of the depth failure pixel based on the depth prediction value of the depth failure pixel and the depth correlation value.
  17. 根据权利要求16所述的方法,其特征在于,所述基于所述深度失效像素的周围像素的深度预测值以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的深度关联值,包括:The method according to claim 16, wherein the depth prediction value based on the surrounding pixels of the depth invalid pixel and the correlation between the depth invalid pixel and a plurality of surrounding pixels of the depth invalid pixel , Determining the depth associated value of the depth failure pixel includes:
    将所述深度失效像素与每个周围像素之间的关联度作为所述每个周围像素的权重,对所述深度失效像素的多个周围像素的深度预测值进行加权求和处理,得到所述深度失效像素的深度关联值。The degree of association between the depth invalid pixel and each surrounding pixel is taken as the weight of each surrounding pixel, and the depth prediction values of multiple surrounding pixels of the depth invalid pixel are weighted and summed to obtain the The depth associated value of the depth failure pixel.
  18. 根据权利要求14至17中任意一项所述的方法,其特征在于,所述基于所述第一图像,确定所述第一图像中多个像素的深度预测值,包括:The method according to any one of claims 14 to 17, wherein the determining the depth prediction values of multiple pixels in the first image based on the first image comprises:
    基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值。Based on the first image and the first depth map, the depth prediction values of a plurality of pixels in the first image are determined.
  19. 根据权利要求18所述的方法,其特征在于,所述基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值,包括:The method according to claim 18, wherein the determining the depth prediction values of multiple pixels in the first image based on the first image and the first depth map comprises:
    将所述第一图像和所述第一深度图输入到深度预测神经网络进行处理,得到所述第一图像中多个像素的深度预测值。The first image and the first depth map are input to a depth prediction neural network for processing to obtain depth prediction values of multiple pixels in the first image.
  20. 根据权利要求18或19所述的方法,其特征在于,所述基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值,包括:The method according to claim 18 or 19, wherein the determining the depth prediction values of multiple pixels in the first image based on the first image and the first depth map comprises:
    对所述第一图像和所述第一深度图进行融合处理,得到融合结果;Performing fusion processing on the first image and the first depth map to obtain a fusion result;
    基于所述融合结果,确定所述第一图像中多个像素的深度预测值。Based on the fusion result, the depth prediction values of multiple pixels in the first image are determined.
  21. 根据权利要求14至20中任意一项所述的方法,其特征在于,所述基于所述第一图像,确定所述第一图像中多个像素的关联信息,包括:The method according to any one of claims 14 to 20, wherein the determining the associated information of multiple pixels in the first image based on the first image comprises:
    将所述第一图像输入到关联度检测神经网络进行处理,得到所述第一图像中多个像素的关联信息。The first image is input to the correlation detection neural network for processing, and correlation information of multiple pixels in the first image is obtained.
  22. 根据权利要求10至21中任意一项所述的方法,其特征在于,所述基于所述第一图像,更新所述第一深度图,包括:The method according to any one of claims 10 to 21, wherein the updating the first depth map based on the first image comprises:
    从所述第一图像中获取所述目标对象的图像;Acquiring an image of the target object from the first image;
    基于所述目标对象的图像,更新所述第一深度图。Based on the image of the target object, the first depth map is updated.
  23. 根据权利要求22所述的方法,其特征在于,所述从所述第一图像中获取所述目标对象的图像,包括:The method according to claim 22, wherein said acquiring an image of said target object from said first image comprises:
    获取所述第一图像中所述目标对象的关键点信息;Acquiring key point information of the target object in the first image;
    基于所述目标对象的关键点信息,从所述第一图像中获取所述目标对象的图像。Based on the key point information of the target object, an image of the target object is acquired from the first image.
  24. 根据权利要求23所述的方法,其特征在于,所述获取所述第一图像中所述目标对象的关键点信息,包括:The method according to claim 23, wherein said acquiring key point information of said target object in said first image comprises:
    对所述第一图像进行目标检测,得到所述目标对象所在区域;Performing target detection on the first image to obtain the area where the target object is located;
    对所述目标对象所在区域的图像进行关键点检测,得到所述第一图像中所述目标对象的关键点信息。Perform key point detection on the image of the area where the target object is located to obtain key point information of the target object in the first image.
  25. 根据权利要求10至24中任意一项所述的方法,其特征在于,所述基于所述第一图像,更新所述第一深度图,得到第二深度图,包括:The method according to any one of claims 10 to 24, wherein said updating said first depth map based on said first image to obtain a second depth map comprises:
    从所述第一深度图中获取所述目标对象的深度图;Acquiring a depth map of the target object from the first depth map;
    基于所述第一图像,更新所述目标对象的深度图,得到所述第二深度图。Based on the first image, update the depth map of the target object to obtain the second depth map.
  26. 根据权利要求10至25中任意一项所述的方法,其特征在于,所述基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果,包括:The method according to any one of claims 10 to 25, wherein the determining the live detection result of the target object based on the first image and the second depth map comprises:
    将所述第一图像和所述第二深度图输入到活体检测神经网络进行处理,得到所述目标对象的活体检测结果。The first image and the second depth map are input to a living body detection neural network for processing to obtain a living body detection result of the target object.
  27. 根据权利要求10至26中任意一项所述的方法,其特征在于,所述基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果,包括:The method according to any one of claims 10 to 26, wherein the determining the live detection result of the target object based on the first image and the second depth map comprises:
    对所述第一图像进行特征提取处理,得到第一特征信息;Performing feature extraction processing on the first image to obtain first feature information;
    对所述第二深度图进行特征提取处理,得到第二特征信息;Performing feature extraction processing on the second depth map to obtain second feature information;
    基于所述第一特征信息和所述第二特征信息,确定所述目标对象的活体检测结果。Based on the first feature information and the second feature information, a live detection result of the target object is determined.
  28. 根据权利要求27所述的方法,其特征在于,所述基于所述第一特征信息和所述第二特征信息,确定所述目标对象的活体检测结果,包括:The method according to claim 27, wherein the determining the live detection result of the target object based on the first characteristic information and the second characteristic information comprises:
    对所述第一特征信息和所述第二特征信息进行融合处理,得到第三特征信息;Performing fusion processing on the first feature information and the second feature information to obtain third feature information;
    基于所述第三特征信息,确定所述目标对象的活体检测结果。Based on the third characteristic information, a living body detection result of the target object is determined.
  29. 根据权利要求28所述的方法,其特征在于,所述基于所述第三特征信息,确定所述目标对象的活体检测结果,包括:The method according to claim 28, wherein the determining the live detection result of the target object based on the third characteristic information comprises:
    基于所述第三特征信息,得到所述目标对象为活体的概率;Obtain the probability that the target object is a living body based on the third characteristic information;
    根据所述目标对象为活体的概率,确定所述目标对象的活体检测结果。Determine the live detection result of the target object according to the probability that the target object is a living body.
  30. 根据权利要求1至29中任意一项所述的方法,其特征在于,在所述基于所述第一图像进行人脸识别之后,所述方法还包括:The method according to any one of claims 1 to 29, characterized in that, after the face recognition is performed based on the first image, the method further comprises:
    响应于人脸识别失败,激活设置于所述车的密码解锁模块以启动密码解锁流程。In response to the face recognition failure, the password unlocking module provided in the car is activated to start the password unlocking process.
  31. 根据权利要求1至30中任意一项所述的方法,其特征在于,所述方法还包括以下一项或两项:The method according to any one of claims 1 to 30, wherein the method further comprises one or both of the following:
    根据所述图像采集模组采集的车主的人脸图像进行车主注册;Carrying out vehicle owner registration according to the face image of the vehicle owner collected by the image acquisition module;
    根据所述车主的终端设备采集的所述车主的人脸图像进行远程注册,并将注册信息发送到所述车上,其中,所述注册信息包括所述车主的人脸图像。Perform remote registration according to the face image of the vehicle owner collected by the terminal device of the vehicle owner, and send registration information to the vehicle, where the registration information includes the face image of the vehicle owner.
  32. 一种车门解锁方法,其特征在于,包括:A method for unlocking a vehicle door is characterized by comprising:
    经设置于车的蓝牙模块搜索预设标识的蓝牙设备;Search for Bluetooth devices with preset identification via the Bluetooth module installed in the car;
    响应于搜索到所述预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像;In response to searching for the Bluetooth device with the preset identifier, awakening and controlling the image acquisition module provided in the vehicle to acquire the first image of the target object;
    基于所述第一图像进行人脸识别;Performing face recognition based on the first image;
    响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。In response to successful face recognition, a door unlocking instruction and/or a door opening instruction are sent to at least one door of the vehicle.
  33. 根据权利要求32所述的方法,其特征在于,所述经设置于车的蓝牙模块搜索预设标识的蓝牙设备,包括:The method according to claim 32, wherein the searching for a Bluetooth device with a preset identifier via the Bluetooth module installed in the car comprises:
    在所述车处于熄火状态或处于熄火且车门锁闭状态时,经设置于所述车的蓝牙模块搜索预设标识的蓝牙设备。When the car is in the off state or in the off state and the door is locked, the Bluetooth module provided in the car searches for a Bluetooth device with a preset identification.
  34. 根据权利要求31或32所述的方法,其特征在于,所述预设标识的蓝牙设备的数量为一个。The method according to claim 31 or 32, wherein the number of Bluetooth devices with the preset identification is one.
  35. 根据权利要求31或32所述的方法,其特征在于,所述预设标识的蓝牙设备的数量为多个;The method according to claim 31 or 32, wherein the number of Bluetooth devices with the preset identification is multiple;
    所述响应于搜索到所述预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像,包括:The step of waking up and controlling the image acquisition module provided in the vehicle to acquire the first image of the target object in response to searching for the Bluetooth device with the preset identifier includes:
    响应于搜索到任意一个预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像。In response to searching for any Bluetooth device with a preset identifier, wake up and control the image acquisition module provided in the vehicle to acquire the first image of the target object.
  36. 根据权利要求32至35中任意一项所述的方法,其特征在于,所述唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像,包括:The method according to any one of claims 32 to 35, wherein the awakening and controlling the image acquisition module provided in the vehicle to acquire the first image of the target object comprises:
    唤醒设置于所述车的人脸识别模组;Waking up the face recognition module installed in the car;
    经唤醒的所述人脸识别模组控制所述图像采集模组采集目标对象的第一图像。The awakened face recognition module controls the image acquisition module to acquire the first image of the target object.
  37. 根据权利要求36所述的方法,其特征在于,在所述唤醒设置于所述车的人脸识别模组之后,所述方法还包括:The method according to claim 36, characterized in that, after waking up the face recognition module installed in the car, the method further comprises:
    若在预设时间内未采集到人脸图像,则控制所述人脸识别模组进入休眠状态。If the face image is not collected within the preset time, the face recognition module is controlled to enter the sleep state.
  38. 根据权利要求36所述的方法,其特征在于,在所述唤醒设置于所述车的人脸识别模组之后,所述方法还包括:The method according to claim 36, characterized in that, after waking up the face recognition module installed in the car, the method further comprises:
    若在预设时间内未通过人脸识别,则控制所述人脸识别模组进入休眠状态。If the face recognition is not passed within the preset time, the face recognition module is controlled to enter the sleep state.
  39. 根据权利要求32至38中任意一项所述的方法,其特征在于,所述响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令,包括:The method according to any one of claims 32 to 38, wherein in response to successful face recognition, sending a door unlocking instruction and/or a door opening instruction to at least one door of the vehicle comprises:
    响应于人脸识别成功,确定所述目标对象具有开门权限的车门;In response to successful face recognition, determining that the target object has a door opening permission;
    根据所述目标对象具有开门权限的车门,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。Send a door unlocking instruction and/or a door opening instruction to at least one door of the vehicle according to the door of the target object with the door opening permission.
  40. 根据权利要求32至39中任意一项所述的方法,其特征在于,所述人脸识别包括:活体检测和人脸认证;The method according to any one of claims 32 to 39, wherein the face recognition comprises: living body detection and face authentication;
    所述基于所述第一图像进行人脸识别,包括:The performing face recognition based on the first image includes:
    经所述图像采集模组中的图像传感器采集所述第一图像,并基于所述第一图像和预注册的人脸特征进行人脸认证;Acquiring the first image via an image sensor in the image acquisition module, and performing face authentication based on the first image and pre-registered facial features;
    经所述图像采集模组中的深度传感器采集所述第一图像对应的第一深度图,并基于所述第一图像和所述第一深度图进行活体检测。A first depth map corresponding to the first image is acquired by a depth sensor in the image acquisition module, and living body detection is performed based on the first image and the first depth map.
  41. 根据权利要求40所述的方法,其特征在于,所述基于所述第一图像和所述第一深度图进行活体检测,包括:The method according to claim 40, wherein said performing live detection based on said first image and said first depth map comprises:
    基于所述第一图像,更新所述第一深度图,得到第二深度图;Based on the first image, update the first depth map to obtain a second depth map;
    基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果。Based on the first image and the second depth map, a live detection result of the target object is determined.
  42. 根据权利要求40或41所述的方法,其特征在于,所述图像传感器包括RGB图像传感器或者红外传感器;The method according to claim 40 or 41, wherein the image sensor comprises an RGB image sensor or an infrared sensor;
    所述深度传感器包括双目红外传感器或者飞行时间TOF传感器。The depth sensor includes a binocular infrared sensor or a time-of-flight TOF sensor.
  43. 根据权利要求42所述的方法,其特征在于,所述TOF传感器采用基于红外波段的TOF模组。42. The method according to claim 42, wherein the TOF sensor uses a TOF module based on an infrared band.
  44. 根据权利要求41至43中任意一项所述的方法,其特征在于,所述基于所述第一图像,更新所述第一深度图,得到第二深度图,包括:The method according to any one of claims 41 to 43, wherein said updating said first depth map based on said first image to obtain a second depth map comprises:
    基于所述第一图像,对所述第一深度图中的深度失效像素的深度值进行更新,得到所述第二深度图。Based on the first image, the depth value of the depth failure pixel in the first depth map is updated to obtain the second depth map.
  45. 根据权利要求41至44中任意一项所述的方法,其特征在于,所述基于所述第一图像,更新所述第一深度图,得到第二深度图,包括:The method according to any one of claims 41 to 44, wherein said updating said first depth map based on said first image to obtain a second depth map comprises:
    基于所述第一图像,确定所述第一图像中多个像素的深度预测值和关联信息,其中,所述多个像素的关联信息指示所述多个像素之间的关联度;Based on the first image, determining depth prediction values and associated information of multiple pixels in the first image, wherein the associated information of the multiple pixels indicates the degree of association between the multiple pixels;
    基于所述多个像素的深度预测值和关联信息,更新所述第一深度图,得到第二深度图。Based on the depth prediction values and associated information of the plurality of pixels, the first depth map is updated to obtain a second depth map.
  46. 根据权利要求45所述的方法,其特征在于,所述基于所述多个像素的深度预测值和关联信息,更新所述第一深度图,得到第二深度图,包括:The method according to claim 45, wherein the updating the first depth map based on the depth prediction values and associated information of the multiple pixels to obtain a second depth map comprises:
    确定所述第一深度图中的深度失效像素;Determining the depth failure pixels in the first depth map;
    从所述多个像素的深度预测值中获取所述深度失效像素的深度预测值以及所述深度失效像素的多个周围像素的深度预测值;Acquiring, from the depth prediction values of the multiple pixels, the depth prediction value of the depth failure pixel and the depth prediction values of multiple surrounding pixels of the depth failure pixel;
    从所述多个像素的关联信息中获取所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度;Acquiring the degree of association between the depth invalid pixel and the plurality of surrounding pixels of the depth invalid pixel from the associated information of the plurality of pixels;
    基于所述深度失效像素的深度预测值、所述深度失效像素的多个周围像素的深度预测值、以及所述深度失效像素与所述深度失效像素的周围像素之间的关联度,确定所述深度失效像素的更新后的深度值。Based on the depth prediction value of the depth failure pixel, the depth prediction values of a plurality of surrounding pixels of the depth failure pixel, and the degree of association between the depth failure pixel and the surrounding pixels of the depth failure pixel, the determination The updated depth value of the depth failure pixel.
  47. 根据权利要求46所述的方法,其特征在于,所述基于所述深度失效像素的深度预测值、所述深度失效像素的多个周围像素的深度预测值、以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的更新后的深度值,包括:The method of claim 46, wherein the depth prediction value based on the depth failure pixel, the depth prediction value of a plurality of surrounding pixels of the depth failure pixel, and the depth failure pixel and the The correlation between multiple surrounding pixels of the depth-failed pixel and determining the updated depth value of the depth-failed pixel includes:
    基于所述深度失效像素的周围像素的深度预测值以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的深度关联值;Determining the depth correlation value of the depth failure pixel based on the depth prediction value of the surrounding pixels of the depth failure pixel and the degree of association between the depth failure pixel and multiple surrounding pixels of the depth failure pixel;
    基于所述深度失效像素的深度预测值以及所述深度关联值,确定所述深度失效像素的更新后的深度值。Determine the updated depth value of the depth failure pixel based on the depth prediction value of the depth failure pixel and the depth correlation value.
  48. 根据权利要求47所述的方法,其特征在于,所述基于所述深度失效像素的周围像素的深度预测值以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的深度关联值,包括:The method according to claim 47, wherein the depth prediction value based on the surrounding pixels of the depth failing pixel and the correlation between the depth failing pixel and the plurality of surrounding pixels of the depth failing pixel , Determining the depth associated value of the depth failure pixel includes:
    将所述深度失效像素与每个周围像素之间的关联度作为所述每个周围像素的权重,对所述深度失效像素的多个周围像素的深度预测值进行加权求和处理,得到所述深度失效像素的深度关联值。The degree of association between the depth invalid pixel and each surrounding pixel is taken as the weight of each surrounding pixel, and the depth prediction values of multiple surrounding pixels of the depth invalid pixel are weighted and summed to obtain the The depth associated value of the depth failure pixel.
  49. 根据权利要求45至48中任意一项所述的方法,其特征在于,所述基于所述第一图像,确定所述第一图像中多个像素的深度预测值,包括:The method according to any one of claims 45 to 48, wherein the determining the depth prediction values of multiple pixels in the first image based on the first image comprises:
    基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值。Based on the first image and the first depth map, the depth prediction values of a plurality of pixels in the first image are determined.
  50. 根据权利要求49所述的方法,其特征在于,所述基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值,包括:The method of claim 49, wherein the determining the depth prediction values of multiple pixels in the first image based on the first image and the first depth map comprises:
    将所述第一图像和所述第一深度图输入到深度预测神经网络进行处理,得到所述第一图像中多个像素的深度预测 值。The first image and the first depth map are input to a depth prediction neural network for processing to obtain depth prediction values of multiple pixels in the first image.
  51. 根据权利要求49或50所述的方法,其特征在于,所述基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值,包括:The method according to claim 49 or 50, wherein the determining depth prediction values of multiple pixels in the first image based on the first image and the first depth map comprises:
    对所述第一图像和所述第一深度图进行融合处理,得到融合结果;Performing fusion processing on the first image and the first depth map to obtain a fusion result;
    基于所述融合结果,确定所述第一图像中多个像素的深度预测值。Based on the fusion result, the depth prediction values of multiple pixels in the first image are determined.
  52. 根据权利要求45至51中任意一项所述的方法,其特征在于,所述基于所述第一图像,确定所述第一图像中多个像素的关联信息,包括:The method according to any one of claims 45 to 51, wherein the determining the associated information of multiple pixels in the first image based on the first image comprises:
    将所述第一图像输入到关联度检测神经网络进行处理,得到所述第一图像中多个像素的关联信息。The first image is input to the correlation detection neural network for processing, and correlation information of multiple pixels in the first image is obtained.
  53. 根据权利要求41至52中任意一项所述的方法,其特征在于,所述基于所述第一图像,更新所述第一深度图,包括:The method according to any one of claims 41 to 52, wherein the updating the first depth map based on the first image comprises:
    从所述第一图像中获取所述目标对象的图像;Acquiring an image of the target object from the first image;
    基于所述目标对象的图像,更新所述第一深度图。Based on the image of the target object, the first depth map is updated.
  54. 根据权利要求53所述的方法,其特征在于,所述从所述第一图像中获取所述目标对象的图像,包括:The method according to claim 53, wherein said acquiring an image of said target object from said first image comprises:
    获取所述第一图像中所述目标对象的关键点信息;Acquiring key point information of the target object in the first image;
    基于所述目标对象的关键点信息,从所述第一图像中获取所述目标对象的图像。Based on the key point information of the target object, an image of the target object is acquired from the first image.
  55. 根据权利要求54所述的方法,其特征在于,所述获取所述第一图像中所述目标对象的关键点信息,包括:The method according to claim 54, wherein the acquiring key point information of the target object in the first image comprises:
    对所述第一图像进行目标检测,得到所述目标对象所在区域;Performing target detection on the first image to obtain the area where the target object is located;
    对所述目标对象所在区域的图像进行关键点检测,得到所述第一图像中所述目标对象的关键点信息。Perform key point detection on the image of the area where the target object is located to obtain key point information of the target object in the first image.
  56. 根据权利要求41至55中任意一项所述的方法,其特征在于,所述基于所述第一图像,更新所述第一深度图,得到第二深度图,包括:The method according to any one of claims 41 to 55, wherein said updating said first depth map based on said first image to obtain a second depth map comprises:
    从所述第一深度图中获取所述目标对象的深度图;Acquiring a depth map of the target object from the first depth map;
    基于所述第一图像,更新所述目标对象的深度图,得到所述第二深度图。Based on the first image, update the depth map of the target object to obtain the second depth map.
  57. 根据权利要求41至56中任意一项所述的方法,其特征在于,所述基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果,包括:The method according to any one of claims 41 to 56, wherein the determining the live detection result of the target object based on the first image and the second depth map comprises:
    将所述第一图像和所述第二深度图输入到活体检测神经网络进行处理,得到所述目标对象的活体检测结果。The first image and the second depth map are input to a living body detection neural network for processing to obtain a living body detection result of the target object.
  58. 根据权利要求41至57中任意一项所述的方法,其特征在于,所述基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果,包括:The method according to any one of claims 41 to 57, wherein the determining the live detection result of the target object based on the first image and the second depth map comprises:
    对所述第一图像进行特征提取处理,得到第一特征信息;Performing feature extraction processing on the first image to obtain first feature information;
    对所述第二深度图进行特征提取处理,得到第二特征信息;Performing feature extraction processing on the second depth map to obtain second feature information;
    基于所述第一特征信息和所述第二特征信息,确定所述目标对象的活体检测结果。Based on the first feature information and the second feature information, a live detection result of the target object is determined.
  59. 根据权利要求58所述的方法,其特征在于,所述基于所述第一特征信息和所述第二特征信息,确定所述目标对象的活体检测结果,包括:The method according to claim 58, wherein the determining the live detection result of the target object based on the first characteristic information and the second characteristic information comprises:
    对所述第一特征信息和所述第二特征信息进行融合处理,得到第三特征信息;Performing fusion processing on the first feature information and the second feature information to obtain third feature information;
    基于所述第三特征信息,确定所述目标对象的活体检测结果。Based on the third characteristic information, a living body detection result of the target object is determined.
  60. 根据权利要求59所述的方法,其特征在于,所述基于所述第三特征信息,确定所述目标对象的活体检测结果,包括:The method according to claim 59, wherein the determining the living body detection result of the target object based on the third characteristic information comprises:
    基于所述第三特征信息,得到所述目标对象为活体的概率;Obtain the probability that the target object is a living body based on the third characteristic information;
    根据所述目标对象为活体的概率,确定所述目标对象的活体检测结果。Determine the live detection result of the target object according to the probability that the target object is a living body.
  61. 根据权利要求32至60中任意一项所述的方法,其特征在于,在所述基于所述第一图像进行人脸识别之后,所述方法还包括:The method according to any one of claims 32 to 60, characterized in that, after the face recognition is performed based on the first image, the method further comprises:
    响应于人脸识别失败,激活设置于所述车的密码解锁模块以启动密码解锁流程。In response to the face recognition failure, the password unlocking module provided in the car is activated to start the password unlocking process.
  62. 根据权利要求32至61中任意一项所述的方法,其特征在于,所述方法还包括以下一项或两项:The method according to any one of claims 32 to 61, wherein the method further comprises one or both of the following:
    根据所述图像采集模组采集的车主的人脸图像进行车主注册;Carrying out vehicle owner registration according to the face image of the vehicle owner collected by the image acquisition module;
    根据所述车主的终端设备采集的所述车主的人脸图像进行远程注册,并将注册信息发送到所述车上,其中,所述注册信息包括所述车主的人脸图像。Perform remote registration according to the face image of the vehicle owner collected by the terminal device of the vehicle owner, and send registration information to the vehicle, where the registration information includes the face image of the vehicle owner.
  63. 一种车门解锁装置,其特征在于,包括:A vehicle door unlocking device, characterized in that it comprises:
    搜索模块,用于经设置于车的蓝牙模块搜索预设标识的蓝牙设备;The search module is used to search for the Bluetooth device with the preset identification via the Bluetooth module installed in the car;
    唤醒模块,用于响应于搜索到所述预设标识的蓝牙设备,建立所述蓝牙模块与所述预设标识的蓝牙设备的蓝牙配对连接,并响应于所述蓝牙配对连接成功,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像,或者,响应于搜索到所述预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像;The wake-up module is used to establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset identification in response to searching for the Bluetooth device with the preset identification, and to wake up and control in response to the successful Bluetooth pairing connection The image acquisition module provided in the vehicle collects the first image of the target object, or, in response to searching for the Bluetooth device with the preset identification, wakes up and controls the image acquisition module provided in the vehicle to acquire the target object First image
    人脸识别模块,用于基于所述第一图像进行人脸识别;A face recognition module, configured to perform face recognition based on the first image;
    解锁模块,用于响应于人脸识别成功,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。The unlocking module is used for sending a door unlocking instruction and/or opening a door instruction to at least one door of the vehicle in response to successful face recognition.
  64. 根据权利要求63所述的装置,其特征在于,所述搜索模块用于:The device according to claim 63, wherein the search module is configured to:
    在所述车处于熄火状态或处于熄火且车门锁闭状态时,经设置于所述车的蓝牙模块搜索预设标识的蓝牙设备。When the car is in the off state or in the off state and the door is locked, the Bluetooth module provided in the car searches for a Bluetooth device with a preset identification.
  65. 根据权利要求63或64所述的装置,其特征在于,所述预设标识的蓝牙设备的数量为一个。The apparatus according to claim 63 or 64, wherein the number of Bluetooth devices with the preset identification is one.
  66. 根据权利要求63或64所述的装置,其特征在于,所述预设标识的蓝牙设备的数量为多个;The device according to claim 63 or 64, wherein the number of Bluetooth devices with the preset identification is multiple;
    所述唤醒模块用于:The wake-up module is used for:
    响应于搜索到任意一个预设标识的蓝牙设备,建立所述蓝牙模块与该预设标识的蓝牙设备的蓝牙配对连接,或者,响应于搜索到任意一个预设标识的蓝牙设备,唤醒并控制设置于所述车的图像采集模组采集目标对象的第一图像。In response to searching for any Bluetooth device with a preset logo, establish a Bluetooth pairing connection between the Bluetooth module and the Bluetooth device with the preset logo, or, in response to searching for any Bluetooth device with a preset logo, wake up and control settings The image acquisition module in the vehicle acquires a first image of the target object.
  67. 根据权利要求63至66中任意一项所述的装置,其特征在于,所述唤醒模块包括:The device according to any one of claims 63 to 66, wherein the wake-up module comprises:
    唤醒子模块,用于唤醒设置于所述车的人脸识别模组;The wake-up sub-module is used to wake up the face recognition module installed in the car;
    控制子模块,用于经唤醒的所述人脸识别模组控制所述图像采集模组采集目标对象的第一图像。The control sub-module is used for controlling the image acquisition module to acquire the first image of the target object by the awakened face recognition module.
  68. 根据权利要求67所述的装置,其特征在于,所述装置还包括:The device according to claim 67, wherein the device further comprises:
    第一控制模块,用于若在预设时间内未采集到人脸图像,则控制所述人脸识别模组进入休眠状态。The first control module is configured to control the face recognition module to enter a sleep state if the face image is not collected within a preset time.
  69. 根据权利要求67所述的装置,其特征在于,所述装置还包括:The device according to claim 67, wherein the device further comprises:
    第二控制模块,用于若在预设时间内未通过人脸识别,则控制所述人脸识别模组进入休眠状态。The second control module is configured to control the face recognition module to enter a sleep state if the face recognition fails within the preset time.
  70. 根据权利要求63至69中任意一项所述的方法,其特征在于,所述解锁模块用于:The method according to any one of claims 63 to 69, wherein the unlocking module is configured to:
    响应于人脸识别成功,确定所述目标对象具有开门权限的车门;In response to successful face recognition, determining that the target object has a door opening permission;
    根据所述目标对象具有开门权限的车门,向所述车的至少一车门发送车门解锁指令和/或打开车门指令。Send a door unlocking instruction and/or a door opening instruction to at least one door of the vehicle according to the door of the target object with the door opening permission.
  71. 根据权利要求63至70中任意一项所述的装置,其特征在于,所述人脸识别包括:活体检测和人脸认证;The device according to any one of claims 63 to 70, wherein the face recognition comprises: living body detection and face authentication;
    所述人脸识别模块包括:The face recognition module includes:
    人脸认证模块,用于经所述图像采集模组中的图像传感器采集所述第一图像,并基于所述第一图像和预注册的人脸特征进行人脸认证;The face authentication module is configured to collect the first image via an image sensor in the image acquisition module, and perform face authentication based on the first image and pre-registered facial features;
    活体检测模块,用于经所述图像采集模组中的深度传感器采集所述第一图像对应的第一深度图,并基于所述第一图像和所述第一深度图进行活体检测。The living body detection module is configured to collect a first depth map corresponding to the first image via a depth sensor in the image acquisition module, and perform living body detection based on the first image and the first depth map.
  72. 根据权利要求71所述的装置,其特征在于,所述活体检测模块包括:The device according to claim 71, wherein the living body detection module comprises:
    更新子模块,用于基于所述第一图像,更新所述第一深度图,得到第二深度图;An update sub-module, configured to update the first depth map based on the first image to obtain a second depth map;
    确定子模块,用于基于所述第一图像和所述第二深度图,确定所述目标对象的活体检测结果。The determining sub-module is configured to determine the living body detection result of the target object based on the first image and the second depth map.
  73. 根据权利要求71或72所述的装置,其特征在于,所述图像传感器包括RGB图像传感器或者红外传感器;The device according to claim 71 or 72, wherein the image sensor comprises an RGB image sensor or an infrared sensor;
    所述深度传感器包括双目红外传感器或者飞行时间TOF传感器。The depth sensor includes a binocular infrared sensor or a time-of-flight TOF sensor.
  74. 根据权利要求73所述的装置,其特征在于,所述TOF传感器采用基于红外波段的TOF模组。The device according to claim 73, wherein the TOF sensor adopts a TOF module based on an infrared band.
  75. 根据权利要求72至74中任意一项所述的装置,其特征在于,所述更新子模块用于:The device according to any one of claims 72 to 74, wherein the update submodule is configured to:
    基于所述第一图像,对所述第一深度图中的深度失效像素的深度值进行更新,得到所述第二深度图。Based on the first image, the depth value of the depth failure pixel in the first depth map is updated to obtain the second depth map.
  76. 根据权利要求72至75中任意一项所述的装置,其特征在于,所述更新子模块用于:The device according to any one of claims 72 to 75, wherein the update submodule is configured to:
    基于所述第一图像,确定所述第一图像中多个像素的深度预测值和关联信息,其中,所述多个像素的关联信息指示所述多个像素之间的关联度;Based on the first image, determining depth prediction values and associated information of multiple pixels in the first image, wherein the associated information of the multiple pixels indicates the degree of association between the multiple pixels;
    基于所述多个像素的深度预测值和关联信息,更新所述第一深度图,得到第二深度图。Based on the depth prediction values and associated information of the plurality of pixels, the first depth map is updated to obtain a second depth map.
  77. 根据权利要求76所述的装置,其特征在于,所述更新子模块用于:The device according to claim 76, wherein the update submodule is configured to:
    确定所述第一深度图中的深度失效像素;Determining the depth failure pixels in the first depth map;
    从所述多个像素的深度预测值中获取所述深度失效像素的深度预测值以及所述深度失效像素的多个周围像素的深 度预测值;Acquiring the depth prediction value of the depth failure pixel and the depth prediction values of the multiple surrounding pixels of the depth failure pixel from the depth prediction values of the plurality of pixels;
    从所述多个像素的关联信息中获取所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度;Acquiring the degree of association between the depth invalid pixel and the plurality of surrounding pixels of the depth invalid pixel from the associated information of the plurality of pixels;
    基于所述深度失效像素的深度预测值、所述深度失效像素的多个周围像素的深度预测值、以及所述深度失效像素与所述深度失效像素的周围像素之间的关联度,确定所述深度失效像素的更新后的深度值。Based on the depth prediction value of the depth failure pixel, the depth prediction values of a plurality of surrounding pixels of the depth failure pixel, and the degree of association between the depth failure pixel and the surrounding pixels of the depth failure pixel, the determination The updated depth value of the depth failure pixel.
  78. 根据权利要求77所述的装置,其特征在于,所述更新子模块用于:The device according to claim 77, wherein the update submodule is configured to:
    基于所述深度失效像素的周围像素的深度预测值以及所述深度失效像素与所述深度失效像素的多个周围像素之间的关联度,确定所述深度失效像素的深度关联值;Determining the depth correlation value of the depth failure pixel based on the depth prediction value of the surrounding pixels of the depth failure pixel and the degree of association between the depth failure pixel and multiple surrounding pixels of the depth failure pixel;
    基于所述深度失效像素的深度预测值以及所述深度关联值,确定所述深度失效像素的更新后的深度值。Determine the updated depth value of the depth failure pixel based on the depth prediction value of the depth failure pixel and the depth correlation value.
  79. 根据权利要求78所述的装置,其特征在于,所述更新子模块用于:The device according to claim 78, wherein the update submodule is configured to:
    将所述深度失效像素与每个周围像素之间的关联度作为所述每个周围像素的权重,对所述深度失效像素的多个周围像素的深度预测值进行加权求和处理,得到所述深度失效像素的深度关联值。The degree of association between the depth invalid pixel and each surrounding pixel is taken as the weight of each surrounding pixel, and the depth prediction values of multiple surrounding pixels of the depth invalid pixel are weighted and summed to obtain the The depth associated value of the depth failure pixel.
  80. 根据权利要求76至79中任意一项所述的装置,其特征在于,所述更新子模块用于:The device according to any one of claims 76 to 79, wherein the update submodule is configured to:
    基于所述第一图像和所述第一深度图,确定所述第一图像中多个像素的深度预测值。Based on the first image and the first depth map, the depth prediction values of a plurality of pixels in the first image are determined.
  81. 根据权利要求80所述的装置,其特征在于,所述更新子模块用于:The device according to claim 80, wherein the update submodule is configured to:
    将所述第一图像和所述第一深度图输入到深度预测神经网络进行处理,得到所述第一图像中多个像素的深度预测值。The first image and the first depth map are input to a depth prediction neural network for processing to obtain depth prediction values of multiple pixels in the first image.
  82. 根据权利要求80或81所述的装置,其特征在于,所述更新子模块用于:The device according to claim 80 or 81, wherein the update submodule is configured to:
    对所述第一图像和所述第一深度图进行融合处理,得到融合结果;Performing fusion processing on the first image and the first depth map to obtain a fusion result;
    基于所述融合结果,确定所述第一图像中多个像素的深度预测值。Based on the fusion result, the depth prediction values of multiple pixels in the first image are determined.
  83. 根据权利要求76至82中任意一项所述的装置,其特征在于,所述更新子模块用于:The device according to any one of claims 76 to 82, wherein the update submodule is configured to:
    将所述第一图像输入到关联度检测神经网络进行处理,得到所述第一图像中多个像素的关联信息。The first image is input to the correlation detection neural network for processing, and correlation information of multiple pixels in the first image is obtained.
  84. 根据权利要求72至83中任意一项所述的装置,其特征在于,所述更新子模块用于:The device according to any one of claims 72 to 83, wherein the update submodule is configured to:
    从所述第一图像中获取所述目标对象的图像;Acquiring an image of the target object from the first image;
    基于所述目标对象的图像,更新所述第一深度图。Based on the image of the target object, the first depth map is updated.
  85. 根据权利要求84所述的装置,其特征在于,所述更新子模块用于:The device according to claim 84, wherein the update submodule is configured to:
    获取所述第一图像中所述目标对象的关键点信息;Acquiring key point information of the target object in the first image;
    基于所述目标对象的关键点信息,从所述第一图像中获取所述目标对象的图像。Based on the key point information of the target object, an image of the target object is acquired from the first image.
  86. 根据权利要求85所述的装置,其特征在于,所述更新子模块用于:The device according to claim 85, wherein the update submodule is configured to:
    对所述第一图像进行目标检测,得到所述目标对象所在区域;Performing target detection on the first image to obtain the area where the target object is located;
    对所述目标对象所在区域的图像进行关键点检测,得到所述第一图像中所述目标对象的关键点信息。Perform key point detection on the image of the area where the target object is located to obtain key point information of the target object in the first image.
  87. 根据权利要求72至86中任意一项所述的装置,其特征在于,所述更新子模块用于:The device according to any one of claims 72 to 86, wherein the update submodule is configured to:
    从所述第一深度图中获取所述目标对象的深度图;Acquiring a depth map of the target object from the first depth map;
    基于所述第一图像,更新所述目标对象的深度图,得到所述第二深度图。Based on the first image, update the depth map of the target object to obtain the second depth map.
  88. 根据权利要求72至87中任意一项所述的装置,其特征在于,所述确定子模块用于:The device according to any one of claims 72 to 87, wherein the determining submodule is configured to:
    将所述第一图像和所述第二深度图输入到活体检测神经网络进行处理,得到所述目标对象的活体检测结果。The first image and the second depth map are input to a living body detection neural network for processing to obtain a living body detection result of the target object.
  89. 根据权利要求72至88中任意一项所述的装置,其特征在于,所述确定子模块用于:The device according to any one of claims 72 to 88, wherein the determining submodule is configured to:
    对所述第一图像进行特征提取处理,得到第一特征信息;Performing feature extraction processing on the first image to obtain first feature information;
    对所述第二深度图进行特征提取处理,得到第二特征信息;Performing feature extraction processing on the second depth map to obtain second feature information;
    基于所述第一特征信息和所述第二特征信息,确定所述目标对象的活体检测结果。Based on the first feature information and the second feature information, a live detection result of the target object is determined.
  90. 根据权利要求89所述的装置,其特征在于,所述确定子模块用于:The device according to claim 89, wherein the determining submodule is configured to:
    对所述第一特征信息和所述第二特征信息进行融合处理,得到第三特征信息;Performing fusion processing on the first feature information and the second feature information to obtain third feature information;
    基于所述第三特征信息,确定所述目标对象的活体检测结果。Based on the third characteristic information, a living body detection result of the target object is determined.
  91. 根据权利要求90所述的装置,其特征在于,所述确定子模块用于:The device according to claim 90, wherein the determining submodule is configured to:
    基于所述第三特征信息,得到所述目标对象为活体的概率;Obtain the probability that the target object is a living body based on the third characteristic information;
    根据所述目标对象为活体的概率,确定所述目标对象的活体检测结果。Determine the live detection result of the target object according to the probability that the target object is a living body.
  92. 根据权利要求63至91中任意一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 63 to 91, wherein the device further comprises:
    激活与启动模块,用于响应于人脸识别失败,激活设置于所述车的密码解锁模块以启动密码解锁流程。The activation and activation module is used to activate the password unlocking module provided in the car in response to the face recognition failure to start the password unlocking process.
  93. 根据权利要求63至92中任意一项所述的装置,其特征在于,所述装置还包括注册模块,所述注册模块用于以下一项或两项:The device according to any one of claims 63 to 92, wherein the device further comprises a registration module, the registration module being used for one or both of the following:
    根据所述图像采集模组采集的车主的人脸图像进行车主注册;Carrying out vehicle owner registration according to the face image of the vehicle owner collected by the image acquisition module;
    根据所述车主的终端设备采集的所述车主的人脸图像进行远程注册,并将注册信息发送到所述车上,其中,所述注册信息包括所述车主的人脸图像。Perform remote registration according to the face image of the vehicle owner collected by the terminal device of the vehicle owner, and send registration information to the vehicle, where the registration information includes the face image of the vehicle owner.
  94. 一种车载人脸解锁系统,其特征在于,包括:存储器、人脸识别模组、图像采集模组和蓝牙模块;所述人脸识别模组分别与所述存储器、所述图像采集模组和所述蓝牙模块连接;所述蓝牙模块包括在与预设标识的蓝牙设备蓝牙配对连接成功或者搜索到所述预设标识的蓝牙设备时唤醒所述人脸识别模组的微处理器和与所述微处理器连接的蓝牙传感器;所述人脸识别模组还设置有用于与车门域控制器连接的通信接口,若人脸识别成功则基于所述通信接口向所述车门域控制器发送用于解锁车门的控制信息。A vehicle-mounted face unlocking system, which is characterized by comprising: a memory, a face recognition module, an image acquisition module, and a Bluetooth module; the face recognition module is connected to the memory, the image acquisition module, and The Bluetooth module is connected; the Bluetooth module includes a microprocessor that wakes up the face recognition module when the Bluetooth pairing connection with a Bluetooth device with a preset identification is successful or when the Bluetooth device with the preset identification is searched for The Bluetooth sensor connected to the microprocessor; the face recognition module is also provided with a communication interface for connecting with the door domain controller, and if the face recognition is successful, the communication interface is used to send the signal to the door domain controller Control information for unlocking the door.
  95. 根据权利要求94所述的车载人脸解锁系统,其特征在于,所述图像采集模组包括图像传感器和深度传感器。The vehicle-mounted face unlocking system of claim 94, wherein the image acquisition module includes an image sensor and a depth sensor.
  96. 根据权利要求95所述的车载人脸解锁系统,其特征在于,所述深度传感器包括双目红外传感器,所述双目红外传感器的两个红外摄像头设置在所述图像传感器的摄像头的两侧。The vehicle-mounted face unlocking system according to claim 95, wherein the depth sensor comprises a binocular infrared sensor, and two infrared cameras of the binocular infrared sensor are arranged on both sides of the camera of the image sensor.
  97. 根据权利要求96所述的车载人脸解锁系统,其特征在于,所述图像采集模组还包括至少一个补光灯,所述至少一个补光灯设置在所述双目红外传感器的红外摄像头和所述图像传感器的摄像头之间,所述至少一个补光灯包括用于所述图像传感器的补光灯和用于所述深度传感器的补光灯中的至少一种。The vehicle face unlocking system according to claim 96, wherein the image acquisition module further comprises at least one supplementary light, and the at least one supplementary light is arranged on the infrared camera and the binocular infrared sensor. Between the cameras of the image sensor, the at least one fill light includes at least one of a fill light for the image sensor and a fill light for the depth sensor.
  98. 根据权利要求95所述的车载人脸解锁系统,其特征在于,所述图像采集模组还包括激光器,所述激光器设置在所述深度传感器的摄像头和所述图像传感器的摄像头之间。The vehicle-mounted face unlocking system according to claim 95, wherein the image acquisition module further comprises a laser, and the laser is arranged between the camera of the depth sensor and the camera of the image sensor.
  99. 根据权利要求94至98中任意一项所述的车载人脸解锁系统,其特征在于,所述车载人脸解锁系统还包括:用于解锁车门的密码解锁模块,所述密码解锁模块与所述人脸识别模组连接。The in-vehicle face unlocking system according to any one of claims 94 to 98, wherein the in-vehicle face unlocking system further comprises: a password unlocking module for unlocking a vehicle door, the password unlocking module and the Face recognition module connection.
  100. 根据权利要求99所述的车载人脸解锁系统,其特征在于,所述密码解锁模块包括触控屏和键盘中的一项或两项。The in-vehicle face unlocking system according to claim 99, wherein the password unlocking module includes one or both of a touch screen and a keyboard.
  101. 根据权利要求94至100中任意一项所述的车载人脸解锁系统,其特征在于,所述车载人脸解锁系统还包括:电池模组,所述电池模组分别与所述微处理器和所述人脸识别模组连接。The vehicle-mounted face unlocking system according to any one of claims 94 to 100, wherein the vehicle-mounted face unlocking system further comprises: a battery module, and the battery module is connected to the microprocessor and The face recognition module is connected.
  102. 一种车,其特征在于,所述车包括权利要求94至101中任意一项所述的车载人脸解锁系统,所述车载人脸解锁系统与所述车的车门域控制器连接。A vehicle, characterized in that the vehicle comprises the vehicle-mounted face unlocking system according to any one of claims 94 to 101, and the vehicle-mounted face unlocking system is connected to a door domain controller of the vehicle.
  103. 根据权利要求102所述的车,其特征在于,所述图像采集模组设置在所述车的室外部。The vehicle of claim 102, wherein the image acquisition module is installed outside the vehicle's exterior.
  104. 根据权利要求103所述的车,其特征在于,所述图像采集模组设置在以下至少一个位置上:所述车的B柱、至少一个车门、至少一个后视镜。The vehicle according to claim 103, wherein the image acquisition module is arranged at at least one of the following positions: a B-pillar of the vehicle, at least one door, and at least one rearview mirror.
  105. 根据权利要求102至104中任意一项所述的车,其特征在于,所述人脸识别模组设置在所述车内,所述人脸识别模组经CAN总线与所述车门域控制器连接。The car according to any one of claims 102 to 104, wherein the face recognition module is installed in the car, and the face recognition module communicates with the door domain controller via the CAN bus. connection.
  106. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    处理器;processor;
    用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
    其中,所述处理器被配置为:执行权利要求1至62中任意一项所述的方法。Wherein, the processor is configured to execute the method according to any one of claims 1 to 62.
  107. 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1至62中任意一项所述的方法。A computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the method according to any one of claims 1 to 62 when executed by a processor.
  108. 一种计算机程序,包括计算机可读代码,其特征在于,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现权利要求1至62中的任一权利要求所述的方法。A computer program, comprising computer-readable code, characterized in that, when the computer-readable code runs in an electronic device, a processor in the electronic device executes for implementing any one of claims 1 to 62 The method of the claims.
PCT/CN2020/076713 2019-07-01 2020-02-26 Vehicle door unlocking method and device, system, vehicle, electronic equipment and storage medium WO2021000587A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2021572948A JP2022537923A (en) 2019-07-01 2020-02-26 VEHICLE DOOR UNLOCK METHOD AND APPARATUS, SYSTEM, VEHICLE, ELECTRONIC DEVICE, AND STORAGE MEDIUM
KR1020217043021A KR20220016184A (en) 2019-07-01 2020-02-26 Vehicle door unlocking method and device, system, vehicle, electronic device and storage medium
KR1020227017334A KR20220070581A (en) 2019-07-01 2020-02-26 Vehicle door unlocking method and device, system, vehicle, electronic equipment and storage medium
JP2022059357A JP2022118730A (en) 2019-07-01 2022-03-31 Vehicle door lock release method and device, system, vehicle, electronic apparatus and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910586845.6 2019-07-01
CN201910586845.6A CN110335389B (en) 2019-07-01 2019-07-01 Vehicle door unlocking method, vehicle door unlocking device, vehicle door unlocking system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021000587A1 true WO2021000587A1 (en) 2021-01-07

Family

ID=68143972

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/076713 WO2021000587A1 (en) 2019-07-01 2020-02-26 Vehicle door unlocking method and device, system, vehicle, electronic equipment and storage medium

Country Status (4)

Country Link
JP (2) JP2022537923A (en)
KR (2) KR20220016184A (en)
CN (1) CN110335389B (en)
WO (1) WO2021000587A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113160458A (en) * 2021-03-31 2021-07-23 中国地质大学(武汉) Internet of things intelligent lock based on TOF technology and RFID technology and use method thereof
CN113408344A (en) * 2021-05-13 2021-09-17 深圳市捷顺科技实业股份有限公司 Three-dimensional face recognition generation method and related device
CN114463879A (en) * 2022-01-25 2022-05-10 杭州涂鸦信息技术有限公司 Unlocking method, intelligent terminal and computer readable storage medium
CN114872660A (en) * 2022-04-18 2022-08-09 浙江极氪智能科技有限公司 Face recognition system control method and device, vehicle and storage medium
CN115240296A (en) * 2022-05-10 2022-10-25 深圳绿米联创科技有限公司 Equipment awakening method, device, equipment and storage medium
CN115331334A (en) * 2022-07-13 2022-11-11 神通科技集团股份有限公司 Intelligent stand column based on face recognition and Bluetooth unlocking and unlocking method
CN116805430A (en) * 2022-12-12 2023-09-26 安徽国防科技职业学院 Digital image safety processing system based on big data

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335389B (en) * 2019-07-01 2021-10-12 上海商汤临港智能科技有限公司 Vehicle door unlocking method, vehicle door unlocking device, vehicle door unlocking system, electronic equipment and storage medium
CN114937294A (en) * 2019-10-22 2022-08-23 上海商汤智能科技有限公司 Vehicle door control method, vehicle door control device, vehicle door control system, vehicle, electronic equipment and storage medium
CN113421358B (en) * 2020-03-03 2023-05-09 比亚迪股份有限公司 Lock control system, lock control method and vehicle
CN111540090A (en) * 2020-04-29 2020-08-14 北京市商汤科技开发有限公司 Method and device for controlling unlocking of vehicle door, vehicle, electronic equipment and storage medium
CN111932732A (en) * 2020-08-13 2020-11-13 四川巧盒物联科技有限公司 Bluetooth communication-based intelligent lock unlocking method for circulating packaging box
CN111932727A (en) * 2020-08-13 2020-11-13 四川巧盒物联科技有限公司 Packaging box intelligent lock biological identification unlocking method based on Bluetooth communication
CN111932725A (en) * 2020-08-13 2020-11-13 四川巧盒物联科技有限公司 Intelligent packing box lock unlocking method based on Bluetooth communication unlocking equipment
CN111932730A (en) * 2020-08-13 2020-11-13 四川巧盒物联科技有限公司 Bluetooth communication-based remote unlocking method for intelligent lock of circulating packing box
CN111932724A (en) * 2020-08-13 2020-11-13 四川巧盒物联科技有限公司 Induction type circulating packaging box intelligent lock unlocking method based on Bluetooth communication
CN111932723A (en) * 2020-08-13 2020-11-13 四川巧盒物联科技有限公司 Bluetooth communication-based quick unlocking method for intelligent lock of circulating packing box
CN112590706A (en) * 2020-12-18 2021-04-02 上海傲硕信息科技有限公司 Noninductive face recognition vehicle door unlocking system
CN112684722A (en) * 2020-12-18 2021-04-20 上海傲硕信息科技有限公司 Low-power consumption power supply control circuit
CN112572349A (en) * 2020-12-22 2021-03-30 广州橙行智动汽车科技有限公司 Vehicle digital key processing method and system
CN113135161A (en) * 2021-03-18 2021-07-20 江西欧迈斯微电子有限公司 Identification system and identification method
CN114268380B (en) * 2021-10-27 2024-03-08 浙江零跑科技股份有限公司 Automobile Bluetooth non-inductive entry improvement method based on acoustic wave communication
JP2023098771A (en) * 2021-12-29 2023-07-11 Ihi運搬機械株式会社 Operation method and operation device of mechanical parking device
JP2024011894A (en) * 2022-07-15 2024-01-25 ソニーセミコンダクタソリューションズ株式会社 Information processing device and information processing system
CN115546939A (en) * 2022-09-19 2022-12-30 国网青海省电力公司信息通信公司 Unlocking mode determination method and device and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040029211A (en) * 2002-09-25 2004-04-06 현대자동차주식회사 An antitheft device and the control method of automobile
CN107963057A (en) * 2017-12-23 2018-04-27 埃泰克汽车电子(芜湖)有限公司 A kind of keyless access system based on mobile phone
CN108846924A (en) * 2018-05-31 2018-11-20 上海商汤智能科技有限公司 Vehicle and car door solution lock control method, device and car door system for unlocking
CN208207948U (en) * 2018-05-31 2018-12-07 上海商汤智能科技有限公司 vehicle with face unlocking function
CN109243024A (en) * 2018-08-29 2019-01-18 上海交通大学 A kind of automobile unlocking system and method based on recognition of face
CN109823306A (en) * 2019-02-22 2019-05-31 广东远峰汽车电子有限公司 Car door unlocking method, device, system and readable storage medium storing program for executing
CN208954163U (en) * 2018-08-16 2019-06-07 深圳嗒程科技有限公司 A kind of unlocking system based on shared automobile
CN109895736A (en) * 2019-02-19 2019-06-18 汉腾汽车有限公司 Safe opening door device and safe opening of car door method based on face recognition technology
CN110335389A (en) * 2019-07-01 2019-10-15 上海商汤临港智能科技有限公司 Car door unlocking method and device, system, vehicle, electronic equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101715139B (en) * 2009-11-16 2011-04-20 南京邮电大学 Multi-mode error code covering method based on complementary covering mode in dimensional images
CN102595024B (en) * 2011-12-16 2014-10-22 飞狐信息技术(天津)有限公司 Method and device for restoring digital video images
CN103248906B (en) * 2013-04-17 2015-02-18 清华大学深圳研究生院 Method and system for acquiring depth map of binocular stereo video sequence
CN103729919A (en) * 2013-12-10 2014-04-16 杨伟 Electronic access control system
CN105096311A (en) * 2014-07-01 2015-11-25 中国科学院科学传播研究中心 Technology for restoring depth image and combining virtual and real scenes based on GPU (Graphic Processing Unit)
CN105894503B (en) * 2016-03-30 2019-10-01 江苏大学 A kind of restorative procedure of pair of Kinect plant colour and depth detection image
CN107176060A (en) * 2017-07-27 2017-09-19 杭州力谱科技有限公司 A kind of electric automobile charging pile
CN107393046B (en) * 2017-08-03 2019-08-06 陕西尚品信息科技有限公司 A kind of method that bluetooth registers system and bluetooth is registered
CN109121077B (en) * 2018-08-06 2020-09-29 刘丽 Bluetooth work system of garage and work method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040029211A (en) * 2002-09-25 2004-04-06 현대자동차주식회사 An antitheft device and the control method of automobile
CN107963057A (en) * 2017-12-23 2018-04-27 埃泰克汽车电子(芜湖)有限公司 A kind of keyless access system based on mobile phone
CN108846924A (en) * 2018-05-31 2018-11-20 上海商汤智能科技有限公司 Vehicle and car door solution lock control method, device and car door system for unlocking
CN208207948U (en) * 2018-05-31 2018-12-07 上海商汤智能科技有限公司 vehicle with face unlocking function
CN208954163U (en) * 2018-08-16 2019-06-07 深圳嗒程科技有限公司 A kind of unlocking system based on shared automobile
CN109243024A (en) * 2018-08-29 2019-01-18 上海交通大学 A kind of automobile unlocking system and method based on recognition of face
CN109895736A (en) * 2019-02-19 2019-06-18 汉腾汽车有限公司 Safe opening door device and safe opening of car door method based on face recognition technology
CN109823306A (en) * 2019-02-22 2019-05-31 广东远峰汽车电子有限公司 Car door unlocking method, device, system and readable storage medium storing program for executing
CN110335389A (en) * 2019-07-01 2019-10-15 上海商汤临港智能科技有限公司 Car door unlocking method and device, system, vehicle, electronic equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113160458A (en) * 2021-03-31 2021-07-23 中国地质大学(武汉) Internet of things intelligent lock based on TOF technology and RFID technology and use method thereof
CN113160458B (en) * 2021-03-31 2024-05-31 中国地质大学(武汉) Internet of things intelligent lock based on TOF technology and RFID technology and use method thereof
CN113408344A (en) * 2021-05-13 2021-09-17 深圳市捷顺科技实业股份有限公司 Three-dimensional face recognition generation method and related device
CN114463879A (en) * 2022-01-25 2022-05-10 杭州涂鸦信息技术有限公司 Unlocking method, intelligent terminal and computer readable storage medium
CN114872660A (en) * 2022-04-18 2022-08-09 浙江极氪智能科技有限公司 Face recognition system control method and device, vehicle and storage medium
CN115240296A (en) * 2022-05-10 2022-10-25 深圳绿米联创科技有限公司 Equipment awakening method, device, equipment and storage medium
CN115331334A (en) * 2022-07-13 2022-11-11 神通科技集团股份有限公司 Intelligent stand column based on face recognition and Bluetooth unlocking and unlocking method
CN116805430A (en) * 2022-12-12 2023-09-26 安徽国防科技职业学院 Digital image safety processing system based on big data
CN116805430B (en) * 2022-12-12 2024-01-02 安徽国防科技职业学院 Digital image safety processing system based on big data

Also Published As

Publication number Publication date
CN110335389A (en) 2019-10-15
JP2022537923A (en) 2022-08-31
KR20220070581A (en) 2022-05-31
JP2022118730A (en) 2022-08-15
KR20220016184A (en) 2022-02-08
CN110335389B (en) 2021-10-12

Similar Documents

Publication Publication Date Title
WO2021000587A1 (en) Vehicle door unlocking method and device, system, vehicle, electronic equipment and storage medium
TWI785312B (en) Vehicle door unlocking method and device thereof, vehicle-mounted face unlocking system, vehicle, electronic device and storage medium
WO2021077738A1 (en) Vehicle door control method, apparatus, and system, vehicle, electronic device, and storage medium
US20210001810A1 (en) System, method, and computer program for enabling operation based on user authorization
US11196966B2 (en) Identifying and locating objects by associating video data of the objects with signals identifying wireless devices belonging to the objects
US11321575B2 (en) Method, apparatus and system for liveness detection, electronic device, and storage medium
WO2019214201A1 (en) Live body detection method and apparatus, system, electronic device, and storage medium
CA3105190A1 (en) System and method for identifying and verifying one or more individuals using facial recognition
US20160364009A1 (en) Gesture recognition for wireless audio/video recording and communication devices
WO2015179223A1 (en) Adaptive low-light identification
DE102019107582A1 (en) Electronic device with image pickup source identification and corresponding methods
US11659144B1 (en) Security video data processing systems and methods
CN111626086A (en) Living body detection method, living body detection device, living body detection system, electronic device, and storage medium
US20200356647A1 (en) Electronic device and control method therefor
Kumar et al. Design and Analysis of IOT Based Real Time System for Door Locking/Unlocking Using Face Identification

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: 20834966

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021572948

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20217043021

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20834966

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20834966

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/09/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20834966

Country of ref document: EP

Kind code of ref document: A1