A method, apparatus, and electronic device for adjusting a vehicle unlocking distance threshold.
By adaptively adjusting the car's Bluetooth unlocking distance threshold, and combining Bluetooth ranging and image detection, the user experience problem caused by a fixed unlocking distance threshold is solved, achieving synchronization between unlocking and user entry, and improving security.
Patent Information
- Application Number
- CN202411804115.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-12-09
AI Technical Summary
The current Bluetooth unlocking distance threshold for cars is fixed during the production process, which cannot adapt to the walking and unlocking habits of different users, resulting in inconsistent unlocking.
By acquiring the target distance between the user and the vehicle and image detection, combined with the door unlocking time, the unlocking distance threshold is adaptively adjusted. By utilizing a long short-term memory network model and Bluetooth signal strength indication, the distance is accurately measured and the unlocking distance threshold is adjusted.
It enables adaptive adjustment of the unlocking distance threshold based on user habits, ensuring that door unlocking is synchronized with user entry, thereby improving user experience and enhancing security.
Smart Images

Figure CN119659527B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive control technology, and in particular to a method, device, and electronic device for adjusting a vehicle unlocking distance threshold. Background Technology
[0002] The car features Bluetooth ranging and Bluetooth unlocking capabilities. When a user approaches the car with their phone, Bluetooth ranging technology determines the target distance between the phone and the car, i.e., the target distance between the user and the car. If the target distance is less than the car's unlocking distance threshold, the doors unlock automatically. However, this unlocking distance threshold is usually a parameter set during the car's manufacturing process and cannot be adjusted. Therefore, the unlocking distance threshold may not be suitable for different users' walking and unlocking habits. Summary of the Invention
[0003] This application provides a method, device, and electronic device for adjusting a vehicle unlocking distance threshold, which can adaptively adjust the unlocking distance threshold according to user habits.
[0004] In a first aspect, this application provides a method for adjusting a vehicle unlocking distance threshold, the method comprising:
[0005] Obtain the target distance between the user and the vehicle;
[0006] Detect whether the target distance is less than the first unlocking distance threshold;
[0007] If the target distance is determined to be less than the first unlocking distance threshold, the car door is unlocked, and the unlocking time is obtained.
[0008] The system acquires an image of the target area and detects whether a user exists in the image of the target area; the target area is determined based on the first unlocking distance threshold.
[0009] If a user is confirmed to be present in the image of the target area, obtain the door opening time;
[0010] The first unlocking distance threshold is adjusted using the door opening time and the door unlocking time to obtain the second unlocking distance threshold.
[0011] Furthermore, by adjusting the first unlocking distance threshold using the door opening time and the door unlocking time, a second unlocking distance threshold is obtained, including:
[0012] Subtract the door opening time from the door unlocking time to obtain the first time difference;
[0013] Detect whether the first time difference is less than the time deviation threshold;
[0014] If the first time difference is determined to be less than the time deviation threshold, the first unlocking distance threshold is added to the update step size to obtain the second unlocking distance threshold.
[0015] Furthermore, after detecting whether the first time difference is less than the time deviation threshold, the method further includes: if it is determined that the first time difference is greater than or equal to the time deviation threshold, using the first unlocking distance threshold as the second unlocking distance threshold.
[0016] Furthermore, after detecting whether a user exists in the image of the target region, the method further includes:
[0017] If it is determined that there is no user in the image of the target area, the updated image of the target area is acquired according to the preset sampling interval, and the presence of a user in the updated image of the target area is detected.
[0018] If a user is found in the updated image of the target area, the acquisition time of the updated image is used as the user's appearance time.
[0019] Get the door opening time;
[0020] Subtract the door opening time from the user's appearance time to obtain the second time difference;
[0021] Calculate the user's movement speed based on the second time difference;
[0022] Calculate the user's positioning distance deviation based on the user's movement speed;
[0023] Detect whether the positioning distance deviation is greater than the distance deviation threshold;
[0024] If the positioning distance deviation is determined to be greater than the distance deviation threshold, the first unlocking distance threshold is subtracted from the update step size to obtain the second unlocking distance threshold.
[0025] Further, based on the second time difference, the user's movement speed is calculated, including: calculating the ratio of the first unlocking distance threshold to the second time difference to obtain the user's movement speed.
[0026] Further, based on the user's movement speed, the user's positioning distance deviation is calculated, including:
[0027] Subtract the user's appearance time from the door unlocking time to obtain the third time difference;
[0028] The positioning distance deviation is obtained by multiplying the user's moving speed by the third time difference.
[0029] Furthermore, after detecting whether the positioning distance deviation is greater than the distance deviation threshold, the method further includes: if it is determined that the positioning distance deviation is less than or equal to the distance deviation threshold, using the first unlocking distance threshold as the second unlocking distance threshold.
[0030] Secondly, this application proposes a device for adjusting a vehicle unlocking distance threshold, comprising:
[0031] The first acquisition module is used to acquire the target distance between the user and the vehicle;
[0032] The first detection module is used to detect whether the target distance is less than the first unlocking distance threshold.
[0033] The second acquisition module is used to unlock the car door and acquire the door unlocking time when the target distance is determined to be less than the first unlocking distance threshold.
[0034] The second detection module is used to acquire images of the target area and detect whether a user exists in the images of the target area; the target area is determined according to the first unlocking distance threshold.
[0035] The third acquisition module is used to acquire the door opening time when a user is found in the image of the target area.
[0036] The adjustment module is used to adjust the first unlocking distance threshold by using the door opening time and the door unlocking time to obtain the second unlocking distance threshold.
[0037] Thirdly, this application proposes an electronic device, which includes a processor and a memory for storing processor-executable instructions, wherein the processor, when executing the instructions, implements the steps of any of the above-described methods for adjusting the vehicle unlocking distance threshold.
[0038] Fourthly, this application also proposes a storage medium storing computer instructions that, when executed by a processor, implement the steps of any of the above-described methods for adjusting the vehicle unlocking distance threshold.
[0039] This application can achieve the following beneficial effects: it can adaptively adjust the first unlocking distance threshold according to different user habits, ensuring that the door unlocking and the user entering the target area occur synchronously, and ensuring that there is a certain time interval between the door opening and the door unlocking, thereby improving the user experience. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0041] Figure 1 A flowchart illustrating a method for adjusting a vehicle unlocking distance threshold provided in an embodiment of this application;
[0042] Figure 2 A flowchart illustrating a method for adjusting a vehicle unlocking distance threshold provided in an embodiment of this application;
[0043] Figure 3 A flowchart illustrating a method for adjusting a vehicle unlocking distance threshold provided in an embodiment of this application;
[0044] Figure 4 This is a schematic diagram of a vehicle unlocking distance threshold adjustment device provided in an embodiment of this application. Detailed Implementation
[0045] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0046] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Furthermore, the character " / " in this document, unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.
[0047] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0048] In existing technology, cars have Bluetooth ranging and Bluetooth unlocking functions. When a user approaches the car with their mobile phone, Bluetooth ranging technology can determine the target distance between the phone and the car, i.e., the target distance between the user and the car. If the target distance is less than the car's unlocking distance threshold, the door unlocks automatically. However, the unlocking distance threshold is usually a parameter set during the car's manufacturing process and cannot be adjusted. Therefore, the unlocking distance threshold cannot be adapted to different users' walking and unlocking habits.
[0049] This application proposes a method, device, and electronic device for adjusting the vehicle unlocking distance threshold, which can adjust the unlocking distance threshold based on the user's walking speed, thereby improving the user's unlocking experience.
[0050] The following description, in conjunction with the accompanying drawings, introduces a method, device, and electronic device for adjusting a vehicle unlocking distance threshold provided in this application.
[0051] In some embodiments, please refer to Figure 1 This application proposes a method for adjusting a vehicle unlocking distance threshold. In specific implementation, the method may include the following:
[0052] S101: Obtain the target distance between the user and the vehicle.
[0053] In some embodiments, a user holds a Bluetooth-enabled mobile phone equipped with a pre-trained ranging model. This ranging model can be a Long Short-Term Memory (LSTM) network model, a special type of Recurrent Neural Network (RNN) primarily designed to address the vanishing and exploding gradient problems during long training sequences. The user, holding the phone, gradually approaches a vehicle equipped with a Bluetooth module. The phone and module establish a Bluetooth connection, with the phone sending Bluetooth signals. The Bluetooth module receives these signals and determines the signal strength information (RSSI, Received Signal Strength Indication), sending it back to the phone. The phone then inputs the RSSI information into the ranging model, which outputs the target distance between the phone and the vehicle, i.e., the target distance between the user and the vehicle.
[0054] Specifically, in order to improve ranging accuracy, a Bluetooth module is installed at the center of the vehicle's armrest, the left B-pillar, the right B-pillar, and the center of the rear of the vehicle. This provides four RSSI information points corresponding to the four Bluetooth modules, which are then input into the ranging model.
[0055] Specifically, in order to improve ranging accuracy, RSSI information can be normalized and outlier processed before being input into the ranging model.
[0056] Specifically, the Bluetooth module located in the armrest box can be used as the main Bluetooth module, and the other three Bluetooth modules can be used as auxiliary Bluetooth modules. The main Bluetooth module detects the RSSI information of the data channel, and the auxiliary Bluetooth modules detect the RSSI information of the broadcast channel. The data is then aggregated by the main Bluetooth module and sent to the mobile phone via the Bluetooth data channel.
[0057] In some embodiments, after the mobile phone obtains the target distance between the user and the vehicle, it sends the target distance to the main Bluetooth module in the vehicle via the Bluetooth data channel.
[0058] In some embodiments, the ranging model is pre-trained as follows:
[0059] S1: Obtain the initial long short-term memory network model;
[0060] S2: In different usage scenarios, the tester holds the mobile phone and gradually approaches the vehicle to collect the sample distance between the tester and the vehicle, as well as the sample RSSI information; the usage scenarios include: mobile phone placed in pocket, mobile phone placed in shoulder bag, mobile phone placed in backpack, mobile phone held at a height of 70cm, mobile phone held at a height of 90cm, and mobile phone held in a swinging arm posture.
[0061] S3: Use the sample RSSI information as the input data of the training set and the sample distance as the output data of the training set. Use the sample RSSI information and sample distance to train the initial long short-term memory network model to obtain the ranging model.
[0062] In some embodiments, the target distance is output through the unit state vector c and the hidden state vector h of the ranging model.
[0063] S102: Detect whether the target distance is less than the first unlocking distance threshold.
[0064] In some embodiments, the first unlocking distance threshold represents the current unlocking distance threshold.
[0065] S103: If the target distance is determined to be less than the first unlocking distance threshold, the door is unlocked and the door unlocking time is obtained.
[0066] In some embodiments, if the target distance is greater than or equal to the first unlocking distance threshold, the target distance can be obtained again after a period of time, and the target distance can be detected to be less than the first unlocking distance threshold until the target distance is less than the first unlocking distance threshold, or until the Bluetooth connection between the mobile phone and the car is lost.
[0067] In some embodiments, the door unlocking time is denoted as T1. The first unlocking distance threshold is denoted as L1.
[0068] S104: Acquire an image of the target area and detect whether a user exists in the image of the target area; the target area is determined according to the first unlocking distance threshold.
[0069] In some embodiments, the circular area determined with the vehicle as the center and the first unlocking distance threshold as the radius is the target area.
[0070] In some embodiments, since there may be errors in determining the target distance using RSSI information, image detection is further used to detect whether the distance between the user and the vehicle is less than a first unlocking distance threshold.
[0071] In some embodiments, the vehicle is equipped with cameras. These cameras can capture images of the target area and can be used to detect whether a user is present in the image of the target area using face detection algorithms or other methods.
[0072] S105: If a user is determined to be present in the image of the target area, obtain the door opening time.
[0073] In some embodiments, the door opening time is the actual time the user opens the door, denoted as T2. If the door opening time and door unlocking time are very close, it means that the user unlocks the door when very close to the vehicle, indicating that the first unlocking distance threshold is set too low, and therefore the first unlocking distance threshold needs to be adjusted.
[0074] S106: Adjust the first unlocking distance threshold using the door opening time and the door unlocking time to obtain the second unlocking distance threshold.
[0075] In some embodiments, see Figure 2 As shown, the first unlocking distance threshold is adjusted using the door opening time and the door unlocking time to obtain the second unlocking distance threshold, specifically including:
[0076] S107: Subtract the door opening time from the door unlocking time to obtain the first time difference;
[0077] S108: Detect whether the first time difference is less than the time deviation threshold;
[0078] S109: If the first time difference is determined to be less than the time deviation threshold, the first unlocking distance threshold is added to the update step size to obtain the second unlocking distance threshold.
[0079] In some embodiments, the first time difference is denoted as ΔT1, and ΔT1 = T2 - T1.
[0080] In some embodiments, the time deviation threshold is set to 3 seconds. The update step size ΔL is set to 1 meter. The second unlocking distance threshold is denoted as L2, where L2 = L1 + ΔL.
[0081] In some embodiments, see Figure 2 As shown, after detecting whether the first time difference is less than the time deviation threshold, the method further includes:
[0082] S110: If it is determined that the first time difference is greater than or equal to the time deviation threshold, the first unlocking distance threshold shall be used as the second unlocking distance threshold.
[0083] In some embodiments, if the first time difference is greater than or equal to the time deviation threshold, it indicates that the door opening time and the door unlocking time are not very close, and there is no need to adjust the first unlocking distance threshold. Therefore, the first unlocking distance threshold is directly used as the second unlocking distance threshold.
[0084] In some embodiments, see Figure 2 As shown, after detecting whether a user exists in the image of the target region, the method further includes:
[0085] S201: If it is determined that there is no user in the image of the target area, the updated image of the target area is acquired according to the preset sampling interval, and the presence of a user in the updated image of the target area is detected.
[0086] S202: If it is determined that a user exists in the updated image of the target area, obtain the acquisition time of the updated image as the user's appearance time;
[0087] S203: Obtain the door opening time;
[0088] S204: Subtract the door opening time from the user's appearance time to obtain a second time difference;
[0089] S205: Calculate the user's movement speed based on the second time difference;
[0090] S206: Calculate the user's positioning distance deviation based on the user's moving speed;
[0091] S207: Detect whether the positioning distance deviation is greater than the distance deviation threshold;
[0092] S208: If the positioning distance deviation is determined to be greater than the distance deviation threshold, the first unlocking distance threshold is subtracted from the update step size to obtain the second unlocking distance threshold.
[0093] In some embodiments, the sampling interval can be 0.5 seconds or 1 second. Updated images of the target area are repeatedly acquired according to the preset sampling interval, and the presence of a user in the updated images of the target area is detected. If a user is found in the updated images of the target area, the repeated acquisition stops, and the acquisition time of the updated image (i.e., the latest updated image) is obtained as the user's appearance time, i.e., the time the user enters the target area. At this point, the result obtained using the ranging model is "the user is in the target area" (because the target distance is less than the first unlocking distance threshold). However, the result of the first acquisition and detection of the target area image using the camera is "the user is not in the target area." This situation occurs because the user is relatively far from the vehicle, and the target distance obtained using Bluetooth ranging technology and the ranging model has an error. Therefore, the user has not actually entered the target area (the unlocking condition has not been met), but the door has been unlocked. Subsequently, the first unlocking distance threshold needs to be adjusted to reduce it, so that unlocking occurs when the user is closer to the vehicle (the accuracy of the target distance is higher when the user is closer to the vehicle), making the door unlocking as synchronous as possible with the user entering the target area.
[0094] In some embodiments, the user's appearance time is denoted as T3. The second time difference is denoted as ΔT2, and ΔT2 = T2 - T3.
[0095] In some embodiments, calculating the user's movement speed based on the second time difference specifically includes: calculating the ratio of a first unlocking distance threshold to the second time difference to obtain the user's movement speed. The user's movement speed is denoted as V.
[0096] In some embodiments, calculating the user's positioning distance deviation based on the user's movement speed specifically includes:
[0097] S1: Subtract the user's appearance time from the door unlocking time to obtain the third time difference;
[0098] S2: Multiply the user's moving speed by the third time difference to obtain the positioning distance deviation.
[0099] In some embodiments, the third time difference is denoted as ΔT3, and ΔT3 = T3 - T1.
[0100] In some embodiments, the positioning distance deviation is denoted as ΔD, and ΔD = ΔT³ × V. The positioning distance deviation represents the difference between the "first distance threshold" and the "user's position when the door is unlocked".
[0101] In some embodiments, the distance deviation threshold is set to 2 meters.
[0102] In some embodiments, when it is determined that the positioning distance deviation is greater than the distance deviation threshold, L2 = L1 - ΔL is set to obtain the second unlocking distance threshold.
[0103] In some embodiments, see Figure 2 As shown, after detecting whether the positioning distance deviation is greater than the distance deviation threshold, the method further includes:
[0104] S209: If the positioning distance deviation is determined to be less than or equal to the distance deviation threshold, the first unlocking distance threshold shall be used as the second unlocking distance threshold.
[0105] In some embodiments, if the positioning distance deviation is less than or equal to the distance deviation threshold, it indicates that the difference between the "first distance threshold" and the "user position when the door is unlocked" is small, and there is no need to adjust the first distance threshold.
[0106] In some embodiments, after obtaining the second unlocking distance threshold, when the user approaches the vehicle again, the second unlocking distance threshold is used as the first unlocking distance threshold, and steps S101 to S106 are repeated to achieve vehicle unlocking control and adjustment of the first unlocking distance threshold once again.
[0107] Based on the above embodiments, the first unlocking distance threshold can be adaptively adjusted according to different user habits, ensuring that door unlocking and user entry into the target area occur synchronously, and that there is a certain time interval between door opening and door unlocking, thereby improving the user experience.
[0108] In some embodiments, see Figure 3 As shown, after detecting whether the target distance is less than the first unlocking distance threshold, the method further includes:
[0109] S301: Set personnel departure time T t The initial value is 0;
[0110] S302: If the target distance is determined to be greater than or equal to the first unlocking distance threshold, use 0.1 seconds as the period for sending Bluetooth signals, repeatedly send Bluetooth signals, repeatedly acquire the target distance, and record the latest target distance as L. t , will L t Let L be the target distance at the previous moment. t-1 ; t represents the current time;
[0111] S303: Detecting L t Is it greater than L? t-1 In determining L t Greater than L t-1 In this case, it indicates that the user may be far from the vehicle, and steps S304 to S307 are executed; after determining L t Less than or equal to L t-1 In this case, it indicates that the user may be near the vehicle, detecting L. t If the distance is less than the first unlocking distance threshold, proceed to step S103; otherwise, proceed to step S302.
[0112] S304: In determining L t Greater than L t-1 In the case of T t =T t +0.1 seconds;
[0113] S305: Detection L t Is it greater than the locking distance threshold L? Lock The locking distance threshold is greater than the first unlocking distance threshold.
[0114] S306:L tGreater than the locking distance threshold L Lock In the case of detecting T t Is it greater than the latching time threshold T? Lock ;
[0115] S307: In determining T t Greater than the latching time threshold T Lock In the event of this, the car door is locked; after confirming L t Less than or equal to the locking distance threshold L Lock In the case of, and / or, in determining T t Less than or equal to the latching time threshold T Lock In the case of [the situation], proceed to step S302.
[0116] Based on the above embodiments, the vehicle locking control method provided in this application can ensure that the position where each user triggers the locking is relatively fixed based on the user's movement speed, thereby improving the user's Bluetooth locking experience.
[0117] In some embodiments, the method further includes: detecting whether the Bluetooth connection between the mobile phone and the Bluetooth module is disconnected; if so, locking the vehicle door. Based on this embodiment, triggering automatic locking when the user moves away by disconnecting the Bluetooth connection can improve vehicle safety.
[0118] Based on the above-described method for adjusting the vehicle unlocking distance threshold, one or more embodiments of this application also provide a device for adjusting the vehicle unlocking distance threshold. Figure 4 This is a schematic diagram of an embodiment of a vehicle unlocking distance threshold adjustment device provided in this application. The vehicle unlocking distance threshold adjustment device provided in this application may include: a first acquisition module 401, a first detection module 402, a second acquisition module 403, a second detection module 404, a third acquisition module 405, and an adjustment module 406.
[0119] The first acquisition module 401 is used to acquire the target distance between the user and the vehicle;
[0120] The first detection module 402 is used to detect whether the target distance is less than the first unlocking distance threshold.
[0121] The second acquisition module 403 is used to unlock the car door and acquire the car door unlocking time when it is determined that the target distance is less than the first unlocking distance threshold.
[0122] The second detection module 404 is used to acquire an image of the target area and detect whether a user exists in the image of the target area; the target area is determined according to the first unlocking distance threshold.
[0123] The third acquisition module 405 is used to acquire the door opening time when it is determined that a user exists in the image of the target area;
[0124] The adjustment module 406 is used to adjust the first unlocking distance threshold by using the door opening time and the door unlocking time to obtain the second unlocking distance threshold.
[0125] In some embodiments, the adjustment module 406 is specifically used to: subtract the door opening time from the door unlocking time to obtain a first time difference; detect whether the first time difference is less than a time deviation threshold; and if it is determined that the first time difference is less than the time deviation threshold, add the first unlocking distance threshold to the update step size to obtain a second unlocking distance threshold.
[0126] In some embodiments, the adjustment module 406 is further configured to: when it is determined that the first time difference is greater than or equal to the time deviation threshold, use the first unlocking distance threshold as the second unlocking distance threshold.
[0127] In some embodiments, the device is further configured to: when it is determined that there is no user in the image of the target area, acquire an updated image of the target area according to a preset sampling interval, and detect whether there is a user in the updated image of the target area; when it is determined that there is a user in the updated image of the target area, obtain the acquisition time of the updated image as the user appearance time; acquire the door opening time; subtract the door opening time from the user appearance time to obtain a second time difference; calculate the user's moving speed based on the second time difference; calculate the user's positioning distance deviation based on the user's moving speed; detect whether the positioning distance deviation is greater than a distance deviation threshold; when it is determined that the positioning distance deviation is greater than the distance deviation threshold, subtract the first unlocking distance threshold from the update step size to obtain a second unlocking distance threshold.
[0128] In some embodiments, the device is further configured to: if it is determined that the positioning distance deviation is less than or equal to a distance deviation threshold, use the first unlocking distance threshold as the second unlocking distance threshold.
[0129] It should be noted that the above-described apparatus may include other implementation methods according to the description of the method embodiments. For specific implementation methods, please refer to the description of the relevant method embodiments, which will not be elaborated here.
[0130] This application also provides an electronic device, including at least one processor and a memory for storing processor-executable instructions, wherein the processor, when executing the instructions, can implement any of the above-described method embodiments. For example, when the instructions are executed by the processor, they include the following steps: obtaining a target distance between a user and a vehicle; detecting whether the target distance is less than a first unlocking distance threshold; if the target distance is determined to be less than the first unlocking distance threshold, unlocking the vehicle door and obtaining the door unlocking time; acquiring an image of a target area and detecting whether a user exists in the image of the target area; the target area is determined according to the first unlocking distance threshold; if a user is determined to exist in the image of the target area, obtaining the door opening time; adjusting the first unlocking distance threshold using the door opening time and the door unlocking time to obtain a second unlocking distance threshold.
[0131] Furthermore, the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, and can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0132] It should be noted that the above-described electronic device, based on the description of the method or apparatus embodiments, may also include other implementation methods. Specific implementation methods can be found in the descriptions of the relevant method embodiments, and will not be elaborated upon here.
[0133] This application also provides a storage medium, which is a computer-readable storage medium storing computer program instructions. When the computer program instructions are executed, the following are implemented: obtaining a target distance between a user and a vehicle; detecting whether the target distance is less than a first unlocking distance threshold; if the target distance is determined to be less than the first unlocking distance threshold, unlocking the vehicle door and obtaining the door unlocking time; acquiring an image of a target area and detecting whether a user exists in the image of the target area; the target area is determined according to the first unlocking distance threshold; if a user exists in the image of the target area, obtaining the door opening time; adjusting the first unlocking distance threshold using the door opening time and the door unlocking time to obtain a second unlocking distance threshold.
[0134] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0135] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0136] In summary, although the present application has disclosed the preferred embodiments as described above, the above preferred embodiments are not intended to limit the present application. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be determined by the scope defined in the claims.
Claims
1. A method for adjusting a vehicle unlocking distance threshold, characterized in that, include: Obtain the target distance between the user and the vehicle; Detect whether the target distance is less than the first unlocking distance threshold; If the target distance is determined to be less than the first unlocking distance threshold, the car door is unlocked, and the unlocking time is obtained. Acquire images of the target area and detect whether a user exists in the images of the target area; The target area is determined based on the first unlocking distance threshold; If a user is confirmed to be present in the image of the target area, obtain the door opening time; The first unlocking distance threshold is adjusted using the door opening time and the door unlocking time to obtain the second unlocking distance threshold.
2. The method according to claim 1, characterized in that, Adjusting the first unlocking distance threshold using the door opening time and the door unlocking time to obtain the second unlocking distance threshold includes: Subtract the door opening time from the door unlocking time to obtain the first time difference; Detect whether the first time difference is less than the time deviation threshold; If the first time difference is determined to be less than the time deviation threshold, the first unlocking distance threshold is added to the update step size to obtain the second unlocking distance threshold.
3. The method according to claim 2, characterized in that, After detecting whether the first time difference is less than the time deviation threshold, the method further includes: If the first time difference is determined to be greater than or equal to the time deviation threshold, the first unlocking distance threshold is used as the second unlocking distance threshold.
4. The method according to claim 1, characterized in that, After detecting whether a user exists in the image of the target region, the method further includes: If it is determined that there is no user in the image of the target area, the updated image of the target area is acquired according to the preset sampling interval, and the presence of a user in the updated image of the target area is detected. If a user is found in the updated image of the target area, the acquisition time of the updated image is used as the user's appearance time. Get the door opening time; Subtract the door opening time from the user's appearance time to obtain the second time difference; Calculate the user's movement speed based on the second time difference; Calculate the user's positioning distance deviation based on the user's movement speed; Detect whether the positioning distance deviation is greater than the distance deviation threshold; If the positioning distance deviation is determined to be greater than the distance deviation threshold, the first unlocking distance threshold is subtracted from the update step size to obtain the second unlocking distance threshold.
5. The method according to claim 4, characterized in that, Based on the second time difference, the user's movement speed is calculated, including: The user's movement speed is obtained by calculating the ratio of the first unlock distance threshold to the second time difference.
6. The method according to claim 4, characterized in that, Based on the user's movement speed, calculate the user's positioning distance deviation, including: Subtract the user's appearance time from the door unlocking time to obtain the third time difference; The positioning distance deviation is obtained by multiplying the user's moving speed by the third time difference.
7. The method according to claim 5, characterized in that, After detecting whether the positioning distance deviation is greater than the distance deviation threshold, the method further includes: If the positioning distance deviation is determined to be less than or equal to the distance deviation threshold, the first unlocking distance threshold is used as the second unlocking distance threshold.
8. A device for adjusting a vehicle unlocking distance threshold, characterized in that, include: The first acquisition module is used to acquire the target distance between the user and the vehicle; The first detection module is used to detect whether the target distance is less than the first unlocking distance threshold. The second acquisition module is used to unlock the car door and acquire the door unlocking time when the target distance is determined to be less than the first unlocking distance threshold. The second detection module is used to acquire images of the target area and detect whether a user exists in the images of the target area; The target area is determined based on the first unlocking distance threshold; The third acquisition module is used to acquire the door opening time when a user is found in the image of the target area. The adjustment module is used to adjust the first unlocking distance threshold by using the door opening time and the door unlocking time to obtain the second unlocking distance threshold.
9. An electronic device comprising a processor and a memory for storing processor-executable instructions, wherein the processor, when executing the instructions, implements the steps of the method according to any one of claims 1 to 7.
10. A storage medium, characterized in that, It stores computer instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
RUNTIME LOCALIZATION OF A VEHICLE USER
DE102022101465A1
Locking system for vehicles
US10589721B1