Vehicle leaving identification method and device, electronic equipment and storage medium

By acquiring motion data and geomagnetic data from electronic devices, the system identifies the user's parking intentions, solving the problems of complex operation and low accuracy in existing vehicle departure recognition technologies, and achieving simplified operation and improved accuracy in vehicle departure recognition.

CN121861901APending Publication Date: 2026-04-14HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

Existing vehicle departure recognition technology requires electronic devices to establish a Bluetooth connection with the vehicle terminal, which is complex to operate and has low timeliness and accuracy, affecting user experience.

Method used

By acquiring motion data and geomagnetic data from electronic devices, the system can identify whether a user is near the car door and their movement status, infer the user's parking intention, and execute the exit operation, thus avoiding the need for Bluetooth connectivity.

Benefits of technology

It simplifies user operations, improves the accuracy and timeliness of vehicle departure recognition, and enhances the efficiency of parking management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121861901A_ABST
    Figure CN121861901A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of data processing, and provides a vehicle leaving identification method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining first motion data and geomagnetic data of the electronic equipment; and according to the first motion data and the geomagnetic data, identifying whether the electronic equipment has a vehicle leaving event so as to determine whether to execute a vehicle leaving operation. In the embodiment of the invention, the electronic equipment held by the user is not required to establish Bluetooth connection with the vehicle-mounted terminal on the vehicle, so that the operation required by the user can be reduced under the scene of realizing parking management, the operation efficiency of parking management is improved, whether the user leaves the vehicle or not can be accurately identified through the geomagnetic data, and the user experience is improved. And the accuracy of vehicle leaving identification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of equipment management technology, and in particular relates to a method, device, electronic device and storage medium for off-vehicle identification. Background Technology

[0002] As the primary means of transportation today, the effective and accurate control of automobiles has become a major concern. Vehicle control encompasses not only driving control during operation but also parking management. Existing vehicle management technologies can establish a Bluetooth connection between the car's onboard terminal and the user's handheld electronic device. If the Bluetooth connection is lost, the system can detect when the user leaves the car and perform corresponding exit actions, such as automatic locking. However, this method requires the car's onboard terminal to have Bluetooth connectivity, and the user's handheld electronic device to have a pre-established Bluetooth connection with the terminal. This increases the complexity of operation for the user, reduces parking management efficiency, and negatively impacts the user experience. Summary of the Invention

[0003] This application provides a method, apparatus, electronic device, and storage medium for vehicle departure recognition, which can solve the problems of existing vehicle departure recognition technologies, which require the electronic device to establish a Bluetooth connection with the vehicle terminal to achieve vehicle departure recognition, resulting in high operational difficulty and low timeliness of vehicle departure recognition.

[0004] In a first aspect, embodiments of this application provide a method for vehicle departure recognition, applied to an electronic device, including:

[0005] Acquire the first motion data and geomagnetic data of the electronic device;

[0006] Based on the first motion data and the geomagnetic data, it is determined whether an electronic device has experienced a vehicle departure event to determine whether to perform a vehicle departure operation.

[0007] Implementing the embodiments of this application has the following beneficial effects: When the vehicle's current location is identified as being within a preset parking area, the vehicle departure recognition process can be initiated. This involves acquiring the first motion data of the electronic device and the geomagnetic data corresponding to the scene. Since the geomagnetic data changes drastically when a user approaches the car door, it can be used to determine whether the user is near the door. The electronic device is typically a handheld mobile device, and its movement is consistent with the user's movement. Therefore, the first motion data can determine the user's real-time movement. Based on the movement and proximity to the door, the user's parking intention can be inferred, and when the user's behavior is identified as a departure action, a departure operation is performed. Compared to existing car management technologies, the embodiments of this application do not require the user's handheld electronic device to establish a Bluetooth connection with the vehicle's onboard terminal. This reduces the user's required operations in parking management scenarios, improving operational efficiency while also accurately identifying whether the user has left the vehicle using geomagnetic data, thus enhancing the accuracy of vehicle departure recognition.

[0008] In one possible implementation of the first aspect, acquiring the first motion data and geomagnetic data of the electronic device includes:

[0009] If the vehicle's current first location is detected to be in the parking area, then the state change event of the electronic device is acquired;

[0010] If the state change event is the first event, then the first motion data and geomagnetic data of the electronic device are acquired; the first event is the change event in which the electronic device changes from a fixed placement state to a mobile state.

[0011] In one possible implementation of the first aspect, identifying whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data to determine whether to perform a vehicle departure operation includes:

[0012] If the first motion data satisfies the first condition and the geomagnetic data satisfies the second condition, then the exit operation is performed; the first condition and the second condition are used to determine whether the user holding the electronic device has opened the door and left the vehicle.

[0013] In one possible implementation of the first aspect, the first motion data includes: the time interval between movement states; the geomagnetic data includes a geomagnetic variation curve;

[0014] If the first motion data satisfies the first condition and the geomagnetic data satisfies the second condition, then an exit operation is performed, including:

[0015] If the interval duration exceeds a preset first duration threshold, and the geomagnetic change curve has a sudden change segment, then the vehicle exit operation is performed.

[0016] In one possible implementation of the first aspect, identifying whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data to determine whether to perform a vehicle departure operation includes:

[0017] If the first motion data satisfies the third condition and the geomagnetic data satisfies the fourth condition, then the vehicle exit operation is performed; the third condition and the fourth condition are used to determine whether the user holding the electronic device walks away from the vehicle.

[0018] In one possible implementation of the first aspect, the first motion data includes: step values; the geomagnetic data includes geomagnetic fingerprints collected in multiple different time windows;

[0019] If the first motion data satisfies the third condition and the geomagnetic data satisfies the fourth condition, then the vehicle exit operation is performed, including:

[0020] If the step value is greater than a preset step threshold, and the number of locations corresponding to the geomagnetic fingerprints contained in the geomagnetic data is greater than a preset number threshold, then the vehicle exit operation is performed.

[0021] In one possible implementation of the first aspect, the first motion data includes: motion type; the geomagnetic data includes geomagnetic intensity;

[0022] If the first motion data satisfies the third condition and the geomagnetic data satisfies the fourth condition, then the vehicle exit operation is performed, including:

[0023] If the movement type is the first type, and the number of locations corresponding to the geomagnetic fingerprints contained in the geomagnetic data is greater than a preset threshold, then the vehicle exit operation is performed; the first type is when the user is in a walking state.

[0024] In one possible implementation of the first aspect, identifying whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data to determine whether to perform a vehicle departure operation includes:

[0025] If the first motion data satisfies the fifth condition and the geomagnetic data satisfies the sixth condition, then the exit operation is performed; the fifth and sixth conditions are used to determine whether the user holding the electronic device is taking the elevator.

[0026] In one possible implementation of the first aspect, the first motion data includes: a movement type; the geomagnetic data includes a geomagnetic variation curve;

[0027] If the first motion data satisfies the fifth condition and the geomagnetic data satisfies the sixth condition, then the vehicle exit operation is performed, including:

[0028] If the movement type is the second type and the geomagnetic change curve matches the elevator's geomagnetic characteristic curve, then the exit operation is performed; the second type is when the user is in a vertical lifting or vertical lowering state.

[0029] In one possible implementation of the first aspect, before determining whether to perform an exit operation by identifying whether the electronic device has experienced an exit event based on the first motion data and the geomagnetic data, the method further includes:

[0030] If, during the acquisition of the first motion data and / or the geomagnetic data, the change characteristic value of the geomagnetic intensity in the geomagnetic data is detected to be greater than a preset intensity change threshold, then the off-vehicle operation is prohibited.

[0031] In one possible implementation of the first aspect, the vehicle departure operation includes: generating parking information; the parking information is used to indicate a second position of the vehicle in a parking area.

[0032] In one possible implementation of the first aspect, the parking area includes an indoor parking area;

[0033] When the vehicle's current first position is detected to be within the parking area, the acquisition of the electronic device's first motion data and geomagnetic data includes:

[0034] Upon detecting the vehicle's current first location within the indoor parking area, acquire signal characteristic data from the electronic device;

[0035] If the signal feature data satisfies the seventh condition, then based on the third position when the signal feature data satisfies the seventh condition, the entrance information corresponding to the indoor parking area is determined; the parking information includes the entrance information.

[0036] Secondly, a device for vehicle departure recognition includes:

[0037] The data acquisition unit is used to acquire the first motion data and geomagnetic data of the electronic device;

[0038] The parking trigger unit is used to identify whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data to determine whether to perform a vehicle departure operation.

[0039] In one possible implementation of the second aspect, the data acquisition unit includes:

[0040] The change event acquisition unit is used to acquire the state change event of the electronic device when the current first position of the vehicle is detected to be in a preset parking area;

[0041] The first event response unit is configured to acquire first motion data and geomagnetic data of the electronic device if the state change event is a first event; the first event is a change event in which the electronic device changes from a fixed placement state to a mobile state.

[0042] In one possible implementation of the second aspect, the parking trigger unit is configured to: execute the exit operation if the first motion data satisfies a first condition and the geomagnetic data satisfies a second condition; the first condition and the second condition are used to determine whether the user holding the electronic device has opened the door and left the vehicle.

[0043] In one possible implementation of the second aspect, the first motion data includes: the time interval between movement states; the geomagnetic data includes a geomagnetic variation curve;

[0044] The parking trigger unit includes:

[0045] The door opening and exit recognition unit is used to perform an exit operation if the interval duration is greater than a preset first duration threshold and the geomagnetic change curve has a sudden curve segment.

[0046] In one possible implementation of the second aspect, the parking trigger unit is configured to: execute the vehicle exit operation if the first motion data satisfies a third condition and the geomagnetic data satisfies a fourth condition; the third condition and the fourth condition are used to determine whether the user holding the electronic device walks away from the vehicle.

[0047] In one possible implementation of the second aspect, the first motion data includes: step values; the geomagnetic data includes geomagnetic fingerprints collected in multiple different time windows;

[0048] The parking trigger unit includes:

[0049] The step count recognition unit is used to perform an exit operation if the step count is greater than a preset step count threshold and the number of locations corresponding to the geomagnetic fingerprints contained in the geomagnetic data is greater than a preset number threshold.

[0050] In one possible implementation of the second aspect, the first motion data includes: motion type; the geomagnetic data includes geomagnetic intensity;

[0051] The parking trigger unit includes:

[0052] The gait recognition unit is used to perform an exit operation if the movement type is a first type and the number of locations corresponding to the geomagnetic fingerprints contained in the geomagnetic data is greater than a preset number threshold; the first type is when the user is in a walking state.

[0053] In one possible implementation of the second aspect, the parking trigger unit is configured to: perform the exit operation if the first motion data satisfies a fifth condition and the geomagnetic data satisfies a sixth condition; the fifth condition and the sixth condition are used to determine whether a user holding the electronic device is taking the elevator.

[0054] In one possible implementation of the second aspect, the first motion data includes: a movement type; the geomagnetic data includes a geomagnetic variation curve;

[0055] The parking trigger unit includes:

[0056] The elevator passenger identification unit is used to perform an exit operation if the movement type is the second type and the geomagnetic change curve matches the elevator geomagnetic characteristic curve; the second type is when the user is in a vertical lifting or vertical lowering state.

[0057] In one possible implementation of the second aspect, the vehicle identification device further includes:

[0058] The vehicle movement triggering unit is configured to prohibit the vehicle departure operation if, during the acquisition of the first motion data and / or the geomagnetic data, a change characteristic value of the geomagnetic intensity in the geomagnetic data is detected to be greater than a preset intensity change threshold.

[0059] In one possible implementation of the second aspect, the vehicle departure operation includes: generating parking information; the parking information is used to indicate a second position of the vehicle in the parking area.

[0060] In one possible implementation of the second aspect, the parking area includes an indoor parking area;

[0061] The data acquisition unit includes:

[0062] The signal feature data acquisition unit is used to acquire signal feature data of electronic devices when the current first position of the vehicle is detected in the indoor parking area;

[0063] An entrance identification unit is used to determine the entrance information corresponding to the indoor parking area based on the third position when the signal feature data satisfies the seventh condition, if the signal feature data satisfies the seventh condition; the parking information includes the entrance information.

[0064] Thirdly, embodiments of this application provide an electronic device, including: a memory, a processor, and a program stored in the memory, wherein the processor executes the program to implement the steps of the off-vehicle recognition method described in any of the first aspects above.

[0065] Fourthly, embodiments of this application provide a readable storage medium storing a program that, when executed by a processor, implements the steps of the vehicle departure recognition method described in any of the first aspects above.

[0066] Fifthly, embodiments of this application provide a program product that, when run on a device, causes the device to perform the steps of the display method described in any of the first aspects above.

[0067] Other implementations can refer to the aforementioned aspects and will not be elaborated further.

[0068] The beneficial effects of the above aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description

[0069] Figure 1 This is a diagram illustrating vehicle departure detection via Bluetooth module;

[0070] Figure 2 This is a schematic diagram of the logic chain for leaving the vehicle provided in an embodiment of this application;

[0071] Figure 3 This is a flowchart illustrating the implementation of a vehicle departure recognition method according to an embodiment of this application;

[0072] Figure 4 This is a schematic diagram illustrating the relationship between a first location and a parking area according to an embodiment of this application;

[0073] Figure 5 This is a flowchart of entrance and exit information recognition in an indoor parking lot scenario provided by an embodiment of this application;

[0074] Figure 6 This is a schematic diagram illustrating the determination of an indoor parking area according to an embodiment of this application;

[0075] Figure 7 This is a schematic diagram illustrating the signal changes when entering an indoor parking garage, according to an embodiment of this application.

[0076] Figure 8 This is a schematic diagram of the placement of an electronic device provided in one embodiment of this application;

[0077] Figure 9 This is a schematic diagram of a method for vehicle departure recognition provided in another embodiment of this application;

[0078] Figure 10This is a schematic diagram illustrating the changes in geomagnetic data provided in an embodiment of this application;

[0079] Figure 11 This is a schematic diagram of parking information provided in one embodiment of this application;

[0080] Figure 12 This is a schematic diagram of a method for vehicle departure recognition that combines movement state intervals and geomagnetic data according to an embodiment of this application;

[0081] Figure 13 This is a schematic diagram illustrating vehicle departure recognition based on movement distance according to an embodiment of this application;

[0082] Figure 14 This is a schematic diagram illustrating vehicle exit recognition based on gait type, provided in an embodiment of this application.

[0083] Figure 15 This is a schematic diagram illustrating vehicle exit recognition based on elevator riding behavior recognition, provided in one embodiment of this application.

[0084] Figure 16 This is a schematic diagram of the geomagnetic characteristic curve of an elevator provided in an embodiment of this application;

[0085] Figure 17 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0086] Figure 18 This is a structural block diagram of a vehicle departure recognition device provided in another embodiment of this application;

[0087] Figure 19 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0088] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0089] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0090] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0091] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0092] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0093] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0094] With the increasing prevalence of vehicles, more and more users are using cars as their means of transportation. Parking management is a crucial aspect of vehicle use, and the accuracy and effectiveness of identifying user parking behavior directly impacts the timeliness of the parking management process. For example, a car that supports automatic locking upon leaving the vehicle is typically triggered when the user leaves after the car has been identified as parked; similarly, a user's smartphone may display parking information to pinpoint the vehicle's location, also displayed after parking is detected. Therefore, the timeliness of vehicle departure recognition directly affects the efficiency of the parking management process. Existing vehicle departure recognition technologies generally employ the following two methods:

[0095] Method 1: Vehicle departure detection via Bluetooth module

[0096] For example, Figure 1 A schematic diagram illustrating vehicle departure detection via a Bluetooth module is shown. See also Figure 1As shown, vehicle 10 is equipped with an in-vehicle terminal 11, which may contain a Bluetooth module. Users can use the Bluetooth module on their smartphone 20 to search for the Bluetooth signal emitted by the Bluetooth module of the in-vehicle terminal 11, thereby establishing a Bluetooth connection between the smartphone 20 and the in-vehicle terminal 11. After establishing the Bluetooth connection between the smartphone 20 and the in-vehicle terminal 11, the user can be identified as having left the vehicle by detecting whether the Bluetooth connection has been lost.

[0097] However, this method has both advantages and disadvantages: First, the operation steps are complicated. Since vehicle departure recognition is based on the fact that the vehicle terminal 11 and the smartphone 20 have already established a Bluetooth connection, the user must manually establish the connection between the two, which increases the operation steps required before vehicle departure recognition, that is, lengthens the operation path of vehicle departure recognition and reduces the operation efficiency of vehicle departure recognition; Second, since Bluetooth disconnection requires the user to leave the vehicle at a certain distance before recognition can be performed, especially with the development of Bluetooth technology, the Bluetooth connection distance is constantly increasing, which also greatly reduces the timeliness of vehicle departure recognition.

[0098] Method 2: Vehicle departure detection via Inertial Measurement Unit (IMU)

[0099] Smartphones are typically equipped with an inertial measurement unit (IMU), which may include a gyroscope and an accelerometer. The IMU can acquire the smartphone's motion state, such as whether it is moving horizontally or vertically. Since vehicles generally experience horizontal acceleration while in motion, but this acceleration is often zero when stationary, data from the IMU's coordinate axes can be used to determine whether the smartphone is moving horizontally or stationary, thus enabling parking and vehicle movement determination.

[0100] However, when users ride public transportation, such as buses or subways, they also experience horizontal acceleration similar to when driving. Therefore, when using an IMU for vehicle departure recognition, the arrival status of the public transportation vehicle may be confused with the parking status of the car, leading to incorrect recognition and reducing the accuracy of vehicle departure recognition.

[0101] Furthermore, when using an IMU for vehicle departure recognition, users can also use their smartphones while parked. When using a smartphone, there may be horizontal and vertical movement, which may lead to the mistaken belief that the car is still moving. As a result, it is impossible to recognize that the user has parked in time, which further reduces the accuracy of vehicle departure recognition.

[0102] It is evident that existing vehicle departure recognition technology cannot simultaneously achieve both accuracy and ease of operation, thus affecting the timeliness of subsequent vehicle departure operations and consequently reducing the user experience.

[0103] Example 1:

[0104] To address the problems existing in current vehicle departure recognition technologies, this application provides a method for vehicle departure recognition. When the vehicle's current location is identified as being within a preset parking area, the departure recognition process can be initiated. This involves acquiring first motion data from an electronic device and geomagnetic data corresponding to the scene. Since geomagnetic data changes drastically when a user approaches the car door, this data can be used to determine if the user is near the door. The electronic device is typically a handheld mobile device, and its movement mirrors the user's. Therefore, the first motion data can determine the user's real-time movement. Based on this movement and proximity to the door, the user's parking intention can be inferred, and upon recognizing the user's behavior as departure, a departure operation is executed. Compared to existing car management technologies, this application does not require the user's handheld electronic device to establish a Bluetooth connection with the vehicle's onboard terminal. This reduces the user's operational needs in parking management scenarios, improving efficiency while accurately identifying whether the user has left the vehicle using geomagnetic data, thus enhancing the accuracy of departure recognition.

[0105] In this embodiment, the method for vehicle departure recognition can be applied to electronic devices. Specifically, the electronic device can be a portable electronic device, such as a smartphone, tablet, or smartwatch. The electronic device can be equipped with an IMU and a geomagnetic sensor. The IMU acquires motion data of the electronic device, and the geomagnetic sensor acquires geomagnetic data of the scene. The electronic device can determine whether to perform a vehicle departure operation based on the motion data and the geomagnetic data to achieve accurate and timely vehicle departure recognition.

[0106] For example, Figure 2 A schematic diagram of the logic chain for vehicle exit behavior according to an embodiment of this application is shown. See also Figure 2 As shown, leaving a vehicle requires at least the following stages: ① arriving at a parking space → ② opening the car door → ③ leaving the car. Therefore, in implementing vehicle departure recognition, this application embodiment also determines whether the current state sequentially satisfies the behavioral characteristics of each of the above stages. For example, it uses location information to determine whether a parking space has been reached, uses geomagnetic data to determine whether the car door has been opened, and uses motion data to determine whether the vehicle has left the car. Based on this, Figure 3 A flowchart illustrating the implementation of a vehicle departure recognition method according to an embodiment of this application is shown. See also... Figure 3As shown, the off-vehicle recognition method provided in this application embodiment specifically includes the following steps:

[0107] In S302, the first motion data and geomagnetic data of the electronic device are acquired.

[0108] In this embodiment, when the electronic device detects that parking conditions are met, it can acquire the first motion data corresponding to the electronic device and the geomagnetic data of the scene where the electronic device is located. The aforementioned parking conditions can be that the electronic device is currently located in a parking area, or that the electronic device detects that the current vehicle speed is 0, etc. Specific parking conditions can be set according to actual conditions and are not limited here. When the vehicle is detected to meet the parking conditions, the vehicle departure recognition process can be initiated. Vehicle departure recognition mainly relies on the combination of the electronic device's motion data and geomagnetic data for judgment. Therefore, the motion data of the electronic device can be acquired through its IMU, and the aforementioned geomagnetic data can be acquired through the geomagnetic sensor.

[0109] In some implementations, the first motion data and geomagnetic data may be acquired only after the electronic device detects that the vehicle has arrived at the parking area. Correspondingly, before S302, the following may also be included:

[0110] In S301, it is determined whether the vehicle's current first position is within the parking area.

[0111] In this embodiment, when a user is driving the vehicle, their electronic device moves with the vehicle. At this time, the location of the electronic device can be obtained in real time through a positioning module on the device, and the current location of the electronic device can be identified as the location of the vehicle.

[0112] In some implementations, if the electronic device establishes a communication connection with the vehicle's onboard terminal, such as a Bluetooth connection, and the onboard terminal is equipped with a positioning module, the electronic device can obtain the location fed back by the onboard terminal through the aforementioned communication connection, and determine the vehicle's current first location based on the location fed back by the onboard terminal.

[0113] In this embodiment, after determining the vehicle's current first position, the electronic device can determine whether the current first position is within the parking area. If the first position is within the parking area, the operation of S302 is executed; otherwise, if the first position is not within the parking area, it means that the user will not park at this position. At this time, the current first position can continue to be obtained until the first position is detected to be within the parking area.

[0114] In some implementations, the electronic device may be equipped with a map application, which determines whether the current initial location is within a parking area. For example, Figure 4A schematic diagram illustrating the relationship between a first location and a parking area according to an embodiment of this application is shown. See also Figure 4 As shown, the map application can obtain building information within a preset range and determine whether a building belongs to a parking area based on this information. This building information can include not only the building type but also configuration information such as the number of parking spaces. Figure 4 Parking lot 41 corresponds to the building type of parking lot, for example... Figure 4 The building type corresponding to shopping mall 42 is shopping mall, and the configuration information for shopping mall 42 records 50 parking spaces. Based on this, areas containing buildings of parking lot type and / or with parking spaces and their number recorded in the configuration information can be identified as parking areas. These parking areas can be divided into outdoor parking areas and indoor parking areas. Map applications can identify buildings and parking lots with parking spaces, thus identifying parking areas. Therefore, when a car's initial location is detected as being within a parking area, [further action can be taken]. Figure 4 When vehicle 43 is within the area of ​​the aforementioned parking lot 41, operation S302 can be performed.

[0115] In some implementations, map applications can determine the scenario type of a parking area and employ different response procedures based on that scenario type. These scenario types include outdoor parking scenarios and indoor parking scenarios. Specifically, the response procedures differ depending on the scenario type:

[0116] Scenario 1: Response flow for outdoor parking scenarios

[0117] For outdoor parking lots, the map application can directly display the information of each entrance and exit of the outdoor parking lot. Based on this, the electronic device can perform the operation of S302 without determining the entrance information corresponding to the user's entry into the outdoor parking lot. That is, when the vehicle's current first location is detected to be in the outdoor parking area, the electronic device can perform the operation of S302.

[0118] In some implementations, based on the user's final parking space location (i.e., the second location), the nearest entrance / exit to the parking space is determined from the map application, and the corresponding entrance / exit information is generated. This entrance / exit information can be displayed in the parking information generated when the user leaves the car, so that the user can quickly find the second location of the parking space based on the entrance / exit information.

[0119] Scenario 2: Response flow for indoor parking scenarios

[0120] Indoor parking is typically located within a building, such as an underground parking garage in a residential building or an elevated parking garage in a shopping mall. For these buildings, map applications generally only display the building's entrances and exits, not the entrances and exits of the indoor parking garage. Therefore, to improve the efficiency of finding parking spaces, map applications need to be developed to help users quickly identify the entrances and exits of indoor parking garages after parking.

[0121] For example, Figure 5 A flowchart illustrating entrance / exit information recognition in an indoor parking lot scenario, according to an embodiment of this application, is shown. See also... Figure 5 As shown, when a user parks in this type of parking area, the entrance / exit information used for entry can be determined based on signal characteristic data, facilitating the user's subsequent entry into the indoor parking lot from the corresponding entrance / exit. The specific process is as follows:

[0122] In S501, obtain the vehicle's current first position.

[0123] In S502, it is determined whether the first location is in an indoor parking area.

[0124] In this embodiment, the electronic device can also obtain the first position of the electronic device in real time through the positioning module. Since the position of the electronic device coincides with the position of the vehicle during driving, the first position of the electronic device can be taken as the current position of the vehicle. The map application is used to determine whether the vehicle has entered a building with an indoor parking lot. If the current first position is in a building with an indoor parking lot, the first position is identified as being in the aforementioned indoor parking area, and the operation of S503 is executed.

[0125] In some implementations, if the building the vehicle enters has multiple indoor parking areas, the target parking lot can be determined from among the multiple indoor parking lots based on the distance values ​​between the electronic device's first location and the indoor parking lots in each area. Optionally, the area identifier of the target parking lot can be recorded in the subsequently generated parking information.

[0126] For example, Figure 6 A schematic diagram illustrating the determination of an indoor parking area according to an embodiment of this application is shown. See also... Figure 6 As shown, the vehicle has entered a building area that includes Building 1 and Building 2, each with its own indoor parking lot. The electronic device can determine the user's likely parking location based on their current position, such as being within the area of ​​Building 1. It can then identify Building 1's indoor parking lot as the target parking lot and record "Building 1 parking lot" in the parking information.

[0127] In S503, when the first location is in an indoor parking area, signal characteristic data is acquired.

[0128] In this embodiment, since the parking area is specifically an indoor parking area, and the signal strength generally changes when entering the indoor scene from the outdoor scene, the user can be determined to enter the indoor parking lot from the outdoor scene by whether the signal strength changes drastically. Then, the entrance information can be determined based on the vehicle's position when entering the indoor parking lot.

[0129] In some implementations, the aforementioned signal characteristic data can be: characteristic data of mobile signals from a mobile communication network, characteristic data of positioning signals from a positioning module, or characteristic data of geomagnetic signals. The electronic device can select the signal variation of one of these signals to obtain the aforementioned signal characteristic data; the electronic device can also select the signal variation of two or more signals to obtain the aforementioned signal characteristic data.

[0130] For example, Figure 7 This diagram illustrates the signal changes upon entering an indoor parking garage according to an embodiment of this application. See also... Figure 7 As shown in the figure, the vehicle was in an outdoor area during time period A, and the signal strength of the mobile communication signal it received was relatively strong, corresponding to... Figure 7 The signal segment 71 in the signal curve shown in the figure. During time period B, which is the continuous decline phase leading to the indoor parking lot, the mobile communication signal weakens. Figure 7 Signal segment 72. When the car arrives at the indoor parking lot, i.e., during time period C, its signal strength stabilizes again. Therefore, the signal strength of the mobile communication network differs from that of the vehicle indoors and outdoors, and tends to weaken continuously during the transition between indoor and outdoor scenarios. Based on this, electronic devices can determine whether a user has entered the indoor parking lot by acquiring the signal curve of the mobile communication network.

[0131] In this embodiment, the aforementioned signal characteristic data can be the standard deviation, variance, or range of the signal curve within a preset time period. For example, the electronic device acquires the standard deviation, variance, and / or range of the mobile signal within a preset time period, and can also simultaneously acquire the standard deviation, variance, and / or range of the positioning signal within a preset time period. Based on the signal characteristic data of one or more of these signals, it matches them with a preset third condition to determine whether the vehicle has entered the indoor parking area.

[0132] If the aforementioned signal feature data meets the seventh condition, such as the standard deviation of the mobile signal being greater than a preset mobile signal deviation threshold, or the standard deviation of the positioning signal being greater than a preset positioning signal deviation threshold, then the signal feature data is identified as meeting the seventh condition, and operation S504 is executed; conversely, if the aforementioned signal features do not meet the seventh condition, such as the standard deviation of the mobile signal being less than or equal to the mobile signal deviation threshold, or the standard deviation of the positioning signal being less than or equal to the positioning signal deviation threshold, then the signal feature data is identified as not meeting the third condition, the vehicle has not entered the indoor parking area, and the aforementioned signal feature data can continue to be acquired.

[0133] In some implementations, indoor parking lots can be equipped with indoor distribution systems, where the signal strength of the mobile communication network remains relatively stable indoors. Therefore, simply observing changes in the strength of the mobile signal may not accurately determine whether a vehicle is in an indoor parking area. In this case, the electronic device can simultaneously acquire the signal strength changes of the positioning signal from the positioning module and the corresponding location signal. By comparing these changes, it can determine whether the vehicle has entered an indoor parking area. Optionally, the electronic device can acquire both the mobile signal strength change curve and the location signal strength change curve, and calculate the first standard deviation of the mobile signal and the second standard deviation of the location signal over a preset time period. If the first standard deviation is greater than a mobile signal deviation threshold and / or the second standard deviation is greater than a location signal deviation threshold, then the vehicle is identified as having entered an indoor parking area.

[0134] In S504, if the signal feature data satisfies the seventh condition, then the entrance information corresponding to the indoor parking area is determined based on the third position when the signal feature data satisfies the seventh condition; the parking information includes the entrance information.

[0135] In this embodiment, when the signal feature data is detected to meet the third condition, it indicates that the vehicle has entered the indoor parking lot. At this time, the corresponding entrance information can be determined based on the location (i.e., the third location) corresponding to the moment the signal feature data is met. For example, the third location can be used as the entrance location of the parking lot. Alternatively, the distance between the third location and each entrance of the indoor parking lot can be calculated, and the entrance with the smallest distance from the third location can be selected as the target entrance. The aforementioned entrance information can then be generated based on the target entrance.

[0136] In some implementations, the electronic device is equipped with an IMU (Installation Unit). The IMU can acquire the vehicle's vertical movement distance, and based on this distance, the floor information of the parking area can be determined. Since indoor parking lots are generally constructed using vertical space, such as underground or elevated parking garages, location information alone cannot determine the floor of the parking location. Therefore, when the signal characteristic data meets the seventh condition, the vertical movement distance can also be acquired via the IMU, and the floor information can be determined based on this distance. When generating parking information subsequently, this floor information can be displayed simultaneously, such as "Parking area on basement level 2".

[0137] In this embodiment, when a vehicle is detected to have entered an indoor parking lot, in addition to determining the aforementioned entrance information, geomagnetic data and motion data are also acquired simultaneously, i.e., a process of simultaneously identifying vehicles leaving the parking lot is performed.

[0138] In this embodiment of the application, for scenarios where vehicles are parked in indoor parking lots, the corresponding entrance and exit information can be recorded, which can facilitate the efficiency of users finding parking spaces in indoor parking lots and improve the user experience.

[0139] In some implementations, the user's handheld electronic device can be kept in a fixed position while driving; for example, Figure 8 A schematic diagram showing the placement of an electronic device according to an embodiment of this application is illustrated. See also... Figure 8 As shown in (a), during driving, the smartphone 81 can be placed on the phone holder 82, allowing the user to launch a map application on the smartphone and display corresponding navigation information. The user can then use this navigation information to guide their driving direction. Therefore, once the user has parked, they generally need to remove the smartphone 81 from the phone holder 82, such as... Figure 8 As shown in (b), the user leaves the vehicle after removing the smartphone 81. Therefore, when the vehicle's first location is detected as being in the parking area, the aforementioned first motion data and geomagnetic data can be acquired after detecting whether the electronic device has changed from a fixed position to a moving position. For example, Figure 9 A schematic diagram of a vehicle departure recognition method according to another embodiment of this application is shown. See also Figure 9 As shown, with Figure 3 Compared to the previous embodiment, this embodiment, when detecting that the first location is in the parking area, can first determine whether the electronic device has been lifted from the fixed bracket, and then acquire the first motion data and geomagnetic data after it has been lifted. Specifically, the method for vehicle departure recognition includes the following steps:

[0140] In S901, it is determined whether the vehicle's current first position is within the preset parking area.

[0141] In S902, if the first position is in the parking area, it is determined whether there is a state change event for the electronic device.

[0142] In this embodiment, the electronic device can acquire its current usage state. This usage state includes: screen-on state and screen-off state, fixed placement state and mobile state, charging state and non-charging state, etc. When the electronic device detects a change in usage state, it can generate a corresponding state change event. For example, a change from a fixed placement state to a mobile state corresponds to a first event; a change from a mobile state to a fixed placement state corresponds to a second event; a change from a screen-on state to a screen-off state corresponds to a third event; and a change from a screen-off state to a screen-on state corresponds to a fourth event.

[0143] In this embodiment, when a state change event occurs in the electronic device, it can determine whether the state change event is the first event of changing from a fixed state to a mobile state. If so, it means that the user may pick up the phone from the holder and may leave the vehicle next, thus requiring the subsequent vehicle exit recognition process, i.e., the operation of S903.

[0144] In some implementations, the electronic device can generate a state change event from a fixed position to a mobile position via an IMU. (As mentioned above...) Figure 8 As shown in (a), when the smartphone 81 is placed on the phone holder 82, its acceleration direction is consistent with the acceleration direction of the vehicle. Since the acceleration of a vehicle during travel is generally in the forward direction, its acceleration direction has strong stability. Therefore, if a significant change in the acceleration direction of the electronic device is detected, such as the standard deviation, variance, and range of the acceleration within a preset time being less than or equal to a preset acceleration threshold, the electronic device is identified as being in a fixed position. Conversely, if the standard deviation, variance, and / or range of the acceleration within a preset time are greater than the preset acceleration threshold, the electronic device is in a moving state. When the electronic device changes from a fixed position to a moving state, a state change event from a fixed position to a moving state can be generated.

[0145] In some implementations, a wireless charging pad can be installed on the vehicle, which can then generate a state change event from a fixed position to a mobile position. Specifically, if the electronic device is in a wireless charging state, it can be determined that it is currently in a fixed position; if the electronic device switches from a wireless charging state to a non-charging state, it can be identified that the electronic device is currently in a mobile state, and a state change event from a fixed position to a mobile state can be generated.

[0146] In S903, if a state change event is detected as the first event, the first motion data and geomagnetic data of the electronic device are acquired.

[0147] In this embodiment, when the state change event is detected as the first event, it means that the user has taken off the phone. At this time, the vehicle exit recognition process can continue to be executed. Specifically, the user has left the vehicle by using the first motion data and geomagnetic data. If the user is detected to have left the vehicle, the vehicle exit operation is executed.

[0148] When it needs to be explained, Figure 9 In the embodiment, the subsequent steps of S903 and Figure 3 The subsequent steps after S302 in the embodiment are the same; for details, please refer to [link / reference]. Figure 3 The relevant descriptions of S303 to S304 in the embodiments will not be repeated here.

[0149] In this embodiment of the application, before acquiring the first motion data and geomagnetic data, it can be determined whether the electronic device has been picked up by the user, thereby determining whether the user intends to leave the vehicle, which can improve the accuracy of vehicle departure recognition.

[0150] In S303, based on the first motion data and geomagnetic data, it is determined whether the electronic device has experienced a vehicle departure event.

[0151] In this embodiment, motion data can be used to determine the user's action type or movement trajectory, thereby determining whether the user has left the vehicle by a certain distance, i.e., whether the electronic device has experienced a vehicle departure event. Geomagnetic data can be used to assist motion data to further determine whether the user intends to leave the vehicle. Since geomagnetic data shows significant changes at multiple stages during the user's vehicle departure behavior, vehicle departure recognition can be achieved by combining geomagnetic data with motion data, thereby improving the accuracy and timeliness of vehicle departure recognition.

[0152] Taking the example of using geomagnetic data to determine if a user is near a car door, since car doors are made of metal, the geomagnetic data of electronic devices will undergo significant abrupt changes when they are near metal. For example, Figure 10 A schematic diagram illustrating the variation of geomagnetic data provided in an embodiment of this application is shown. See also... Figure 10 As shown in (a), the geomagnetic data collected when the user is holding a smartphone and is far from the car door is as follows: Figure 10 Data segment A is shown in (c) of the diagram. Referring to data segment A, it can be determined that the geomagnetic data is in a relatively stable state, meaning the variation is small, and the standard deviation, variance, and range are all less than the preset geomagnetic thresholds.

[0153] When a user holds their smartphone and approaches the car door, such as Figure 10 As shown in (b), proximity to metal affects geomagnetic values; the corresponding geomagnetic data is as follows. Figure 10 Data segment B, shown in (c), has a larger maximum value and a smaller minimum value compared to data segment A. This means that the variation range of the geomagnetic values ​​is larger, which can be reflected mathematically as follows: the standard deviation, variance, and range are all greater than the preset geomagnetic threshold.

[0154] This demonstrates that electronic devices can use geomagnetic data to determine whether a user is near the car door. By combining motion data and geomagnetic data, they can achieve timely and accurate vehicle exit recognition, improving the response speed and accuracy of exit operations.

[0155] In S304, if it is detected that the user has left the vehicle, the exit operation is executed.

[0156] In this embodiment, the electronic device can determine whether the user intends to park by using first motion data and geomagnetic data. If the first motion data meets the first condition and the geomagnetic data meets the second condition, the device can identify that the user intends to park and then perform the exit operation.

[0157] In some implementations, the above-mentioned vehicle departure operation may include at least one of the following: automatic vehicle locking operation and displaying parking information.

[0158] If the electronic device is equipped with an electronic key application, and the electronic key application is bound to the electronic key corresponding to the vehicle driven by the user, a vehicle locking command can be generated based on the electronic key, and the vehicle locking command can be sent to the vehicle when the first motion data meets the first condition and the geomagnetic data meets the second condition.

[0159] If the electronic device has established a communication connection with the vehicle, such as a Bluetooth connection, the locking command can be sent directly via Bluetooth. If the electronic device does not have a communication connection with the vehicle, the locking command can be sent to the cloud server, which will then send the locking command to the vehicle's onboard terminal. The onboard terminal will then control the vehicle to lock, thus achieving automatic locking without requiring any user intervention.

[0160] In some implementations, the electronic device is equipped with a display module that can display the generated parking information. For example, Figure 11 A schematic diagram illustrating parking information provided in one embodiment of this application is shown. See also... Figure 11As shown in (a), the electronic device can display parking information on the negative one screen using a display control, such as control 111 mentioned above. Control 111 can display information related to the parking space, such as the location of the parking space (guided by a map on control 111), the floor where the parking space is located (e.g., "Building 1"), and the floor level (e.g., "Second basement level of Building 1"), as well as the parking duration (e.g., "Parking duration 5 minutes"). The specific content included in the parking information can be set according to the actual situation.

[0161] In some possible implementations, if the electronic device determines the entrance / exit information through signal characteristic data, then the entrance / exit information can also be displayed in the parking information mentioned above. See [link to relevant documentation]. Figure 11 As shown in (b), in addition to the various information in control 111, the control 112 may also include entrance and exit information, such as "vehicles enter the parking lot at entrance 2", so as to facilitate users to determine which entrance or exit is more convenient to use when looking for parking spaces, thereby improving the accuracy of parking space query.

[0162] To further illustrate how to determine whether a user intends to leave the vehicle, i.e., whether they have actually left the vehicle, based on the initial motion data and geomagnetic data, the following describes three scenarios for vehicle departure recognition. Specifically, these three scenarios can be summarized as follows: Scenario 1, determining whether a door opening operation was performed to recognize vehicle departure; Scenario 2, determining whether a person left the vehicle on foot to recognize vehicle departure; and Scenario 3, determining whether an elevator was used to recognize vehicle departure. The specific implementation process for each scenario is described below:

[0163] Scenario 1: Determine if a door opening operation has been performed to achieve vehicle exit recognition.

[0164] For example, Figure 12 This illustration shows a method for determining whether a door opening operation has been performed to achieve vehicle exit recognition, according to an embodiment of this application. The electronic device can be pre-set with a first condition and a second condition to determine whether the user has opened the door and left the vehicle. The first condition is used to match with collected first motion data, and the second condition is used to match with collected geomagnetic data. See also... Figure 12 As shown, with Figure 3 as well as Figure 9 Compared to the illustrated embodiments, the first motion data collected in this application embodiment is specifically the interval between movement states, and specifically includes the following steps:

[0165] In S1201, it is determined whether the vehicle's current first position is within the parking area.

[0166] In S1202, if the first position is in the parking area, it is determined whether there is a state change event for the electronic device.

[0167] In this embodiment, the implementation of S1201 is the same as... Figure 9 The implementation of S901 is exactly the same as that of S1202 mentioned above. Figure 9 The implementation of S902 is exactly the same. For a detailed description, please refer to the relevant descriptions of S901 and S902. It will not be repeated here.

[0168] In S1203, if the detected state change event is the first event, it is determined whether the first motion data satisfies the first condition.

[0169] In this embodiment, based on the user's conventional behavioral logic, the behavioral logic chain corresponding to the parking process can be described as follows: ① Arrive at the parking space → ② Remove the phone → ③ Turn off the engine → ④ Open and close the car door → ⑤ Leave the car. Step ① can be determined using S1201; step ② can be determined using S1202. After removing the phone, the user typically places it in a pocket or backpack, meaning that after changing from a placed state to a moving state, the phone will return to a stationary state. Since actions such as turning off the engine, engaging the handbrake, and unfastening the seatbelt all require operation time before leaving the car, when the interval between moving states meets a preset condition, the user's behavior can be considered to conform to the aforementioned parking process behavioral logic chain, and subsequent logical judgments can be executed. Therefore, when a user opens the door to leave the car, their movement trajectory follows a certain pattern. The electronic device can generate a corresponding first condition based on this movement pattern, and then compare the first movement data with the first condition to determine whether the movement data satisfies the movement pattern corresponding to the door opening and leaving behavior, i.e., whether the first condition is met.

[0170] In some implementations, the first condition can be to determine whether the interval between movement states in the motion data is greater than a first time duration threshold; correspondingly, in order to determine whether the motion data meets the first condition, the motion data may include the interval between movement states.

[0171] In this embodiment, when a state change event is identified as the first event, it indicates that the electronic device is currently in a moving state (corresponding to logic node ② when the phone is removed). When the electronic device changes from a moving state to a stationary state again, a timer is started to record the duration of the stationary state. When the electronic device changes back to a moving state (to determine whether to proceed with logic node ③), the interval between the moving states is determined based on the duration of the stationary state. If the interval is less than or equal to a preset time threshold, the first motion data is identified as not meeting the first condition, and the vehicle exit operation is not performed. Since the interval between moving states is short, users generally cannot complete all actions before parking in a short time, or it may indicate that the user is simply removing the smartphone for operation. In this case, the user is identified as not having the intention to park. Conversely, if the interval between moving states is detected to be longer than the preset time threshold, operation S1204 can be performed, indicating that all preparations before leaving the vehicle may have been completed, and it is determined whether the user is approaching the door.

[0172] In some implementations, the aforementioned time threshold can be determined by collecting big data to determine the average or minimum time required for the user to perform actions before parking. Alternatively, the aforementioned time threshold can be determined by other methods, depending on the actual situation.

[0173] In some implementations, users can turn off the engine before removing their phones and leaving the car. The corresponding behavioral logic chain can be described as: ① Arrive at parking space → ② Turn off engine → ③ Remove phone → ④ Open / close car door → ⑤ Leave car. In this case, the aforementioned first motion data can be used to determine the user's movement trajectory while holding the electronic device. That is, the first motion data is judged to meet a first condition based on the movement trajectory. For example, the collected movement trajectory can be compared with the exit trajectory corresponding to opening the door and leaving the car. If the similarity between the two trajectories is greater than a preset similarity threshold, then the first motion data is identified as meeting the first condition; conversely, if the similarity is less than or equal to the similarity threshold, then the first motion data is identified as not meeting the first condition.

[0174] In S1204, if the first motion data satisfies the first condition, then it is determined whether the geomagnetic data satisfies the second condition.

[0175] In this embodiment, based on the aforementioned behavioral logic chain, it can be determined that the user's next action after turning off the engine is to open the car door. Therefore, geomagnetic data collected by the electronic device can be acquired, and it can be determined whether the geomagnetic data meets the geomagnetic characteristics (i.e., the second condition) for the door-opening action. If the geomagnetic data is detected to meet the second condition, it is determined that the user has performed the door-opening action. At this time, it can be identified that the user intends to leave the vehicle, and the operation S1207 is executed. If the geomagnetic data is detected not to meet the second condition, it can be determined that the user has only taken off the phone and does not intend to leave the vehicle. At this time, the vehicle-leaving operation can be omitted.

[0176] In some implementations, when a user opens the door to leave the car, the electronic device will be close to the metal object of the car door, which will cause a sudden change in the geomagnetic data. Therefore, the second condition mentioned above can be to determine whether there is a sudden change region in the geomagnetic change curve. The sudden change region can be defined as the difference between the maximum and minimum geomagnetic values ​​within a preset time period (such as a short time period, such as 2 seconds) being less than a preset amplitude threshold. Thus, by judging whether the geomagnetic change curve meets the curve characteristics corresponding to the opening of the door when leaving the car, it is possible to determine whether the user has the intention to leave the car.

[0177] For example, Figure 13 A schematic diagram of a geomagnetic variation curve provided in one embodiment of this application is shown. See also Figure 13 As shown, the geomagnetic variation curve has a sudden change region in the time period t1, that is, the difference between the maximum value 131 and the minimum value 132 in the time period t1 is large, which is greater than the preset amplitude threshold. In the time period t2, the geomagnetic variation curve tends to be stable again. For example, the standard deviation of the geomagnetic intensity in the time period t2 is less than the preset deviation threshold. At this time, the time period t1 can be considered as a sudden change region. At this time, the geomagnetic data is identified to meet the above condition 2.

[0178] In S1205, if the geomagnetic data meets the second condition, then the second motion data of the electronic device is acquired.

[0179] In S1206, it is determined whether the second motion data meets the third condition; the third condition is used to determine whether the user walks away from the vehicle.

[0180] In this embodiment, since the geomagnetic data meets condition 2, it can be determined that the user has completed step ④ in the vehicle exit behavior logic chain. The parking behavior logic chain also includes step ⑤. In this case, motion data (i.e., second motion data) can continue to be collected to determine whether the user has moved away from the vehicle, that is, to determine whether the second motion data meets the third condition corresponding to walking away from the vehicle.

[0181] The third condition can be to determine whether the step value of the second motion data is greater than a preset step threshold, or to determine whether the movement state corresponding to the second motion data is a walking movement state.

[0182] In this embodiment, the second motion data can be collected starting when the detected change in geomagnetic field is greater than the amplitude threshold. Taking the third condition as an example, if the step value corresponding to the second motion data is less than or equal to the preset step value threshold, it means that the user has not moved away from the vehicle. In this case, the user may not necessarily have the intention to park, and the exit operation is not performed. Conversely, if the step value is greater than the preset step value threshold, it means that the user has the intention to park, and the operation S1207 is executed.

[0183] In S1207, the vehicle exit operation is performed.

[0184] In this embodiment, the specific implementation process of performing the off-vehicle operation is exactly the same as that of S304. For a detailed description, please refer to the relevant description of S304, which will not be repeated here.

[0185] In this embodiment, based on the user's behavior logic chain when parking, the system uses first motion data and geomagnetic data to determine whether the user has opened the door and left the car, thereby determining whether the user has the intention to park and improving the accuracy of vehicle exit recognition.

[0186] Scenario 2: Determining whether a pedestrian has left the vehicle to achieve vehicle departure recognition.

[0187] For example, Figure 14 This illustration shows a schematic diagram of an embodiment of the present application for determining whether a pedestrian has left the vehicle to achieve vehicle exit recognition.

[0188] In S1401, it is determined whether the vehicle's current first position is within the preset parking area.

[0189] In S1402, if the first position is in the parking area, it is determined whether there is a state change event for the electronic device.

[0190] In this embodiment, the implementation process of S1401 is the same as... Figure 12 The implementation process of S1201 is exactly the same as that of S1402. The implementation process of S1402 is exactly the same as that of S1202. For details, please refer to the relevant descriptions of S1201 and S1202. They will not be repeated here.

[0191] In S1403, if the state change event is detected as the first event, the first motion data and geomagnetic data of the electronic device are acquired.

[0192] In S1404, it is determined whether the first motion data satisfies the third condition.

[0193] In this embodiment, since users typically leave the vehicle on foot, by determining whether the first motion data meets the third condition corresponding to walking movement, it can be determined whether the user has walked away from the vehicle. Then, when the user is detected walking away from the vehicle, the corresponding exit operation is executed.

[0194] In some implementations, the third condition can be whether the user's movement type is the first type, where the first type indicates that the user is moving on foot. Correspondingly, to determine whether the first motion data satisfies the third condition, the first motion data can include the user's movement type. If the movement type in the first motion data is the first type, then the first motion data is identified as satisfying the third condition. At this point, whether the geomagnetic data satisfies the condition can be used to determine whether to perform an exit operation. This method can be applied to short-distance movement scenarios. Since determining the movement type generally only requires collecting motion data within a short period of time, the user's movement mode can be determined, enabling faster exit recognition and improving the timeliness of the exit operation.

[0195] In some implementations, the third condition mentioned above can be whether the step value in the first motion data is greater than a preset step threshold. Correspondingly, to determine whether the first motion data meets the third condition, the first motion data can include the user's step value. If the step value in the first motion data is greater than the aforementioned step threshold, the first motion data is identified as meeting the third condition. At this time, whether the geomagnetic data meets the condition can be used to determine whether to perform an exit operation. This method can be applied to long-distance movement scenarios. Since some operations performed by the user while using the mobile phone may be similar to motion data in a moving state, if exit recognition is performed based on the moving state, misjudgments may occur. However, if the step value is greater than the preset step threshold, it can be determined that the user has moved a distance in a walking state, which has stability and can improve the accuracy of exit recognition. It should be noted that the aforementioned step value can be the step value recorded after detecting a state change event of the electronic device.

[0196] In some implementations, the third condition can also combine the step count and movement type, i.e., determining whether the movement type is the first type and whether the step count is greater than a preset step threshold. If both conditions are met, the first motion data is identified as satisfying the third condition. In this case, the first motion data includes the movement type and the step count.

[0197] In S1405, determine whether the geomagnetic data meets the fourth condition.

[0198] In this embodiment, since different locations correspond to different geomagnetic fingerprints, and users often pass through multiple different locations while walking away from the vehicle, the geomagnetic fingerprints in the collected geomagnetic data will correspond to multiple different locations. At this time, based on the changing patterns of the geomagnetic data during the user's walking movement (e.g., the number of geomagnetic fingerprints with existing geomagnetic data exceeding a preset threshold), a corresponding fourth condition can be set, and it can be determined whether the geomagnetic data meets the above fourth condition to determine whether the user has walked away from the vehicle, i.e., to identify whether a vehicle departure event has occurred.

[0199] In some implementations, the fourth condition mentioned above can be: determining whether the number of locations corresponding to geomagnetic fingerprints contained in the geomagnetic data is greater than a preset threshold. For example, Table 1 shows a list of geomagnetic fingerprints corresponding to different locations. Referring to Table 1, it can be determined that different locations correspond to different geomagnetic fingerprints. When collecting geomagnetic data, the electronic device can select data from the geomagnetic data based on the time window (i.e., collection duration) corresponding to the geomagnetic fingerprint, thereby obtaining geomagnetic fingerprints corresponding to different times. Since the user's location has not changed, the geomagnetic fingerprints collected in different time windows will correspond to the same location. In this case, it can be determined that the user has not left the vehicle; conversely, if the geomagnetic data collected in different time windows correspond to different locations, it indicates that the user has been moving. In this case, it can be determined that the user has walked out of the vehicle. Based on this, the electronic device can determine whether the number of locations of the aforementioned geomagnetic fingerprints is greater than a preset threshold to determine if the user has walked out of the vehicle, thereby improving the accuracy of identifying users walking out of the vehicle.

[0200] Location Geomagnetic fingerprint Location A (8,15,10,…,5) Position B (6,8,7,…,16) … … Position N (9,14,10,…,8)

[0201] Table 1

[0202] In S1406, if the first motion data satisfies the third condition and the geomagnetic data satisfies the fourth condition, the system identifies that the user has walked away from the vehicle and executes the exit operation.

[0203] It should be noted that the implementation process of S1406 is the same as that of S1207. For a detailed description, please refer to the relevant description of S1207, which will not be repeated here.

[0204] Scenario 3: Determining whether the vehicle is using the elevator to achieve vehicle exit recognition.

[0205] For example, Figure 15 This illustration shows a schematic diagram of a method for determining whether an elevator has been used to identify passengers leaving the vehicle, according to an embodiment of this application.

[0206] In S1501, it is determined whether the vehicle's current first position is within the preset parking area.

[0207] In S1502, if the first position is in the parking area, it is determined whether there is a state change event for the electronic device.

[0208] In this embodiment, the implementation process of S1501 is the same as... Figure 12 The implementation process of S1201 is exactly the same as that of S1502. The implementation process of S1502 is exactly the same as that of S1202. For details, please refer to the relevant descriptions of S1201 and S1202. They will not be repeated here.

[0209] In S1503, if the state change event is detected as the first event, the first motion data and geomagnetic data of the electronic device are acquired.

[0210] In S1504, it is determined whether the first motion data satisfies the fifth condition.

[0211] In S1505, determine whether the geomagnetic data meets the sixth condition.

[0212] In this embodiment, the parking lot includes an indoor parking lot, and users generally leave the indoor parking lot by taking an elevator. Therefore, by determining whether a user has taken an elevator, it is possible to infer whether the user intends to leave the vehicle. Since the vertical movement during elevator riding and the opening and closing of the elevator doors affect the geomagnetic data collected by the electronic equipment, the first motion data and the geomagnetic data can also be combined to determine whether the user has taken an elevator.

[0213] The fifth condition is used to determine whether the first motion data matches the motion trajectory of the elevator; while the sixth condition is used to determine whether the geomagnetic data matches the change pattern of the geomagnetic field during elevator operation. By judging the above two aspects, it can be determined whether the user has opened the elevator door.

[0214] In some implementations, the fifth condition can be: determining whether the movement type of the first motion data is the second type; the second type is when the user is in a vertically rising or vertically falling movement state.

[0215] In some implementations, the sixth condition can be: determining whether the geomagnetic variation curve matches the corresponding elevator geomagnetic characteristic curve when riding the elevator. For example, Figure 16 A schematic diagram of an elevator geomagnetic characteristic curve provided in one embodiment of this application is shown. See also Figure 16As shown, in time period A, when a user enters the elevator and passes through the elevator door, there is a sudden change in the geomagnetic field. In time period B, the user is inside the elevator and the elevator door is not closed, so the geomagnetic data tends to be stable. In time period C, the elevator door closes, and the geomagnetic data changes abruptly again. This demonstrates that when a user rides an elevator, the geomagnetic change curve meets certain conditions. At this point, the electronic device can calculate the similarity between the collected geomagnetic change curve and a preset elevator geomagnetic characteristic curve, for example, using the Euclidean distance between the two curves. If the similarity is greater than a preset similarity threshold, the device identifies a match and thus determines whether the user is riding the elevator based on the geomagnetic data.

[0216] In S1506, if the first motion data satisfies the fifth condition and the geomagnetic data satisfies the sixth condition, the vehicle exit operation is performed.

[0217] It should be noted that the implementation process of S1506 is the same as that of S1207. For a detailed description, please refer to the relevant description of S1207, which will not be repeated here.

[0218] It should be noted that in all three scenarios mentioned above, it is necessary to determine whether the amplitude of the geomagnetic change is greater than the preset amplitude threshold. However, the amplitude thresholds set in each of the above scenarios can be the same or different. The specific amplitude threshold value can be set according to the different scenarios. Here, the amplitude threshold is not limited.

[0219] In some implementations, the method for vehicle departure recognition may also include:

[0220] In S305, if the vehicle is detected to be in motion during the acquisition of the first motion data and / or the geomagnetic data, the exit operation is stopped.

[0221] In this embodiment, the electronic device can be equipped with a mechanism to prevent the user from leaving the vehicle, i.e., it determines whether the vehicle is in motion. Since the vehicle is in motion, it can be determined that the user does not intend to park. For example, if the user is a passenger of the vehicle rather than the driver, and the user leaves the vehicle, but the vehicle is driven away by the driver, then there is no need to perform the corresponding departure operation. This can avoid the probability of erroneous departure operations and thus improve the accuracy of departure recognition.

[0222] In some implementations, the electronic device can establish a communication connection with the vehicle's onboard terminal, which can feed back its current speed to the electronic device. If the speed is detected to be non-zero, it indicates that the vehicle is in motion.

[0223] In some implementations, the electronic device can be equipped with an IMU, which can acquire the moving speed of the electronic device. If the moving speed is detected to be greater than the user's walking speed threshold, the vehicle is still in motion. At this time, the operation of S305 can be executed.

[0224] In some implementations, electronic devices can identify whether a vehicle is moving using geomagnetic data. Because a vehicle's location continuously changes during movement, and different locations correspond to different geomagnetic fingerprints, the geomagnetic intensity collected at different times can vary significantly. Based on this, the electronic device can calculate characteristic values ​​of the change in geomagnetic intensity over a preset time period, such as variance, standard deviation, and range, and determine whether these characteristic values ​​exceed a preset threshold to determine if the vehicle is moving. If the aforementioned characteristic values ​​exceed the preset threshold, the vehicle can be identified as being in motion.

[0225] In some implementations, electronic devices can also combine the signal strength of wireless signals with geomagnetic data to determine whether a vehicle is in motion. Similarly, wireless signals collected from different locations will vary, such as mobile network signals, location signals, WiFi signals, and Bluetooth signals. If the characteristic value of the change in the signal strength of the collected wireless signal is greater than a preset signal change threshold, and / or the characteristic value of the change in geomagnetic intensity is greater than a preset intensity change threshold, then the vehicle is identified as being in motion, and parking operations can be prohibited.

[0226] Because vehicles move at a relatively high speed, the Earth's magnetic field changes rapidly, resulting in a larger calculated characteristic value for the change in magnetic field strength. Conversely, while the magnetic fingerprints of different locations may vary, leading to some variation in magnetic field strength, the characteristic value for change during walking is smaller than that for when a vehicle is moving. Therefore, by setting the aforementioned intensity change threshold, the difference between magnetic field changes during vehicle movement and those during walking can be distinguished, thereby preventing the user from performing an exit operation while the vehicle is moving.

[0227] In this embodiment, when the electronic device performs the vehicle departure recognition method, it can specifically achieve vehicle departure recognition through the coordinated operation of the following modules. For example, Figure 17 A schematic diagram of the structure of an electronic device according to an embodiment of this application is shown. See also Figure 17As shown, the electronic device includes: a positioning module 171, a sensor module 172, an off-vehicle recognition module 173, and an operation execution module 174. The positioning module 171 acquires the first location of the electronic device and determines whether the first location is within a parking area, i.e., executes operation S301. The sensor module 172 acquires motion data and geomagnetic data. The off-vehicle recognition module 173 identifies the user's parking intention based on the data fed back from the positioning module 171 and the sensor module 172, and, if the user has a parking intention, controls the operation execution module 174 to perform the corresponding off-vehicle operation, such as automatically locking the vehicle and generating parking information.

[0228] As can be seen from the above, when the vehicle's current location is identified as being within a preset parking area, the vehicle departure recognition process can be initiated. This involves acquiring the first motion data of the electronic device and the corresponding geomagnetic data of the scene. Since the geomagnetic data changes drastically when a user approaches the car door, it can be used to determine whether the user is near the door. The electronic device is typically a handheld mobile device, and its movement mirrors the user's. Therefore, the first motion data can determine the user's real-time movement. Based on this movement and proximity to the door, the user's parking intention can be inferred, and upon recognizing the user's behavior as a departure action, a departure operation is executed. Compared to existing car management technologies, this embodiment does not require the user's handheld electronic device to establish a Bluetooth connection with the vehicle's onboard terminal. This reduces the user's required actions in parking management scenarios, improving operational efficiency while also accurately identifying whether the user has left the vehicle using geomagnetic data, thus enhancing the accuracy of vehicle departure recognition.

[0229] Example 2:

[0230] Corresponding to the implementation process of the preprocessing stage in the off-vehicle recognition method in Embodiment 1 above, Figure 18 The diagram shows a structural block diagram of an off-vehicle recognition device according to an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0231] See Figure 18 As shown, a vehicle departure recognition device includes:

[0232] Data acquisition unit 181 is used to acquire the first motion data and geomagnetic data of the electronic device;

[0233] The parking trigger unit 182 is used to identify whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data to determine whether to perform a vehicle departure operation.

[0234] Optionally, the data acquisition unit 181 includes:

[0235] The change event acquisition unit is used to acquire the state change event of the electronic device when the current first position of the vehicle is detected to be in a preset parking area;

[0236] The first event response unit is configured to acquire first motion data and geomagnetic data of the electronic device if the state change event is a first event; the first event is a change event in which the electronic device changes from a fixed placement state to a mobile state.

[0237] Optionally, the parking trigger unit 182 is configured to: execute the exit operation if the first motion data satisfies a first condition and the geomagnetic data satisfies a second condition; the first condition and the second condition are used to determine whether the user holding the electronic device has opened the door to leave the vehicle.

[0238] Optionally, the first motion data includes: the time interval between movement states; the geomagnetic data includes geomagnetic variation curves;

[0239] The parking trigger unit 182 includes:

[0240] The door opening and exit recognition unit is used to perform an exit operation if the interval duration is greater than a preset first duration threshold and the geomagnetic change curve has a sudden curve segment.

[0241] Optionally, the parking trigger unit 182 is configured to: execute the vehicle exit operation if the first motion data satisfies a third condition and the geomagnetic data satisfies a fourth condition; the third condition and the fourth condition are used to determine whether the user holding the electronic device walks away from the vehicle.

[0242] Optionally, the first motion data includes: step count; the geomagnetic data includes geomagnetic fingerprints collected in multiple different time windows;

[0243] The parking trigger unit 182 includes:

[0244] The step count recognition unit is used to perform an exit operation if the step count is greater than a preset step count threshold and the number of locations corresponding to the geomagnetic fingerprints contained in the geomagnetic data is greater than a preset number threshold.

[0245] Optionally, the first motion data includes: motion type; the geomagnetic data includes geomagnetic intensity;

[0246] The parking trigger unit 182 includes:

[0247] The gait recognition unit is used to perform an exit operation if the movement type is a first type and the number of locations corresponding to the geomagnetic fingerprints contained in the geomagnetic data is greater than a preset number threshold; the first type is when the user is in a walking state.

[0248] Optionally, the parking trigger unit 182 is configured to: execute the exit operation if the first motion data satisfies a fifth condition and the geomagnetic data satisfies a sixth condition; the fifth condition and the sixth condition are used to determine whether the user holding the electronic device is taking the elevator.

[0249] Optionally, the first motion data includes: motion type; the geomagnetic data includes geomagnetic variation curves;

[0250] The parking trigger unit 182 includes:

[0251] The elevator passenger identification unit is used to perform an exit operation if the movement type is the second type and the geomagnetic change curve matches the elevator geomagnetic characteristic curve; the second type is when the user is in a vertical lifting or vertical lowering state.

[0252] Optionally, the vehicle identification device further includes:

[0253] The vehicle movement triggering unit is configured to prohibit the vehicle departure operation if, during the acquisition of the first motion data and / or the geomagnetic data, a change characteristic value of the geomagnetic intensity in the geomagnetic data is detected to be greater than a preset intensity change threshold.

[0254] Optionally, the vehicle departure operation includes: generating parking information; the parking information is used to indicate a second location of the vehicle in the parking area.

[0255] Optionally, the parking area includes an indoor parking area;

[0256] The data acquisition unit 181 includes:

[0257] The signal feature data acquisition unit is used to acquire signal feature data of electronic devices when the current first position of the vehicle is detected in the indoor parking area;

[0258] An entrance identification unit is used to determine the entrance information corresponding to the indoor parking area based on the third position when the signal feature data satisfies the seventh condition, if the signal feature data satisfies the seventh condition; the parking information includes the entrance information.

[0259] Please note that in the above embodiments, preset conditions are set for motion data and geomagnetic data corresponding to various vehicle exit scenarios (opening the car door, various walking activities, taking the elevator), and the system determines whether the user has exited the vehicle based on whether the sensed motion data and geomagnetic data meet at least one of the preset conditions. If the user has exited the vehicle, the system performs the exit operation. Various preset conditions can be designed according to different design and product requirements; any condition that satisfies the appropriate judgment of vehicle exit behavior can be used, and this application does not impose any restrictions. However, in other embodiments, motion data and geomagnetic data of the same user or multiple users in different vehicle exit scenarios can be directly or processed and used to train a machine learning model. In this way, the motion data and geomagnetic data, or even other data, can be directly or processed and input into the pre-trained vehicle exit judgment model, and the model's output can be used to indicate whether the user's behavior has occurred according to at least one of the vehicle exit scenarios. Similarly, various preset conditions can be designed according to different design and product requirements, based on geomagnetic data and other wireless data; any condition that satisfies the appropriate judgment of vehicle movement status can be used, and this application does not impose any restrictions. In other embodiments, wireless signal (e.g., cellular) data from the same user or multiple users at different vehicle movement states, along with geomagnetic data or even other data, can be used to train a machine learning model. This allows the relevant signal characteristics of the wireless signals and the geomagnetic data, or other data, either directly or after processing, to be input into the pre-trained vehicle movement model. The model's output can then be used to indicate whether the vehicle is moving or stationary. If the vehicle is identified as moving, exiting the vehicle can be prohibited.

[0260] Furthermore, it is worth noting that in some embodiments of this application, it is possible to determine whether a user has left the vehicle without requiring the electronic device to establish a Bluetooth or other wireless signal connection with the vehicle terminal. However, depending on actual design requirements, in other embodiments, a Bluetooth or other wireless signal connection with the vehicle terminal can also be used to determine whether a user has left the vehicle. That is, if the aforementioned vehicle departure determination occurs and / or the Bluetooth (or other wireless signal) connection between the electronic device and the vehicle terminal is lost, it can be determined that the user has left the vehicle, and this application is not limited thereto. In other embodiments, it can be combined with other vehicle departure determination conditions to increase the accuracy and / or immediacy of vehicle departure determination, and this application is not limited thereto.

[0261] Figure 19 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 19 As shown, the electronic device 19 of this embodiment includes: at least one processor 190 ( Figure 19Only one processor is shown in the diagram, and the number of processors may match the actual number of chips included in the electronic device in the embodiment. Memory 191 and program 192 stored in the memory 191 and executable on the at least one processor 190, wherein the processor 190 executes program 192 to implement the steps in any of the above-described methods for vehicle departure recognition.

[0262] The electronic device 19 may be a smartphone, tablet computer, laptop computer, desktop computer, etc. This electronic device may include, but is not limited to, a processor 190 and a memory 191. Those skilled in the art will understand that... Figure 19 This is merely an example of electronic device 19 and does not constitute a limitation on electronic device 19. It may include more or fewer components than shown, or combine certain components, or different components. For example, it may also include input / output electronic devices, network access electronic devices, etc.

[0263] The processor 190 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0264] In some embodiments, the memory 191 may be an internal storage unit of the electronic device 19, such as a hard disk or memory of the electronic device 19. In other embodiments, the memory 191 may be an external storage device of the electronic device 19, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device 19. Furthermore, the memory 191 may include both internal storage units and external storage devices of the electronic device 19. The memory 191 is used to store the operating system, applications, bootloader, data, and other programs, such as program code. The memory 191 can also be used to temporarily store data that has been output or will be output.

[0265] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0266] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0267] This application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the steps in any of the above method embodiments.

[0268] This application also provides a readable storage medium storing a program that, when executed by a processor, implements the steps described in the various method embodiments above.

[0269] This application provides a program product that, when run on an electronic device, enables the electronic device to perform the steps described in the various method embodiments above.

[0270] If the integrated unit is implemented as 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, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0271] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0272] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for vehicle departure recognition, characterized in that, Applied to electronic devices, the method includes: Acquire the first motion data and geomagnetic data of the electronic device; Based on the first motion data and the geomagnetic data, it is determined whether the electronic device has experienced a vehicle departure event to determine whether to perform a vehicle departure operation.

2. The method according to claim 1, characterized in that, The acquisition of the first motion data and geomagnetic data of the electronic device includes: If the vehicle's current first location is detected to be in the parking area, then the state change event of the electronic device is acquired; If the state change event is the first event, then the first motion data and geomagnetic data of the electronic device are acquired; the first event is the change event in which the electronic device changes from a fixed placement state to a mobile state.

3. The method according to claim 1, characterized in that, The step of identifying whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data to determine whether to perform a vehicle departure operation includes: If the first motion data satisfies the first condition and the geomagnetic data satisfies the second condition, then the exit operation is performed; the first condition and the second condition are used to determine whether the user holding the electronic device has opened the door and left the vehicle.

4. The method according to claim 3, characterized in that, The first motion data includes: the time interval between movement states; the geomagnetic data includes geomagnetic variation curves; If the first motion data satisfies the first condition and the geomagnetic data satisfies the second condition, then an off-vehicle operation is performed, including: If the interval duration exceeds a preset first duration threshold, and the geomagnetic change curve has a sudden change segment, then the vehicle exit operation is performed.

5. The method according to claim 1, characterized in that, The step of identifying whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data to determine whether to perform a vehicle departure operation includes: If the first motion data satisfies the third condition and the geomagnetic data satisfies the fourth condition, then the vehicle exit operation is performed; the third condition and the fourth condition are used to determine whether the user holding the electronic device walks away from the vehicle.

6. The method according to claim 5, characterized in that, The first motion data includes: step count; the geomagnetic data includes geomagnetic fingerprints collected in multiple different time windows; If the first motion data satisfies the third condition and the geomagnetic data satisfies the fourth condition, then the vehicle exit operation is performed, including: If the step value is greater than a preset step threshold, and the number of locations corresponding to the geomagnetic fingerprints contained in the geomagnetic data is greater than a preset number threshold, then the vehicle exit operation is performed.

7. The method according to claim 5, characterized in that, The first motion data includes: movement type; the geomagnetic data includes geomagnetic intensity; If the first motion data satisfies the third condition and the geomagnetic data satisfies the fourth condition, then the vehicle exit operation is performed, including: If the movement type is the first type, and the number of locations corresponding to the geomagnetic fingerprints contained in the geomagnetic data is greater than a preset threshold, then the vehicle exit operation is performed; the first type is when the user is in a walking state.

8. The method according to claim 1, characterized in that, The step of identifying whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data to determine whether to perform a vehicle departure operation includes: If the first motion data satisfies the fifth condition and the geomagnetic data satisfies the sixth condition, then the exit operation is performed; the fifth and sixth conditions are used to determine whether the user holding the electronic device is taking the elevator.

9. The method according to claim 8, characterized in that, The first motion data includes: movement type; the geomagnetic data includes geomagnetic variation curves; If the first motion data satisfies the fifth condition and the geomagnetic data satisfies the sixth condition, then the vehicle exit operation is performed, including: If the movement type is the second type and the geomagnetic change curve matches the elevator's geomagnetic characteristic curve, then the exit operation is performed; the second type is when the user is in a vertical lifting or vertical lowering state.

10. The method according to any one of claims 1-9, characterized in that, Before determining whether to perform an exit operation by identifying whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data, the method further includes: If, during the acquisition of the first motion data and / or the geomagnetic data, the change characteristic value of the geomagnetic intensity in the geomagnetic data is detected to be greater than a preset intensity change threshold, then the off-vehicle operation is prohibited.

11. The method according to any one of claims 1-10, characterized in that, The vehicle departure operation includes: generating parking information; the parking information is used to indicate a second position of the vehicle in the parking area.

12. The method according to claim 11, characterized in that, The parking area includes indoor parking areas; The acquisition of the first motion data and geomagnetic data of the electronic device includes: Upon detecting the vehicle's current first location within the indoor parking area, acquire signal characteristic data from the electronic device; If the signal feature data satisfies the seventh condition, then based on the third position when the signal feature data satisfies the seventh condition, the entrance information corresponding to the indoor parking area is determined; the parking information includes the entrance information.

13. A device for vehicle departure recognition, characterized in that, include: The data acquisition unit is used to acquire the first motion data and geomagnetic data of the electronic device; The parking trigger unit is used to identify whether the electronic device has experienced a vehicle departure event based on the first motion data and the geomagnetic data to determine whether to perform a vehicle departure operation.

14. An electronic device, characterized in that, The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method as described in any one of claims 1 to 12.

15. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 12.