Vehicle unlocking method, device and equipment and storage medium
By introducing face recognition and sitting posture confirmation into Bluetooth key technology, the potential safety hazards caused by automatic unlocking are solved, ensuring that only legitimate users can start the vehicle, and improving the safety of electric vehicles.
Patent Information
- Application Number
- CN202410833314.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-27
AI Technical Summary
When existing Bluetooth key technology automatically unlocks an electric vehicle, it may cause unintentional unlocking, leading to safety hazards and vehicle loss risks, especially when the user inadvertently approaches the vehicle or stays briefly.
After receiving the Bluetooth signal, the face recognition image is obtained through the camera and face recognition is performed to confirm the user's identity and sitting posture information before unlocking the vehicle and outputting power. A secondary verification is added to reduce risks.
It effectively reduces the risk of vehicle loss and safety hazards, ensures that power is output only when the user is in the driving position, and improves the safety of the vehicle.
Smart Images

Figure CN118711282A
Abstract
Description
Technical Field
[0001] The present application relates to the field of electric vehicles, and in particular to a vehicle unlocking method, device, equipment and storage medium. Background Art
[0002] In the daily use of electric vehicles, electric vehicle users often encounter the embarrassing situation of forgetting to bring keys, which not only brings inconvenience to users, but also affects their travel efficiency. In order to solve this problem, Bluetooth keys for electric vehicles came into being.
[0003] In the prior art, the electric vehicle can be unlocked by integrating a Bluetooth module into the control system of the electric vehicle and pairing the smart terminal with the electric vehicle using the Bluetooth function commonly available in smart terminals. In actual use, when a user approaches the electric vehicle, the control system of the electric vehicle can automatically recognize the Bluetooth signal sent by the user's smart terminal and unlock the electric vehicle.
[0004] However, although Bluetooth keys have brought great convenience to the use of electric vehicles, if the user inadvertently approaches the electric vehicle, or only stays near the electric vehicle for a short time without actually planning to travel, the automatic unlocking of the electric vehicle may cause a safety hazard of losing the electric vehicle. Summary of the invention
[0005] The embodiments of the present application provide a vehicle unlocking method, device, equipment and storage medium, which improve the safety of automatic vehicle unlocking.
[0006] In a first aspect, an embodiment of the present application provides a vehicle unlocking method, comprising:
[0007] When the vehicle is in a stationary locked state, if a Bluetooth signal is received, an identifier of a terminal to which the Bluetooth signal belongs is obtained.
[0008] It is determined whether the identifier of the terminal exists in a Bluetooth whitelist, wherein the Bluetooth whitelist stores identifiers of terminals that can unlock the vehicle.
[0009] If so, when the sensor detects that the object is approaching a preset trigger distance, a first captured image is acquired by taking a photo or a dynamic video stream, and face recognition is performed on the first captured image.
[0010] After the face recognition is passed, the vehicle is controlled to be unlocked, and is powered on to maintain the P gear state with no power output, and the target sitting posture information associated with the user corresponding to the face is obtained from the Bluetooth whitelist.
[0011] When it is determined that the user is located in the driving position of the vehicle based on the target sitting posture information and the latest first captured image of the target through face recognition, the vehicle is controlled to switch from the P gear to the D gear for power output.
[0012] In a second aspect, an embodiment of the present application provides a vehicle unlocking device, comprising:
[0013] The acquisition module is used to acquire the identifier of the terminal to which the Bluetooth signal belongs if a Bluetooth signal is received when the vehicle is in a stationary locked state.
[0014] The judgment module is used to judge whether the identifier of the terminal exists in the Bluetooth white list, and the Bluetooth white list stores the identifiers of terminals that can unlock the vehicle.
[0015] The face recognition module is used to obtain a first captured image by taking a photo or a dynamic video stream if the terminal identifier exists in the Bluetooth whitelist and perform face recognition on the first captured image when the sensor detects that an object is approaching a preset trigger distance.
[0016] The unlocking module is used to control the vehicle to unlock after the face recognition is passed, and to power on and maintain the P gear state with no power output, and to obtain the target sitting posture information associated with the user corresponding to the face from the Bluetooth whitelist.
[0017] The confirmation module is used to control the vehicle to switch from the P gear to the D gear for power output when determining that the user is in the driving position of the vehicle based on the target sitting posture information and the latest target first shot image through face recognition.
[0018] In a third aspect, an embodiment of the present application provides a vehicle unlocking device, including: a memory, a processor;
[0019] The memory stores computer-executable instructions;
[0020] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.
[0022] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0023] The vehicle unlocking method, device, equipment and storage medium provided in the embodiment of the present application, when the vehicle is in a stationary locked state, if a Bluetooth signal is received, the identification of the terminal to which the Bluetooth signal belongs is obtained, and then it is determined whether the identification of the terminal exists in the Bluetooth whitelist; if it exists, when the sensor detects that the object is close to the preset trigger distance, a first captured image is obtained by taking a photo or a dynamic video stream, and face recognition is performed on the first captured image; after the face recognition is passed, the vehicle is unlocked and powered on to maintain the P gear state without power output. The method provided in this embodiment adds a secondary verification of face recognition on the basis of the original Bluetooth verification, reducing the risk of vehicle loss. And when it is determined that the user is currently in the driving position of the vehicle based on the target sitting posture information and the latest target first captured image that has passed the face recognition, the vehicle is controlled to switch from P gear to D gear for power output, ensuring that power output is performed only when the user is in the driving position of the vehicle, reducing the safety risk of sudden vehicle start. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0025] Figure 1 Schematic diagram of the vehicle unlocking method provided in this application Figure 1 ;
[0026] Figure 2 A schematic diagram of a scene in which the camera provided in this application obtains a first captured image;
[0027] Figure 3 Schematic diagram of the vehicle unlocking method provided in this application Figure 2 ;
[0028] Figure 4 A schematic diagram of a first captured image of a target provided in this application;
[0029] Figure 5 Illustration of the shoulder profile and target profile provided for this application Figure 1 ;
[0030] Figure 6 Illustration of the shoulder profile and target profile provided for this application Figure 2 ;
[0031] Figure 7 Schematic diagram of the vehicle unlocking method provided in this application Figure 3 ;
[0032] Figure 8 Schematic diagram of the vehicle unlocking method provided in this application Figure 4 ;
[0033] Fig. 9 Schematic diagram of the vehicle unlocking method provided in this application Figure 5 ;
[0034] Fig.10 Schematic diagram of the vehicle unlocking method provided in this application Figure 6 ;
[0035] Fig.11 Schematic diagram of two first captured images provided in this application Figure 1 ;
[0036] Fig.12 Schematic diagram of two first captured images provided in this application Figure 2 ;
[0037] Fig.13 A schematic diagram of the structure of the vehicle unlocking device provided in this application;
[0038] Fig.14 This is a schematic diagram of the structure of the vehicle unlocking device provided in this application.
[0039] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0041] "Multiple" means two or more, and other quantifiers are similar. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0042] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, products or devices.
[0043] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0044] With the continuous advancement of technology and the enhancement of environmental awareness, electric vehicles have gradually become the first choice for urban travel due to their high efficiency and low emissions. However, in daily use, electric vehicle users often encounter the embarrassing situation of forgetting to bring their keys, which not only brings inconvenience to users, but also affects their travel efficiency. In order to solve this problem, Bluetooth keys based on smart terminals came into being.
[0045] Traditional Bluetooth keys integrate the Bluetooth module into the vehicle's control system and use the Bluetooth function commonly available on smart terminals to pair the smart terminal with the vehicle to unlock the vehicle. In actual use, when the user approaches the vehicle, the vehicle's control system can automatically recognize the Bluetooth signal sent by the user's smart terminal and unlock the vehicle.
[0046] However, when the user approaches the vehicle, although the system automatically identifies and unlocks the vehicle, which improves the convenience of using the vehicle, this convenience also brings a potential problem: if the user approaches the vehicle unintentionally, or only stays near the vehicle for a short time without actually planning to travel, the automatic unlocking of the vehicle may cause safety hazards and may even increase the risk of vehicle loss. For example, if the user stays in a public place and the vehicle happens to be parked nearby, the Bluetooth key may automatically connect to the vehicle and unlock it. But if the user leaves at this time and does not realize that the vehicle has been unlocked, the vehicle may be left unattended, increasing the risk of theft.
[0047] In order to solve the above problems, the present application provides a vehicle unlocking method. After the Bluetooth signal verification is successful, the vehicle's camera is activated to obtain at least one captured image, and face recognition is performed on the at least one captured image. After the face recognition is passed, the vehicle is unlocked and powered on to the P gear state. Then, the user-associated target sitting posture information corresponding to the face is obtained from the Bluetooth whitelist. When it is determined that the user is in the driving seat of the vehicle according to the target sitting posture information, the vehicle is controlled to switch from the P gear to the D gear for power output. On the basis of the original Bluetooth key, the present application adds a secondary verification of face recognition, which reduces the risk of vehicle loss after the Bluetooth key unlocks the vehicle in the prior art. And face recognition is performed on at least one captured image during the face recognition process to prevent the user from mislocking the vehicle when the vehicle is moving.
[0048] On the other hand, after the face recognition is passed, the present application determines that the user is in the driving seat of the vehicle through the user's sitting posture information, and controls the vehicle to switch from P gear to D gear for power output, thereby reducing the danger caused by the sudden start of the vehicle and the user's lack of time to react.
[0049] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0050] Figure 1 Schematic diagram of the vehicle unlocking method provided in this application Figure 1 ,like Figure 1 As shown, the method includes:
[0051] S101. When a vehicle is in a stationary locked state, if a Bluetooth signal is received, an identifier of a terminal to which the Bluetooth signal belongs is obtained.
[0052] In the present application, the vehicle is equipped with a built-in Bluetooth module, which has a Bluetooth wireless communication function and can receive and send Bluetooth signals.
[0053] In some embodiments, the terminal to which the Bluetooth signal belongs is a smart terminal with Bluetooth function, such as a smart phone, a smart watch, etc. The user can turn on the Bluetooth of the smart terminal, and when the smart terminal is within the Bluetooth sensing range of the vehicle, the vehicle can receive the Bluetooth signal of the smart terminal.
[0054] In this embodiment, when the vehicle is in a stationary locked state, if the vehicle receives a Bluetooth signal, the identification of the terminal to which it belongs is obtained according to the Bluetooth signal.
[0055] S102, determining whether the terminal identifier exists in a Bluetooth whitelist, in which identifiers of terminals that can unlock the vehicle are stored; if so, executing S103, if not, executing S101.
[0056] After the terminal identifier is obtained, it is determined whether the terminal identifier exists in the Bluetooth whitelist.
[0057] In some embodiments, the Bluetooth whitelist stores the identifiers of terminals that can unlock the vehicle. Specifically, if the identifier of the terminal exists in the Bluetooth whitelist, it means that the terminal can unlock the vehicle. If the identifier of the terminal does not exist in the Bluetooth whitelist, it means that the terminal cannot unlock the vehicle and ignores the Bluetooth signal.
[0058] S103: When the sensor detects that the object is close to a preset trigger distance, a first captured image is acquired by taking a photo or a dynamic video stream, and face recognition is performed on the first captured image.
[0059] In the present application, the sensor may be an infrared sensor, a pyroelectric infrared sensor or a camera, etc. If the identifier of the terminal exists in the Bluetooth whitelist, the sensor is activated.
[0060] In some embodiments, when the sensor is activated and detects that an object is approaching a preset trigger distance, the camera is turned on to obtain a first captured image, and then face recognition is performed on the first captured image.
[0061] It should be noted that when the camera is turned on, the user may not be within the shooting range of the camera. At this time, the first captured image may not contain the user's portrait information. Therefore, it is necessary to take a second photo or obtain a video stream at a preset time interval to obtain the next first captured image, and then perform face recognition on the next first captured image. The preset time interval ensures that the user has enough time to move to the vehicle.
[0062] In some embodiments, face recognition can compare the portrait information of the user in the first captured image with the portrait information corresponding to the pre-stored terminal identifier. For example, the comparison process is: extracting the key features of the faces in the two images respectively, and then calculating the similarity between the features. If the similarity is higher than a preset threshold, it is considered that face recognition has passed.
[0063] For example, Figure 2 A schematic diagram of a scene in which the camera provided in this application obtains a first captured image, such as Figure 2 As shown in the figure, the camera's shooting range is as follows Figure 2In the dotted range in the figure, in this scenario, the user is in the driving position of the vehicle, and the first captured image obtained at this time contains the user's portrait information. However, in actual application, when the camera is turned on, the user may not have moved to the vehicle, and the user may not be within the shooting range at this time, so the first captured image does not contain the user's portrait information. Therefore, it is necessary to take a second photo or obtain a video stream at a preset time interval to obtain the next first captured image.
[0064] S104: After the face recognition is passed, the vehicle is unlocked and powered on to maintain the P gear state with no power output, and the target sitting posture information associated with the user corresponding to the face is obtained from the Bluetooth whitelist.
[0065] In this embodiment, after the face recognition is passed, it can be determined that the user can unlock the electric vehicle. At this time, the vehicle is controlled to be unlocked, and the vehicle is powered on and maintained in the P gear state with no power output. The P gear is the parking gear of the vehicle. When the vehicle remains in the P gear state, it can prevent the vehicle from moving suddenly.
[0066] In some embodiments, although face recognition is successful, it only means that the user is within the shooting range of the vehicle camera at this time. However, if the user is not in the driving seat of the vehicle, or is standing astride the diagonal gear position of the electric vehicle, if the D gear is switched at this time, the vehicle may move suddenly and the user cannot react in time. Therefore, before controlling the vehicle's gear to switch to the D gear that can output power, the user's current sitting posture needs to be confirmed to prevent the danger of the vehicle moving suddenly due to switching to the D gear before the user sits firmly in the vehicle. In addition, while waiting for traffic lights, when the vehicle is stopped, the current vehicle may think that the vehicle is forgotten to be locked, and the automatic locking causes the owner to restart. Face recognition avoids this situation.
[0067] In this embodiment, after the face recognition is passed, it is also necessary to obtain the target sitting posture information associated with the user corresponding to the face from the Bluetooth whitelist.
[0068] S105 , when it is determined that the user is in the driving position of the vehicle based on the target sitting posture information and the latest first captured image of the target through face recognition, the vehicle is controlled to switch from the P gear to the D gear for power output.
[0069] In the specific implementation process, after the face recognition is passed, the target sitting posture information associated with the user corresponding to the face is obtained from the Bluetooth whitelist. In addition, the latest target first shot image that passes the face recognition is closest to the user's current sitting posture. Therefore, according to the target sitting posture information and the sitting posture information of the portrait in the latest target first shot image that passes the face recognition, it is determined whether the user is currently in the driving position of the vehicle. When it is determined that the user is in the driving position of the vehicle, the vehicle is controlled to switch from P gear to D gear for power output. In some embodiments, the target sitting posture information includes the shape, outline or joint position of the human body when the user is in the driving position. If the similarity between the target sitting posture information and the sitting posture information in the target first shot image reaches a preset threshold, it is determined that the user is in the driving position of the vehicle. Exemplarily, the similarity of the sitting posture information can be calculated by calculating the Euclidean distance of the position of the joint point, and this embodiment is not limited here.
[0070] The vehicle unlocking method provided in the embodiment of the present application, when the vehicle is in a stationary locked state, if a Bluetooth signal is received, the identification of the terminal to which the Bluetooth signal belongs is obtained, and then it is determined whether the identification of the terminal exists in the Bluetooth whitelist; if it exists, when the sensor detects that the object is close to the preset trigger distance, a first captured image is obtained by taking a photo or a dynamic video stream, and face recognition is performed on the first captured image; after the face recognition is passed, the vehicle is unlocked and powered on to maintain the P gear state without power output. The method provided in this embodiment adds a secondary verification of face recognition on the basis of the original Bluetooth verification, reducing the risk of vehicle loss. The target sitting posture information of the user corresponding to the face is obtained from the Bluetooth whitelist, and when it is determined that the user is currently in the driving position of the vehicle based on the target sitting posture information and the latest target first captured image that has passed the face recognition, the vehicle is controlled to switch from the P gear to the D gear for power output, ensuring that power output is performed only when the user is in the driving position of the vehicle, reducing the safety risk of sudden vehicle start.
[0071] In some embodiments, when the vehicle is in the P gear state, head and shoulder recognition can also be performed on the face contour and shoulder contour in the first captured image of the target to determine whether the user is in the driving position of the vehicle. Specifically, if the head-to-shoulder ratio of the face contour and shoulder contour is within a preset range, it means that the user is currently in the driving position of the vehicle.
[0072] In some embodiments, if the vehicle is a two-wheeled electric vehicle, then when the vehicle is in P gear, it can be determined whether the user is in the driving position through the side support detection and the gyroscope. Specifically, if the side support detects that the user is currently retracting the side support and the gyroscope detects that the vehicle is currently in a balanced state, it means that the user is currently in the driving position of the vehicle.
[0073] In some embodiments, when the vehicle is in the P gear, the user can also press a preset button on the vehicle's instrument panel to switch the vehicle from the P gear to the D gear for power output.
[0074] In some embodiments, if the user does not carry a smart terminal with Bluetooth function, or the user does not carry a Bluetooth key, if the user intends to use the vehicle, the vehicle's camera can also be activated by pressing a specific button of the vehicle. Face recognition is performed after the camera is activated. After the face recognition passes, the user can be guided by voice to perform gesture recognition to complete two verifications. The vehicle is unlocked after the two verifications pass. Specifically, after the two verifications pass, the vehicle is controlled to be unlocked, and the power is turned on to maintain the P gear state without power output; when the preset button is triggered, the vehicle is controlled to switch from the P gear to the D gear for power output.
[0075] In some embodiments, although the user passes the facial recognition, it is possible that the user is not in the driving position of the vehicle at this time. For example, if the user is standing sideways or sitting in the back seat, the facial recognition may also pass. Therefore, after the facial recognition passes, the vehicle is unlocked and powered on to maintain the P gear state without power output. When it is determined that the user is in the driving position of the vehicle, the vehicle is controlled to switch from the P gear to the D gear for power output. The following describes how to determine that the user is in the driving position of the vehicle:
[0076] The Bluetooth whitelist also stores the sitting posture information of the user corresponding to the terminal, where the sitting posture information is used to indicate the target outline of the user in the picture when the user is in the driving position. In the specific implementation process, the shoulder outline and the face outline are extracted from the first captured image of the target. When it is determined that the face outline is in a preset posture, the shoulder outline and the target outline are compared to determine whether the user is in the driving position of the vehicle. The specific process refers to the following steps:
[0077] Figure 3 Schematic diagram of the vehicle unlocking method provided in this application Figure 2 In this embodiment, Figure 1 Based on the embodiment, the process of determining that the user is in the driving position of the vehicle is described in detail, and the method includes:
[0078] S301, extracting the facial contour and shoulder contour from the first captured image of the target, and determining whether the facial posture is in a preset posture according to the facial contour, if so, executing S302, if not, executing S301.
[0079] In this embodiment, the Bluetooth whitelist also stores the sitting posture information of the user corresponding to the terminal, and the sitting posture information is used to indicate the target outline of the user in the picture when the user is in the driving seat.
[0080] In the specific implementation process, after the face recognition is passed, the latest first shot image after the face recognition is passed is used as the target first shot image, and the target first shot image reflects the current state of the user. Further, the face contour and shoulder contour are extracted from the target first shot image.
[0081] In some embodiments, the face posture refers to whether the face appearing in the target first shot image is the front face or the side face of the user, and the preset posture can be the front face. When the face posture is in the front face, the next step of judgment is performed. Exemplarily, the key feature points in the facial contour, such as the user's eyes, nose, mouth and other features, can be located by a key point detection algorithm, and then the position and direction of these key points can be analyzed to judge the face posture of the user in the target first shot image. If the face posture is in the preset posture, the next step of judgment is performed. If the face posture is not in the preset posture, the next target first shot image is judged.
[0082] The following uses the position of the user's eyes as an example to describe the process of determining that the face posture is in a preset posture:
[0083] First, a first distance between the left boundary of the left eye contour and the left boundary of the face contour, and a second distance between the right boundary of the right eye contour and the right boundary of the face contour are obtained in the first captured image of the target. Figure 4 Schematic diagram of a first captured image of a target provided in an embodiment of the present application. Figure 4 As shown, in the first captured image of the target, the left boundary of the left eye contour and the left boundary of the face contour are at a first distance, and the right boundary of the right eye contour and the right boundary of the face contour are at a second distance.
[0084] Further, the difference between the first spacing and the second spacing is obtained. When the difference between the first spacing and the second spacing is less than a preset difference, it is determined that the facial posture in the first captured image of the target is in a preset posture, that is, the facial posture is frontal or close to frontal, that is, the user is currently in a suitable viewing angle range.
[0085] In some embodiments, when the difference between the first spacing and the second spacing is greater than a preset difference, that is, the spacing difference on both sides is large, it means that the user's face posture in the target first captured image is a side face, and the user is not in a suitable viewing angle range.
[0086] The vehicle unlocking method provided in this embodiment determines that the user's facial posture is a front face according to the difference between the first distance and the second distance being less than a preset difference, so as to ensure that the user is currently in a suitable viewing angle range and can clearly see the road ahead, traffic signals, and possible obstacles, etc.
[0087] S302: Acquire first boundary information of the shoulder contour, the first boundary information including a first left boundary and a first right boundary, and second boundary information of the target contour, the second boundary information including a second left boundary and a second right boundary.
[0088] In some embodiments, the boundary information of the shoulder contour is used to indicate the distance between the shoulder contour and the image boundary.
[0089] For example, Figure 4 As shown, the figure also indicates the shoulder contour in the first captured image of the target. First boundary information of the shoulder contour is obtained, wherein the first boundary information includes a first left boundary and a first right boundary.
[0090] In some embodiments, the first boundary information may be the distance between the boundary of the shoulder contour and the boundary of the first captured image. The first left boundary is the distance between the leftmost end of the shoulder contour and the left boundary of the first captured image, and correspondingly, the first right boundary is the distance between the rightmost end of the shoulder contour and the right boundary of the first captured image. Figure 4 As shown, the first left boundary is 15 cm from the leftmost end of the shoulder contour to the left boundary. Correspondingly, the first right boundary is 12 cm from the rightmost end of the shoulder contour to the right boundary.
[0091] Accordingly, the second boundary information of the target contour is obtained, and the second boundary information includes a second left boundary and a second right boundary. Specifically, the second left boundary is the distance between the leftmost end of the shoulder of the target contour and the left boundary of the picture, and the second right boundary is the distance between the rightmost end of the shoulder of the target contour and the right boundary of the picture.
[0092] In some embodiments, the Bluetooth whitelist also stores the sitting posture information of the user corresponding to the terminal. The sitting posture information is used to indicate the target outline of the user in the picture when in the driving position, that is, the target outline in the picture when the user is driving normally, which can specifically be the shoulder outline and can optionally include the facial outline.
[0093] Further, based on the first boundary information and the second boundary information, when it is determined that the user is in the driving position, the vehicle is controlled to switch from the P gear to the D gear for power output.
[0094] S303: Acquire a first deviation distance and a first deviation direction between the first left boundary and the second left boundary, and a second deviation distance and a second deviation direction between the first right boundary and the second right boundary.
[0095] Specifically, the first deviation distance and the first deviation direction may be obtained according to the difference between the first left boundary and the second left boundary.
[0096] For example, Figure 5 Illustration of the shoulder profile and target profile provided for this application Figure 1, where the dotted outline is the target outline, and the solid outline is the shoulder outline and the face outline. The first left boundary is 23cm, and the second left boundary is 20cm. Figure 5 It is obtained that the first deviation distance is 3 cm, and the first deviation direction is to the right.
[0097] Correspondingly, the second deviation distance and the second deviation direction can be obtained according to the difference between the first right boundary and the second right boundary. Figure 5 As shown, the first right border is 12 cm, the second right border is 15 cm, and the Figure 5 It can be seen that the second deviation distance is 3 cm, and the second deviation direction is to the right.
[0098] S304. When the first deviation direction and the second deviation direction are consistent, if the first deviation distance and the second deviation distance are both smaller than the first preset distance, it is determined that the user is in the driving position of the vehicle, and the vehicle can be automatically or manually controlled to switch from P gear to D gear for power output.
[0099] In some embodiments, after the face recognition is passed, the user may currently be standing on the side of the car, or the user may be leaning seriously to the left or right. In this case, compared with the target outline, the shoulder outline in the first captured image of the target has the same first deviation direction and the second deviation direction, and the first deviation distance and the second deviation distance are both larger.
[0100] For example, Figure 5 In the example, the first deviation direction and the second deviation direction are both to the right. If the first preset distance is 5 cm, the first deviation distance and the second deviation distance are both smaller than the first preset distance, indicating that the user's body is slightly offset to the right when in the driving position, which does not affect the driving of the vehicle. At this time, the vehicle can be automatically or manually switched to the D gear for power output. If the first deviation distance and the second deviation distance are both larger than the first preset distance, indicating that the user may be standing on the side of the vehicle, the vehicle will not be switched to the D gear for power output.
[0101] Therefore, in the specific implementation process, it is determined whether the user is in the driving position according to the deviation direction and the deviation distance. If the first deviation direction and the second deviation direction are consistent, and the first deviation distance and the second deviation distance are both less than the first preset distance, it is determined that the user is in the driving position, or the body is slightly tilted to both sides when in the driving position, then the vehicle can be automatically or manually switched to D gear for power output.
[0102] S305. When the first deviation direction and the second deviation direction are inconsistent, if the first deviation distance and the second deviation distance are both smaller than the second preset distance, it is determined that the user is in the driving position of the vehicle, and the vehicle can be automatically or manually controlled to switch from P gear to D gear for power output.
[0103] In some embodiments, after the face recognition is passed, the user may currently be standing astride the vehicle's diagonal gear position, or in the back seat of the vehicle, or the user may be leaning forward or backward seriously. According to the principle that photos are larger when they are closer and smaller when they are farther away, the shoulder contour in the first captured image of the target will be inconsistent with the target contour in the first deviation direction and the second deviation direction, and the first deviation distance and the second deviation distance will be larger, that is, greater than the second preset distance. Further, when the user is leaning sideways seriously, the first deviation direction and the second deviation direction may be inconsistent, and the first deviation distance and the second deviation distance may be greater than the second preset distance. At this time, the vehicle will not be switched to D gear for power output.
[0104] For example, Figure 6 Illustration of the shoulder profile and target profile provided for this application Figure 2 , where the dotted outline is the target outline, and the solid outline is the shoulder outline and the face outline. The first left boundary is 35cm, the second left boundary is 20cm, the first right boundary is 30cm, and the second right boundary is 15cm. At this time, the first deviation direction is inconsistent with the second deviation direction, and the first deviation distance and the second deviation distance are both large. According to the principle that photos are larger when they are near and smaller when they are far, it is judged that the user may be in the back seat of the vehicle at this time, so the D gear is not switched at this time.
[0105] If the first deviation direction and the second deviation direction are inconsistent, and the first deviation distance and the second deviation distance are both smaller than the second preset distance, it is determined that the user is in the driving seat of the vehicle at this time, or is slightly leaning forward or backward or slightly sideways in the driving seat, which does not affect the user's driving of the vehicle. At this time, the vehicle can be automatically or manually switched to D gear for power output.
[0106] The vehicle unlocking method provided in the embodiment of the present application, when the vehicle is in the P gear state, extracts the first captured image of the target to obtain the current shoulder contour and facial posture, and when it is determined that the facial posture is in a preset posture, compares the shoulder contour with the target contour, and when it is determined based on the boundary information of the shoulder contour that the user is in the driving seat of the vehicle, the vehicle can be automatically or manually controlled to switch from the P gear to the D gear for power output, thereby avoiding the user from accidentally starting the vehicle, causing the vehicle to move suddenly and cause danger, thereby improving safety.
[0107] In some embodiments, the vehicle unlocking method provided in the present application also includes: after the face recognition is passed, the instrument is controlled to light up, and a welcoming animation and a welcoming sound effect are played; after determining that the vehicle is unlocked, the vehicle is controlled to power on to the P gear state, and the P gear light is displayed.
[0108] In some embodiments, the welcome animation displays a specific pattern or animation on the instrument panel, and the welcome sound effect plays a short sound effect through the speakers configured on the vehicle. The welcome animation and the welcome sound effect are used to inform the user that the vehicle has passed the facial recognition and is ready to be unlocked and started. After the facial recognition is passed, the vehicle's instrument panel lights up, and the welcome animation and the welcome sound effect are played at the same time.
[0109] In some embodiments, the vehicle's instrument panel is equipped with a camera, a speaker, a microphone, and a combination of switches to interact with the user.
[0110] After confirming that the vehicle is unlocked, the vehicle is powered on and the gear position of the vehicle is set to P gear, and the P gear light is displayed on the instrument to inform the user that the vehicle is in parking state.
[0111] In order to improve the safety of the vehicle and reduce the risk of vehicle theft, after the vehicle is unlocked, the present application may also add a process of automatically locking the vehicle, so that the vehicle can be automatically locked when the user forgets to lock the vehicle. Please refer to the following steps for details:
[0112] Figure 7 Schematic diagram of the vehicle unlocking method provided in this application Figure 3 ,like Figure 7 As shown, in this embodiment Figure 1 Based on the embodiment, a process of automatically locking the vehicle is added, and the method includes:
[0113] S701. Obtain vehicle status, where the vehicle status is used to indicate whether the vehicle is in motion.
[0114] S702: After the vehicle does not move its wheels for a preset period of time, a third captured image is acquired through the camera.
[0115] Specifically, the current vehicle state is obtained, and whether the current vehicle is wheeling is determined according to the vehicle state. After the vehicle does not wheel for more than a preset time, a third captured image is obtained through the camera.
[0116] In some embodiments, a wheel speed sensor may be installed on the vehicle, and the wheel speed sensor may detect the rotation speed of the wheel. When the wheel rotates, the sensor generates a corresponding signal to inform the vehicle that the wheel is rotating.
[0117] S703. If there is a face in the third captured image and the face recognition is successful, the action of reacquiring the third captured image after a delay of a preset time is repeated until there is no face in the third captured image, the vehicle is locked, or the shooting is stopped when the vehicle is restarted; wherein, the preset time of a new round can be gradually decreased according to the setting until it is reduced to the target preset time.
[0118] If there is a face in the third shot image and the face recognition is successful, it means that the user is still in the driving position of the vehicle and has not locked the car, which reduces the misjudgment of automatic locking due to long traffic lights or other parking scenarios. If the electric vehicle continues to not move, the preset delay time is repeated and the third shot image is acquired again until there is no face in the third shot image, and the vehicle is locked until the third shot image is stopped when the vehicle starts to move again.
[0119] It should be noted that in order to avoid a long period of no detection resulting in the user not locking the door in time when leaving, the preset time of a new round can be gradually reduced according to the setting until it is reduced to the target preset time.
[0120] The method provided in this embodiment adds a process of automatically locking the vehicle after the vehicle is unlocked, so that the vehicle can be automatically locked when the user forgets to lock the vehicle, thereby improving the safety of the vehicle and reducing the risk of vehicle theft.
[0121] In some embodiments, if the face recognition fails, the method of the present application also provides an anti-theft function and an autonomous selling function. If the vehicle is abnormal, the anti-theft function of the vehicle will warn the user; if the vehicle is not abnormal, the autonomous selling function of the vehicle can also control the vehicle to sell itself, reducing the manual participation in the sale of the vehicle and reducing labor costs. Please refer to the following steps for details:
[0122] Figure 8 Schematic diagram of the vehicle unlocking method provided in this application Figure 4 ,like Figure 8 As shown, in this embodiment Figure 1 Based on the embodiment, it also includes:
[0123] S801. After determining that the anti-theft function of the vehicle is turned on, detect whether the vehicle is abnormal through a detection component.
[0124] In this embodiment, if the face recognition fails, after determining that the anti-theft function of the vehicle is turned on, the detection component is used to detect whether there is any abnormality in the vehicle.
[0125] In some embodiments, the detection component may be a vibration sensor. When the vibration sensor senses abnormal vibration of the vehicle, it notifies the control system of the vehicle of the abnormality.
[0126] S802: After determining that an abnormality occurs in the vehicle, control the camera to obtain a second captured image, and push the second captured image to the terminal.
[0127] In this embodiment, when it is determined that the anti-theft function of the vehicle is turned on, the detection component detects whether the vehicle is abnormal, such as tipping over or collision. After determining that the vehicle is abnormal, the camera is controlled to obtain the second captured image, and the second captured image is pushed to the user terminal to warn the user.
[0128] It should be noted that the vehicle anti-theft function is not limited to detecting whether the vehicle is abnormal only after the face recognition fails, and the vehicle anti-theft function can also be always on. If the detection component detects that the vehicle state is abnormal, for example, after the vibration sensor senses abnormal vibration of the vehicle, the camera is turned on to take pictures and warn the terminal.
[0129] S803. If no abnormality occurs with the vehicle, after determining that the autonomous vending function of the vehicle is turned on, when the proximity sensor senses an object approaching, the camera is activated to detect a human body. If a human body and / or a human face is detected, pre-set product sales information and sales guidance information are played, wherein the sales guidance information is used to instruct the user to perform voice control through a preset combination of buttons of the vehicle.
[0130] Specifically, if the vehicle's facial recognition fails and no abnormality occurs with the vehicle, after determining that the vehicle's autonomous vending function is turned on, if the proximity sensor senses an object approaching, the camera is activated for human body detection.
[0131] In some embodiments, the proximity sensor may be a pyroelectric infrared sensor, a radar, or a vibration sensor. When it senses an object approaching, it activates the camera to perform human body detection. If a human body and / or face is detected, pre-set product sales information and sales guidance information are played.
[0132] In some embodiments, the product sales information includes vehicle information such as price, battery capacity, and maximum speed, and the sales guidance information is used to instruct users near the vehicle to enable voice control of the vehicle by pressing a preset combination of buttons on the vehicle.
[0133] For example, the sales guidance information may be played as “You can press buttons A and B at the same time to start voice interaction and learn more.” When the user presses the corresponding button, the vehicle controls the microphone to acquire the user's voice.
[0134] S804. Based on the voice interaction with the user, the commodity sales information is changed until it is detected that the user leaves; wherein, when the user has a purchase intention, the commodity sales information includes a purchase QR code for the sold commodity.
[0135] After obtaining the user's voice, the voice can be recognized through machine learning algorithms or voice recognition technology to obtain the user's needs and match the corresponding product sales information and deliver it to the user. After detecting that the user has left, the delivery of product sales information is closed.
[0136] In some embodiments, for questions raised by users that are not included in the pre-set product sales information, the user's voice can be transmitted to the cloud server, which recognizes the voice and matches the corresponding answer statement by querying the knowledge base, and transmits the answer statement to the user through a speaker.
[0137] When it is recognized that there is a purchase intention in the instruction issued by the user, the purchase QR code of the sold product can be delivered to the user.
[0138] In some embodiments, the purchase QR code may also be replaced with a purchase link or other entry point for purchasing the vehicle, which is not limited in this embodiment.
[0139] The method provided in this embodiment provides users with an anti-theft function and an autonomous selling function. The anti-theft function promptly warns users when the vehicle status is abnormal, thereby improving the safety of the vehicle. The autonomous selling function can promptly respond to the user's voice commands through voice interaction with the user, thereby improving sales efficiency and saving labor costs when the owner needs to sell the vehicle.
[0140] When the user does not bring a mobile phone or a Bluetooth key, in order to unlock the vehicle, this application also provides another possible implementation method, specifically refer to the following steps:
[0141] Fig. 9 Schematic diagram of the vehicle unlocking method provided in this application Figure 5 ,like Fig. 9 As shown, the method includes:
[0142] S901. When no Bluetooth signal is received, when the sensor detects that an object is approaching a preset trigger distance, or when the user actively operates a first preset button to trigger the camera to shoot, a first captured image is obtained by taking a photo or a dynamic video stream, and face recognition is performed on the first captured image.
[0143] Specifically, when the vehicle does not receive a Bluetooth signal, if the sensor on the vehicle detects that an object is close to a preset trigger distance, it means that there is a person staying near the vehicle and may need to unlock the vehicle, so the camera is triggered to shoot. Furthermore, a first shot image is obtained by taking a photo or a dynamic video stream, and face recognition is performed on the first shot image.
[0144] Similarly, when the vehicle does not receive a Bluetooth signal, if the user actively operates the first preset button, for example, if the vehicle receives the user pressing the first preset button for face recognition, the camera is triggered to shoot. Further, the first captured image is obtained by taking a photo or a dynamic video stream, and face recognition is performed on the first captured image.
[0145] S902: After the face recognition is successful, the user is guided to perform gesture recognition. After the gesture recognition is passed, the vehicle is controlled to unlock and powered on to maintain the P gear state with no power output.
[0146] In the specific implementation process, after the face recognition is passed, the user can be guided to perform gesture recognition through voice reminders or operation steps displayed on the dashboard. Among them, gesture recognition can be completed by making a pre-set gesture in the vehicle's sensing area to unlock the vehicle without a mobile phone or Bluetooth key. Furthermore, the vehicle is powered on and maintained in the P gear state with no power output.
[0147] S903: When it is obtained that the second preset button is triggered, the vehicle is controlled to switch from the P gear to the D gear for power output.
[0148] Further, if the vehicle obtains that the second preset button is triggered, the vehicle is controlled to switch from the P gear to the D gear for power output. For example, if the vehicle receives that the user presses the second preset button for switching to the D gear, the vehicle is controlled to switch from the P gear to the D gear for power output.
[0149] The method provided in this embodiment provides another unlocking method, which meets the travel needs of users when they forget to bring their mobile phones or Bluetooth keys, and improves the convenience of vehicle use.
[0150] In some embodiments, when the camera is turned on, a user may accidentally pass through the shooting range of the vehicle, causing the face recognition to pass, resulting in a mis-lock. To avoid this situation, an embodiment of the present invention further provides a method for preventing a vehicle from being mis-locked, which specifically refers to the following steps:
[0151] Fig.10 Schematic diagram of the vehicle unlocking method provided in this application Figure 6 ,like Fig.10 As shown, the method includes:
[0152] S1001: If the identifier of the terminal exists in the Bluetooth whitelist, turn on the camera to obtain at least two first captured images at a preset time interval.
[0153] In actual application, when the camera is turned on, the user may not have moved to the vehicle yet. At this time, the user may not be within the shooting range, and the first captured image obtained does not contain the user's portrait information. Therefore, it is necessary to obtain at least two first captured images at a preset time interval and perform face recognition on the at least two captured images.
[0154] For example, when two consecutive first captured images pass facial recognition, it can be ensured that the user is stationary in the vehicle driving position or standing at the side of the vehicle, that is, the user has the intention to unlock the vehicle, and the vehicle is unlocked. Please refer to S1002-S1006:
[0155] S1002: When a face exists in the current first captured image, pre-recognize the face image.
[0156] S1003. After determining that the face pre-recognition in the current first captured image has passed, continue to recognize the next first captured image. After the face pre-recognition in the next first captured image has passed, when the boundaries of the previous and next first captured images overlap, obtain the overlap rate of the face contours of the previous and next first captured images.
[0157] When a face exists in the current first captured image, the face image is pre-identified. In some embodiments, the pre-identification can be performed by comparing the portrait information in the first captured image with the portrait information corresponding to the pre-stored terminal. If the comparison is successful, the face pre-identification of the first captured image is passed. After the face pre-identification in the current first captured image is passed, the next first captured image is recognized.
[0158] Furthermore, after the face pre-recognition in the next first shot image is passed, the overlap rate of the face contour is calculated for the two first shot images before and after the pre-recognition. The process of calculating the overlap rate is first introduced below:
[0159] For example, Fig.11 Schematic diagram of two first captured images provided in this application Figure 1 ,in, Fig.11 (a) is the first image captured before the face is pre-recognized. Fig.11 (b) When calculating the overlap rate of the face contour, the boundaries of the first captured images before and after the face pre-recognition are overlapped. The overlapped image is as follows: Fig.11 (c) Fig.11 The dotted face outline in (c) is the face outline of the previous first shot image, and the solid face outline is the face outline of the next first shot image. Fig.11 As can be seen in (c), the overlap of the facial contours of the two first captured images is as follows: Fig.11The shadow part in (c). The overlap ratio of the face contour calculated from the two first captured images can be obtained by dividing the area of the shadow part by the area of the face contour.
[0160] S1004, determine whether the overlap rate is greater than the preset overlap rate, if it is greater than the preset overlap rate, execute S1005, if it is less than the preset overlap rate, execute S1006.
[0161] S1005: Determine whether face recognition is successful.
[0162] Further, it is determined whether the overlap rate of the facial contours of the two first captured images is greater than a preset overlap rate. If it is greater than the preset overlap rate, it means that the user has not moved significantly within the preset time. At this time, the user may have been in the driving seat of the vehicle, and the face recognition is successful.
[0163] S1006: Continue to identify the next first captured image until the overlap rate of the facial contours of the two preceding and succeeding first captured images is greater than a preset overlap rate.
[0164] Correspondingly, if the overlap ratio of the facial contours of the two first captured images is less than the preset overlap ratio, the facial recognition fails. Fig.12 Schematic diagram of two first captured images provided in this application Figure 2 ,like Fig.12 As shown, Fig.12 (a) is the first image captured before the face is pre-recognized. Fig.12 (b) The first image captured after face pre-recognition, the overlapped image is as follows Fig.12 (c) As shown. Although the face pre-recognition of the two first captured images passes, when calculating the overlap rate of the face contour, after the boundaries of the two first captured images overlap, it can be seen that the overlapped part of the face contour is very small, that is, the overlap rate of the face contour is low. At this time, it means that the user is in a moving state within the preset time interval. For example, the user may pass by the vehicle but has no intention of unlocking. In order to improve the accuracy of the judgment and avoid the phenomenon of the vehicle being mistakenly locked, it is necessary to continue to recognize the next first captured image until the overlap rate of the face contours of the two first captured images is greater than the preset overlap rate.
[0165] The vehicle unlocking method provided in the embodiment of the present application obtains at least two first captured images at a preset time interval after the camera is turned on. When a face exists in the current first captured image, the face image is preset identified. After determining that the face pre-recognition in the current first captured image has passed, the next first captured image is continuously identified. After the face pre-recognition in the next first captured image has passed, when the boundaries of the front and rear two first captured images overlap, the overlap rate of the face contours of the front and rear two first captured images is obtained; if the overlap rate is greater than the preset overlap rate, it is determined that the face recognition has passed; if the overlap rate is less than the preset overlap rate, the next first captured image is continuously identified until the overlap rate of the face contours of the front and rear two first captured images is greater than the preset overlap rate, thereby avoiding the occurrence of mis-locking and improving the accuracy of judging whether the user is in the driving position of the vehicle.
[0166] Fig.13 A schematic diagram of the structure of the vehicle unlocking device provided in this application, such as Fig.13 As shown, the vehicle unlocking device 130 provided in this embodiment includes:
[0167] The acquisition module 1301 is used to acquire the identifier of the terminal to which the Bluetooth signal belongs if a Bluetooth signal is received when the vehicle is in a stationary locked state.
[0168] The judgment module 1302 is used to judge whether the identifier of the terminal exists in the Bluetooth white list, and the Bluetooth white list stores the identifiers of terminals that can unlock the vehicle.
[0169] The face recognition module 1303 is used to obtain a first captured image by taking a photo or a dynamic video stream, and perform face recognition on the first captured image if the terminal identifier exists in the Bluetooth whitelist and the sensor detects that the object is close to a preset trigger distance.
[0170] The unlocking module 1304 is used to control the vehicle to unlock after the face recognition is passed, and to power on and maintain the P gear state with no power output, and obtain the target sitting posture information associated with the user corresponding to the face from the Bluetooth whitelist.
[0171] The confirmation module 1305 is used to control the vehicle to switch from the P gear to the D gear for power output when it is determined that the user is in the driving position of the vehicle based on the target sitting posture information and the latest target first shot image through face recognition.
[0172] In a possible implementation, the Bluetooth whitelist also stores the sitting posture information of the user corresponding to the terminal, where the sitting posture information is used to indicate the target outline of the user in the picture when the user is in the driving seat.
[0173] In a possible implementation, the confirmation module 1305 is specifically used to: extract the facial contour and shoulder contour from the first captured image of the target, and when it is determined based on the facial contour that the facial posture is in a preset posture, compare the shoulder contour and the target contour to determine whether the user is in the driving seat of the vehicle.
[0174] In a possible implementation, the confirmation module 1305 is specifically used to: obtain first boundary information of the shoulder contour, the first boundary information includes a first left boundary and a first right boundary, and second boundary information of the target contour, the second boundary information includes a second left boundary and a second right boundary.
[0175] When it is determined according to the first boundary information and the second boundary information that the user is in the driving position of the vehicle, the vehicle is controlled to switch from the P gear to the D gear for power output.
[0176] In a possible implementation, the confirmation module 1305 is specifically configured to: obtain a first deviation distance and a first deviation direction between the first left boundary and the second left boundary, and a second deviation distance and a second deviation direction between the first right boundary and the second right boundary.
[0177] When the first deviation direction and the second deviation direction are consistent, if the first deviation distance and the second deviation distance are both less than the first preset distance, it is determined that the user is in the driving position of the vehicle, and the vehicle can be automatically or manually controlled to switch from P gear to D gear for power output.
[0178] When the first deviation direction and the second deviation direction are inconsistent, if the first deviation distance and the second deviation distance are both less than the second preset distance, it is determined that the user is in the driving seat of the vehicle, and the vehicle can be automatically or manually controlled to switch from P gear to D gear for power output.
[0179] In a possible implementation, the confirmation module 1305 is specifically used to: determine that the face posture is in a preset posture according to the face contour, including:
[0180] Acquire a first distance between a left boundary of a left eye contour and a left boundary of a face contour, and a second distance between a right boundary of a right eye contour and a right boundary of a face contour in a first captured image of the target;
[0181] When the difference between the first distance and the second distance is less than a preset difference, it is determined that the face posture is in the preset posture.
[0182] In a possible implementation, the face recognition module 1303 is further used to: obtain a vehicle status, where the vehicle status is used to indicate whether the vehicle is moving; and obtain a third captured image through a camera after the vehicle has not moved for a preset period of time.
[0183] If there is a face in the third captured image and the face recognition is passed, the action of re-acquiring the third captured image is repeated with a delay of the preset time until there is no face in the third captured image, the vehicle is locked, or the shooting is stopped when the vehicle starts again; wherein, the preset time of a new round can be gradually decreased according to the setting until it is reduced to the target preset time.
[0184] In a possible implementation, the face recognition module 1303 is also used to: control the lighting of the instrument panel, and play a welcoming animation and a welcoming sound effect; after determining that the vehicle is unlocked, control the vehicle to power on to the P gear state, and display the P gear light.
[0185] In a possible implementation, if the face recognition fails, the face recognition module is further used to: after determining that the anti-theft function of the vehicle is turned on, detect whether there is any abnormality in the vehicle through a detection component.
[0186] After determining that an abnormality occurs in the vehicle, the camera is controlled to obtain a second captured image, and the second captured image is pushed to the terminal.
[0187] In a possible implementation, the face recognition module 1303 is also used to: after determining that the vehicle's autonomous vending function is turned on, when the proximity sensor senses an object approaching, activate the camera to perform human body detection, and if a human body and / or face is detected, play pre-set product sales information and sales guide information, wherein the sales guide information is used to instruct the user to perform voice control through the vehicle's preset combination buttons.
[0188] Based on the voice interaction with the user, the commodity sales information is changed until it is detected that the user leaves; wherein, when the user has a purchase intention, the commodity sales information includes a purchase QR code for the sold commodity.
[0189] In a possible implementation, the face recognition module 1303 is also used to: when no Bluetooth signal is received, when the sensor detects that an object is approaching a preset trigger distance, or when the user actively operates a first preset button to trigger the camera to shoot, obtain a first captured image by taking a photo or a dynamic video stream, and perform face recognition on the first captured image.
[0190] After successful face recognition, the user is guided to perform gesture recognition. After the gesture recognition is passed, the vehicle is controlled to unlock and powered on to maintain the P gear state with no power output. When the second preset button is triggered, the vehicle is controlled to switch from P gear to D gear for power output.
[0191] The vehicle unlocking device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be described in detail here.
[0192] Fig.14This is a schematic diagram of the structure of the vehicle unlocking device provided by this application. Fig.14 As shown, the electronic device 140 provided in this embodiment includes: at least one processor 1401 and a memory 1402. Optionally, the device 140 also includes a communication component 1403. The processor 1401, the memory 1402 and the communication component 1403 are connected via a bus 1404.
[0193] In a specific implementation process, at least one processor 1401 executes the computer-executable instructions stored in the memory 1402, so that at least one processor 1401 executes the above method.
[0194] The specific implementation process of the processor 1401 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0195] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0196] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0197] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0198] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0199] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0200] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0201] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0202] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0203] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0204] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0205] 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 computer-readable storage medium. Based on this understanding, the technical solution of the present invention, 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. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0206] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0207] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A vehicle unlocking method, It is characterized in that include: When the vehicle is in a stationary locked state, if a Bluetooth signal is received, obtaining an identifier of the terminal to which the Bluetooth signal belongs; Determine whether the identifier of the terminal exists in a Bluetooth whitelist, wherein the Bluetooth whitelist stores identifiers of terminals that can unlock the vehicle; If so, when the sensor detects that the object is close to the preset trigger distance, a first captured image is obtained by taking a photo or a dynamic video stream, and face recognition is performed on the first captured image; After the face recognition is passed, the vehicle is controlled to be unlocked, and powered on to maintain the P gear state with no power output, and the target sitting posture information associated with the user corresponding to the face is obtained from the Bluetooth whitelist; When it is determined that the user is located in the driving position of the vehicle based on the target sitting posture information and the latest first captured image of the target through face recognition, the vehicle is controlled to switch from the P gear to the D gear for power output.
2. The method according to claim 1, It is characterized in that The Bluetooth whitelist also stores the sitting posture information of the user corresponding to the terminal, and the sitting posture information is used to indicate the target outline of the user in the picture when the user is in the driving position; The step of determining that the user is located at the driving position of the vehicle according to the target sitting posture information and the latest first captured image of the target through face recognition includes: A facial contour and a shoulder contour are extracted from the first captured image of the target, and when it is determined according to the facial contour that the facial posture is in a preset posture, the shoulder contour is compared with the target contour to determine whether the user is located in the driving seat of the vehicle.
3. The method according to claim 2, It is characterized in that The comparing the shoulder contour with the target contour to determine whether the user is located in the driving position of the vehicle includes: Acquire first boundary information of the shoulder contour, the first boundary information including a first left boundary and a first right boundary, and second boundary information of the target contour, the second boundary information including a second left boundary and a second right boundary; When it is determined according to the first boundary information and the second boundary information that the user is located in the driving position of the vehicle, the vehicle is controlled to switch from the P gear to the D gear for power output.
4. The method according to claim 3, It is characterized in that The method of controlling the vehicle to switch from the P gear to the D gear for power output when it is determined according to the first boundary information and the second boundary information that the user is in the driving position of the vehicle comprises: Acquire a first deviation distance and a first deviation direction between the first left boundary and the second left boundary, and a second deviation distance and a second deviation direction between the first right boundary and the second right boundary; When the first deviation direction and the second deviation direction are consistent, if the first deviation distance and the second deviation distance are both less than a first preset distance, it is determined that the user is in the driving position of the vehicle, and the vehicle can be automatically or manually controlled to switch from the P gear to the D gear for power output; When the first deviation direction and the second deviation direction are inconsistent, if the first deviation distance and the second deviation distance are both less than a second preset distance, it is determined that the user is in the driving position of the vehicle, and the vehicle can be automatically or manually controlled to switch from P gear to D gear for power output.
5. The method according to claim 2, It is characterized in that The step of determining that the facial posture is in a preset posture according to the facial contour includes: Acquire a first distance between a left boundary of a left eye contour and a left boundary of a face contour, and a second distance between a right boundary of a right eye contour and a right boundary of a face contour in the first captured image of the target; When the difference between the first distance and the second distance is less than a preset difference, it is determined that the facial posture is in a preset posture.
6. The method according to claim 1, It is characterized in that After controlling the vehicle to unlock, the method further includes: Acquiring a vehicle state, where the vehicle state is used to indicate whether the vehicle is in wheel motion; After the vehicle does not move its wheels for a predetermined period of time, acquiring a third captured image through the camera; If there is a face in the third captured image and the face recognition is passed, the action of delaying the preset time to re-acquire the third captured image is repeated until there is no face in the third captured image, the vehicle is locked, or the shooting is stopped when the vehicle starts to move again; wherein, the preset time of a new round can be gradually decreased according to the setting until it is reduced to the target preset time.
7. The method according to claim 1, It is characterized in that After the face recognition is passed, the method further includes: Control the lighting of the instrument panel and play the welcoming animation and sound effects; After determining that the vehicle is unlocked, the vehicle is controlled to be powered on in the P gear state, and the P gear light is displayed.
8. The method according to claim 1, It is characterized in that If the face recognition fails, the method further includes: After determining that the anti-theft function of the vehicle is turned on, detecting whether the vehicle has any abnormality by means of a detection component; After determining that the vehicle is abnormal, the camera is controlled to obtain a second captured image, and the second captured image is pushed to the terminal.
9. The method according to claim 8, It is characterized in that If the vehicle has no abnormality, the method further includes: After determining that the autonomous vending function of the vehicle is turned on, when the proximity sensor senses that an object is approaching, the camera is activated to detect a human body, and if a human body and / or a human face is detected, pre-set commodity vending information and vending guidance information are played, wherein the vending guidance information is used to instruct the user to perform voice control through a preset combination button of the vehicle; Based on the voice interaction with the user, the commodity sales information is changed until it is detected that the user leaves; wherein, when the user has a purchase intention, the commodity sales information includes a purchase QR code for the sold commodity.
10. The method according to claim 1, It is characterized in that The method further comprises: When no Bluetooth signal is received, when the sensor detects that an object is approaching a preset trigger distance, or when a user actively operates a first preset button to trigger the camera to shoot, a first captured image is obtained by taking a photo or a dynamic video stream, and face recognition is performed on the first captured image; After the face recognition is successful, the user is guided to perform gesture recognition, and after the gesture recognition is passed, the vehicle is controlled to unlock and powered on to maintain the P gear state with no power output; When it is detected that the second preset button is triggered, the vehicle is controlled to switch from the P gear to the D gear for power output.
11. A vehicle unlocking device, It is characterized in that include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 10.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 10 when executed by a processor.
Citation Information
Patent Citations
User sitting posture guiding method and device for table lamp
CN106056868A
School bus seat special for student
CN108819802A
Driving identity verification system and a driving identity verification method
CN109522792A
Car door unlocking methods and device, system, car, electronic equipment and memory media
CN110335389A
Driver state control system and method based on image information
CN111016913A
Cited By
Control method of electric vehicle and related equipment
CN119502856A
A control method for electric vehicle and related equipment
CN119502856B
TDD cable-free base station antenna module
CN121149682A
