WO2021218180A1 - Method and apparatus for controlling unlocking of vehicle door, and vehicle, device, medium and program - Google Patents

Method and apparatus for controlling unlocking of vehicle door, and vehicle, device, medium and program Download PDF

Info

Publication number
WO2021218180A1
WO2021218180A1 PCT/CN2020/136253 CN2020136253W WO2021218180A1 WO 2021218180 A1 WO2021218180 A1 WO 2021218180A1 CN 2020136253 W CN2020136253 W CN 2020136253W WO 2021218180 A1 WO2021218180 A1 WO 2021218180A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection
face
face image
image
vehicle
Prior art date
Application number
PCT/CN2020/136253
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 KR1020217034709A priority Critical patent/KR20210146354A/en
Priority to JP2021570765A priority patent/JP7281562B2/en
Publication of WO2021218180A1 publication Critical patent/WO2021218180A1/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
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R25/00Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
    • B60R25/20Means to switch the anti-theft system on or off
    • B60R25/25Means to switch the anti-theft system on or off using biometry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
    • G06V10/993Evaluation of the quality of the acquired pattern
    • 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/161Detection; Localisation; Normalisation
    • 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

Definitions

  • the present disclosure relates to the field of image processing technology, and in particular, to a method, device, vehicle, equipment, medium, and program for controlling unlocking of a vehicle door.
  • the embodiments of the present disclosure provide at least a method, device, vehicle, equipment, medium, and program for controlling unlocking of a vehicle door.
  • the embodiment of the present disclosure provides a method for controlling unlocking of a vehicle door, including:
  • At least one door lock of the vehicle is controlled to be unlocked.
  • the image collected by the car's image acquisition module is acquired, and the quality of the face image in the acquired image is inspected; if the result of the quality inspection meets the preset conditions
  • face detection is performed based on the face image; if the face detection of the face image passes, at least one door lock of the car is unlocked; the user does not need to perform any operation throughout the process, and the equipment loss is small.
  • the door can be unlocked in the process of the vehicle, which is more convenient to use.
  • the method further includes:
  • the image acquisition module In response to that no human face image is detected in the image collected within the first preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter a sleep state.
  • the method further includes:
  • the method further includes:
  • the image acquisition module In response to that none of the quality detection results meet the preset conditions within the second preset time, the image acquisition module is controlled to enter a dormant state.
  • the method further includes:
  • the image acquisition module In response to the failure of the face detection of the face images in the acquired image within the third preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter the dormant state.
  • the image acquisition module of the vehicle is awakened in at least one of the following situations:
  • the Bluetooth module placed in the car searches for a Bluetooth device with a preset logo
  • the Bluetooth module placed in the car searches for a Bluetooth device with a preset identification and is successfully paired.
  • the quality detection includes at least one of the following: brightness detection, head posture detection, blur degree detection, resolution detection, and occlusion degree detection.
  • the quality detection on the acquired face image includes:
  • the average brightness value is greater than the first brightness threshold and less than the second brightness threshold, it is determined that the brightness detection result of the face image meets the brightness condition in the preset condition; wherein, the first brightness threshold Less than the second brightness threshold.
  • the quality detection on the acquired face image includes:
  • the head posture information includes: the pitch angle and the yaw angle of the face;
  • the head posture detection result of the face image meets the preset conditions. Head posture conditions.
  • the quality detection on the acquired face image includes:
  • the sharpness value of the face image is greater than the sharpness threshold value, it is determined that the blur degree detection result of the face image meets the sharpness condition in the preset condition.
  • the determining the sharpness value of the face image according to the position information of each key point in the plurality of key points includes:
  • For each key point determine a plurality of target pixels adjacent to the key point position according to the position information of each key point;
  • the sharpness value of the face image is determined according to the sharpness value of each key point in the plurality of key points.
  • the quality detection of the acquired face image includes:
  • the occlusion degree value is less than the occlusion degree value threshold, it is determined that the occlusion degree detection result of the face image meets the occlusion degree condition in the preset condition.
  • the performing face detection based on the face image includes:
  • the face detection is performed on the face image by using the face detection model loaded offline.
  • the following method is used to load the face detection model offline:
  • the header file is statically compiled to load the face detection model offline.
  • the performing face detection based on the face image includes:
  • the embodiment of the present disclosure also provides a device for controlling unlocking of a vehicle door, including:
  • the response module is used to obtain the image collected by the image acquisition module of the car in response to the image acquisition module of the car being awakened;
  • a quality detection module configured to perform quality detection on the face image in the acquired image
  • a face detection module configured to perform face detection based on the face image when the result of the quality detection meets a preset condition
  • the vehicle lock control module is used to control the unlocking of at least one door lock of the vehicle when the face detection of the face image passes.
  • the device for controlling unlocking of a vehicle door further includes:
  • the first control module is configured to control the image acquisition module to enter the dormant state in response to that no face image is detected in the image collected within the first preset time after the image acquisition module is awakened.
  • the device for controlling unlocking of a vehicle door further includes:
  • the prompt module is used to output prompt information when the result of the quality inspection does not meet the preset condition.
  • the device for controlling unlocking of a vehicle door further includes:
  • the second control module is configured to control the image acquisition module to enter the dormant state in response to the quality inspection results failing to meet the preset conditions within the second preset time.
  • the device for controlling unlocking of a vehicle door further includes:
  • the third control module is configured to control the image acquisition module in response to the failure of the face detection of the facial image in the acquired image within the third preset time after the image acquisition module is awakened Go to sleep.
  • the image acquisition module of the vehicle is awakened in at least one of the following situations:
  • the Bluetooth module placed in the car searches for a Bluetooth device with a preset logo
  • the Bluetooth module placed in the car searches for a Bluetooth device with a preset identification and is successfully paired.
  • the quality detection includes at least one of the following: brightness detection, head posture detection, blur degree detection, resolution detection, and occlusion degree detection.
  • the quality detection module is configured to perform quality detection on the acquired face image based on multiple pixels in the face image. The pixel value of each pixel in, determine the average brightness value of the multiple pixels;
  • the average brightness value is greater than the first brightness threshold and less than the second brightness threshold, it is determined that the brightness detection result of the face image meets the brightness condition in the preset condition; wherein, the first brightness threshold Less than the second brightness threshold.
  • the quality detection module is used to perform head-level detection on the face image when performing quality detection on the acquired face image.
  • Posture detection to obtain the head posture information of the face in the face image;
  • the head posture information includes: the pitch angle and the yaw angle of the face;
  • the head posture detection result of the face image meets the preset conditions. Head posture conditions.
  • the quality detection module is configured to perform a key function on the face image when performing quality detection on the acquired face image. Point detection to obtain position information of multiple key points in the face image in the face image;
  • the sharpness value of the face image is greater than the sharpness threshold value, it is determined that the blur degree detection result of the face image meets the sharpness condition in the preset condition.
  • the quality detection module is configured to determine the sharpness value of the face image according to the position information of each key point in the plurality of key points, , According to the position information of each key point, determine a plurality of target pixels adjacent to the key point position;
  • the sharpness value of the face image is determined according to the sharpness value of each key point in the plurality of key points.
  • the quality detection module is used to perform key point detection on the face image when performing quality detection on the acquired face image , To obtain the key point detection results corresponding to multiple key points in the face image;
  • the occlusion degree value is less than the occlusion degree value threshold, it is determined that the occlusion degree detection result of the face image meets the occlusion degree condition in the preset condition.
  • the face detection module is configured to perform face detection on the face image by using a face detection model loaded offline when performing face detection based on the face image.
  • the device for controlling unlocking of a vehicle door further includes:
  • the loading module is used to load the face detection model offline using the following method:
  • the header file is statically compiled to load the face detection model offline.
  • the face detection module is used to perform face identity authentication and living body detection based on the face image when performing face detection based on the face image.
  • the embodiment of the present disclosure provides a vehicle, including: a vehicle body and an image acquisition module provided on the vehicle body; the vehicle body is also provided with a vehicle control system;
  • the image acquisition module is used to acquire images
  • the vehicle control system is used to control the unlocking of the door lock on the vehicle body by using the method for controlling the unlocking of the vehicle as described in any one of the above embodiments.
  • An embodiment of the present disclosure also provides an electronic device, including a processor and a memory, the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory.
  • the machine-readable instruction executes the steps in the foregoing embodiment or any possible implementation of the foregoing embodiment when the machine-readable instruction is executed by the processor.
  • the present disclosure also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the steps in the above-mentioned embodiment or any possible implementation of the above-mentioned embodiment when the computer program is run. .
  • the embodiment of the present disclosure provides a computer program, the computer program includes computer-readable code, in the case that the computer-readable code runs in a computer, the computer is caused to execute any of the above-mentioned methods for controlling unlocking of a vehicle door .
  • the present disclosure provides a method, a device, a vehicle, equipment, a medium, and a program for controlling unlocking of a car door; the method includes: in response to a car's image collection module being awakened, acquiring an image collected by the car's image collection module; Perform quality detection on the face image in the image; when the result of the quality detection meets the preset conditions, perform face detection based on the face image; when the face detection of the face image passes, control the car’s At least one door lock is unlocked.
  • the method for controlling the unlocking of the vehicle door does not require the user to perform any operation throughout the entire process, and the equipment is low in loss.
  • the vehicle door can be automatically unlocked when the vehicle owner approaches the vehicle, which is more convenient to use.
  • Fig. 1 shows a flowchart of a method for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure
  • FIG. 2 shows a schematic diagram of a system architecture applying the method for controlling unlocking of a vehicle door according to an embodiment of the present disclosure
  • FIG. 3 shows an exemplary diagram of the relationship between an image acquisition module and a human body provided by an embodiment of the present disclosure
  • FIG. 4 shows a specific example diagram of a method for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure
  • FIG. 5 shows a schematic structural diagram of a device for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure
  • Fig. 6 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • Unlock the car key for example, the car owner carries a car key that can wirelessly control the car lock; when the car owner is close to the car for a certain distance, the car key is used to wirelessly control the unlocking of the car door.
  • This method requires the car owner to carry the car key with him, and once the car key is lost, the car lock cannot be unlocked; and the car key is usually large and cumbersome to carry; and this method is not convenient for the user to use.
  • Fingerprint unlocking set up a fingerprint recognition device on the car; pre-enter the fingerprint of the car owner through the fingerprint recognition device, and during authentication, the car owner uses the fingerprint recognition device to perform fingerprint authentication matching.
  • this unlocking method does not require the owner to carry the car key, the fingerprint identification device is easy to wear, and the device wears a lot during use. As the number of uses increases, the user may not be able to unlock it at one time, requiring the user to repeatedly input fingerprints for verification. It is not convenient for users to use.
  • the present disclosure provides a method, device, vehicle, equipment, medium, and program for controlling unlocking of a car door.
  • the image collected by the car's image acquisition module is acquired, and Perform quality inspection on the face image in the acquired image; if the result of the quality inspection meets the preset conditions, perform face detection based on the face image; if the face image of the face image passes the face detection, control At least one door lock of the vehicle is unlocked; in this way, the user does not need to perform any operation during the whole process, and the equipment loss is small.
  • the door can be unlocked when the owner approaches the vehicle, which is more convenient to use.
  • the execution subject of the method for controlling unlocking of a vehicle door provided by the embodiment of the present disclosure is generally a computer with certain computing capabilities.
  • Equipment the computer equipment includes, for example, terminal equipment, servers or other processing equipment.
  • the terminal equipment may be User Equipment (UE), mobile equipment, user terminal, terminal, cellular phone, cordless phone, personal digital processing (Personal Digital Assistant, PDA), handheld devices, computing devices, wearable devices, etc.; other processing devices are, for example, a vehicle control system integrated with the vehicle.
  • UE User Equipment
  • PDA Personal Digital Assistant
  • the method for controlling unlocking of a vehicle door may be implemented by a processor invoking a computer-readable instruction stored in a memory.
  • the vehicle control system can communicate with the server wirelessly; after detecting that a person is approaching the vehicle, the vehicle control system controls the image acquisition module installed on the vehicle to acquire images, And send the image to the server; based on the acquired image, the server executes the method for controlling the unlocking of the vehicle door provided by the embodiment of the present disclosure, and controls the unlocking of the vehicle door by issuing an unlocking instruction to the vehicle control system.
  • the door unlocking is realized through the interaction between the server and the vehicle control system, which is convenient for users; in addition, the main calculation task of controlling the unlocking of the vehicle door is executed on the server, which reduces the hardware requirements of the vehicle control system and effectively reduces the vehicle cost.
  • the terminal device can communicate with the vehicle control system wirelessly; the vehicle control system controls the image acquisition module installed on the vehicle after detecting that someone is approaching the vehicle The image is acquired and sent to the terminal device; the terminal device executes the method for controlling door unlocking provided by the embodiments of the present disclosure based on the image sent by the vehicle control system, and controls the unlocking of the door by issuing an unlock command to the vehicle control system.
  • the terminal device monitors that the distance between it and the vehicle is less than the preset distance, it controls the image acquisition module installed on the terminal device to acquire an image, and executes the method for controlling the unlocking of the door provided by the embodiment of the present disclosure based on the image; And by issuing an unlock command to the vehicle control system to control the unlocking of the door.
  • the door is unlocked based on the user's commonly used portable device, which not only does not require the user to carry an additional car key, but also facilitates the user to control the unlocking of the door at any time, which is more convenient to use.
  • the vehicle control system can monitor in real time whether the vehicle owner is close to the vehicle; after detecting that the vehicle owner is close to the vehicle, control the image acquisition module installed on the vehicle to acquire The method for controlling the unlocking of the vehicle door provided by the embodiment of the present disclosure is executed based on the image.
  • the unlocking of the door is controlled by the vehicle control system, and the user does not need to perform any operations, nor does it need to carry a key to control the unlocking of the door, which is convenient and quick to use.
  • the method for controlling the unlocking of the vehicle door may also have other execution subjects, or the manner of interaction between the execution subject and other subjects to control the unlocking of the vehicle doors, which will not be repeated here.
  • FIG. 1 it is a flowchart of a method for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure.
  • the method includes steps S101 to S104, wherein:
  • S101 In response to the image acquisition module of the car being awakened, acquire an image collected by the image acquisition module of the car.
  • S102 Perform quality detection on the face image in the acquired image.
  • S104 Control the unlocking of at least one door lock of the vehicle when the face detection of the face image passes.
  • FIG. 2 is a schematic diagram of a system architecture that can apply the method for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure; as shown in FIG.
  • the vehicle terminal 201 and the door unlocking terminal 203 establish a communication connection through the network 202.
  • the vehicle terminal 201 reports the images collected by the image acquisition module to the door unlocking terminal device 203 through the network 202, and controls the door unlocking terminal.
  • the device 203 performs quality detection on the face image in the image based on the image; when the quality detection result meets the preset conditions, performs face detection based on the face image; When the face detection of the image passes, at least one door lock of the control car is unlocked.
  • the door unlocking terminal 203 is controlled to upload the door unlocking information to the network 202, and send it to the vehicle terminal 201 via the network 202.
  • the vehicle terminal 201 may include a vehicle-mounted image acquisition device, and the control door unlocking terminal 203 may include a vehicle-mounted visual processing device or a remote server with visual information processing capabilities.
  • the network 202 may adopt a wired connection or a wireless connection.
  • the vehicle terminal 201 can communicate with the vehicle-mounted visual processing device through a wired connection, such as data communication through a bus; when the control door unlocking terminal is a remote server, the vehicle terminal 201 can exchange data with a remote server through a wireless network.
  • the vehicle terminal 201 may be a vehicle-mounted vision processing device with a vehicle-mounted image acquisition module, which is specifically implemented as a vehicle-mounted host with a camera.
  • the method for controlling the unlocking of the vehicle door in the embodiment of the present disclosure may be executed by the vehicle terminal 201, and the above-mentioned system architecture may not include the network 202 and the terminal 203 for controlling the unlocking of the vehicle door.
  • the image acquisition module of the car is awakened under at least one of the following conditions a1 to a4:
  • a1 It is detected that the distance between the human body and the vehicle is less than the preset distance.
  • an infrared sensor, a distance measuring sensor, etc. may be provided on the vehicle, and the infrared sensor and/or the distance measuring sensor sensor can detect whether the distance between the human body and the vehicle is less than the preset distance.
  • short-range wireless communication technologies such as Zigbee, Radio Frequency Identification (RFID), etc.
  • RFID Radio Frequency Identification
  • the communication distance of short-range communication is usually relatively limited, when the smart device of the vehicle owner can be detected, it means that the smart device of the vehicle owner has entered within a certain distance of the vehicle; at this time, the distance between the vehicle owner and the vehicle is considered to be less than the preset distance. In this way, detecting that the distance between the human body and the vehicle is less than the preset distance can activate the door lock unlocking process, and can perform targeted detection of the vehicle owner, and reduce the detection when people other than the vehicle owner are approaching the vehicle.
  • RFID Radio Frequency Identification
  • the specific preset distance can be set according to actual needs.
  • a2 Received a door lock unlock command.
  • the door lock unlocking instruction is, for example, a voice instruction; the user can record the voice in the vehicle control system in advance; after receiving the voice instruction that matches the voice, it is considered that the image acquisition module of the car is to be awakened; the voice instruction is again For example, it is a preset voice; for example, the user can set a name for the vehicle; the vehicle control system will monitor the external voice in real time; when the detected voice contains the name of the vehicle, it is considered that the image collection module of the car should be awakened.
  • the voice instruction is, for example, an instruction sent through other devices, such as an instruction sent by a user through a portable mobile terminal, such as a mobile phone, smart bracelet, etc.; in this way, receiving a door lock unlocking instruction can facilitate the user to unlock the car lock. control.
  • a3 The Bluetooth module placed in the car searches for a Bluetooth device with a preset logo.
  • the Bluetooth device is, for example, a mobile terminal carried by the user, such as a mobile phone, a smart bracelet, and the like.
  • the Bluetooth search module installed in the car will periodically search for nearby Bluetooth devices with a preset identifier, and if found, wake up the car's image acquisition module.
  • a4 The Bluetooth module placed in the car has searched for a Bluetooth device with a preset logo and paired successfully.
  • the image acquisition module of the car is awakened, and the vehicle control system acquires the image through the image acquisition module installed on the vehicle; At this time, the acquired image may or may not include human faces. Therefore, in a possible implementation manner, first perform face interception processing on the acquired image; if the face image can be obtained therefrom, perform the subsequent steps; if the face image cannot be intercepted from it, control the image acquisition again
  • the module acquires the image.
  • the image acquisition module includes, for example, at least one of a binocular camera and a three-dimensional camera.
  • the installation location of the image acquisition module is, for example, a car B-pillar; in this way, searching for a Bluetooth device with a preset identifier through the Bluetooth module placed on the car can facilitate the vehicle to accurately identify the owner.
  • the vehicle control system obtains a video with a preset duration through an image acquisition module installed on the vehicle; the video includes multiple images; the image in the multiple videos can be processed Screening, for example, face interception processing is performed on multiple images in the video; in this case, for example, at least one face image can be obtained; when there are multiple face images (may be from the same image)
  • the intercepted image may also be intercepted from different images), and each obtained image is used as the face image in S102 to perform subsequent processing.
  • the embodiment of the present disclosure also provides an example of a specific installation method of the image capture module on the vehicle; as shown in FIG. 3, the coverage of the image capture module's shooting angle of view is in the vertical direction, To cover people with a height of 1.4 meters to 1.9 meters; the installation height of the image acquisition module is 1.5 meters; the angle of the optical axis of the image acquisition module and the plane of the vehicle chassis is up to 2.5 degrees, and the angle to the vertical is 75 Degrees; the resolution of the obtained image is 1280 ⁇ 960; where 1280 is the size of the image in the vertical direction.
  • the above example only shows an installation method of the image acquisition module; the image acquisition module can also be installed in other ways according to the vehicle model, the height of the vehicle, and the vehicle facing the crowd, etc., which will not be repeated here.
  • the image acquisition module in response to that no face image is detected in the image collected within the first preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter the dormant state. In this way, the power consumption of the image acquisition module in the working state for a long time is saved, and at the same time, the image acquisition module can be quickly shut down after performing an incorrect acquisition operation.
  • the quality inspection includes but is not limited to at least one of the following b1 to b5:
  • the following methods may be used to detect the brightness of a face image:
  • the average brightness value of the multiple pixels is determined.
  • the average brightness value is greater than the first brightness threshold and less than the second brightness threshold, it is determined that the brightness detection result of the face image meets the brightness condition in the preset condition; wherein the first brightness threshold is less than the second brightness threshold.
  • all pixels in the face image can be traversed, and the brightness value of the traversed pixel can be determined according to the pixel value of the traversed pixel; and then the average brightness can be determined according to the brightness value of all the traversed pixels .
  • the average brightness value face pixel of multiple pixels in the face image satisfies the following formula (1):
  • W represents the width of the face image
  • H represents the height of the face image
  • C represents the number of color channels of the face image
  • (left, top) represents the coordinate value of the pixel at the upper left corner of the face image
  • I( ⁇ ) Represents the brightness formula of any pixel of the image.
  • the brightness value of any pixel is the weighted sum of the pixel values of the pixel in different color channels.
  • the weight corresponding to the R channel is 0.3; the weight corresponding to the G channel is 0.59; and the weight corresponding to the B channel is 0.11.
  • the foregoing method for calculating the brightness value is only an example of the amount of pixels, and other methods may also be used to calculate the brightness value of the pixel.
  • a preset number of pixels can be randomly confirmed in a face image, and then according to the pixel value of each pixel in the determined preset number of pixels, the value of each pixel in the preset number of pixels can be determined Brightness value; then according to the pixel values of all the preset number of pixels, the average brightness value corresponding to the face image is determined.
  • a fill light may also be provided on the vehicle; when it is detected that the average brightness value is greater than or equal to the second brightness threshold, the fill light is controlled to turn on to fill the user's face with light.
  • the excessively bright and dark face images are reduced, and the subsequent increase in the difficulty of face detection caused by the over-exposure of the face image or the excessively dark face image is avoided. Improve the accuracy of face detection.
  • the following methods can be used to detect the head posture of a face image:
  • Head posture detection is performed on the face image to obtain the head posture information of the face in the face image; the head posture information includes: the pitch angle and the yaw angle of the face.
  • the head pose is detected on the face image, for example, multiple face key points in the face image can be identified; then the rotation matrix of the head pose is determined according to the coordinates of the face key points in the face image And translate the matrix. Then, based on the rotation matrix and the translation matrix, the head posture information is determined.
  • the head posture information is expressed as: (yaw, pitch, roll).
  • yaw represents the pitch angle, that is, the angle at which a person raises or lowers his head
  • pitch represents the yaw angle, that is, the angle at which a person's head turns left and right
  • roll represents a roll angle, that is, the angle at which a person swings his head from side to side.
  • the face recognition process in S103 is executed.
  • the following method may be used to detect the degree of blurring of the face image:
  • the key point detection is performed on the face image, and the position information of multiple key points in the face image in the face image is obtained.
  • the sharpness value of the face image is determined.
  • the sharpness value of the face image is greater than the sharpness threshold, it is determined that the detection result of the blur degree of the face image meets the sharpness condition in the preset condition.
  • the following method can be used to determine the sharpness value of the face image:
  • For each key point according to the position information of each key point, multiple target pixels adjacent to the key point position are determined.
  • the sharpness value of each key point is determined.
  • the sharpness value of each key point in the multiple key points is determined.
  • the sharpness value blur of the face image satisfies the following formula (2):
  • landmarks blur (m) represents the sharpness value of the m-th key point.
  • the landmarks blur (m) satisfies the following formula (3):
  • landmarks blur (m)[x,y] represents the coordinates of the m-th key point.
  • landmarks blur (m)[x-1,y], landmarks blur (m)[x+1,y], landmarks blur (m)[x,y-1], landmarks blur (m)[x,y+1 ] Respectively represent the coordinates of the four target pixel points adjacent to the m-th key point position.
  • the key points are used to accurately locate the face, and the position of the key points in the face image is used to calculate the degree of blurring of the approximate face in the Laplacian gradient, so as to avoid the background of the face image caused by the face definition value. Interference, improve the accuracy of the clarity value.
  • the resolution of the face image is detected; if the resolution of the face image is less than the preset resolution threshold, that is, the face is smaller, the face image contains There are fewer facial features; the accuracy of face recognition based on a face image with a smaller resolution will be reduced; therefore, in order to ensure the accuracy of face recognition, resolution detection must be performed on the face image.
  • the following methods can be used to detect the degree of occlusion of a face image:
  • the key point detection is performed on the face image, and the key point detection results corresponding to multiple key points in the face image are obtained.
  • the occlusion degree value of the face image is determined.
  • the occlusion degree value is less than the occlusion degree value threshold, it is determined that the detection result of the occlusion degree of the face image meets the occlusion degree condition in the preset condition.
  • the human face may be blocked by obstacles, such as buildings, clothing on the person, accessories, and so on.
  • obstacles such as buildings, clothing on the person, accessories, and so on.
  • a pre-trained face key point detection model can be used to perform key point detection on the face image; the key point detection results obtained include: the key points that can be detected The coordinate value of the point in the face image. If the coordinate value of a certain key point exists, it means that the key point is not occluded; if the coordinate value of a certain key point is empty, it means that the key point is occluded.
  • the occlusion degree value occlusion of the face image satisfies the following formula (4), for example:
  • m represents the m-th key point.
  • an occlusion threshold value is set. Only when the occlusion value is less than the occlusion threshold, the face recognition in S103 will be performed on the face image. process.
  • the problem that the face detection accuracy is reduced due to the excessive occlusion of the face is reduced.
  • the image acquisition module in response to that none of the quality inspection results meet the preset condition within the second preset time, the image acquisition module is controlled to enter the dormant state. In this way, the power consumption of the image acquisition module in the working state for a long time is saved, and at the same time, the image acquisition module can be quickly shut down after performing an incorrect acquisition operation.
  • the face detection model loaded offline may be used to perform face detection on the face image.
  • the face detection model is pre-loaded offline, and when the vehicle lock is controlled to unlock, there is no need to load various models immediately, and the response speed is faster.
  • the face detection model can be loaded offline using the following method, for example:
  • the face detection model is converted from the encryption mode to the plaintext mode, and the face detection model converted to the plaintext mode is written into the header file of the car lock control system.
  • the header file is statically compiled to load the face detection model offline.
  • offline loading may be completed when the vehicle leaves the factory, or when the user sets the lock control system of the vehicle for the first time, or after the face detection model is updated.
  • the face detection model converted to the plaintext mode into the header file of the car lock control system and statically compiling it, the robustness of the offline loading process of the face detection model can be improved.
  • the face detection of the face image includes, for example, performing face identity authentication and living body detection on the face image.
  • a face template image of the vehicle owner is stored in the vehicle control system, and there is at least one face template image; and the angles of the faces in the face images of different templates are different.
  • the face image is authenticated, for example, multiple key points in the face image can be detected; then the key points of the face image are matched with the face key points in each face template image to obtain the person The matching degree between the face image and each face template image; if the matching degree between the face image and the preset number of face template images is greater than the preset matching degree, the face matching detection of the face image .
  • live detection of face images can obtain a video of a preset duration through an image acquisition module installed on a vehicle; then, for multiple images in the video, at least one person has multiple faces that are different; where Multiple face images belonging to the same person belong to different images in the video.
  • the quality of the multiple face images of the person is tested separately, and at least two face images are determined from them, and based on at least two faces
  • the difference feature between the images is used to determine whether the person corresponding to the two face images is alive. When it is confirmed as a living body, it passes the living body detection of the face image.
  • the life detection of the face image may be performed based on a pre-trained life detection model.
  • the verification of the legitimate user is achieved through face identity authentication, and the living body detection can effectively prevent the use of photo spoofing to attack the vehicle control system to steal the vehicle.
  • prompt information is also output; for example, prompt information such as voice can be issued to the user according to the specific results of the quality detection, if The quality inspection includes the detection of the occlusion degree, and when the occlusion degree fails, the user is prompted "the area of the occlusion is too large”; if the quality detection includes the brightness detection and the brightness detection fails, the user is prompted "the current light is too dark", etc. Set according to actual needs. In this way, a prompt message is issued to the user based on the specific result of the quality inspection, so that the user can be informed of the failure of the inspection in time and take relevant measures.
  • the model used to obtain the face image and the model used in the quality detection process of the face image can be pre-loaded offline; the loading method is the same as the offline loading method of the face detection model described above Similar, I won't repeat it here.
  • the image acquisition module in response to the face detection of the face image in the acquired image fails within the third preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter sleep state. In this way, by controlling one or more of the above-mentioned image acquisition modules to enter the sleep state, the process of unlocking the door is restricted to a certain period of time, and the deadlock state is prevented from entering the unlocking process.
  • the image acquired by the image acquisition module of the car in response to the image acquisition module of the car to be awakened, the image acquired by the image acquisition module of the car is acquired, and the quality inspection of the face image in the acquired image is performed; the result of the quality inspection conforms to the preset Under the conditions, face detection is based on the face image; if the face detection of the face image is passed, at least one door lock of the car is unlocked; the user does not need to perform any operation throughout the process, and the equipment loss is small. When the owner approaches the vehicle, the door lock can be unlocked, which is more convenient to use.
  • 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 embodiment of the present disclosure also provides a specific example of a method for controlling unlocking of a vehicle door, including:
  • S401 In response to the image acquisition module of the car being awakened, acquire an image collected by the image acquisition module of the car.
  • S402 Detect whether the face image can be detected in the image collected within the first preset time after the image collection module is awakened; if not, skip to S403; if yes, skip to S404.
  • S403 Control the image acquisition module to enter a sleep state. Finish.
  • S404 Perform quality detection on the face image in the acquired image; the quality detection includes: brightness detection, head posture detection, blur degree detection, resolution detection, and occlusion degree detection.
  • S405 Determine whether the result of the quality inspection meets the preset condition within the second preset time; if not, skip to S403; if yes, skip to S406.
  • S406 Perform face detection based on the face image.
  • S407 Determine whether the face detection of the face image in the acquired image is passed within the third preset time after the image acquisition module is awakened; if not, skip to S403; if yes, skip to S408.
  • S408 Control the unlocking of at least one door lock of the vehicle. Finish.
  • the embodiment of the present disclosure also provides a device for controlling the unlocking of a vehicle door corresponding to the method for controlling the unlocking of a vehicle door. Because the device in the embodiment of the present disclosure solves the problem and the method for controlling the unlocking of the vehicle door described above in the embodiment of the present disclosure Similar, so the implementation of the device can refer to the implementation of the method, and the repetition will not be repeated.
  • FIG. 5 a schematic diagram of a device 5 for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure.
  • the device 5 includes: a response module 51, a quality detection module 52, a face detection module 53, and a vehicle lock control module 54 ;in,
  • the response module 51 is configured to acquire images collected by the image acquisition module of the car in response to the image acquisition module of the car being awakened;
  • the quality detection module 52 is configured to perform quality detection on the face image in the acquired image
  • the face detection module 53 is configured to perform face detection based on the face image when the result of the quality inspection meets a preset condition
  • the vehicle lock control module 54 is configured to control the unlocking of at least one door lock of the vehicle when the face detection of the face image passes.
  • the image acquired by the image acquisition module of the car in response to the image acquisition module of the car to be awakened, the image acquired by the image acquisition module of the car is acquired, and the quality inspection of the face image in the acquired image is performed; the result of the quality inspection conforms to the preset Under the conditions, face detection is based on the face image; if the face detection of the face image is passed, at least one door lock of the car is unlocked; the user does not need to perform any operation throughout the process, and the equipment loss is small. When the owner approaches the vehicle, the door can be unlocked, which is more convenient to use.
  • the device 5 for controlling unlocking of a vehicle door further includes: a first control module 55, configured to respond to the images captured within the first preset time after the image capture module is awakened If no face image is detected, the image acquisition module is controlled to enter a sleep state.
  • the device 5 for controlling unlocking of a vehicle door further includes: a prompt module 56 for outputting prompt information when the result of the quality inspection does not meet a preset condition.
  • the device 5 for controlling unlocking of a vehicle door further includes: a second control module 57 for controlling the The image acquisition module enters a sleep state.
  • the device 5 for controlling unlocking of the vehicle door further includes: a third control module 58 for responding to the image acquired within the third preset time after the image acquisition module is awakened The face detection of the face image in the image fails, and the image acquisition module is controlled to enter the dormant state.
  • the image acquisition module of the vehicle is awakened in at least one of the following situations: it is detected that the distance between the human body and the vehicle is less than a preset distance; the door unlocking instruction is received; the Bluetooth is placed on the vehicle The module searches for a Bluetooth device with a preset identification; the Bluetooth module placed in the car searches for a Bluetooth device with a preset identification and the pairing is successful.
  • the quality detection includes at least one of the following: brightness detection, head posture detection, blur degree detection, resolution detection, and occlusion degree detection.
  • the quality detection module 52 is configured to perform quality detection on the acquired face image based on the number of images in the face image. The pixel value of each pixel in the pixel points, determining the average brightness value of the multiple pixel points;
  • the average brightness value is greater than the first brightness threshold and less than the second brightness threshold, it is determined that the brightness detection result of the face image meets the brightness condition in the preset condition; wherein, the first brightness threshold Less than the second brightness threshold.
  • the quality detection module 52 is configured to perform quality detection on the face image acquired when performing quality detection on the face image. Perform head posture detection to obtain head posture information of the face in the face image; the head posture information includes: the pitch angle and the yaw angle of the face;
  • the head posture detection result of the face image meets the preset conditions. Head posture conditions.
  • the quality detection module 52 is configured to perform the quality detection on the acquired face image. Perform key point detection on the image to obtain position information of multiple key points in the face image in the face image;
  • the sharpness value of the face image is greater than the sharpness threshold value, it is determined that the blur degree detection result of the face image meets the sharpness condition in the preset condition.
  • the quality detection module 52 is configured to determine the sharpness value of the face image according to the position information of each key point in the plurality of key points, and use it to target each key point. Key points, according to the position information of each key point, determine multiple target pixels adjacent to the key point position;
  • the sharpness value of the face image is determined according to the sharpness value of each key point in the plurality of key points.
  • the quality detection module 52 is configured to perform quality detection on the face image when performing quality detection on the face image. Key point detection, to obtain the key point detection results corresponding to multiple key points in the face image;
  • the occlusion degree value is less than the occlusion degree value threshold, it is determined that the occlusion degree detection result of the face image meets the occlusion degree condition in the preset condition.
  • the face detection module 53 is configured to perform face detection on the face image by using a face detection model loaded offline when performing face detection based on the face image.
  • the device 5 for controlling unlocking of a vehicle door further includes: a loading module 59, configured to load the face detection model offline by using the following method:
  • the header file is statically compiled to load the face detection model offline.
  • the face detection module 53 is configured to perform face identity authentication and living body detection based on the face image when performing face detection based on the face image.
  • the embodiment of the present disclosure also provides a vehicle, including: a vehicle body and an image acquisition module provided on the vehicle body; the vehicle body is also provided with a vehicle control system;
  • the image acquisition module is used to acquire images
  • the vehicle control system is used to control the unlocking of the door lock on the vehicle body by adopting the method for controlling the unlocking of the vehicle according to any one of the embodiments of the present disclosure.
  • FIG. 6 is a schematic structural diagram of the computer device 6 provided by the embodiment of the present disclosure, including:
  • At least one door lock of the vehicle is controlled to be unlocked.
  • the embodiment of the present disclosure also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the steps of the method for controlling unlocking of a vehicle door described in the above method embodiment when the computer program is run by a processor .
  • the storage medium may be a volatile or non-volatile computer readable storage medium.
  • the computer program product of the method for controlling the unlocking of a vehicle door includes a computer-readable storage medium storing a program code, and the instructions included in the program code can be used to execute the control of the unlocking of the vehicle door described in the foregoing method embodiment
  • a computer-readable storage medium storing a program code
  • the instructions included in the program code can be used to execute the control of the unlocking of the vehicle door described in the foregoing method embodiment
  • the embodiments of the present disclosure also provide a computer program, the computer program including computer readable code, when the computer readable code runs in an electronic device, the processor of the electronic device executes the method for realizing the method described in any of the foregoing embodiments.
  • the computer program product can be specifically implemented by hardware, software, or a combination thereof.
  • the computer program product is specifically embodied as a computer storage medium.
  • the computer program product is specifically embodied as a software product, such as a software development kit (SDK). and many more.
  • SDK software development kit
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer readable storage medium executable by a processor.
  • the technical solution of the present disclosure essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
  • the present disclosure provides a method, device, vehicle, equipment, medium, and program for controlling unlocking of a car door; wherein, in response to the car's image collection module being awakened, the image collected by the car's image collection module is acquired; Perform quality detection on the face image in the image; perform face detection based on the face image if the result of the quality detection meets preset conditions; perform face detection on the face image In the case of passing, at least one door lock of the vehicle is controlled to be unlocked.

Abstract

A method and apparatus for controlling the unlocking of a vehicle door, and a vehicle, a device, a medium and a program. The method comprises: in response to the image acquisition module of a vehicle being awakened, obtaining an image acquired by the image acquisition module of the vehicle (S101); performing quality inspection on the face image in the obtained image (S102); when the result of the quality inspection meets a preset condition, performing face detection on the basis of the face image (S103); and when the face detection of the face image is passed, controlling at least one vehicle door lock of the vehicle to be unlocked (S104). In this way, according to the method for controlling the unlocking of a vehicle door, a user does not need to perform any operation throughout the entire process, and the device loss is low. A vehicle door can be automatically unlocked when a vehicle owner approaches a vehicle, and use is more convenient.

Description

控制车门解锁的方法、装置、车辆、设备、介质及程序Method, device, vehicle, equipment, medium and program for controlling unlocking of vehicle door
相关申请的交叉引用Cross-references to related applications
本公开基于申请号为202010355699.9、申请日为2020年04月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。The present disclosure is filed based on a Chinese patent application with an application number of 202010355699.9 and an application date of April 29, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is incorporated herein by reference.
技术领域Technical field
本公开涉及图像处理技术领域,具体而言,涉及一种控制车门解锁的方法、装置、车辆、设备、介质及程序。The present disclosure relates to the field of image processing technology, and in particular, to a method, device, vehicle, equipment, medium, and program for controlling unlocking of a vehicle door.
背景技术Background technique
当前汽车电子行业发展迅速,方便舒适的乘车体验受到用户愈来愈多的关注,其中,智能化的车门解锁是当前乘车体验的一大亮点。在相关技术中,经常会出现用户控制车门解锁不方便的现象。The current automotive electronics industry is developing rapidly, and the convenient and comfortable riding experience has attracted more and more attention from users. Among them, intelligent door unlocking is a highlight of the current riding experience. In related technologies, it is often inconvenient for the user to control the unlocking of the vehicle door.
发明内容Summary of the invention
本公开实施例至少提供一种控制车门解锁的方法、装置、车辆、设备、介质及程序。The embodiments of the present disclosure provide at least a method, device, vehicle, equipment, medium, and program for controlling unlocking of a vehicle door.
本公开实施例提供了一种控制车门解锁的方法,包括:The embodiment of the present disclosure provides a method for controlling unlocking of a vehicle door, including:
响应于车的图像采集模组被唤醒,获取所述车的图像采集模组采集的图像;In response to the image acquisition module of the car being awakened, acquiring the image collected by the image acquisition module of the car;
对获取的所述图像中的人脸图像进行质量检测;Performing quality detection on the face image in the acquired image;
在所述质量检测的结果符合预设条件的情况下,基于所述人脸图像进行人脸检测;In the case that the result of the quality detection meets the preset condition, performing face detection based on the face image;
在对所述人脸图像的人脸检测通过的情况下,控制所述车的至少一车门锁解锁。如此,响应于车的图像采集模组被唤醒,获取所述车的图像采集模组采集的图像,并对获取的图像中的人脸图像进行质量检测;在质量检测的结果符合预设条件的情况下,基于人脸图像进行人脸检测;在对人脸图像的人脸检测通过的情况下,车的至少一车门锁解锁;全程不需要用户执行任何操作,且设备损耗小,在车主靠近车辆的过程中就能够实现车门解锁,使用更加方便。In the case where the face detection of the face image passes, at least one door lock of the vehicle is controlled to be unlocked. In this way, in response to the car's image acquisition module being awakened, the image collected by the car's image acquisition module is acquired, and the quality of the face image in the acquired image is inspected; if the result of the quality inspection meets the preset conditions In this case, face detection is performed based on the face image; if the face detection of the face image passes, at least one door lock of the car is unlocked; the user does not need to perform any operation throughout the process, and the equipment loss is small. The door can be unlocked in the process of the vehicle, which is more convenient to use.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应于在所述图像采集模组被唤醒后的第一预设时间内采集到的图像中检测不到人脸图像,控制所述图像采集模组进入休眠状态。In response to that no human face image is detected in the image collected within the first preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter a sleep state.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
在所述质量检测的结果不符合预设条件的情况下,输出提示信息。In the case that the result of the quality inspection does not meet the preset condition, a prompt message is output.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应于在第二预设时间内所述质量检测的结果均不符合预设条件,控制所述图像采集模组进入休眠状态。In response to that none of the quality detection results meet the preset conditions within the second preset time, the image acquisition module is controlled to enter a dormant state.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应于在所述图像采集模组被唤醒后的第三预设时间内,获取的图像中的人脸图像的人脸检测均不通过,控制所述图像采集模组进入休眠状态。In response to the failure of the face detection of the face images in the acquired image within the third preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter the dormant state.
在一些实施例中,所述车的图像采集模组在以下至少一种情况下被唤醒:In some embodiments, the image acquisition module of the vehicle is awakened in at least one of the following situations:
检测到人体与车辆的距离小于预设距离;It is detected that the distance between the human body and the vehicle is less than the preset distance;
接收到车门解锁指令;Receiving a door unlocking instruction;
置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备;The Bluetooth module placed in the car searches for a Bluetooth device with a preset logo;
置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备并配对成功。The Bluetooth module placed in the car searches for a Bluetooth device with a preset identification and is successfully paired.
在一些实施例中,所述质量检测,包括下述至少一种:亮度检测、头部姿态检测、模糊程度检测、分辨率检测以及遮挡程度检测。In some embodiments, the quality detection includes at least one of the following: brightness detection, head posture detection, blur degree detection, resolution detection, and occlusion degree detection.
在一些实施例中,针对所述质量检测包括亮度检测的情况,所述对获取的所述人脸图像进行质量检测,包括:In some embodiments, for the case where the quality detection includes brightness detection, the quality detection on the acquired face image includes:
基于所述人脸图像中多个像素点中每个像素点的像素值,确定所述多个像素点的平均亮度值;Determining the average brightness value of the plurality of pixels based on the pixel value of each of the plurality of pixels in the face image;
在所述平均亮度值大于第一亮度阈值且小于第二亮度阈值的情况下,确定所述人脸图像的亮度检测结果符合所述预设条件中的亮度条件;其中,所述第一亮度阈值小于所述第二亮度阈值。In the case that the average brightness value is greater than the first brightness threshold and less than the second brightness threshold, it is determined that the brightness detection result of the face image meets the brightness condition in the preset condition; wherein, the first brightness threshold Less than the second brightness threshold.
在一些实施例中,针对所述质量检测包括头部姿态检测的情况,所述对获取的所述人脸图像进行质量检测,包括:In some embodiments, for the case where the quality detection includes head posture detection, the quality detection on the acquired face image includes:
对所述人脸图像进行头部姿态检测,得到所述人脸图像中人脸的头部姿态信息;所述头部姿态信息包括:人脸的俯仰角和偏航角;Performing head posture detection on the face image to obtain head posture information of the face in the face image; the head posture information includes: the pitch angle and the yaw angle of the face;
在所述俯仰角的绝对值小于俯仰角阈值且所述偏航角的绝对值小于偏航角阈值的情况下,确定所述人脸图像的头部姿态检测结果符合所述预设条件中的头部姿态条件。In the case where the absolute value of the pitch angle is less than the pitch angle threshold and the absolute value of the yaw angle is less than the yaw angle threshold, it is determined that the head posture detection result of the face image meets the preset conditions. Head posture conditions.
在一些实施例中,针对所述质量检测包括所述模糊程度检测的情况,所述对获取的所述人脸图像进行质量检测,包括:In some embodiments, for the case where the quality detection includes the blur degree detection, the quality detection on the acquired face image includes:
对所述人脸图像进行关键点检测,得到人脸图像中的多个关键点分别在所述人脸图像中的位置信息;Performing key point detection on the face image to obtain position information of multiple key points in the face image in the face image;
根据多个所述关键点中每个关键点的位置信息,确定所述人脸图像的清晰度值;Determine the sharpness value of the face image according to the position information of each key point in the plurality of key points;
在所述人脸图像的清晰度值大于清晰度阈值的情况下,确定所述人脸图像的模糊程度检测结果符合所述预设条件中的清晰度条件。In the case that the sharpness value of the face image is greater than the sharpness threshold value, it is determined that the blur degree detection result of the face image meets the sharpness condition in the preset condition.
在一些实施例中,所述根据多个所述关键点中每个关键点的位置信息,确定所述人脸图像的清晰度值,包括:In some embodiments, the determining the sharpness value of the face image according to the position information of each key point in the plurality of key points includes:
针对所述每个关键点,根据所述每个关键点的位置信息,确定多个与该关键点位置相邻的目标像素点;For each key point, determine a plurality of target pixels adjacent to the key point position according to the position information of each key point;
基于与所述每个关键点对应的各个目标像素点的像素值,确定所述每个关键点的清晰度值;Determine the sharpness value of each key point based on the pixel value of each target pixel point corresponding to each key point;
根据多个所述关键点中每个关键点的清晰度值,确定所述人脸图像的清晰度值。The sharpness value of the face image is determined according to the sharpness value of each key point in the plurality of key points.
在一些实施例中,针对所述质量检测包括遮挡程度检测的情况,所述对获取的所述人脸图像进行质量检测,包括:In some embodiments, for the case where the quality detection includes the detection of the degree of occlusion, the quality detection of the acquired face image includes:
对所述人脸图像进行关键点检测,得到人脸图像中的多个关键点分别对应的关键点检测结果;Performing key point detection on the face image to obtain key point detection results corresponding to multiple key points in the face image;
基于所述多个关键点分别对应的关键点检测结果,确定所述人脸图像的遮挡程度值;Determine the occlusion degree value of the face image based on the key point detection results respectively corresponding to the multiple key points;
在所述遮挡程度值小于遮挡程度值阈值的情况下,确定所述人脸图像的遮挡程度检测结果符合所述预设条件中的遮挡程度条件。In the case that the occlusion degree value is less than the occlusion degree value threshold, it is determined that the occlusion degree detection result of the face image meets the occlusion degree condition in the preset condition.
在一些实施例中,所述基于所述人脸图像进行人脸检测,包括:In some embodiments, the performing face detection based on the face image includes:
利用离线加载的人脸检测模型对所述人脸图像进行人脸检测。The face detection is performed on the face image by using the face detection model loaded offline.
在一些实施例中,采用下述方法离线加载所述人脸检测模型:In some embodiments, the following method is used to load the face detection model offline:
将所述人脸检测模型由加密模式转换为明文模式,并将转换为明文模式的人脸检测模型写入车锁控制系统的头文件中;Converting the face detection model from an encryption mode to a plain text mode, and writing the face detection model converted to the plain text mode into a header file of the car lock control system;
对所述头文件进行静态编译,以对所述人脸检测模型进行离线加载。The header file is statically compiled to load the face detection model offline.
在一些实施例中,所述基于所述人脸图像进行人脸检测,包括:In some embodiments, the performing face detection based on the face image includes:
基于所述人脸图像进行人脸身份认证以及活体检测。Perform face identity authentication and living body detection based on the face image.
本公开实施例还提供一种控制车门解锁的装置,包括:The embodiment of the present disclosure also provides a device for controlling unlocking of a vehicle door, including:
响应模块,用于响应于车的图像采集模组被唤醒,获取所述车的图像采集模组采集的图像;The response module is used to obtain the image collected by the image acquisition module of the car in response to the image acquisition module of the car being awakened;
质量检测模块,用于对获取的所述图像中的人脸图像进行质量检测;A quality detection module, configured to perform quality detection on the face image in the acquired image;
人脸检测模块,用于在所述质量检测的结果符合预设条件的情况下,基于所述人脸图像进行人脸检测;A face detection module, configured to perform face detection based on the face image when the result of the quality detection meets a preset condition;
车锁控制模块,用于在对所述人脸图像的人脸检测通过的情况下,控制所述车的至少一车门锁解锁。The vehicle lock control module is used to control the unlocking of at least one door lock of the vehicle when the face detection of the face image passes.
在一些实施例中,所述控制车门解锁的装置还包括:In some embodiments, the device for controlling unlocking of a vehicle door further includes:
第一控制模块,用于响应于在所述图像采集模组被唤醒后的第一预设时间内采集到的图像中检测不到人脸图像,控制所述图像采集模组进入休眠状态。The first control module is configured to control the image acquisition module to enter the dormant state in response to that no face image is detected in the image collected within the first preset time after the image acquisition module is awakened.
在一些实施例中,所述控制车门解锁的装置还包括:In some embodiments, the device for controlling unlocking of a vehicle door further includes:
提示模块,用于在所述质量检测的结果不符合预设条件的情况下,输出提示信息。The prompt module is used to output prompt information when the result of the quality inspection does not meet the preset condition.
在一些实施例中,所述控制车门解锁的装置还包括:In some embodiments, the device for controlling unlocking of a vehicle door further includes:
第二控制模块,用于响应于在第二预设时间内所述质量检测的结果均不符合预设条件,控制所述图像采集模组进入休眠状态。The second control module is configured to control the image acquisition module to enter the dormant state in response to the quality inspection results failing to meet the preset conditions within the second preset time.
在一些实施例中,所述控制车门解锁的装置还包括:In some embodiments, the device for controlling unlocking of a vehicle door further includes:
第三控制模块,用于响应于在所述图像采集模组被唤醒后的第三预设时间内,获取的图像中的人脸图像的人脸检测均不通过,控制所述图像采集模组进入休眠状态。The third control module is configured to control the image acquisition module in response to the failure of the face detection of the facial image in the acquired image within the third preset time after the image acquisition module is awakened Go to sleep.
在一些实施例中,所述车的图像采集模组在以下至少一种情况下被唤醒:In some embodiments, the image acquisition module of the vehicle is awakened in at least one of the following situations:
检测到人体与车辆的距离小于预设距离;It is detected that the distance between the human body and the vehicle is less than the preset distance;
接收到车门锁解锁指令;Received the door lock unlock command;
置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备;The Bluetooth module placed in the car searches for a Bluetooth device with a preset logo;
置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备并配对成功。The Bluetooth module placed in the car searches for a Bluetooth device with a preset identification and is successfully paired.
在一些实施例中,所述质量检测,包括下述至少一种:亮度检测、头部姿态检测、模糊程度检测、分辨率检测以及遮挡程度检测。In some embodiments, the quality detection includes at least one of the following: brightness detection, head posture detection, blur degree detection, resolution detection, and occlusion degree detection.
在一些实施例中,针对所述质量检测包括亮度检测的情况,所述质量检测模块,在对获取的所述人脸图像进行质量检测时,用于基于所述人脸图像中多个像素点中每个像素点的像素值,确定所述多个像素点的平均亮度值;In some embodiments, for the case where the quality detection includes brightness detection, the quality detection module is configured to perform quality detection on the acquired face image based on multiple pixels in the face image. The pixel value of each pixel in, determine the average brightness value of the multiple pixels;
在所述平均亮度值大于第一亮度阈值且小于第二亮度阈值的情况下,确定所述人脸图像的亮度检测结果符合所述预设条件中的亮度条件;其中,所述第一亮度阈值小于所述第二亮度阈值。In the case that the average brightness value is greater than the first brightness threshold and less than the second brightness threshold, it is determined that the brightness detection result of the face image meets the brightness condition in the preset condition; wherein, the first brightness threshold Less than the second brightness threshold.
在一些实施例中,针对所述质量检测包括头部姿态检测的情况,所述质量检测模块,在对获取的所述人脸图像进行质量检测时,用于对所述人脸图像进行头部姿态检测,得到所述人脸图像中人脸的头部姿态信息;所述头部姿态信息包括:人脸的俯仰角和偏航角;In some embodiments, for the case where the quality detection includes head posture detection, the quality detection module is used to perform head-level detection on the face image when performing quality detection on the acquired face image. Posture detection to obtain the head posture information of the face in the face image; the head posture information includes: the pitch angle and the yaw angle of the face;
在所述俯仰角的绝对值小于俯仰角阈值且所述偏航角的绝对值小于偏航角阈值的情况下,确定所述人脸图像的头部姿态检测结果符合所述预设条件中的头部姿态条件。In the case where the absolute value of the pitch angle is less than the pitch angle threshold and the absolute value of the yaw angle is less than the yaw angle threshold, it is determined that the head posture detection result of the face image meets the preset conditions. Head posture conditions.
在一些实施例中,针对所述质量检测包括所述模糊程度检测的情况,所述质量检测模块,在对获取的所述人脸图像进行质量检测时,用于对所述人脸图像进行关键点检测,得到人脸图像中的多个关键点分别在所述人脸图像中的位置信息;In some embodiments, for the case where the quality detection includes the detection of the degree of blurring, the quality detection module is configured to perform a key function on the face image when performing quality detection on the acquired face image. Point detection to obtain position information of multiple key points in the face image in the face image;
根据多个所述关键点中每个关键点的位置信息,确定所述人脸图像的清晰度值;Determine the sharpness value of the face image according to the position information of each key point in the plurality of key points;
在所述人脸图像的清晰度值大于清晰度阈值的情况下,确定所述人脸图像的模糊程度检测结果符合所述预设条件中的清晰度条件。In the case that the sharpness value of the face image is greater than the sharpness threshold value, it is determined that the blur degree detection result of the face image meets the sharpness condition in the preset condition.
在一些实施例中,所述质量检测模块,在根据多个所述关键点中每个关键点的位置信息,确定所述人脸图像的清晰度值时,用于针对所述每个关键点,根据所述每个关键点的位置信息,确定多个与该关键点位置相邻的目标像素点;In some embodiments, the quality detection module is configured to determine the sharpness value of the face image according to the position information of each key point in the plurality of key points, , According to the position information of each key point, determine a plurality of target pixels adjacent to the key point position;
基于与所述每个关键点对应的各个目标像素点的像素值,确定所述每个关键点的清晰度值;Determine the sharpness value of each key point based on the pixel value of each target pixel point corresponding to each key point;
根据多个所述关键点中每个关键点的清晰度值,确定所述人脸图像的清晰度值。The sharpness value of the face image is determined according to the sharpness value of each key point in the plurality of key points.
在一些实施例中,针对所述质量检测包括遮挡程度检测的情况,所述质量检测模块,在对获取的所述人脸图像进行质量检测时,用于对所述人脸图像进行关键点检测,得到人脸图像中的多个关键点分别对应的关键点检测结果;In some embodiments, for the case where the quality detection includes detection of the degree of occlusion, the quality detection module is used to perform key point detection on the face image when performing quality detection on the acquired face image , To obtain the key point detection results corresponding to multiple key points in the face image;
基于所述多个关键点分别对应的关键点检测结果,确定所述人脸图像的遮挡程度值;Determine the occlusion degree value of the face image based on the key point detection results respectively corresponding to the multiple key points;
在所述遮挡程度值小于遮挡程度值阈值的情况下,确定所述人脸图像的遮挡程度检测结果符合所述预设条件中的遮挡程度条件。In the case that the occlusion degree value is less than the occlusion degree value threshold, it is determined that the occlusion degree detection result of the face image meets the occlusion degree condition in the preset condition.
在一些实施例中,所述人脸检测模块,在基于所述人脸图像进行人脸检测时,用于利用离线加载的人脸检测模型对所述人脸图像进行人脸检测。In some embodiments, the face detection module is configured to perform face detection on the face image by using a face detection model loaded offline when performing face detection based on the face image.
在一些实施例中,所述控制车门解锁的装置还包括:In some embodiments, the device for controlling unlocking of a vehicle door further includes:
加载模块,用于采用下述方法离线加载所述人脸检测模型:The loading module is used to load the face detection model offline using the following method:
将所述人脸检测模型由加密模式转换为明文模式,并将转换为明文模式的人脸检测模型写入车锁控制系统的头文件中;Converting the face detection model from an encryption mode to a plain text mode, and writing the face detection model converted to the plain text mode into a header file of the car lock control system;
对所述头文件进行静态编译,以对所述人脸检测模型进行离线加载。The header file is statically compiled to load the face detection model offline.
在一些实施例中,所述人脸检测模块,在基于所述人脸图像进行人脸检测时,用于基于所述人脸图像进行人脸身份认证以及活体检测。In some embodiments, the face detection module is used to perform face identity authentication and living body detection based on the face image when performing face detection based on the face image.
本公开实施例提供一种车辆,包括:车辆主体和设置在车辆主体上的图像采集模组;所述车辆主体中还设置有车辆控制系统;The embodiment of the present disclosure provides a vehicle, including: a vehicle body and an image acquisition module provided on the vehicle body; the vehicle body is also provided with a vehicle control system;
所述图像采集模组用于采集图像;The image acquisition module is used to acquire images;
所述车辆控制系统用于采用如上述实施例中任一项所述的控制车辆解锁的方法,控制所述车辆主体上的车门锁解锁。The vehicle control system is used to control the unlocking of the door lock on the vehicle body by using the method for controlling the unlocking of the vehicle as described in any one of the above embodiments.
本公开实施例还提供一种电子设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器用于执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时,所述机器可读指令被所述处理器执行时执行上述实施例,或上述实施例中任一种可能的实施方式中的步骤。An embodiment of the present disclosure also provides an electronic device, including a processor and a memory, the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory. When the machine-readable instruction is executed by the processor, the machine-readable instruction executes the steps in the foregoing embodiment or any possible implementation of the foregoing embodiment when the machine-readable instruction is executed by the processor.
本公开还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被运行时执行上述实施例,或上述实施例中任一种可能的实施方式中的步骤。The present disclosure also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the steps in the above-mentioned embodiment or any possible implementation of the above-mentioned embodiment when the computer program is run. .
本公开实施例提供了一种计算机程序,所述计算机程序包括计算机可读代码,在所述计算机可读代码在计算机中运行的情况下,使得所述计算机执行上述任意一种控制车门解锁的方法。The embodiment of the present disclosure provides a computer program, the computer program includes computer-readable code, in the case that the computer-readable code runs in a computer, the computer is caused to execute any of the above-mentioned methods for controlling unlocking of a vehicle door .
本公开提供了一种控制车门解锁的方法、装置、车辆、设备、介质及程序;该方法包括:响应于车的图像采集模组被唤醒,获取车的图像采集模组采集的图像;对获取的图像中的人脸图像进行质量检测;在质量检测的结果符合预设条件的情况下,基于人脸图像进行人脸检测;在对人脸图像的人脸检测通过的情况下,控制车的至少一车门锁解锁。如此,在本公开实施例中,控制车门解锁的方法全程不需要用户执行任何操作,且设备损耗小,在车主靠近车辆的过程中就能够实现车门的自动解锁,使用更加方便。The present disclosure provides a method, a device, a vehicle, equipment, a medium, and a program for controlling unlocking of a car door; the method includes: in response to a car's image collection module being awakened, acquiring an image collected by the car's image collection module; Perform quality detection on the face image in the image; when the result of the quality detection meets the preset conditions, perform face detection based on the face image; when the face detection of the face image passes, control the car’s At least one door lock is unlocked. In this way, in the embodiment of the present disclosure, the method for controlling the unlocking of the vehicle door does not require the user to perform any operation throughout the entire process, and the equipment is low in loss. The vehicle door can be automatically unlocked when the vehicle owner approaches the vehicle, which is more convenient to use.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above objectives, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with accompanying drawings are described in detail as follows.
附图说明Description of the drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the drawings that need to be used in the embodiments. The drawings here are incorporated into the specification and constitute a part of the specification. The figure shows an embodiment conforming to the present disclosure, and is used together with the description to explain the technical solution of the present disclosure. It should be understood that the following drawings only show certain embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, they can also Obtain other related drawings based on these drawings.
图1示出了本公开实施例所提供的一种控制车门解锁的方法的流程图;Fig. 1 shows a flowchart of a method for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure;
图2示出了应用本公开实施例的控制车门解锁的方法的一种系统架构示意图;FIG. 2 shows a schematic diagram of a system architecture applying the method for controlling unlocking of a vehicle door according to an embodiment of the present disclosure;
图3示出了本公开实施例所提供的一种图像采集模组与人体的相互关系的示例图;FIG. 3 shows an exemplary diagram of the relationship between an image acquisition module and a human body provided by an embodiment of the present disclosure;
图4示出了本公开实施例所提供的一种控制车门解锁的方法的具体示例图;FIG. 4 shows a specific example diagram of a method for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的一种控制车门解锁的装置的结构示意图;FIG. 5 shows a schematic structural diagram of a device for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的一种电子设备的结构示意图。Fig. 6 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are a part of the embodiments of the present disclosure, but not all of the embodiments. The components of the embodiments of the present disclosure generally described and illustrated in the drawings herein may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed present disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present disclosure.
经研究发现,当前汽车电子行业发展迅速,方便舒适的乘车体验受到用户愈来愈多的关注;其中,智能化的车门解锁是当前乘车体验的一大亮点。目前车门解锁有如下两种方式:Studies have found that the current automotive electronics industry is developing rapidly, and users are paying more and more attention to the convenient and comfortable riding experience; among them, intelligent door unlocking is a highlight of the current riding experience. There are currently two ways to unlock the door:
1)车钥匙解锁;例如车主随身携带能够无线操控车锁的车钥匙;在车主靠近汽车一定距离的时候,利用车钥匙无线控制车门解锁。这种方式需要车主随身携带车钥匙,一旦车钥匙丢失就无法解锁车锁;且车钥匙通常较大,携带累赘;进而该方法不方便用户使用。1) Unlock the car key; for example, the car owner carries a car key that can wirelessly control the car lock; when the car owner is close to the car for a certain distance, the car key is used to wirelessly control the unlocking of the car door. This method requires the car owner to carry the car key with him, and once the car key is lost, the car lock cannot be unlocked; and the car key is usually large and cumbersome to carry; and this method is not convenient for the user to use.
2)指纹解锁;在汽车上设置指纹识别设备;通过指纹识别设备预先录入车主的指纹,在认证时,车主通过指纹识别设备进行指纹认证匹配。这种解锁方式虽然不需要车主随身携带车钥匙,但指纹识别设备容易磨损,在使用时设备损耗大,随着使用次数增多,可能导致用户无法一次解锁,需要用户反复输入指纹进行验证,因而也不方便用户使用。2) Fingerprint unlocking; set up a fingerprint recognition device on the car; pre-enter the fingerprint of the car owner through the fingerprint recognition device, and during authentication, the car owner uses the fingerprint recognition device to perform fingerprint authentication matching. Although this unlocking method does not require the owner to carry the car key, the fingerprint identification device is easy to wear, and the device wears a lot during use. As the number of uses increases, the user may not be able to unlock it at one time, requiring the user to repeatedly input fingerprints for verification. It is not convenient for users to use.
针对以上方案所存在的缺陷,均是发明人在经过实践并仔细研究后得出的结果,因此,上述问题的发现过程以及下文中本公开针对上述问题所提出的解决方案,都应该是发明人在本公开过程中对本公开做出的贡献。The defects in the above solutions are all the results of the inventors after practice and careful study. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure below for the above problems should be the inventors. Contributions made to this disclosure in the course of this disclosure.
基于上述研究,本公开提供了一种控制车门解锁的方法、装置、车辆、设备、介质及程序,通过响应于车的图像采集模组被唤醒,获取车的图像采集模组采集的图像,并对获取的图像中的人脸图像进行质量检测;在质量检测的结果符合预设条件的情况下,基于人脸图像进行人脸检测;在对人脸图像的人脸检测通过的情况下,控制车的至少一车门锁解锁;如此,全程不需要用户执行任何操作,且设备损耗小,在车主靠近车辆的过程中就能够实现车门解锁,使用更加方便。Based on the above research, the present disclosure provides a method, device, vehicle, equipment, medium, and program for controlling unlocking of a car door. By responding to the car's image acquisition module being awakened, the image collected by the car's image acquisition module is acquired, and Perform quality inspection on the face image in the acquired image; if the result of the quality inspection meets the preset conditions, perform face detection based on the face image; if the face image of the face image passes the face detection, control At least one door lock of the vehicle is unlocked; in this way, the user does not need to perform any operation during the whole process, and the equipment loss is small. The door can be unlocked when the owner approaches the vehicle, which is more convenient to use.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that similar reference numerals and letters indicate similar items in the following figures. Therefore, once a certain item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种控制车门解锁的方法进行详细介绍,本公开实施例所提供的控制车门解锁的方法的执行主体一般为具有一定计算能力的计算机设备,该计算机设备例如包括:终端设备、服务器或其它处理设备,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)、手持设备、计算设备以及可穿戴设备等;其他处理设备例如为与车辆一体设置的车辆控制系统。在一些可能的实现方式中,该控制车门解锁的方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of this embodiment, first, a method for controlling unlocking of a vehicle door disclosed in an embodiment of the present disclosure will be introduced in detail. The execution subject of the method for controlling unlocking of a vehicle door provided by the embodiment of the present disclosure is generally a computer with certain computing capabilities. Equipment, the computer equipment includes, for example, terminal equipment, servers or other processing equipment. The terminal equipment may be User Equipment (UE), mobile equipment, user terminal, terminal, cellular phone, cordless phone, personal digital processing (Personal Digital Assistant, PDA), handheld devices, computing devices, wearable devices, etc.; other processing devices are, for example, a vehicle control system integrated with the vehicle. In some possible implementation manners, the method for controlling unlocking of a vehicle door may be implemented by a processor invoking a computer-readable instruction stored in a memory.
一种可能的实施方式中,针对执行主体为服务器的情况,车辆控制系统能够与服务器进行无线通讯;车辆控制系统在监测到有人靠近车辆后,控制安装在车辆上的图像采集模组获取图像,并将该图像发送至服务器;服务器基于获取的图像,执行本公开实施例提供的控制车门解锁的方法,并通过向车辆控制系统下达开锁指令以控制车门解锁。这样,通过服务器与车辆控制系统之间的交互实现了车门解锁,方便用户使用;另外控制车门解锁的主要计算任务在服务器执行,使得车辆控制系统对硬件的需求降低,有效降低车辆成本。In a possible implementation manner, for the case where the execution subject is a server, the vehicle control system can communicate with the server wirelessly; after detecting that a person is approaching the vehicle, the vehicle control system controls the image acquisition module installed on the vehicle to acquire images, And send the image to the server; based on the acquired image, the server executes the method for controlling the unlocking of the vehicle door provided by the embodiment of the present disclosure, and controls the unlocking of the vehicle door by issuing an unlocking instruction to the vehicle control system. In this way, the door unlocking is realized through the interaction between the server and the vehicle control system, which is convenient for users; in addition, the main calculation task of controlling the unlocking of the vehicle door is executed on the server, which reduces the hardware requirements of the vehicle control system and effectively reduces the vehicle cost.
另一种可能的实施方式中,针对执行主体为终端设备的情况,终端设备能够与车辆控制系统进行无线通讯;车辆控制系统在监测到有人靠近车辆后,控制安装在车辆上的图像采集模组获取图像,并将图像发送至终端设备;终端设备基于车辆控制系统发送的图像,执行本公开实施例提供的控制车门解锁的方法,并通过向车辆控制系统下达开锁指令以控制车门解锁。In another possible implementation manner, for the case where the execution subject is a terminal device, the terminal device can communicate with the vehicle control system wirelessly; the vehicle control system controls the image acquisition module installed on the vehicle after detecting that someone is approaching the vehicle The image is acquired and sent to the terminal device; the terminal device executes the method for controlling door unlocking provided by the embodiments of the present disclosure based on the image sent by the vehicle control system, and controls the unlocking of the door by issuing an unlock command to the vehicle control system.
或者,终端设备在监测到其与车辆之间的距离小于预设距离后,控制安装在终端设备上的图像采集模组获取图像,基于该图像执行本公开实施例提供的控制车门解锁的方法;并通过向车辆控制系统下达开锁指令以控制车门解锁。Or, after the terminal device monitors that the distance between it and the vehicle is less than the preset distance, it controls the image acquisition module installed on the terminal device to acquire an image, and executes the method for controlling the unlocking of the door provided by the embodiment of the present disclosure based on the image; And by issuing an unlock command to the vehicle control system to control the unlocking of the door.
这样,由于终端设备本身为用户的常用的随身设备,基于用户常用的随身设备进行车门解锁,既不需要用户携带额外的车钥匙,又方便用户随时控制车门解锁,使用更加的方便。In this way, since the terminal device itself is a user's commonly used portable device, the door is unlocked based on the user's commonly used portable device, which not only does not require the user to carry an additional car key, but also facilitates the user to control the unlocking of the door at any time, which is more convenient to use.
在另一种可能的实施方式中,针对执行主体为车辆控制系统的情况,车辆控制系统能够实时监测车主是否靠近车辆;在监测到车主靠近车辆后,控制安装在车辆上的图像采集模组获取图像,并基于该图像执行本公开实施例提供的控制车门解锁的方法。In another possible implementation, for the case where the execution subject is the vehicle control system, the vehicle control system can monitor in real time whether the vehicle owner is close to the vehicle; after detecting that the vehicle owner is close to the vehicle, control the image acquisition module installed on the vehicle to acquire The method for controlling the unlocking of the vehicle door provided by the embodiment of the present disclosure is executed based on the image.
这样,通过车辆控制系统控制车门解锁,用户不需要执行任何的操作,也不需要携带控制车门解锁的钥匙,使用方便快捷。In this way, the unlocking of the door is controlled by the vehicle control system, and the user does not need to perform any operations, nor does it need to carry a key to control the unlocking of the door, which is convenient and quick to use.
另外,需要注意的是,本公开实施例所提供的控制车门解锁的方法还可以有其他的执行主体,或者执行主体与其他主体之间进行交互的方式来控制车门解锁,这里不再赘述。In addition, it should be noted that the method for controlling the unlocking of the vehicle door provided by the embodiment of the present disclosure may also have other execution subjects, or the manner of interaction between the execution subject and other subjects to control the unlocking of the vehicle doors, which will not be repeated here.
下面以执行主体为车辆控制系统为例对本公开实施例提供的控制车门解锁的方法加以说明。Hereinafter, the method for controlling unlocking of the vehicle door provided by the embodiment of the present disclosure will be described by taking the execution subject as the vehicle control system as an example.
参见图1所示,为本公开实施例提供的控制车门解锁的方法的流程图,所述方法包括步骤S101至S104,其中:Referring to FIG. 1, it is a flowchart of a method for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure. The method includes steps S101 to S104, wherein:
S101:响应于车的图像采集模组被唤醒,获取车的图像采集模组采集的图像。S101: In response to the image acquisition module of the car being awakened, acquire an image collected by the image acquisition module of the car.
S102:对获取的图像中的人脸图像进行质量检测。S102: Perform quality detection on the face image in the acquired image.
S103:在质量检测的结果符合预设条件的情况下,基于人脸图像进行人脸检测。S103: In the case that the result of the quality detection meets the preset condition, perform face detection based on the face image.
S104:在对人脸图像的人脸检测通过的情况下,控制车的至少一车门锁解锁。S104: Control the unlocking of at least one door lock of the vehicle when the face detection of the face image passes.
图2为可以应用本公开实施例提供的控制车门解锁的方法的一种系统架构示意图;如图2所示,该系统架构中包括:车辆终端201、网络202和控制车门解锁端203。为实现支撑一个示例性应用,车辆终端201和控制车门解锁端203通过网络202建立通信连 接,车辆终端201通过网络202向控制车门解锁端设备203上报图像采集模组采集的图像,控制车门解锁端设备203响应于接收到的图像,基于该图像,对图像中的人脸图像进行质量检测;在质量检测的结果符合预设条件的情况下,基于人脸图像进行人脸检测;在对人脸图像的人脸检测通过的情况下,控制车的至少一车门锁解锁。最后,控制车门解锁端203将该车门解锁信息上传至网络202,并通过网络202发送给车辆终端201。FIG. 2 is a schematic diagram of a system architecture that can apply the method for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure; as shown in FIG. In order to support an exemplary application, the vehicle terminal 201 and the door unlocking terminal 203 establish a communication connection through the network 202. The vehicle terminal 201 reports the images collected by the image acquisition module to the door unlocking terminal device 203 through the network 202, and controls the door unlocking terminal. In response to the received image, the device 203 performs quality detection on the face image in the image based on the image; when the quality detection result meets the preset conditions, performs face detection based on the face image; When the face detection of the image passes, at least one door lock of the control car is unlocked. Finally, the door unlocking terminal 203 is controlled to upload the door unlocking information to the network 202, and send it to the vehicle terminal 201 via the network 202.
作为示例,车辆终端201可以包括车载图像采集设备,控制车门解锁端203可以包括具有视觉信息处理能力的车载视觉处理设备或远程服务器。网络202可以采用有线连接或无线连接方式。其中,当控制车门解锁端为车载视觉处理设备时,车辆终端201可以通过有线连接的方式与车载视觉处理设备通信连接,例如通过总线进行数据通信;当控制车门解锁端为远程服务器时,车辆终端201可以通过无线网络与远程服务器进行数据交互。As an example, the vehicle terminal 201 may include a vehicle-mounted image acquisition device, and the control door unlocking terminal 203 may include a vehicle-mounted visual processing device or a remote server with visual information processing capabilities. The network 202 may adopt a wired connection or a wireless connection. Among them, when the control door unlocking terminal is a vehicle-mounted visual processing device, the vehicle terminal 201 can communicate with the vehicle-mounted visual processing device through a wired connection, such as data communication through a bus; when the control door unlocking terminal is a remote server, the vehicle terminal 201 can exchange data with a remote server through a wireless network.
或者,在一些场景中,车辆终端201可以是带有车载图像采集模组的车载视觉处理设备,具体实现为带有摄像头的车载主机。这时,本公开实施例的控制车门解锁的方法可以由车辆终端201执行,上述系统架构可以不包含网络202和控制车门解锁端203。Or, in some scenarios, the vehicle terminal 201 may be a vehicle-mounted vision processing device with a vehicle-mounted image acquisition module, which is specifically implemented as a vehicle-mounted host with a camera. At this time, the method for controlling the unlocking of the vehicle door in the embodiment of the present disclosure may be executed by the vehicle terminal 201, and the above-mentioned system architecture may not include the network 202 and the terminal 203 for controlling the unlocking of the vehicle door.
下面对上述S101至S104分别加以详细说明。The above S101 to S104 are respectively described in detail below.
I:在上述S101中,车的图像采集模组在以下a1至a4至少一种情况下被唤醒:I: In the above S101, the image acquisition module of the car is awakened under at least one of the following conditions a1 to a4:
a1:检测到人体与车辆的距离小于预设距离。a1: It is detected that the distance between the human body and the vehicle is less than the preset distance.
在该种情况下,例如可以在车辆上设置红外传感器、测距传感器等,通过红外传感器和/或测距传感传感器检测是否有人体与车辆的距离小于预设距离。In this case, for example, an infrared sensor, a distance measuring sensor, etc. may be provided on the vehicle, and the infrared sensor and/or the distance measuring sensor sensor can detect whether the distance between the human body and the vehicle is less than the preset distance.
又例如,可以通过近距离无线通信技术,如紫蜂(Zigbee)、射频识别技术(Radio Frequency Identification,RFID)等实时监测是否能够检测到车主随身携带的移动终端,如手机、智能手环等;由于短程通信的通信距离通常比较有限,因此在能够检测到车主的智能设备时,意味着车主的智能设备已经进入到车辆的一定距离以内;此时认为车主与车辆的距离已经小于预设距离。这样,检测到人体与车辆的距离小于预设距离能够激活车门锁解锁过程,能够对对车主进行针对性的检测,减少由于除车主以外的其他人靠近车辆时的检测。For another example, short-range wireless communication technologies, such as Zigbee, Radio Frequency Identification (RFID), etc., can be used to monitor in real time whether the mobile terminal carried by the vehicle owner, such as mobile phones, smart bracelets, etc., can be detected; Since the communication distance of short-range communication is usually relatively limited, when the smart device of the vehicle owner can be detected, it means that the smart device of the vehicle owner has entered within a certain distance of the vehicle; at this time, the distance between the vehicle owner and the vehicle is considered to be less than the preset distance. In this way, detecting that the distance between the human body and the vehicle is less than the preset distance can activate the door lock unlocking process, and can perform targeted detection of the vehicle owner, and reduce the detection when people other than the vehicle owner are approaching the vehicle.
具体的预设距离可以根据实际的需要进行设定。The specific preset distance can be set according to actual needs.
a2:接收到车门锁解锁指令。a2: Received a door lock unlock command.
此处,车门锁解锁指令例如为语音指令;用户可以预先在车辆控制系统中录入语音;在接收到与该语音匹配的语音指令后,即认为要唤醒车的图像采集模组;该语音指令又例如为预先设置的语音;如用户可以为车辆设定名称;车辆控制系统会实时监测外界语音;当检测到的语音中包含车辆的名称时,则认为要唤醒车的图像采集模组。Here, the door lock unlocking instruction is, for example, a voice instruction; the user can record the voice in the vehicle control system in advance; after receiving the voice instruction that matches the voice, it is considered that the image acquisition module of the car is to be awakened; the voice instruction is again For example, it is a preset voice; for example, the user can set a name for the vehicle; the vehicle control system will monitor the external voice in real time; when the detected voice contains the name of the vehicle, it is considered that the image collection module of the car should be awakened.
该语音指令又例如为通过其他设备发送的指令,如用户通过随身携带的移动终端,如手机、智能手环等发送的指令;如此,接收车门锁解锁指令能够方便用户对车锁的解锁过程进行控制。The voice instruction is, for example, an instruction sent through other devices, such as an instruction sent by a user through a portable mobile terminal, such as a mobile phone, smart bracelet, etc.; in this way, receiving a door lock unlocking instruction can facilitate the user to unlock the car lock. control.
具体的车锁控制指令还有其他的接收方式,具体这里不再赘述。There are other ways to receive specific vehicle lock control commands, and the details are not repeated here.
a3:置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备。a3: The Bluetooth module placed in the car searches for a Bluetooth device with a preset logo.
此处,蓝牙设备例如为用户随身携带的移动终端,如手机、智能手环等。设置在车上的蓝牙搜索模块会周期性的搜索附近存在具有预设标识的蓝牙设备,若搜索到,则唤醒车的图像采集模组。Here, the Bluetooth device is, for example, a mobile terminal carried by the user, such as a mobile phone, a smart bracelet, and the like. The Bluetooth search module installed in the car will periodically search for nearby Bluetooth devices with a preset identifier, and if found, wake up the car's image acquisition module.
a4:置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备并配对成功。a4: The Bluetooth module placed in the car has searched for a Bluetooth device with a preset logo and paired successfully.
此处,在置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备并配对成功后,唤醒车的图像采集模组,车辆控制系统通过安装在车辆上的图像采集模组获取图像;此时,所获取的图像中,可能包括人脸,也可能不包括人脸。因此,在一种可能的实施方式中,首先对获取的图像进行人脸截取处理;若能够从中获取到人脸图像,则执行后续步骤; 若无法从中截取到人脸图像,则再次控制图像采集模组获取图像。此处,图像采集模组例如包括双目摄像头、三维摄像头中至少一种。图像采集模组的安装位置例如为汽车B柱;如此,通过置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备能够方便车辆精确识别车主。Here, after the Bluetooth module placed on the car searches for a Bluetooth device with a preset logo and the pairing is successful, the image acquisition module of the car is awakened, and the vehicle control system acquires the image through the image acquisition module installed on the vehicle; At this time, the acquired image may or may not include human faces. Therefore, in a possible implementation manner, first perform face interception processing on the acquired image; if the face image can be obtained therefrom, perform the subsequent steps; if the face image cannot be intercepted from it, control the image acquisition again The module acquires the image. Here, the image acquisition module includes, for example, at least one of a binocular camera and a three-dimensional camera. The installation location of the image acquisition module is, for example, a car B-pillar; in this way, searching for a Bluetooth device with a preset identifier through the Bluetooth module placed on the car can facilitate the vehicle to accurately identify the owner.
在另一种可能的实施方式中,车辆控制系统通过安装在车辆上的图像采集模组获取持续时长为预设时长的视频;该视频中包括多张图像;可以对多张视频中的图像进行筛选,例如对视频中多张图像分别进行人脸截取处理;在该种情况下,例如可以获取至少一张人脸图像;当获取的人脸图像有多张时(可能是从同一张图像中截取的,也可能是从不同图像中截取的),将各得到的各张图像均作为S102中的人脸图像执行后续的处理。In another possible implementation manner, the vehicle control system obtains a video with a preset duration through an image acquisition module installed on the vehicle; the video includes multiple images; the image in the multiple videos can be processed Screening, for example, face interception processing is performed on multiple images in the video; in this case, for example, at least one face image can be obtained; when there are multiple face images (may be from the same image) The intercepted image may also be intercepted from different images), and each obtained image is used as the face image in S102 to perform subsequent processing.
在一种可能的实施方式中,本公开实施例还提供一种图像采集模组在车辆上具体安装方法的示例;如图3所示,图像采集模组拍摄视角的覆盖范围在垂直方向上,要覆盖1.4米-1.9米高的人群;图像采集模组的安装高度为1.5米;图像采集模组光轴的角度与车辆底盘所在平面的角度为向上偏2.5度,与垂直方向的角度为75度;所获得图像的分辨率为1280×960;其中1280为图像在垂直方向的尺寸。In a possible implementation manner, the embodiment of the present disclosure also provides an example of a specific installation method of the image capture module on the vehicle; as shown in FIG. 3, the coverage of the image capture module's shooting angle of view is in the vertical direction, To cover people with a height of 1.4 meters to 1.9 meters; the installation height of the image acquisition module is 1.5 meters; the angle of the optical axis of the image acquisition module and the plane of the vehicle chassis is up to 2.5 degrees, and the angle to the vertical is 75 Degrees; the resolution of the obtained image is 1280×960; where 1280 is the size of the image in the vertical direction.
需要注意的是,上述示例仅仅示出一种图像采集模组的安装方法;图像采集模组还可以根据车型、车辆高度以及车辆面向人群等,采取其他的安装方式,在此不再赘述。It should be noted that the above example only shows an installation method of the image acquisition module; the image acquisition module can also be installed in other ways according to the vehicle model, the height of the vehicle, and the vehicle facing the crowd, etc., which will not be repeated here.
在本公开另一实施例中,响应于在图像采集模组被唤醒后的第一预设时间内采集到的图像中检测不到人脸图像,控制所述图像采集模组进入休眠状态。如此,节省了图像采集模组长期处于工作状态所耗电量,同时也可使得图像采集模组执行误采集操作后快速进行关闭。In another embodiment of the present disclosure, in response to that no face image is detected in the image collected within the first preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter the dormant state. In this way, the power consumption of the image acquisition module in the working state for a long time is saved, and at the same time, the image acquisition module can be quickly shut down after performing an incorrect acquisition operation.
之后,可以采用其他方式来控制车门解锁,例如指纹检索、用户通过智能终端控制车门解锁等。After that, other methods can be used to control the unlocking of the door, such as fingerprint retrieval, and the user can control the unlocking of the door through a smart terminal.
II:在上述S102中,质量检测包括但不限于下述b1至b5中至少一种:II: In the above S102, the quality inspection includes but is not limited to at least one of the following b1 to b5:
b1:亮度检测。b1: Brightness detection.
在具体实施例中,例如可以采用下述方式对人脸图像进行亮度检测:In a specific embodiment, for example, the following methods may be used to detect the brightness of a face image:
基于人脸图像中多个像素点中每个像素点的像素值,确定多个像素点的平均亮度值。Based on the pixel value of each of the multiple pixels in the face image, the average brightness value of the multiple pixels is determined.
在平均亮度值大于第一亮度阈值且小于第二亮度阈值的情况下,确定人脸图像的亮度检测结果符合预设条件中的亮度条件;其中,第一亮度阈值小于第二亮度阈值。When the average brightness value is greater than the first brightness threshold and less than the second brightness threshold, it is determined that the brightness detection result of the face image meets the brightness condition in the preset condition; wherein the first brightness threshold is less than the second brightness threshold.
此处,例如可以遍历人脸图像中的所有像素点,根据遍历到的像素点的像素值,确定遍历到的像素点的亮度值;然后根据遍历到的所有像素点的亮度值,确定平均亮度。Here, for example, all pixels in the face image can be traversed, and the brightness value of the traversed pixel can be determined according to the pixel value of the traversed pixel; and then the average brightness can be determined according to the brightness value of all the traversed pixels .
示例性的,人脸图像中多个像素点的平均亮度值face pixel满足下述公式(1): Exemplarily, the average brightness value face pixel of multiple pixels in the face image satisfies the following formula (1):
Figure PCTCN2020136253-appb-000001
Figure PCTCN2020136253-appb-000001
其中,W表示人脸图像的宽度;H表示人脸图像的高度;C表示人脸图像的颜色通道数;(left,top)表示人脸图像左上角的像素点的坐标值;I(·)表示图像的任一像素点的亮度公式。Among them, W represents the width of the face image; H represents the height of the face image; C represents the number of color channels of the face image; (left, top) represents the coordinate value of the pixel at the upper left corner of the face image; I(·) Represents the brightness formula of any pixel of the image.
示例性的,任一像素点的亮度值为该像素点在不同颜色通道下像素值的加权和值。Exemplarily, the brightness value of any pixel is the weighted sum of the pixel values of the pixel in different color channels.
例如在人脸图像为RGB格式的图像时,与R通道对应的权重为0.3;与G通道对应的权重为0.59;与B通道对应的权重为0.11。For example, when the face image is an RGB format image, the weight corresponding to the R channel is 0.3; the weight corresponding to the G channel is 0.59; and the weight corresponding to the B channel is 0.11.
针对任一像素点(left+w,top+h,c),该像素点的亮度值满足:For any pixel (left+w, top+h, c), the brightness value of the pixel satisfies:
0.3×(left+w)+0.59×(top+h)+0.11×c0.3×(left+w)+0.59×(top+h)+0.11×c
需要注意的是,上述亮度值的计算方法仅仅是一种像素点量的示例,也可以采用其他方式计算像素点的亮度值。It should be noted that the foregoing method for calculating the brightness value is only an example of the amount of pixels, and other methods may also be used to calculate the brightness value of the pixel.
又例如,可以随机在人脸图像中确认预设数量个像素点,然后根据确定的预设数量个像素点中每个像素点的像素值,确定预设数量个像素点中每个像素点的亮度值;然后根据所有预设数量个像素点的像素值,确定人脸图像对应的平均亮度值。For another example, a preset number of pixels can be randomly confirmed in a face image, and then according to the pixel value of each pixel in the determined preset number of pixels, the value of each pixel in the preset number of pixels can be determined Brightness value; then according to the pixel values of all the preset number of pixels, the average brightness value corresponding to the face image is determined.
在本公开另一实施例中,在车辆上还可以设置补光灯;在检测到平均亮度值大于或者等于第二亮度阈值的情况下,控制补光灯开启,为用户人脸补光。In another embodiment of the present disclosure, a fill light may also be provided on the vehicle; when it is detected that the average brightness value is greater than or equal to the second brightness threshold, the fill light is controlled to turn on to fill the user's face with light.
如此,本公开实施例中通过对人脸图像进行亮度检测,减少过亮和过暗的人脸图像,避免由于人脸图像过度曝光或者人脸图像过暗导致的后续人脸检测难度的增加,提升人脸检测的准确度。In this way, in the embodiments of the present disclosure, by detecting the brightness of the face image, the excessively bright and dark face images are reduced, and the subsequent increase in the difficulty of face detection caused by the over-exposure of the face image or the excessively dark face image is avoided. Improve the accuracy of face detection.
b2:头部姿态检测。b2: head posture detection.
在具体实施中,例如可以采用下述方法对人脸图像进行头部姿态检测:In specific implementation, for example, the following methods can be used to detect the head posture of a face image:
对人脸图像进行头部姿态检测,得到人脸图像中人脸的头部姿态信息;头部姿态信息包括:人脸的俯仰角和偏航角。Head posture detection is performed on the face image to obtain the head posture information of the face in the face image; the head posture information includes: the pitch angle and the yaw angle of the face.
在俯仰角的绝对值小于俯仰角阈值且偏航角的绝对值小于偏航角阈值的情况下,确定人脸图像的头部姿态检测结果符合预设条件中的头部姿态条件。When the absolute value of the pitch angle is less than the pitch angle threshold and the absolute value of the yaw angle is less than the yaw angle threshold, it is determined that the head posture detection result of the face image meets the head posture condition in the preset condition.
此处,在对人脸图像进行头部姿态检测时,例如可以识别人脸图像中的多个人脸关键点;然后根据人脸关键点在人脸图像中的坐标,确定头部姿态的旋转矩阵和平移矩阵。然后基于旋转矩阵和平移矩阵,确定头部姿态信息。Here, when the head pose is detected on the face image, for example, multiple face key points in the face image can be identified; then the rotation matrix of the head pose is determined according to the coordinates of the face key points in the face image And translate the matrix. Then, based on the rotation matrix and the translation matrix, the head posture information is determined.
其中,头部姿态信息表示为:(yaw,pitch,roll)。Among them, the head posture information is expressed as: (yaw, pitch, roll).
其中,yaw表示俯仰角,也即人抬头或低头的角度;pitch表示偏航角,也即人头部左转右转的角度;roll表示滚转角,也即人左右摆头的角度。Among them, yaw represents the pitch angle, that is, the angle at which a person raises or lowers his head; pitch represents the yaw angle, that is, the angle at which a person's head turns left and right; roll represents a roll angle, that is, the angle at which a person swings his head from side to side.
若俯仰角的绝对值大于或者等于俯仰角阈值,或者偏航角的绝对值大于或者等于偏航角阈值,则人脸出现在人脸图像中的区域越少;在这种情况下,基于人脸图像识别出该人脸图像对应的人是否合法的准确性和可行性就较低。因此要在俯仰角的绝对值小于俯仰角阈值且偏航角的绝对值小于偏航角阈值的情况下,执行S103中的人脸识别过程。If the absolute value of the pitch angle is greater than or equal to the pitch angle threshold, or the absolute value of the yaw angle is greater than or equal to the yaw angle threshold, then the face appears in the face image less area; in this case, based on the person The accuracy and feasibility of the facial image to identify whether the person corresponding to the facial image is legal is low. Therefore, when the absolute value of the pitch angle is less than the pitch angle threshold and the absolute value of the yaw angle is less than the yaw angle threshold, the face recognition process in S103 is executed.
如此,本公开实施例中通过对人脸图像进行头部姿态检测,减少人脸出现在人脸图像中区域过少的情况,避免由于人脸出现在人脸图像中区域过少导致的人脸检测准确性下降的问题。In this way, in the embodiment of the present disclosure, by detecting the head posture of the face image, the situation that the face appears in the face image is too small, and the face caused by the face appearing in the face image is too small. The problem of decreased detection accuracy.
b3:模糊程度检测。b3: Blur degree detection.
在具体实施例中,例如可以采用下述方法对人脸图像进行模糊程度检测:In a specific embodiment, for example, the following method may be used to detect the degree of blurring of the face image:
对人脸图像进行关键点检测,得到人脸图像中的多个关键点分别在人脸图像中的位置信息。The key point detection is performed on the face image, and the position information of multiple key points in the face image in the face image is obtained.
根据多个关键点中每个关键点的位置信息,确定人脸图像的清晰度值。According to the position information of each key point in the multiple key points, the sharpness value of the face image is determined.
在人脸图像的清晰度值大于清晰度阈值的情况下,确定人脸图像的模糊程度检测结果符合预设条件中的清晰度条件。In the case that the sharpness value of the face image is greater than the sharpness threshold, it is determined that the detection result of the blur degree of the face image meets the sharpness condition in the preset condition.
此处,例如可以采用下述方法确定人脸图像的清晰度值:Here, for example, the following method can be used to determine the sharpness value of the face image:
针对每个关键点,根据每个关键点的位置信息,确定多个与该关键点位置相邻的目标像素点。For each key point, according to the position information of each key point, multiple target pixels adjacent to the key point position are determined.
基于与每个关键点对应的各个目标像素点的像素值,确定每个关键点的清晰度值。Based on the pixel value of each target pixel corresponding to each key point, the sharpness value of each key point is determined.
根据多个关键点中每个关键点的清晰度值,确定人脸图像的清晰度值。According to the sharpness value of each key point in the multiple key points, the sharpness value of the face image is determined.
示例性的,假设人脸图像中人脸的关键点数量有M个,则该人脸图像的清晰度值blur满足下述公式(2):Exemplarily, assuming that there are M key points of the face in the face image, the sharpness value blur of the face image satisfies the following formula (2):
Figure PCTCN2020136253-appb-000002
Figure PCTCN2020136253-appb-000002
其中,landmarks blur(m)表示第m个关键点的清晰度值。且landmarks blur(m)满足下述公式(3): Among them, landmarks blur (m) represents the sharpness value of the m-th key point. And the landmarks blur (m) satisfies the following formula (3):
landmarks blur(m)=landmarks blur(m)[x-1,y]+landmarks blur(m)[x+1,y] landmarks blur (m)=landmarks blur (m)[x-1,y]+landmarks blur (m)[x+1,y]
+landmarks blur(m)[x,y-1]+landmarks blur(m)[x,y+1]   (3); +landmarks blur (m)[x,y-1]+landmarks blur (m)[x,y+1] (3);
-4×landmarks blur(m)[x,y] -4×landmarks blur (m)[x,y]
landmarks blur(m)[x,y]表示第m个关键点的坐标。landmarks blur(m)[x-1,y]、landmarks blur(m)[x+1,y]、landmarks blur(m)[x,y-1]、landmarks blur(m)[x,y+1]分别表示与第m个关键点位置相邻的四个目标像素点的坐标。 landmarks blur (m)[x,y] represents the coordinates of the m-th key point. landmarks blur (m)[x-1,y], landmarks blur (m)[x+1,y], landmarks blur (m)[x,y-1], landmarks blur (m)[x,y+1 ] Respectively represent the coordinates of the four target pixel points adjacent to the m-th key point position.
如此,本公开实施例中通过对人脸图像进行模糊程度检测,减少由于人脸图像过于模糊而导致的人脸检测准确度下降的问题。同时,利用关键点来精确定位人脸,并通过关键点在人脸图像中的位置,计算拉普拉斯梯度中近似人脸的模糊程度,避免人脸图像背景对人脸清晰度值造成的干扰,提升清晰度值的准确性。In this way, in the embodiments of the present disclosure, by detecting the degree of blur of the face image, the problem of the accuracy of face detection decreased due to the excessive blur of the face image is reduced. At the same time, the key points are used to accurately locate the face, and the position of the key points in the face image is used to calculate the degree of blurring of the approximate face in the Laplacian gradient, so as to avoid the background of the face image caused by the face definition value. Interference, improve the accuracy of the clarity value.
b4:分辨率检测。b4: Resolution detection.
在具体实施中,在得到人脸图像后,检测人脸图像的分辨率;若人脸图像的分辨率小于预设的分辨率阈值,也即人脸在较小,则人脸图像中所包含的人脸特征就较少;基于分辨率较小的人脸图像进行人脸识别的准确性会有所下降;因此为了保证人脸识别的准确性,要针对人脸图像进行分辨率检测。In the specific implementation, after the face image is obtained, the resolution of the face image is detected; if the resolution of the face image is less than the preset resolution threshold, that is, the face is smaller, the face image contains There are fewer facial features; the accuracy of face recognition based on a face image with a smaller resolution will be reduced; therefore, in order to ensure the accuracy of face recognition, resolution detection must be performed on the face image.
b5:遮挡程度检测。b5: occlusion degree detection.
在具体实施中,例如可以采用下述方式对人脸图像进行遮挡程度检测:In specific implementation, for example, the following methods can be used to detect the degree of occlusion of a face image:
对人脸图像进行关键点检测,得到人脸图像中的多个关键点分别对应的关键点检测结果。The key point detection is performed on the face image, and the key point detection results corresponding to multiple key points in the face image are obtained.
基于多个关键点分别对应的关键点检测结果,确定人脸图像的遮挡程度值。Based on the key point detection results corresponding to the multiple key points, the occlusion degree value of the face image is determined.
在遮挡程度值小于遮挡程度值阈值的情况下,确定人脸图像的遮挡程度检测结果符合预设条件中的遮挡程度条件。In a case where the occlusion degree value is less than the occlusion degree value threshold, it is determined that the detection result of the occlusion degree of the face image meets the occlusion degree condition in the preset condition.
这里,在获取的人脸图像中,人脸可能会被障碍物遮挡,例如建筑物、人身上的衣物、饰品等。人脸图像中的人脸被遮挡至一定程度后,对其进行人脸识别的准确度就会下降。为了保证人脸识别的准确度,因此要对人脸图像进行遮挡程度检测。Here, in the acquired human face image, the human face may be blocked by obstacles, such as buildings, clothing on the person, accessories, and so on. After the face in the face image is occluded to a certain extent, the accuracy of face recognition will decrease. In order to ensure the accuracy of face recognition, it is necessary to detect the degree of occlusion of the face image.
示例性的,假设人脸的关键点共有M个,例如可以利用预先训练的人脸关键点检测模型,对人脸图像进行关键点检测;所得到的关键点检测结果包括:能够检测到的关键点在人脸图像中的坐标值。若存在某个关键点的坐标值,则表征该关键点未被遮挡;若某关键点的坐标值为空,则表征该关键点被遮挡。Exemplarily, suppose there are M key points of the face. For example, a pre-trained face key point detection model can be used to perform key point detection on the face image; the key point detection results obtained include: the key points that can be detected The coordinate value of the point in the face image. If the coordinate value of a certain key point exists, it means that the key point is not occluded; if the coordinate value of a certain key point is empty, it means that the key point is occluded.
人脸图像的遮挡程度值occlusion例如满足下述公式(4):The occlusion degree value occlusion of the face image satisfies the following formula (4), for example:
Figure PCTCN2020136253-appb-000003
Figure PCTCN2020136253-appb-000003
其中,landmarks(m)满足下述公式(5):Among them, landmarks(m) satisfies the following formula (5):
Figure PCTCN2020136253-appb-000004
Figure PCTCN2020136253-appb-000004
其中,m表示第m个关键点。Among them, m represents the m-th key point.
occlusion越高,则表征人脸被遮挡的程度越严重;因此设置一遮挡程度值阈值,在遮挡程度值小于该遮挡程度值阈值的情况下,才会对人脸图像执行S103中的人脸识别过程。The higher the occlusion, the more severe the occlusion of the face; therefore, an occlusion threshold value is set. Only when the occlusion value is less than the occlusion threshold, the face recognition in S103 will be performed on the face image. process.
本公开实施例中通过对人脸图像进行遮挡程度检测,减少人脸由于障碍物遮挡过多造成的人脸检测精度下降的问题。In the embodiments of the present disclosure, by detecting the degree of occlusion of the face image, the problem that the face detection accuracy is reduced due to the excessive occlusion of the face is reduced.
如此,本公开实施例中通过给出多种质量检测的方案,以避免质量检测存在误操作的现象,进而提高了检测的智能性和可靠性。In this way, in the embodiments of the present disclosure, a variety of quality detection solutions are provided to avoid the phenomenon of misoperation in the quality detection, thereby improving the intelligence and reliability of the detection.
本公开另一实施例中,响应于在第二预设时间内质量检测的结果均不符合预设条件,控制图像采集模组进入休眠状态。如此,节省了图像采集模组长期处于工作状态所耗电量,同时也可使得图像采集模组执行误采集操作后快速进行关闭。In another embodiment of the present disclosure, in response to that none of the quality inspection results meet the preset condition within the second preset time, the image acquisition module is controlled to enter the dormant state. In this way, the power consumption of the image acquisition module in the working state for a long time is saved, and at the same time, the image acquisition module can be quickly shut down after performing an incorrect acquisition operation.
III:在上述S103中,在质量检测的结果符合预设条件后,例如可以利用离线加载的人脸检测模型对人脸图像进行人脸检测。如此,本公开实施例中预先对人脸检测模型进行离线加载,进而在控制车锁开锁时,不需要即时加载各种模型,响应速度更快。III: In the above S103, after the result of the quality detection meets the preset condition, for example, the face detection model loaded offline may be used to perform face detection on the face image. In this way, in the embodiment of the present disclosure, the face detection model is pre-loaded offline, and when the vehicle lock is controlled to unlock, there is no need to load various models immediately, and the response speed is faster.
具体地,人脸检测模型例如可以采用下述方法进行离线加载:Specifically, the face detection model can be loaded offline using the following method, for example:
将人脸检测模型由加密模式转换为明文模式,并将转换为明文模式的人脸检测模型写入车锁控制系统的头文件中。The face detection model is converted from the encryption mode to the plaintext mode, and the face detection model converted to the plaintext mode is written into the header file of the car lock control system.
对头文件进行静态编译,以对人脸检测模型进行离线加载。The header file is statically compiled to load the face detection model offline.
此处,离线加载例如可以在车辆出厂时加载完成,或者在用户初次对车的车锁控制系统进行设置时进行加载,或者在人脸检测模型更新之后进行加载等。如此,通过将转换为明文模式的人脸检测模型写入车锁控制系统的头文件中,并对其进行静态编译,能够提高人脸检测模型离线加载过程鲁棒性。Here, offline loading may be completed when the vehicle leaves the factory, or when the user sets the lock control system of the vehicle for the first time, or after the face detection model is updated. In this way, by writing the face detection model converted to the plaintext mode into the header file of the car lock control system and statically compiling it, the robustness of the offline loading process of the face detection model can be improved.
这样,在车辆的车锁控制系统被唤醒后,不需要将人脸检测模型进行即时加载,加快了车辆控制系统的响应速度。In this way, after the vehicle lock control system is awakened, there is no need to load the face detection model instantly, which speeds up the response speed of the vehicle control system.
在具体实施中,对人脸图像的人脸检测例如包括:对人脸图像进行人脸身份认证以及活体检测。In a specific implementation, the face detection of the face image includes, for example, performing face identity authentication and living body detection on the face image.
示例性的,在车辆控制系统中存储有车主的人脸模板图像,该人脸模板图像至少有一张;且不同模板人脸图像中人脸的角度不同。在对人脸图像进行身份认证时,例如可以检测人脸的图像中的多个关键点;然后将人脸图像的关键点分别与各张人脸模板图像中人脸关键点进行匹配,得到人脸图像分别与各张人脸模板图像的匹配度;如果人脸图像与预设数量张人脸模板图像的匹配度大于预设的匹配度预值,则通过对人脸图像的人脸匹配检测。Exemplarily, a face template image of the vehicle owner is stored in the vehicle control system, and there is at least one face template image; and the angles of the faces in the face images of different templates are different. When the face image is authenticated, for example, multiple key points in the face image can be detected; then the key points of the face image are matched with the face key points in each face template image to obtain the person The matching degree between the face image and each face template image; if the matching degree between the face image and the preset number of face template images is greater than the preset matching degree, the face matching detection of the face image .
另外,对人脸图像进行活体检测,例如可以通过安装在车辆上的图像采集模组获取预设时长的视频;然后针对视频中的多张图像,其中至少一个人的多张人脸不同;其中属于同一人的多张人脸图像属于视频中的不同图像,针对每个人,对该人的多张人脸图像分别进行质量检测,从中确定至少两张人脸图像,并基于至少两张人脸图像之间的差异特征,来确定与两张人脸图像对应的人是否为活体。在确认为活体,则通过对人脸图像的活体检测。In addition, live detection of face images, for example, can obtain a video of a preset duration through an image acquisition module installed on a vehicle; then, for multiple images in the video, at least one person has multiple faces that are different; where Multiple face images belonging to the same person belong to different images in the video. For each person, the quality of the multiple face images of the person is tested separately, and at least two face images are determined from them, and based on at least two faces The difference feature between the images is used to determine whether the person corresponding to the two face images is alive. When it is confirmed as a living body, it passes the living body detection of the face image.
这里,例如可以基于预先训练的活体检测模型来对人脸图像进行活体检测。Here, for example, the life detection of the face image may be performed based on a pre-trained life detection model.
如此,本公开实施例中通过人脸身份认证实现合法用户的验证,活体检测可以有效防止利用照片欺骗攻击车辆控制系统以盗取车辆。In this way, in the embodiment of the present disclosure, the verification of the legitimate user is achieved through face identity authentication, and the living body detection can effectively prevent the use of photo spoofing to attack the vehicle control system to steal the vehicle.
在本公开另一实施例中,若对人脸图像进行质量检测不符合预设条件的情况下,还输出提示信息;例如:可以根据质量检测的具体结果向用户发出语音等提示信息,如若在质量检测包括遮挡程度检测,且遮挡程度未通过时,则提示用户“遮挡面积过大”;若在质量检测包括亮度检测,且亮度检测未通过时,则提示用户“当前光线过暗”等。具体根据实际的需要进行设定。如此,根据质量检测的具体结果向用户发出提示信息,以便用户及时获知检测不通过的信息并做出相关措施。In another embodiment of the present disclosure, if the quality detection of the face image does not meet the preset conditions, prompt information is also output; for example, prompt information such as voice can be issued to the user according to the specific results of the quality detection, if The quality inspection includes the detection of the occlusion degree, and when the occlusion degree fails, the user is prompted "the area of the occlusion is too large"; if the quality detection includes the brightness detection and the brightness detection fails, the user is prompted "the current light is too dark", etc. Set according to actual needs. In this way, a prompt message is issued to the user based on the specific result of the quality inspection, so that the user can be informed of the failure of the inspection in time and take relevant measures.
在本公开另一实施例中,获取人脸图像所用到的模型、对人脸图像进行质量检测过程所用到的模型都可以进行预先的离线加载;加载方式与上述人脸检测模型的离线加载方式类似,这里不再赘述。In another embodiment of the present disclosure, the model used to obtain the face image and the model used in the quality detection process of the face image can be pre-loaded offline; the loading method is the same as the offline loading method of the face detection model described above Similar, I won't repeat it here.
在本公开另一实施例中,响应于在图像采集模组被唤醒后的第三预设时间内,获取的图像中的人脸图像的人脸检测均不通过,控制图像采集模组进入休眠状态。如此,通过上述几种控制图像采集模组进入休眠状态中一种或者多种,使得车门解锁的过程被限制在一定的时间内,防止进入解锁流程后进入死锁状态。In another embodiment of the present disclosure, in response to the face detection of the face image in the acquired image fails within the third preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter sleep state. In this way, by controlling one or more of the above-mentioned image acquisition modules to enter the sleep state, the process of unlocking the door is restricted to a certain period of time, and the deadlock state is prevented from entering the unlocking process.
本公开实施例通过响应要唤醒车的图像采集模组被唤醒,获取车的图像采集模组采集的图像,并对获取的图像中的人脸图像进行质量检测;在质量检测的结果符合预设条件的情况下,基于人脸图像进行人脸检测;在对人脸图像的人脸检测通过的情况下,车的至少一车门锁解锁;全程不需要用户执行任何操作,且设备损耗小,在车主靠近车辆的过程中就能够实现车门锁解锁,使用更加方便。In the embodiment of the present disclosure, in response to the image acquisition module of the car to be awakened, the image acquired by the image acquisition module of the car is acquired, and the quality inspection of the face image in the acquired image is performed; the result of the quality inspection conforms to the preset Under the conditions, face detection is based on the face image; if the face detection of the face image is passed, at least one door lock of the car is unlocked; the user does not need to perform any operation throughout the process, and the equipment loss is small. When the owner approaches the vehicle, the door lock can be unlocked, which is more convenient to use.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above-mentioned 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.
参见图4所示,本公开实施例还提供一种控制车门解锁的方法的具体示例,包括:Referring to FIG. 4, the embodiment of the present disclosure also provides a specific example of a method for controlling unlocking of a vehicle door, including:
S401:响应于车的图像采集模组被唤醒,获取车的图像采集模组采集的图像。S401: In response to the image acquisition module of the car being awakened, acquire an image collected by the image acquisition module of the car.
S402:检测是否能在图像采集模组被唤醒后的第一预设时间内采集到的图像中检测到人脸图像;若否,则跳转至S403;若是,则跳转至S404。S402: Detect whether the face image can be detected in the image collected within the first preset time after the image collection module is awakened; if not, skip to S403; if yes, skip to S404.
S403:控制图像采集模组进入休眠状态。结束。S403: Control the image acquisition module to enter a sleep state. Finish.
S404:对获取的图像中的人脸图像进行质量检测;质量检测包括:亮度检测、头部姿态检测、模糊程度检测、分辨率检测以及遮挡程度检测。S404: Perform quality detection on the face image in the acquired image; the quality detection includes: brightness detection, head posture detection, blur degree detection, resolution detection, and occlusion degree detection.
S405:判断在第二预设时间内质量检测的结果是否符合预设条件;若否,则跳转至S403;若是,则跳转至S406。S405: Determine whether the result of the quality inspection meets the preset condition within the second preset time; if not, skip to S403; if yes, skip to S406.
S406:基于人脸图像进行人脸检测。S406: Perform face detection based on the face image.
S407:判断在图像采集模组被唤醒后的第三预设时间内,对获取的图像中的人脸图像的人脸检测是否通过;若否,则跳转至S403;若是,则跳转至S408。S407: Determine whether the face detection of the face image in the acquired image is passed within the third preset time after the image acquisition module is awakened; if not, skip to S403; if yes, skip to S408.
S408:控制车的至少一车门锁解锁。结束。S408: Control the unlocking of at least one door lock of the vehicle. Finish.
这样,通过上述流程,实现了一次车门解锁的控制过程。In this way, through the above process, a control process of unlocking the door is realized.
基于同一发明构思,本公开实施例中还提供了与控制车门解锁的方法对应的控制车门解锁的装置,由于本公开实施例中的装置解决问题的方法与本公开实施例上述控制车门解锁的方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides a device for controlling the unlocking of a vehicle door corresponding to the method for controlling the unlocking of a vehicle door. Because the device in the embodiment of the present disclosure solves the problem and the method for controlling the unlocking of the vehicle door described above in the embodiment of the present disclosure Similar, so the implementation of the device can refer to the implementation of the method, and the repetition will not be repeated.
参照图5所示,为本公开实施例提供的一种控制车门解锁的装置5的示意图,所述装置5包括:响应模块51、质量检测模块52、人脸检测模块53以及车锁控制模块54;其中,Referring to FIG. 5, a schematic diagram of a device 5 for controlling unlocking of a vehicle door provided by an embodiment of the present disclosure. The device 5 includes: a response module 51, a quality detection module 52, a face detection module 53, and a vehicle lock control module 54 ;in,
响应模块51,用于响应于车的图像采集模组被唤醒,获取所述车的图像采集模组采集的图像;The response module 51 is configured to acquire images collected by the image acquisition module of the car in response to the image acquisition module of the car being awakened;
质量检测模块52,用于对获取的所述图像中的人脸图像进行质量检测;The quality detection module 52 is configured to perform quality detection on the face image in the acquired image;
人脸检测模块53,用于在所述质量检测的结果符合预设条件的情况下,基于所述人脸图像进行人脸检测;The face detection module 53 is configured to perform face detection based on the face image when the result of the quality inspection meets a preset condition;
车锁控制模块54,用于在对所述人脸图像的人脸检测通过的情况下,控制所述车的至少一车门锁解锁。The vehicle lock control module 54 is configured to control the unlocking of at least one door lock of the vehicle when the face detection of the face image passes.
本公开实施例通过响应要唤醒车的图像采集模组被唤醒,获取车的图像采集模组采集的图像,并对获取的图像中的人脸图像进行质量检测;在质量检测的结果符合预设条件的情况下,基于人脸图像进行人脸检测;在对人脸图像的人脸检测通过的情况下,车的至少一车门锁解锁;全程不需要用户执行任何操作,且设备损耗小,在车主靠近车辆的过程中就能够实现车门解锁,使用更加方便。In the embodiment of the present disclosure, in response to the image acquisition module of the car to be awakened, the image acquired by the image acquisition module of the car is acquired, and the quality inspection of the face image in the acquired image is performed; the result of the quality inspection conforms to the preset Under the conditions, face detection is based on the face image; if the face detection of the face image is passed, at least one door lock of the car is unlocked; the user does not need to perform any operation throughout the process, and the equipment loss is small. When the owner approaches the vehicle, the door can be unlocked, which is more convenient to use.
一种可能的实施方式中,所述控制车门解锁的装置5还包括:第一控制模块55,用于响应于在所述图像采集模组被唤醒后的第一预设时间内采集的图像中检测不到人脸图像,控制所述图像采集模组进入休眠状态。In a possible implementation manner, the device 5 for controlling unlocking of a vehicle door further includes: a first control module 55, configured to respond to the images captured within the first preset time after the image capture module is awakened If no face image is detected, the image acquisition module is controlled to enter a sleep state.
一种可能的实施方式中,所述控制车门解锁的装置5还包括:提示模块56,用于在所述质量检测的结果不符合预设条件的情况下,输出提示信息。In a possible implementation manner, the device 5 for controlling unlocking of a vehicle door further includes: a prompt module 56 for outputting prompt information when the result of the quality inspection does not meet a preset condition.
一种可能的实施方式中,所述控制车门解锁的装置5还包括:第二控制模块57,用于响应于在第二预设时间内所述质量检测的结果均不符合预设条件,控制所述图像采集模组进入休眠状态。In a possible implementation manner, the device 5 for controlling unlocking of a vehicle door further includes: a second control module 57 for controlling the The image acquisition module enters a sleep state.
一种可能的实施方式中,所述控制车门解锁的装置5还包括:第三控制模块58,用于响应于在所述图像采集模组被唤醒后的第三预设时间内,获取的图像中的人脸图像的人脸检测均不通过,控制所述图像采集模组进入休眠状态。In a possible implementation manner, the device 5 for controlling unlocking of the vehicle door further includes: a third control module 58 for responding to the image acquired within the third preset time after the image acquisition module is awakened The face detection of the face image in the image fails, and the image acquisition module is controlled to enter the dormant state.
一种可能的实施方式中,所述车的图像采集模组在以下至少一种情况下被唤醒:检测到人体与车辆的距离小于预设距离;接收到车门解锁指令;置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备;置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备并配对成功。In a possible implementation manner, the image acquisition module of the vehicle is awakened in at least one of the following situations: it is detected that the distance between the human body and the vehicle is less than a preset distance; the door unlocking instruction is received; the Bluetooth is placed on the vehicle The module searches for a Bluetooth device with a preset identification; the Bluetooth module placed in the car searches for a Bluetooth device with a preset identification and the pairing is successful.
一种可能的实施方式中,所述质量检测,包括下述至少一种:亮度检测、头部姿态检测、模糊程度检测、分辨率检测以及遮挡程度检测。In a possible implementation manner, the quality detection includes at least one of the following: brightness detection, head posture detection, blur degree detection, resolution detection, and occlusion degree detection.
一种可能的实施方式中,针对所述质量检测包括亮度检测的情况,所述质量检测模块52,在对获取的所述人脸图像进行质量检测时,用于基于所述人脸图像中多个像素点中每个像素点的像素值,确定所述多个像素点的平均亮度值;In a possible implementation manner, for the case where the quality detection includes brightness detection, the quality detection module 52 is configured to perform quality detection on the acquired face image based on the number of images in the face image. The pixel value of each pixel in the pixel points, determining the average brightness value of the multiple pixel points;
在所述平均亮度值大于第一亮度阈值且小于第二亮度阈值的情况下,确定所述人脸图像的亮度检测结果符合所述预设条件中的亮度条件;其中,所述第一亮度阈值小于所述第二亮度阈值。In the case that the average brightness value is greater than the first brightness threshold and less than the second brightness threshold, it is determined that the brightness detection result of the face image meets the brightness condition in the preset condition; wherein, the first brightness threshold Less than the second brightness threshold.
一种可能的实施方式中,针对所述质量检测包括头部姿态检测的情况,所述质量检测模块52,在对获取的所述人脸图像进行质量检测时,用于对所述人脸图像进行头部姿态检测,得到所述人脸图像中人脸的头部姿态信息;所述头部姿态信息包括:人脸的俯仰角和偏航角;In a possible implementation manner, for the case where the quality detection includes head posture detection, the quality detection module 52 is configured to perform quality detection on the face image acquired when performing quality detection on the face image. Perform head posture detection to obtain head posture information of the face in the face image; the head posture information includes: the pitch angle and the yaw angle of the face;
在所述俯仰角的绝对值小于俯仰角阈值且所述偏航角的绝对值小于偏航角阈值的情况下,确定所述人脸图像的头部姿态检测结果符合所述预设条件中的头部姿态条件。In the case where the absolute value of the pitch angle is less than the pitch angle threshold and the absolute value of the yaw angle is less than the yaw angle threshold, it is determined that the head posture detection result of the face image meets the preset conditions. Head posture conditions.
一种可能的实施方式中,针对所述质量检测包括所述模糊程度检测的情况,所述质量检测模块52,在对获取的所述人脸图像进行质量检测时,用于对所述人脸图像进行关键点检测,得到人脸图像中的多个关键点分别在所述人脸图像中的位置信息;In a possible implementation manner, for the case where the quality detection includes the detection of the degree of blurring, the quality detection module 52 is configured to perform the quality detection on the acquired face image. Perform key point detection on the image to obtain position information of multiple key points in the face image in the face image;
根据多个所述关键点中每个关键点的位置信息,确定所述人脸图像的清晰度值;Determine the sharpness value of the face image according to the position information of each key point in the plurality of key points;
在所述人脸图像的清晰度值大于清晰度阈值的情况下,确定所述人脸图像的模糊程度检测结果符合所述预设条件中的清晰度条件。In the case that the sharpness value of the face image is greater than the sharpness threshold value, it is determined that the blur degree detection result of the face image meets the sharpness condition in the preset condition.
一种可能的实施方式中,所述质量检测模块52,在根据多个所述关键点中每个关键点的位置信息,确定所述人脸图像的清晰度值时,用于针对所述每个关键点,根据所述每个关键点的位置信息,确定多个与该关键点位置相邻的目标像素点;In a possible implementation manner, the quality detection module 52 is configured to determine the sharpness value of the face image according to the position information of each key point in the plurality of key points, and use it to target each key point. Key points, according to the position information of each key point, determine multiple target pixels adjacent to the key point position;
基于与所述每个关键点对应的各个目标像素点的像素值,确定所述每个关键点的清晰度值;Determine the sharpness value of each key point based on the pixel value of each target pixel point corresponding to each key point;
根据多个所述关键点中每个关键点的清晰度值,确定所述人脸图像的清晰度值。The sharpness value of the face image is determined according to the sharpness value of each key point in the plurality of key points.
一种可能的实施方式中,针对所述质量检测包括遮挡程度检测的情况,所述质量检测模块52,在对获取的所述人脸图像进行质量检测时,用于对所述人脸图像进行关键点检测,得到人脸图像中的多个关键点分别对应的关键点检测结果;In a possible implementation manner, for the case where the quality detection includes detection of the degree of occlusion, the quality detection module 52 is configured to perform quality detection on the face image when performing quality detection on the face image. Key point detection, to obtain the key point detection results corresponding to multiple key points in the face image;
基于所述多个关键点分别对应的关键点检测结果,确定所述人脸图像的遮挡程度值;Determine the occlusion degree value of the face image based on the key point detection results respectively corresponding to the multiple key points;
在所述遮挡程度值小于遮挡程度值阈值的情况下,确定所述人脸图像的遮挡程度检测结果符合所述预设条件中的遮挡程度条件。In the case that the occlusion degree value is less than the occlusion degree value threshold, it is determined that the occlusion degree detection result of the face image meets the occlusion degree condition in the preset condition.
一种可能的实施方式中,所述人脸检测模块53,在基于所述人脸图像进行人脸检测时,用于利用离线加载的人脸检测模型对所述人脸图像进行人脸检测。In a possible implementation manner, the face detection module 53 is configured to perform face detection on the face image by using a face detection model loaded offline when performing face detection based on the face image.
一种可能的实施方式中,所述控制车门解锁的装置5还包括:加载模块59,用于采用下述方法离线加载所述人脸检测模型:In a possible implementation manner, the device 5 for controlling unlocking of a vehicle door further includes: a loading module 59, configured to load the face detection model offline by using the following method:
将所述人脸检测模型由加密模式转换为明文模式,并将转换为明文模式的人脸检测模型写入车锁控制系统的头文件中;Converting the face detection model from an encryption mode to a plain text mode, and writing the face detection model converted to the plain text mode into a header file of the car lock control system;
对所述头文件进行静态编译,以对所述人脸检测模型进行离线加载。The header file is statically compiled to load the face detection model offline.
一种可能的实施方式中,所述人脸检测模块53,在基于所述人脸图像进行人脸检测时,用于基于所述人脸图像进行人脸身份认证以及活体检测。In a possible implementation manner, the face detection module 53 is configured to perform face identity authentication and living body detection based on the face image when performing face detection based on the face image.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant description in the above method embodiment, which will not be described in detail here.
本公开实施例还提供一种车辆,包括:车辆主体和设置在车辆主体上的图像采集模组;所述车辆主体中还设置有车辆控制系统;The embodiment of the present disclosure also provides a vehicle, including: a vehicle body and an image acquisition module provided on the vehicle body; the vehicle body is also provided with a vehicle control system;
所述图像采集模组用于采集图像;The image acquisition module is used to acquire images;
所述车辆控制系统用于采用如本公开实施例任一项所述的控制车辆解锁的方法,控制所述车辆主体上的车门锁解锁。The vehicle control system is used to control the unlocking of the door lock on the vehicle body by adopting the method for controlling the unlocking of the vehicle according to any one of the embodiments of the present disclosure.
本公开实施例还提供了一种电子设备6,如图6所示,为本公开实施例提供的计算机设备6结构示意图,包括:The embodiment of the present disclosure also provides an electronic device 6, as shown in FIG. 6, which is a schematic structural diagram of the computer device 6 provided by the embodiment of the present disclosure, including:
处理器61和存储器62;所述存储器62存储有所述处理器61可执行的机器可读指令,当计算机设备运行时,所述机器可读指令被所述处理器执行以实现下述步骤:A processor 61 and a memory 62; the memory 62 stores machine-readable instructions executable by the processor 61, and when the computer device is running, the machine-readable instructions are executed by the processor to implement the following steps:
响应于车的图像采集模组被唤醒,获取所述车的图像采集模组采集的图像;In response to the image acquisition module of the car being awakened, acquiring the image collected by the image acquisition module of the car;
对获取的所述图像中的人脸图像进行质量检测;Performing quality detection on the face image in the acquired image;
在所述质量检测的结果符合预设条件的情况下,基于所述人脸图像进行人脸检测;In the case that the result of the quality detection meets the preset condition, performing face detection based on the face image;
在对所述人脸图像的人脸检测通过的情况下,控制所述车的至少一车门锁解锁。In the case where the face detection of the face image passes, at least one door lock of the vehicle is controlled to be unlocked.
上述指令的具体执行过程可以参考本公开实施例中所述的控制车门解锁的方法的步骤,此处不再赘述。For the specific execution process of the foregoing instructions, reference may be made to the steps of the method for controlling the unlocking of the vehicle door described in the embodiments of the present disclosure, which will not be repeated here.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的控制车门解锁的方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。The embodiment of the present disclosure also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the steps of the method for controlling unlocking of a vehicle door described in the above method embodiment when the computer program is run by a processor . Wherein, the storage medium may be a volatile or non-volatile computer readable storage medium.
本公开实施例所提供的控制车门解锁的方法的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行上述方法实施例中所述的控制车门解锁的方法的步骤,具体可参见上述方法实施例,在此不再赘述。The computer program product of the method for controlling the unlocking of a vehicle door provided by the embodiment of the present disclosure includes a computer-readable storage medium storing a program code, and the instructions included in the program code can be used to execute the control of the unlocking of the vehicle door described in the foregoing method embodiment For details of the steps of the method, please refer to the above method embodiment, which will not be repeated here.
本公开实施例还提供一种计算机程序,该计算机程序包括计算机可读代码,该计算机可读代码在电子设备中运行的情况下,电子设备的处理器执行用于实现前述人任一实施例所述的控制车门解锁的方法。该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在本公开的一些实施例中,所述计算机程序产品具体体现为计算机存储介质,在本公开的一些实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The embodiments of the present disclosure also provide a computer program, the computer program including computer readable code, when the computer readable code runs in an electronic device, the processor of the electronic device executes the method for realizing the method described in any of the foregoing embodiments. The method of controlling the unlocking of the car door described above. The computer program product can be specifically implemented by hardware, software, or a combination thereof. In some embodiments of the present disclosure, the computer program product is specifically embodied as a computer storage medium. In some embodiments of the present disclosure, the computer program product is specifically embodied as a software product, such as a software development kit (SDK). and many more.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the system and device described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device, and method may be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation. For example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some communication interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than limit it. The protection scope of the present disclosure is not limited to this, although referring to the foregoing The embodiments describe the present disclosure in detail, and those of ordinary skill in the art should understand that any person skilled in the art can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present disclosure. Or it can be easily conceived of changes, or equivalent replacements of some of the technical features; and these modifications, changes or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered by the present disclosure. Within the scope of protection. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
工业实用性Industrial applicability
本公开提供了一种控制车门解锁的方法、装置、车辆、设备、介质及程序;其中,响应于车的图像采集模组被唤醒,获取所述车的图像采集模组采集的图像;对获取的所述图像中的人脸图像进行质量检测;在所述质量检测的结果符合预设条件的情况下,基于所述人脸图像进行人脸检测;在对所述人脸图像的人脸检测通过的情况下,控制所述车的至少一车门锁解锁。The present disclosure provides a method, device, vehicle, equipment, medium, and program for controlling unlocking of a car door; wherein, in response to the car's image collection module being awakened, the image collected by the car's image collection module is acquired; Perform quality detection on the face image in the image; perform face detection based on the face image if the result of the quality detection meets preset conditions; perform face detection on the face image In the case of passing, at least one door lock of the vehicle is controlled to be unlocked.

Claims (20)

  1. 一种控制车门解锁的方法,包括:A method for controlling unlocking of a vehicle door includes:
    响应于车的图像采集模组被唤醒,获取所述车的图像采集模组采集的图像;In response to the image acquisition module of the car being awakened, acquiring the image collected by the image acquisition module of the car;
    对获取的所述图像中的人脸图像进行质量检测;Performing quality detection on the face image in the acquired image;
    在所述质量检测的结果符合预设条件的情况下,基于所述人脸图像进行人脸检测;In the case that the result of the quality detection meets the preset condition, performing face detection based on the face image;
    在对所述人脸图像的人脸检测通过的情况下,控制所述车的至少一车门锁解锁。In the case where the face detection of the face image passes, at least one door lock of the vehicle is controlled to be unlocked.
  2. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    响应于在所述图像采集模组被唤醒后的第一预设时间内采集到的图像中检测不到人脸图像,控制所述图像采集模组进入休眠状态。In response to that no human face image is detected in the image collected within the first preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter a sleep state.
  3. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    在所述质量检测的结果不符合预设条件的情况下,输出提示信息。In the case that the result of the quality inspection does not meet the preset condition, a prompt message is output.
  4. 根据权利要求3所述的方法,所述方法还包括:The method according to claim 3, further comprising:
    响应于在第二预设时间内所述质量检测的结果均不符合预设条件,控制所述图像采集模组进入休眠状态。In response to that none of the quality detection results meet the preset conditions within the second preset time, the image acquisition module is controlled to enter a dormant state.
  5. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    响应于在所述图像采集模组被唤醒后的第三预设时间内,获取的图像中的人脸图像的人脸检测均不通过,控制所述图像采集模组进入休眠状态。In response to the failure of the face detection of the face images in the acquired image within the third preset time after the image acquisition module is awakened, the image acquisition module is controlled to enter the dormant state.
  6. 根据权利要求1至5任一所述的方法,所述车的图像采集模组在以下至少一种情况下被唤醒:According to the method of any one of claims 1 to 5, the image acquisition module of the car is awakened in at least one of the following situations:
    检测到人体与车辆的距离小于预设距离;It is detected that the distance between the human body and the vehicle is less than the preset distance;
    接收到车门解锁指令;Receiving a door unlocking instruction;
    置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备;The Bluetooth module placed in the car searches for a Bluetooth device with a preset logo;
    置于车上的蓝牙模块搜索到具有预设标识的蓝牙设备并配对成功。The Bluetooth module placed in the car searches for a Bluetooth device with a preset identification and is successfully paired.
  7. 根据权利要求1至6任一项所述的方法,所述质量检测,包括下述至少一种:亮度检测、头部姿态检测、模糊程度检测、分辨率检测以及遮挡程度检测。The method according to any one of claims 1 to 6, wherein the quality detection includes at least one of the following: brightness detection, head posture detection, blur degree detection, resolution detection, and occlusion degree detection.
  8. 根据权利要求7所述的方法,针对所述质量检测包括亮度检测的情况,所述对获取的所述人脸图像进行质量检测,包括:The method according to claim 7, for the case where the quality detection includes brightness detection, the quality detection on the acquired face image includes:
    基于所述人脸图像中多个像素点中每个像素点的像素值,确定所述多个像素点的平均亮度值;Determining the average brightness value of the plurality of pixels based on the pixel value of each of the plurality of pixels in the face image;
    在所述平均亮度值大于第一亮度阈值且小于第二亮度阈值的情况下,确定所述人脸图像的亮度检测结果符合所述预设条件中的亮度条件;其中,所述第一亮度阈值小于所述第二亮度阈值。In the case that the average brightness value is greater than the first brightness threshold and less than the second brightness threshold, it is determined that the brightness detection result of the face image meets the brightness condition in the preset condition; wherein, the first brightness threshold Less than the second brightness threshold.
  9. 根据权利要求7或8所述的方法,针对所述质量检测包括头部姿态检测的情况,所述对获取的所述人脸图像进行质量检测,包括:The method according to claim 7 or 8, for the case where the quality detection includes head posture detection, the quality detection on the acquired face image includes:
    对所述人脸图像进行头部姿态检测,得到所述人脸图像中人脸的头部姿态信息;所述头部姿态信息包括:人脸的俯仰角和偏航角;Performing head posture detection on the face image to obtain head posture information of the face in the face image; the head posture information includes: the pitch angle and the yaw angle of the face;
    在所述俯仰角的绝对值小于俯仰角阈值且所述偏航角的绝对值小于偏航角阈值的情况下,确定所述人脸图像的头部姿态检测结果符合所述预设条件中的头部姿态条件。In the case where the absolute value of the pitch angle is less than the pitch angle threshold and the absolute value of the yaw angle is less than the yaw angle threshold, it is determined that the head posture detection result of the face image meets the preset conditions. Head posture conditions.
  10. 根据权利要求7至9任一项所述的方法,针对所述质量检测包括所述模糊程度检测的情况,所述对获取的所述人脸图像进行质量检测,包括:The method according to any one of claims 7 to 9, for the case where the quality detection includes the detection of the degree of blur, the quality detection of the acquired face image includes:
    对所述人脸图像进行关键点检测,得到人脸图像中的多个关键点分别在所述人脸图像中的位置信息;Performing key point detection on the face image to obtain position information of multiple key points in the face image in the face image;
    根据多个所述关键点中每个关键点的位置信息,确定所述人脸图像的清晰度值;Determine the sharpness value of the face image according to the position information of each key point in the plurality of key points;
    在所述人脸图像的清晰度值大于清晰度阈值的情况下,确定所述人脸图像的模糊程度检测结果符合所述预设条件中的清晰度条件。In the case that the sharpness value of the face image is greater than the sharpness threshold value, it is determined that the blur degree detection result of the face image meets the sharpness condition in the preset condition.
  11. 根据权利要求10所述的方法,所述根据多个所述关键点中每个关键点的位置信息,确定所述人脸图像的清晰度值,包括:The method according to claim 10, wherein the determining the sharpness value of the face image according to the position information of each key point in the plurality of key points comprises:
    针对所述每个关键点,根据所述每个关键点的位置信息,确定多个与该关键点位置相邻的目标像素点;For each key point, determine a plurality of target pixels adjacent to the key point position according to the position information of each key point;
    基于与所述每个关键点对应的各个目标像素点的像素值,确定所述每个关键点的清晰度值;Determine the sharpness value of each key point based on the pixel value of each target pixel point corresponding to each key point;
    根据多个所述关键点中每个关键点的清晰度值,确定所述人脸图像的清晰度值。The sharpness value of the face image is determined according to the sharpness value of each key point in the plurality of key points.
  12. 根据权利要求7至11任一项所述的方法,针对所述质量检测包括遮挡程度检测的情况,所述对获取的所述人脸图像进行质量检测,包括:The method according to any one of claims 7 to 11, for the case where the quality detection includes the detection of the degree of occlusion, the quality detection of the acquired face image includes:
    对所述人脸图像进行关键点检测,得到人脸图像中的多个关键点分别对应的关键点检测结果;Performing key point detection on the face image to obtain key point detection results corresponding to multiple key points in the face image;
    基于所述多个关键点分别对应的关键点检测结果,确定所述人脸图像的遮挡程度值;Determine the occlusion degree value of the face image based on the key point detection results respectively corresponding to the multiple key points;
    在所述遮挡程度值小于遮挡程度值阈值的情况下,确定所述人脸图像的遮挡程度检测结果符合所述预设条件中的遮挡程度条件。In the case that the occlusion degree value is less than the occlusion degree value threshold, it is determined that the occlusion degree detection result of the face image meets the occlusion degree condition in the preset condition.
  13. 根据权利要求1至12任一项所述的方法,所述基于所述人脸图像进行人脸检测,包括:The method according to any one of claims 1 to 12, the performing face detection based on the face image comprises:
    利用离线加载的人脸检测模型对所述人脸图像进行人脸检测。The face detection is performed on the face image by using the face detection model loaded offline.
  14. 根据权利要求13所述的方法,采用下述方法离线加载所述人脸检测模型:According to the method of claim 13, the following method is adopted to load the face detection model offline:
    将所述人脸检测模型由加密模式转换为明文模式,并将转换为明文模式的人脸检测模型写入车锁控制系统的头文件中;Converting the face detection model from an encryption mode to a plain text mode, and writing the face detection model converted to the plain text mode into a header file of the car lock control system;
    对所述头文件进行静态编译,以对所述人脸检测模型进行离线加载。The header file is statically compiled to load the face detection model offline.
  15. 根据权利要求1至14任一项所述的方法,所述基于所述人脸图像进行人脸检测,包括:The method according to any one of claims 1 to 14, wherein the performing face detection based on the face image comprises:
    基于所述人脸图像进行人脸身份认证以及活体检测。Perform face identity authentication and living body detection based on the face image.
  16. 一种控制车门解锁的装置,包括:A device for controlling unlocking of a vehicle door includes:
    响应模块,用于响应于车的图像采集模组被唤醒,获取所述车的图像采集模组采集的图像;The response module is used to obtain the image collected by the image acquisition module of the car in response to the image acquisition module of the car being awakened;
    质量检测模块,用于对获取的所述图像中的人脸图像进行质量检测;A quality detection module, configured to perform quality detection on the face image in the acquired image;
    人脸检测模块,用于在所述质量检测的结果符合预设条件的情况下,基于所述人脸图像进行人脸检测;A face detection module, configured to perform face detection based on the face image when the result of the quality detection meets a preset condition;
    车锁控制模块,用于在对所述人脸图像的人脸检测通过的情况下,控制所述车的至少一车门锁解锁。The vehicle lock control module is used to control the unlocking of at least one door lock of the vehicle when the face detection of the face image passes.
  17. 一种车辆,包括:车辆主体和设置在车辆主体上的图像采集模组;所述车辆主体中还设置有车辆控制系统;A vehicle includes: a vehicle body and an image acquisition module arranged on the vehicle body; the vehicle body is also provided with a vehicle control system;
    所述图像采集模组用于采集图像;The image acquisition module is used to acquire images;
    所述车辆控制系统用于采用如权利要求1至15任一项所述的控制车辆解锁的方法,控制所述车辆主体上的车门锁解锁。The vehicle control system is used to control the unlocking of the door lock on the vehicle body by using the method for controlling the unlocking of the vehicle according to any one of claims 1 to 15.
  18. 一种电子设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器用于执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时,所述处理器执行如权利要求1至15任一项所述的控制车门解锁的方法的步骤。An electronic device comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the processor being used to execute the machine-readable instructions stored in the memory, the machine being able to When the read instruction is executed by the processor, the processor executes the steps of the method for controlling unlocking of a vehicle door according to any one of claims 1 to 15.
  19. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所 述计算机程序被电子设备运行时,所述电子设备执行如权利要求1至15任意一项所述的控制车门解锁的方法的步骤。A computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is run by an electronic device, the electronic device executes the control door of any one of claims 1 to 15 Steps of unlocking method.
  20. 一种计算机程序,所述计算机程序包括计算机可读代码,在所述计算机可读代码在电子设备中运行的情况下,所述电子设备的处理器执行用于实现如权利要求1至15任一项所述的控制车门解锁的方法。A computer program, the computer program comprising computer readable code, when the computer readable code runs in an electronic device, the processor of the electronic device executes for realizing any one of claims 1 to 15 The method of controlling the unlocking of the vehicle door as described in the item.
PCT/CN2020/136253 2020-04-29 2020-12-14 Method and apparatus for controlling unlocking of vehicle door, and vehicle, device, medium and program WO2021218180A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020217034709A KR20210146354A (en) 2020-04-29 2020-12-14 Vehicle door unlock control method, device, vehicle, appliance, medium and program
JP2021570765A JP7281562B2 (en) 2020-04-29 2020-12-14 Method, apparatus, vehicle, device, medium and program for controlling vehicle door unlocking

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010355699.9A CN111540090A (en) 2020-04-29 2020-04-29 Method and device for controlling unlocking of vehicle door, vehicle, electronic equipment and storage medium
CN202010355699.9 2020-04-29

Publications (1)

Publication Number Publication Date
WO2021218180A1 true WO2021218180A1 (en) 2021-11-04

Family

ID=71975305

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/136253 WO2021218180A1 (en) 2020-04-29 2020-12-14 Method and apparatus for controlling unlocking of vehicle door, and vehicle, device, medium and program

Country Status (4)

Country Link
JP (1) JP7281562B2 (en)
KR (1) KR20210146354A (en)
CN (1) CN111540090A (en)
WO (1) WO2021218180A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114333119A (en) * 2021-12-31 2022-04-12 上海商汤临港智能科技有限公司 Vehicle unlocking method, vehicle management method, terminal, vehicle unlocking system, vehicle unlocking device, and storage medium
CN114407827A (en) * 2021-12-24 2022-04-29 北京百度网讯科技有限公司 Vehicle door control method, device, equipment, storage medium and automatic driving vehicle
CN116363781A (en) * 2023-05-29 2023-06-30 深圳市捷易科技有限公司 Channel gate control method, device, equipment and computer storage medium
CN116805430A (en) * 2022-12-12 2023-09-26 安徽国防科技职业学院 Digital image safety processing system based on big data
CN117011963A (en) * 2023-10-07 2023-11-07 四川金投科技股份有限公司 Intelligent lock and intelligent door control system based on electronic key

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111540090A (en) * 2020-04-29 2020-08-14 北京市商汤科技开发有限公司 Method and device for controlling unlocking of vehicle door, vehicle, electronic equipment and storage medium
CN112101289A (en) * 2020-09-25 2020-12-18 北京市商汤科技开发有限公司 Service providing method and device, computer equipment and storage medium
CN112287792B (en) * 2020-10-22 2023-03-31 深圳前海微众银行股份有限公司 Method and device for collecting face image and electronic equipment
CN112907575B (en) * 2021-03-25 2022-07-22 苏州科达科技股份有限公司 Face quality evaluation method and device and electronic equipment
CN113095256A (en) * 2021-04-20 2021-07-09 北京汽车集团越野车有限公司 Face recognition method and device
CN112950820B (en) * 2021-05-14 2021-07-16 北京旗偲智能科技有限公司 Automatic control method, device and system for vehicle and storage medium
CN113379947A (en) * 2021-05-25 2021-09-10 广州朗国电子科技有限公司 Intelligent door lock based on face recognition
CN113450478A (en) * 2021-06-22 2021-09-28 广州小鹏汽车科技有限公司 Unlocking method of vehicle, vehicle system, vehicle and computer-readable storage medium
CN114511953A (en) * 2022-02-11 2022-05-17 珠海格力电器股份有限公司 Wake-up system, method and device of door lock, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679240A (en) * 2015-01-26 2015-06-03 深圳市金立通信设备有限公司 Terminal control method
US20160225206A1 (en) * 2015-02-04 2016-08-04 Hon Hai Precision Industry Co., Ltd. Intelligent entrance guard unlocking system and unlocking method thereof
US20170316254A1 (en) * 2016-04-29 2017-11-02 Faraday&Future Inc. Remote camera access
CN108334870A (en) * 2018-03-21 2018-07-27 四川意高汇智科技有限公司 The remote monitoring system of AR device data server states
CN110335389A (en) * 2019-07-01 2019-10-15 上海商汤临港智能科技有限公司 Car door unlocking method and device, system, vehicle, electronic equipment and storage medium
CN110930547A (en) * 2019-02-28 2020-03-27 上海商汤临港智能科技有限公司 Vehicle door unlocking method, vehicle door unlocking device, vehicle door unlocking system, electronic equipment and storage medium
CN111540090A (en) * 2020-04-29 2020-08-14 北京市商汤科技开发有限公司 Method and device for controlling unlocking of vehicle door, vehicle, electronic equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007113388A (en) 2002-12-13 2007-05-10 Matsushita Electric Ind Co Ltd On-vehicle device control system and on-vehicle device controller
JP2007317116A (en) 2006-05-29 2007-12-06 Honda Motor Co Ltd Vehicle having facial authentication system mounted thereon
CN102466945B (en) * 2010-11-19 2013-09-11 北京海鑫智圣技术有限公司 LED supplementary lighting and image clipping evaluation system in standard image acquisition device
CN106503687B (en) * 2016-11-09 2019-04-05 合肥工业大学 Merge the monitor video system for identifying figures and its method of face multi-angle feature
CN108875452A (en) * 2017-05-11 2018-11-23 北京旷视科技有限公司 Face identification method, device, system and computer-readable medium
US10922691B2 (en) * 2017-07-28 2021-02-16 Alclear, Llc Biometric pre-identification
US10745018B2 (en) * 2018-09-19 2020-08-18 Byton Limited Hybrid user recognition systems for vehicle access and control
CN110147744A (en) * 2019-05-09 2019-08-20 腾讯科技(深圳)有限公司 A kind of quality of human face image appraisal procedure, device and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679240A (en) * 2015-01-26 2015-06-03 深圳市金立通信设备有限公司 Terminal control method
US20160225206A1 (en) * 2015-02-04 2016-08-04 Hon Hai Precision Industry Co., Ltd. Intelligent entrance guard unlocking system and unlocking method thereof
US20170316254A1 (en) * 2016-04-29 2017-11-02 Faraday&Future Inc. Remote camera access
CN108334870A (en) * 2018-03-21 2018-07-27 四川意高汇智科技有限公司 The remote monitoring system of AR device data server states
CN110930547A (en) * 2019-02-28 2020-03-27 上海商汤临港智能科技有限公司 Vehicle door unlocking method, vehicle door unlocking device, vehicle door unlocking system, electronic equipment and storage medium
CN110335389A (en) * 2019-07-01 2019-10-15 上海商汤临港智能科技有限公司 Car door unlocking method and device, system, vehicle, electronic equipment and storage medium
CN111540090A (en) * 2020-04-29 2020-08-14 北京市商汤科技开发有限公司 Method and device for controlling unlocking of vehicle door, vehicle, electronic equipment and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114407827A (en) * 2021-12-24 2022-04-29 北京百度网讯科技有限公司 Vehicle door control method, device, equipment, storage medium and automatic driving vehicle
CN114333119A (en) * 2021-12-31 2022-04-12 上海商汤临港智能科技有限公司 Vehicle unlocking method, vehicle management method, terminal, vehicle unlocking system, vehicle unlocking device, and storage medium
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
CN116363781A (en) * 2023-05-29 2023-06-30 深圳市捷易科技有限公司 Channel gate control method, device, equipment and computer storage medium
CN116363781B (en) * 2023-05-29 2023-08-11 深圳市捷易科技有限公司 Channel gate control method, device, equipment and computer storage medium
CN117011963A (en) * 2023-10-07 2023-11-07 四川金投科技股份有限公司 Intelligent lock and intelligent door control system based on electronic key
CN117011963B (en) * 2023-10-07 2023-12-08 四川金投科技股份有限公司 Intelligent lock and intelligent door control system based on electronic key

Also Published As

Publication number Publication date
CN111540090A (en) 2020-08-14
KR20210146354A (en) 2021-12-03
JP2022534284A (en) 2022-07-28
JP7281562B2 (en) 2023-05-25

Similar Documents

Publication Publication Date Title
WO2021218180A1 (en) Method and apparatus for controlling unlocking of vehicle door, and vehicle, device, medium and program
US11449971B2 (en) Method and apparatus with image fusion
US9652663B2 (en) Using facial data for device authentication or subject identification
US11138455B2 (en) Liveness test method and apparatus
US9690998B2 (en) Facial spoofing detection in image based biometrics
EP2580711B1 (en) Distinguishing live faces from flat surfaces
EP3872689A1 (en) Liveness detection method and device, electronic apparatus, storage medium and related system using the liveness detection method
US9177224B1 (en) Object recognition and tracking
EP3761222B1 (en) Living body detection method and apparatus, electronic device, storage medium and related system using living body detection method
WO2019033572A1 (en) Method for detecting whether face is blocked, device and storage medium
US20170061258A1 (en) Method, apparatus, and computer program product for precluding image capture of an image presented on a display
US20210027080A1 (en) Spoof detection by generating 3d point clouds from captured image frames
US10867161B2 (en) Auxiliary filtering device for face recognition and starting method for electronic device
WO2019033567A1 (en) Method for capturing eyeball movement, device and storage medium
CN110738078A (en) face recognition method and terminal equipment
CN111626163A (en) Human face living body detection method and device and computer equipment
US20210241013A1 (en) Spoof detection by estimating subject motion from captured image frames
CN111684782B (en) Electronic device and control method thereof
US10210414B2 (en) Object detection system and computer program product
KR20210036039A (en) Electronic device and image processing method thereof
CN108647600B (en) Face recognition method, face recognition device and computer-readable storage medium
KR102301785B1 (en) Method and appauatus for face continuous authentication
US11205064B1 (en) Measuring quality of depth images in real time
CN108875467B (en) Living body detection method, living body detection device and computer storage medium
WO2021125432A1 (en) Method and device for continuous face authentication

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 20217034709

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2021570765

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 20933377

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20933377

Country of ref document: EP

Kind code of ref document: A1