Positioning methods and electronic devices

By acquiring the location and high-precision positioning coordinates of electronic devices within the vehicle, and adjusting the positioning coordinates or map to determine the lane, the problem of lane recognition errors is solved, improving the accuracy of lane-level navigation and the user experience.

CN116819594BActive Publication Date: 2026-11-10HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210277644.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-21
Publication Date
2026-11-10
Estimated Expiration
2042-03-21

AI Technical Summary

Technical Problem

In existing technologies, when electronic devices are placed off-center in a vehicle, errors in high-precision positioning technology can lead to lane recognition errors, affecting the user's driving experience.

Method used

By acquiring the location of electronic devices within the vehicle and high-precision positioning coordinates, the positioning coordinates or map are adjusted to determine the lane, eliminating system errors and improving lane recognition accuracy.

Benefits of technology

It improves the accuracy and reliability of lane-level navigation, enhances the user experience, reduces the need for application modifications, and adapts to different vehicle and user placement locations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116819594B_ABST
    Figure CN116819594B_ABST
Patent Text Reader

Abstract

This application provides a positioning method and an electronic device. The method includes: the electronic device acquiring first positioning coordinates and a first position, where the first position is the electronic device's location within a vehicle; the electronic device determining that it is located in a first lane based on the first positioning coordinates and the first position; and the electronic device performing lane-level navigation based on the first lane. Using this application can improve the accuracy of lane recognition, making lane-level navigation more accurate and reliable, and providing a better user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of positioning technology, and in particular to a positioning method and electronic device. Background Technology

[0002] With the widespread use of smartphones and other electronic devices, location services have become an indispensable basic service. Currently, many electronic devices have incorporated high-precision positioning technology, providing applications with highly accurate location information, achieving sub-meter accuracy (e.g., an error of less than 1 meter). When a user is in a vehicle, the electronic device's application can match this location information with a high-precision map to determine the vehicle's lane, thus enabling lane-level navigation.

[0003] However, the application defaults to placing the electronic device in the center of the vehicle, which can be interpreted as the default location information corresponding to the center of the vehicle. However, this may not be the case in reality. For example, some users may place the electronic device near the A-pillar of the vehicle. Combined with the inherent errors in high-precision positioning technology (such as the error of less than 1 meter mentioned above), this may lead to lane recognition errors, seriously affecting the user's driving experience. Summary of the Invention

[0004] This application discloses a positioning method and electronic device that can improve the accuracy of lane recognition, make lane-level navigation more accurate and reliable, and provide a better user experience.

[0005] In a first aspect, embodiments of this application provide a positioning method applied to an electronic device, the method comprising: obtaining first positioning coordinates of the electronic device, obtaining a first position of the electronic device, the first position being the position of the electronic device in a vehicle; determining that the electronic device is located in a first lane based on the first positioning coordinates and the first position; and performing lane-level navigation based on the first lane.

[0006] In some embodiments, the first positioning coordinates are high-precision positioning coordinates, and obtaining the first positioning coordinates of the electronic device includes: obtaining GNSS measurement data through a Global Navigation Satellite System (GNSS) chip, obtaining positioning assistance data, obtaining inertial measurement data through an inertial detection unit, and determining the first positioning coordinates based on the GNSS measurement data, the positioning assistance data, and the inertial measurement data.

[0007] In some embodiments, when performing lane-level navigation based on the first lane, the electronic device displays a first interface for lane-level navigation, in which the vehicle is located in the first lane. In some embodiments, the first interface includes a navigation route generated based on the first lane.

[0008] In the above method, the electronic device can identify the lane by combining its position in the vehicle and the first positioning coordinates. This avoids the situation where the user places the electronic device in a position that is off-center, such as the A-pillar of the vehicle, which would lead to lane recognition errors. This improves the accuracy of lane recognition, makes the lane-level navigation function more accurate and reliable, and provides a better user experience.

[0009] In one possible implementation, the first position is one of a plurality of preset positions in the vehicle. For example, the plurality of preset positions include the left A-pillar, the center console, and the right A-pillar.

[0010] The above method does not require accurate identification of the detailed location of electronic devices in the vehicle, resulting in lower identification costs. It achieves better lane recognition accuracy with lower costs, and the recognition speed is faster, improving the efficiency of lane recognition and providing a better user experience.

[0011] In one possible implementation, determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position includes: determining a second positioning coordinate based on the first positioning coordinates and the first position, wherein the distance between the second positioning coordinates and the first positioning coordinates is a preset distance corresponding to the first position; and matching the second positioning coordinates with a map to determine that the second positioning coordinates are located in the first lane.

[0012] In one possible implementation, when the first position is located on the centerline of the vehicle, the preset distance is zero, and the second positioning coordinate is the first positioning coordinate; when the first position is located to the left of the centerline of the vehicle, the second positioning coordinate is the coordinate of the first positioning coordinate moved to the right of the vehicle by the preset distance along the vertical direction of the centerline of the vehicle; when the first position is located to the right of the centerline of the vehicle, the second positioning coordinate is the coordinate of the first positioning coordinate moved to the left of the vehicle by the preset distance along the vertical direction of the centerline of the vehicle.

[0013] In one possible implementation, determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position includes: adjusting the map based on the first position and a preset distance corresponding to the first position; and matching the first positioning coordinates with the adjusted map to determine that the first positioning coordinates are located in the first lane.

[0014] In one possible implementation, when the first position is located on the centerline of the vehicle, the preset distance is zero; when the first position is located to the left of the centerline of the vehicle, adjusting the map according to the first position and the preset distance corresponding to the first position includes: moving the map to the left of the vehicle by the preset distance along the vertical direction of the centerline of the vehicle; when the first position is located to the right of the centerline of the vehicle, adjusting the map according to the first position and the preset distance corresponding to the first position includes: moving the map to the right of the vehicle by the preset distance along the vertical direction of the centerline of the vehicle.

[0015] In some embodiments, the preset distance is the distance between the first position and a reference position of the vehicle, the reference position being located on the vehicle's central axis. For example, the reference position is the center or central control of the vehicle.

[0016] In some embodiments, any one of the plurality of preset positions corresponds to a preset distance. For example, the plurality of preset positions includes the left A-pillar, the instrument panel, and the center console, wherein the preset distance corresponding to the left A-pillar is half the width of the vehicle, the preset distance corresponding to the instrument panel is one-quarter the width of the vehicle, and the preset distance corresponding to the center console is zero.

[0017] In some embodiments, the vertical direction of the vehicle's centerline can also be replaced by the vertical direction of the lanes in the map.

[0018] In the above method, the electronic device can adjust the first positioning coordinates or map according to its position in the vehicle. Even if the user places the electronic device in a position that is off-center, such as the A-pillar of the vehicle, the positioning coordinates used to determine the lane can be consistent with the default positioning coordinates used to determine the lane, both of which are located in the center of the vehicle / lane. This eliminates system errors in lane-level navigation and improves the accuracy of lane recognition.

[0019] In one possible implementation, determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position includes: the electronic device reporting the first positioning coordinates and the first position to a first application; and the first application determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position.

[0020] In one possible implementation, determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position includes: the electronic device determining a second positioning coordinate based on the first positioning coordinates and the first position; the electronic device reporting the second positioning coordinates to a first application; and the first application determining that the electronic device is located in the first lane based on the second positioning coordinates.

[0021] In the above method, the first application does not need to perceive the first location, but only needs to focus on the reported second location coordinates. The processing flow (i.e., directly identifying the lane where the location coordinate is located based on a location coordinate) remains unchanged, minimizing changes to the application side and better meeting development needs.

[0022] In one possible implementation, obtaining the first location of the electronic device includes: acquiring image data through the camera of the electronic device; identifying the first location based on the image data; or, the first location is set by the user through the electronic device.

[0023] In some embodiments, identifying the first location based on the image data includes: using the image data as input to a first model to obtain the output of the first model, wherein the output of the first model is the first location, and the first model is trained based on multiple images of different electronic devices at different locations in different vehicles; or, identifying the first location based on the image data includes: using the image data as input to a second model to obtain the output of the second model, wherein the output of the second model is the driver information of the vehicle, and determining the first location based on the facial orientation or body posture in the driver information, wherein the second model is trained based on multiple images of different electronic devices at different locations in different vehicles.

[0024] In the above method, the first position used to determine the lane can be identified in real time by an electronic device or set in advance by the user, and the application scenarios are more extensive. For example, even electronic devices without cameras can implement the embodiments of this application.

[0025] In one possible implementation, before determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position, the method further includes: determining that the electronic device is located in a second lane based on the first positioning coordinates, wherein the second lane is the same as or different from the first lane; and performing lane-level navigation based on the second lane.

[0026] In some embodiments, when performing lane-level navigation based on the first lane, the electronic device displays a first interface in which the vehicle is located in the first lane; the step of performing lane-level navigation based on the second lane includes: when the second lane is different from the first lane, the displayed user interface switches from the first interface to a second interface in which the vehicle is located in the second lane. In some embodiments, the first interface includes a first navigation route generated based on the first lane, and the second interface includes a second navigation route generated based on the second lane; when the first lane and the second lane are different, the first navigation route and the second navigation route are different.

[0027] In the above method, before the electronic device obtains the first location, it can first identify the lane and perform lane-level navigation based on the first positioning coordinates. After the electronic device obtains the first location, it can then identify the lane and perform lane-level navigation based on the first location (for example, updating the user interface of the lane-level navigation displayed before based on the currently identified lane). This can provide users with more accurate lane identification results and improve the user experience without affecting the original lane-level navigation function.

[0028] In one possible implementation, after performing lane-level navigation based on the first lane, the method further includes: when the position of the electronic device changes, obtaining a second position of the electronic device, the second position being the position of the electronic device in the vehicle, the second position being the same as or different from the first position; determining that the electronic device is located in a third lane based on the positioning coordinates of the electronic device and the second position, the third lane being the same as or different from the first lane; and performing lane-level navigation based on the third lane.

[0029] In some embodiments, when performing lane-level navigation based on the first lane, the electronic device displays a first interface in which the vehicle is located in the first lane; the step of performing lane-level navigation based on the third lane includes: when the third lane is different from the first lane, the displayed user interface switches from the first interface to a third interface in which the vehicle is located in the third lane. In some embodiments, the first interface includes a first navigation route generated based on the first lane, and the third interface includes a third navigation route generated based on the third lane; when the first lane and the third lane are different, the first navigation route and the third navigation route are different.

[0030] In the above method, when the position of the electronic device changes, the position of the electronic device in the vehicle is reacquired, and the lane is re-identified and lane-level navigation is performed based on the reacquired second position, so as to provide users with more accurate lane recognition results and improve the user experience.

[0031] In one possible implementation, the method further includes: obtaining the third positioning coordinates of the electronic device and the position of the electronic device in the vehicle; displaying a prompt message when obtaining the position of the electronic device in the vehicle fails; receiving a third location input by the user based on the prompt message; determining that the electronic device is located in the fourth lane based on the third positioning coordinates and the third location; and performing lane-level navigation based on the fourth lane.

[0032] In the above method, when the location of the electronic device in the vehicle cannot be identified, the user can be prompted to manually set it, and the lane can be identified based on the third location and third positioning coordinates manually set by the user. In some special cases, it can also provide the user with more accurate lane identification results, thereby improving the reliability of lane-level navigation function.

[0033] In one possible implementation, the method further includes: receiving a fourth location input by a user; obtaining the fourth positioning coordinates of the electronic device and the position of the electronic device in the vehicle; when obtaining the position of the electronic device in the vehicle fails, determining that the electronic device is located in a fifth lane based on the fourth positioning coordinates and the fourth location; and performing lane-level navigation based on the fifth lane.

[0034] In the above method, when the position of the electronic device in the vehicle cannot be identified, the lane can be identified based on the third and fourth positioning coordinates manually set by the user. In some special cases, it can also provide the user with a more accurate lane identification result, thereby improving the reliability of the lane-level navigation function.

[0035] In one possible implementation, the method further includes: receiving a first instruction; obtaining the first positioning coordinates of the electronic device includes: in response to the first instruction, obtaining the first positioning coordinates of the electronic device.

[0036] In one possible implementation, the first instruction is used to trigger lane-level navigation; before receiving the first instruction, the method further includes: obtaining the fifth positioning coordinates of the electronic device; and performing road-level navigation based on the fifth positioning coordinates.

[0037] In the above method, the electronic device can first activate the road-level navigation function, and then activate the lane-level navigation function after receiving the first instruction. Users can choose whether to activate the lane-level navigation function according to their own needs, making it more flexible to use.

[0038] In one possible implementation, before receiving the first instruction, the method further includes: obtaining the fifth positioning coordinates of the electronic device; performing road-level navigation based on the fifth positioning coordinates; receiving the first instruction includes: receiving the first instruction when the electronic device is in a preset scenario, wherein the preset scenario includes any one of the following: the difference between the current time and the time when the vehicle enters the intersection is less than or equal to a first difference, the difference between the current time and the time when the vehicle arrives at the zebra crossing is less than or equal to a second difference, and the number of vehicles around the vehicle is greater than or equal to a first number.

[0039] In the above method, the electronic device can first activate the road-level navigation function, and then activate the lane-level navigation function when it detects that it is in a preset scenario. The preset scenario is, for example, when the electronic device is about to enter an intersection, about to reach a zebra crossing, or when there are many vehicles nearby. This avoids the situation where the user cannot activate the lane-level navigation function in time under the preset scenario, making the lane-level navigation function more intelligent.

[0040] In a second aspect, this application provides an electronic device, including: one or more processors and one or more memories; wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program code, the computer program code including computer instructions, and when the one or more processors execute the computer instructions, the electronic device causes the electronic device to perform the positioning method provided by any implementation of the first aspect of the embodiments of this application.

[0041] Thirdly, this application provides a computer storage medium including computer instructions, which, when executed on an electronic device, cause the electronic device to perform a positioning method provided by any implementation of the first aspect of this application.

[0042] Fourthly, this application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the positioning method provided in any implementation of the first aspect of the embodiments of this application.

[0043] Fifthly, this application provides an electronic device including one or more functional modules; the one or more functional modules are used for the positioning method provided in any implementation of the first aspect of the embodiments of this application.

[0044] Sixthly, embodiments of this application provide an electronic device that includes the methods or apparatus described in any embodiment of this application. The electronic device is, for example, a chip.

[0045] It should be understood that the descriptions of technical features, technical solutions, beneficial effects, or similar language in this application do not imply that all features and advantages can be achieved in any single embodiment. Rather, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution, or beneficial effect is included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions, or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and beneficial effects described in this embodiment can be combined in any suitable manner. Those skilled in the art will understand that embodiments can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects may be identified in specific embodiments that do not embody all embodiments. Attached Figure Description

[0046] The accompanying drawings used in the embodiments of this application are described below.

[0047] Figure 1 This is a schematic diagram of a location result reporting process provided in an embodiment of this application;

[0048] Figure 2A This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application;

[0049] Figure 2B This is a schematic diagram of a lane recognition scenario provided in an embodiment of this application;

[0050] Figure 2C This is a schematic diagram of another lane recognition scenario provided in an embodiment of this application;

[0051] Figure 3A This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0052] Figure 3B This is a schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;

[0053] Figures 4A-4E These are schematic diagrams of some lane-level navigation interfaces provided in the embodiments of this application;

[0054] Figure 4F This is a schematic diagram of a settings interface provided in an embodiment of this application;

[0055] Figure 4G-Figure 4I These are schematic diagrams of some interfaces for setting application permissions provided in the embodiments of this application;

[0056] Figure 5 This is a flowchart illustrating a positioning method provided in an embodiment of this application;

[0057] Figure 6 This is a flowchart illustrating another positioning method provided in an embodiment of this application;

[0058] Figure 7 This is a schematic diagram of a process for obtaining relative position results provided in an embodiment of this application;

[0059] Figure 8A This is a schematic diagram of another lane recognition scenario provided in an embodiment of this application;

[0060] Figure 8B This is a schematic diagram of another lane recognition scenario provided in an embodiment of this application;

[0061] Figure 9 This is a schematic diagram of the hardware structure of another electronic device provided in the embodiments of this application. Detailed Implementation

[0062] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0063] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0064] In electronic devices such as smartphones, location-based services (LBS) have become an essential basic service, used to obtain the user's geographical location.

[0065] Currently, most electronic devices such as smartphones use Global Navigation Satellite System (GNSS) positioning technology, such as single-point positioning based on pseudorange ranging. The accuracy can generally reach the meter level (e.g., error greater than or equal to 3 meters, less than or equal to 5 meters), which can be called ordinary positioning service. Ordinary positioning service can meet basic positioning and navigation needs, such as road-level navigation.

[0066] To further improve GNSS positioning accuracy, observation data from third-party equipment (such as base stations) can be introduced to correct GNSS ephemeris errors, atmospheric errors, etc. This third-party observation data can be called auxiliary data. Positioning technologies include differential navigation satellite systems (DGNSS) and real-time kinematic (RTK) technologies based on differential positioning, and precise point positioning (PPP) technologies based on error correction. Both RTK and PPP technologies use carrier phase for ranging. Accuracy can reach sub-meter level (e.g., error less than 1 meter, or error less than 1 centimeter), which can be called high-precision positioning service. The positioning information obtained from high-precision positioning services can be used to match with high-precision maps to determine the vehicle's lane information, thus meeting the needs of lane-level navigation.

[0067] Please see Figure 1 , Figure 1 An exemplary schematic diagram of a location result reporting process is shown.

[0068] like Figure 1 The process for electronic device 100 to report ordinary positioning results is different from the process for reporting high-precision positioning results, wherein:

[0069] The process for electronic devices 100 to report general location results may include, but is not limited to, the following steps:

[0070] 1. Electronic device 100 can acquire GNSS measurement data, such as pseudorange measurement data and Doppler frequency measurement data, through a GNSS chip.

[0071] 2. Electronic device 100 can process GNSS measurement data through a positioning calculation module to determine the ordinary positioning result. The accuracy of the ordinary positioning result is generally at the meter level, and can be understood as the positioning information obtained through the aforementioned ordinary positioning service.

[0072] 3. Electronic device 100 can report ordinary positioning results to ordinary applications through the standard reporting channel.

[0073] The process for electronic device 100 to report high-precision positioning results may include, but is not limited to, the following steps:

[0074] 1. Electronic device 100 can acquire GNSS measurement data, such as pseudorange measurement data, Doppler frequency measurement data, carrier phase measurement data, etc., through a GNSS chip.

[0075] 2. Electronic device 100 can process GNSS measurement data and auxiliary data through a positioning calculation module to determine a high-precision positioning result. The auxiliary data, for example, is differential auxiliary data transmitted by the base station closest to electronic device 100. The accuracy of the high-precision positioning result can generally reach sub-meter level, and can be understood as the positioning information obtained through the aforementioned high-precision positioning service.

[0076] 3. Electronic device 100 can report high-precision positioning results to high-precision applications through a high-precision reporting channel.

[0077] In some embodiments, the first application is a normal application, and the second application is a high-precision application; the application types of the first and second applications are different. For example, a normal application could be a general map navigation application, a sports and health application, a weather application, etc., which only needs to obtain positioning results with normal accuracy (e.g., between 3 and 5 meters). A high-precision application could be a map application that provides functions such as lane-level navigation, which needs to obtain positioning results with high accuracy (e.g., less than 1 meter). In other embodiments, the third application is a normal application in the first case and a high-precision application in the second case. For example, a map application is a high-precision application after being authorized by the server, and a normal application after not being authorized by the server or after being deauthorized by the server.

[0078] When a user is riding in the vehicle, the application of electronic device 100 can match the reported high-precision positioning results with a high-precision map to determine the lane information of the vehicle, thereby realizing lane-level navigation. However, the application defaults to placing electronic device 100 in the center of the vehicle (see below for an example of vehicle structure). Figure 2A This can also be understood as the default high-precision positioning result corresponding to the center position of the vehicle. See below for a specific example. Figure 2B However, this may not be the case in reality. For example, some users place electronic devices near the A-pillar of their vehicles. See below for specific examples. Figure 2C In addition, the inherent error of high-precision positioning results (less than 1 meter) introduces a large system error, which may lead to lane recognition errors and seriously affect the user's driving experience.

[0079] Please see Figure 2A , Figure 2A An exemplary structural schematic diagram of a vehicle is shown.

[0080] like Figure 2AAs shown, the vehicle may include a central control unit, through which users can control comfort and entertainment devices such as air conditioning and audio systems, as well as the vehicle's door opening and closing, window lifting system, etc. This embodiment of the application illustrates this by assuming the centerline of the central control unit (parallel to the y-axis) and the vehicle's body center are aligned on the x-axis. The vehicle's body center can be the center of a rectangle mapped from the vehicle; for example, the length of this rectangle is the length of the longest line of the vehicle on the y-axis, and the width of the rectangle is the length of the longest line of the vehicle on the x-axis. The vehicle has a steering wheel and instrument panel in front of the driver's seat. The driver can operate the steering wheel to control the driving direction, and the instrument panel can reflect the operating status of various vehicle systems, such as speedometer, tachometer, water temperature gauge, fuel gauge, and charging gauge. The vehicle may include A-pillars, B-pillars, and C-pillars that support the vehicle's structural strength, each including both left and right sides. The A-pillar is the connecting pillar between the roof and the front cabin on the left and right front sides. The B-pillar is located between the front and rear seats in the driver's cabin; from the inside, the seatbelt is generally on the B-pillar. The C-pillar is located on both sides of the rear seat headrests.

[0081] like Figure 2B and Figure 2C As shown, the vehicle can Figure 2A The vehicle shown is shown. The road may include lane 1 and lane 2. Assume that the width (length on the x-axis) of any lane is 3 meters and the width of the vehicle is 2 meters.

[0082] like Figure 2B As shown, when the electronic device 100 is located at the default location of the electronic device 100 in the application (i.e., the center of the vehicle body, which can be referred to as location A), assuming that the error of the high-precision positioning result is less than or equal to 1 meter, the high-precision positioning result may be any location within range A (with location A as the center and 1 meter as the radius). Since range A is entirely within lane 1, the lane determined by the application based on the high-precision positioning result is lane 1 where the vehicle is located, and the lane identification is correct.

[0083] However, as Figure 2C As shown, when the electronic device 100 is located on the left A-pillar of the vehicle (assuming position B), and assuming the error of the high-precision positioning result is less than or equal to 1 meter, the high-precision positioning result could be any position within range B (with position B as the center and 1 meter as the radius). Range B is partially located within lane 1 and partially within lane 2. When the high-precision positioning result is a position within the portion of lane 2 (e.g., position C), the application determines the lane as lane 2 based on the high-precision positioning result, instead of the lane 1 where the vehicle is located, resulting in lane identification error.

[0084] This application provides a positioning method that can be applied to an electronic device 100. The electronic device 100 can identify the relative position result with the vehicle (which can also be understood as the position of the electronic device 100 inside the vehicle), such as the left A-pillar, the center console, or the right A-pillar, and determine the lane information of the vehicle based on the relative position result and the high-precision positioning result, thereby eliminating the systematic error in the lane recognition mentioned above, improving the positioning accuracy, and making the lane-level navigation function more accurate and reliable, and providing a better user experience.

[0085] The relative positions of the electronic device 100 and the vehicle are not fixed, and the electronic device 100 can be a device independent of the vehicle. The electronic device 100 can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device and / or smart city device. This application embodiment does not impose any special restrictions on the specific type of electronic device.

[0086] Please see Figure 3A , Figure 3A An exemplary schematic diagram of the hardware structure of an electronic device 100 is shown.

[0087] The following description uses electronic device 100 as an example to illustrate the embodiment. It should be understood that... Figure 3A The electronic device 100 shown is merely an example, and the electronic device 100 may have more than Figure 3A The more or fewer components shown can be combined into two or more components, or they can have different component configurations. Figure 3A The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0088] Electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0089] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0090] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0091] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0092] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0093] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0094] The charging management module 140 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger.

[0095] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance).

[0096] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0097] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0098] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0099] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0100] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0101] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0102] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0103] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0104] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0105] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0106] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0107] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0108] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0109] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0110] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0111] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0112] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0113] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Audio module 170 can also be used for encoding and decoding audio signals.

[0114] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.

[0115] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.

[0116] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.

[0117] The 170D headphone jack is used to connect wired headphones.

[0118] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.

[0119] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios. The accelerometer sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device, and can be applied to applications such as screen orientation switching and pedometers.

[0120] In this application, gyroscope sensor 180B and accelerometer sensor 180E are used as examples of inertial measurement units (IMUs) for illustration, but this application is not limited to these, and the specific type of IMU is not specified. The inertial measurement unit can be used to detect gyroscope sensor data and accelerometer sensor data of electronic device 100, and then measure the specific force and angular velocity information of electronic device 100. Electronic device 100 can combine the specific force and angular velocity information with pseudorange measurement data and Doppler frequency measurement data obtained from the GNSS chip to complete inertial navigation and calculate the position coordinates of electronic device 100 at the next moment, such as the ordinary positioning result mentioned above.

[0121] In some embodiments, the electronic device 100 may also combine the force and angular velocity information with pseudorange measurement data, Doppler frequency measurement data, carrier phase measurement data, and auxiliary data (such as observation data from an RTK server, or precise ephemeris or ephemeris correction data, atmospheric corrections, etc. in PPP high-precision positioning) obtained from the GNSS chip to complete inertial navigation and calculate the position coordinates of the electronic device 100 at the next moment, such as the high-precision positioning result mentioned above.

[0122] A barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation. A magnetic sensor 180D includes a Hall effect sensor. A distance sensor 180F is used to measure distance. A proximity sensor 180G may include, for example, a light-emitting diode (LED) and a photodetector, such as a photodiode. An ambient light sensor 180L is used to sense ambient light intensity. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed ambient light intensity. A fingerprint sensor 180H is used to collect fingerprints. A temperature sensor 180J is used to detect temperature. A touch sensor 180K, also called a "touch panel," can be located on the display screen 194, forming a touchscreen, also called a "touchscreen." A bone conduction sensor 180M can acquire vibration signals. Buttons 190 include a power button, volume buttons, etc. A motor 191 can generate vibration cues. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card.

[0123] Please see Figure 3B , Figure 3B An exemplary schematic diagram of the software architecture of an electronic device 100 is shown.

[0124] like Figure 3B As shown, the electronic device 100 may include a map application 301, a positioning calculation module 302, a location recognition module 303, a GNSS chip 304, and an image sensor 305, wherein:

[0125] In some embodiments, (1) the map application 301 may send a request message to the positioning calculation module 302 to request to obtain positioning information. In some embodiments, (2) the map application 301 may send a request message to the location recognition module 303 to request to obtain the position of the electronic device 100 in the vehicle (which can also be understood as the relative position of the electronic device 100 and the vehicle, hereinafter referred to as the relative position result).

[0126] In some embodiments, the GNSS chip 304 can be used to acquire GNSS measurement data and provide it to the positioning calculation module 302. (3) The positioning calculation module 302 can receive GNSS measurement data reported by the GNSS chip 304, such as pseudorange, Doppler frequency, carrier phase, etc. In some embodiments, the positioning calculation module 302 can also receive inertial measurement data reported by the IMU, such as accelerometer sensor data and gyroscope sensor data. The positioning calculation module 302 can also receive auxiliary data sent by third-party devices, such as observation data from the RTK server, precise ephemeris or ephemeris correction data in PPP high-precision positioning, atmospheric corrections, etc. In some embodiments, the positioning calculation module 302 can perform fusion positioning based on GNSS measurement data, inertial measurement data and auxiliary data to obtain high-precision positioning results. Positioning technologies include, but are not limited to, DGNSS, RTK, PPP, real-time differential (RTD), or a combination of RTK and vehicle dead reckoning (VDR), etc.

[0127] In some embodiments, the image sensor 305 can be used to acquire images and provide them to the location recognition module 303. The image sensor 305 may include, for example, but is not limited to, […]. Figure 3A The camera 193 shown, an infrared camera, or other sensors. (4) The position recognition module 303 can receive images reported by the image sensor 305. In some embodiments, the position recognition module 303 can perform scene recognition and feature extraction on the images acquired by the image sensor 305 to determine the relative position result.

[0128] In some embodiments, (5) the map application 301 can receive the high-precision positioning result reported by the positioning calculation module 302. (6) The map application 301 can also receive the relative position result reported by the location recognition module 303. The map application 301 can determine the target positioning result based on the high-precision positioning result and the relative position result, and match the target positioning result with the high-precision map to determine the lane information of the vehicle. The lane information can be displayed to the user for viewing, such as realizing lane-level navigation.

[0129] In other embodiments, (7) the positioning solution module 302 can send a request message to the location recognition module 303 to request the acquisition of relative position results. Then, (8) the positioning solution module 302 can receive the relative position results sent by the location recognition module 303. (5) The map application 301 can receive the high-precision positioning results and relative position results reported by the positioning solution module 302. The map application 301 can determine the target positioning result based on the high-precision positioning results and relative position results, and match the target positioning result with the high-precision map to determine the lane information of the vehicle. The lane information can be displayed to the user for viewing, for example, to realize lane-level navigation.

[0130] In other embodiments, (7) the positioning solution module 302 can send a request message to the location recognition module 303 to request a relative position result. Then, (8) the positioning solution module 302 can receive the relative position result sent by the location recognition module 303. The positioning solution module 302 can determine the target positioning result based on the high-precision positioning result and the relative position result. Then, (5) the map application 301 can receive the target positioning result reported by the positioning solution module 302. The map application 301 can match the target positioning result with the high-precision map to determine the lane information of the vehicle. The lane information can be displayed to the user for viewing, for example, to implement lane-level navigation.

[0131] In some embodiments, the location recognition module may be activated only under specific circumstances, such as when the electronic device 100 is in a non-handheld state. The non-handheld state is, for example, but not limited to, a fixed posture. When the position and shape of the electronic device 100 remain unchanged for a preset duration, the electronic device 100 is in a fixed posture.

[0132] The following are exemplary embodiments of the user interface involved in this application.

[0133] Please see Figure 4A , Figure 4A An exemplary diagram of a lane-level navigation user interface is shown.

[0134] like Figure 4AAs shown in (1), the electronic device 100 can display a user interface 410 for a map application. The user interface 410 may include search boxes 411 and 412. Search box 411 can be used to input the starting point of a navigation route, and search box 412 can be used to input the ending point of a navigation route. The user interface 410 also includes a map 413, which contains location markers 413A, 413B, and a route 413C. Location marker 413A identifies the location of the starting point on the map 413, which is the location entered in search box 411. Location marker 413B identifies the location of the ending point on the map 413, which is the location entered in search box 412. Route 413C represents the route information from the starting point to the ending point. The user interface 410 also includes navigation information 415, which may include multiple route information from the starting point to the ending point, where a "recommended" route has been selected, corresponding to route 413C. Navigation information 415 may also include navigation control 415A, which can be used to trigger a navigation interface that displays the selected route information.

[0135] In some embodiments, the electronic device 100 may receive a user action (e.g., a click) on the navigation control 415A, and in response to the user action, display a lane-level navigation user interface, such as... Figure 4A The user interface 420 shown in (2) is as follows. Figure 4A As shown in (2), the user interface 420 includes a lane navigation interface 421, a normal navigation interface 422, and navigation information 423. The lane navigation interface 421 includes a prompt 421A (e.g., "Please keep going straight") and a lane route 421B. The lane route 421B can identify the lane where the electronic device 100 is located (e.g., the middle lane in a three-lane road) and the route traveled in the current lane. The normal navigation interface 422 can include a location marker 422A displayed on the map and a normal route 422B. The location marker 422A can identify the location of the electronic device 100 on the map, and the normal route 422B can identify the route of the electronic device 100 to the destination (corresponding to location marker 413B in the user interface 410) on the map. The navigation information 423 can include an exit control (which can trigger the end of navigation), distance and time information, and more controls (which can trigger the display of more navigation-related function controls). The distance and time information can indicate the distance of the electronic device 100 from the destination (e.g., "11 kilometers") and the estimated time to reach the destination (e.g., "32 minutes").

[0136] In other embodiments, the electronic device 100 displays Figure 4AWhen the user interface 410 shown in (1) is displayed, it can receive user actions (e.g., click actions) for the navigation control 415A, and in response to the user actions, display the user interface of normal navigation, for example... Figure 4B The user interface 430 shown in (1) is as follows. Figure 4B As shown in (1), the user interface 430 and Figure 4A The user interface 420 shown in (2) is similar, except that the user interface 430 does not include the lane navigation interface 421, and the user interface 430 also includes the lane navigation control 431. The electronic device 100 can receive user actions (e.g., click actions) on the lane navigation control 431, and in response to the user actions, display the lane-level navigation user interface, for example... Figure 4B User interface 420 shown in (2) can be found in the following document. Figure 4A Description of the user interface 420 shown in (2).

[0137] In other embodiments, during normal navigation, if the electronic device 100 detects that it is currently in a preset situation (e.g., about to enter an intersection, about to encounter a traffic light, or has many vehicles nearby), it can display a lane-level navigation user interface, for example... Figure 4C The user interface 440 is shown. (As shown) Figure 4C As shown, the user interface 440 includes a lane navigation interface 441 and a navigation interface 442. According to the navigation interface 442, the electronic device 100 (identified by location marker 442A) is about to pass through an intersection, and the navigation route (identified by normal route 422B) instructs the electronic device 100 to turn right at the intersection. In the lane navigation interface 441, the electronic device 100 is located in the middle lane of the three lanes (identified by lane route 441B). Assuming that the left and middle lanes are used for left turns at the intersection, and the right lane is used for right turns, the prompt 441A could be "Please drive in the right lane" to remind the user to change lanes to the right to avoid deviating from the navigation route.

[0138] In some embodiments, during lane-level navigation, the electronic device 100 can recalculate the lanes. If the recalculated lanes differ from the previously calculated lanes, the electronic device 100 can update the displayed lanes to reflect the recalculated lanes. For example, the electronic device 100 displays... Figure 4A When the user interface 420 shown in (2) is determined to update the displayed lane, it can then be displayed. Figure 4D The user interface 450 shown in (1) is as follows. Figure 4D As shown in (1), the user interface 450 and Figure 4AThe user interface 420 shown in (2) is similar, except that the lane navigation interface 451 of the user interface 450 displays the prompt "Recalculating lane". The user interface of the electronic device 100 after updating the displayed lane is, for example, Figure 4D The user interface 460 shown in (2) is as follows. Figure 4D As shown in (2), the user interface 460 and Figure 4A The user interface 420 shown in (2) is similar, except that the lane route 461A in the lane navigation interface 461 of the user interface 460 identifies the electronic device 100 as being located in the left lane of the three lanes, instead of the previous middle lane (via...). Figure 4A (2) The lane route 421B identifier in the user interface 420 shown.

[0139] In some embodiments, when the electronic device 100 cannot identify the relative position result with respect to the vehicle (used to determine the lane where the electronic device 100 is located), for example, if the map application is not granted permission to activate the camera, or the image captured by the camera is insufficient to identify the relative position result, the electronic device 100 may prompt the user to input the relative position result, for example, by displaying... Figure 4E The user interface 470 shown in (1) is as follows. Figure 4E As shown in (1), the user interface 470 and Figure 4A Similar to the user interface 420 shown in (2), the difference is that the lane navigation interface 471 of the user interface 470 includes a prompt 4711 (such as "Lane calculation failed, please set the preferred location of this device") and a vehicle diagram 4712. The vehicle diagram 4712 may include multiple in-vehicle location markers, such as, but not limited to, marker 4712A (indicating the location of the instrument panel), marker 4712B (indicating the location of the center console), marker 4712C (indicating the location of the left A-pillar), and marker 4712D (indicating the location of the right A-pillar). The electronic device 100 can receive user operations for any lane location marker (e.g., a click operation for marker 4712B), and in response to the user operation, determine the lane where the electronic device 100 is located based on the high-precision positioning result and the location indicated by the lane location marker (e.g., the center console location indicated by marker 4712B), and display the lane-level navigation user interface in the determined lane, for example... Figure 4E User interface 420 shown in (2) can be found in the following document. Figure 4A Description of the user interface 420 shown in (2).

[0140] In other embodiments, the user sets the relative position result, for example, through the system settings function of the electronic device 100 or through the settings function of a map application. The user-set relative position result can be used by the electronic device 100 in conjunction with high-precision positioning results to determine the lane in which the electronic device 100 is located. For example, the relative position result can be used by default to determine the lane, or the user-set relative position result can be used to determine the lane when the relative position result cannot be identified in real time. The user interface for setting the relative position result is, for example, [example of user interface]. Figure 4F The user interface shown is 480. (As shown) Figure 4F As shown, the user interface 480 may include a setting name 481 (e.g., "Lane-level Navigation") and a switch control 482. The switch control 482 can be used to turn the lane-level navigation function on or off. The switch control 482 in the user interface 480 is in the on state. When the lane-level navigation function is on, the user interface 480 can display a setting interface 483 for relative position results. The setting interface 483 may include a setting description 4831, a setting box 4832, and a vehicle diagram 4833. The setting description 4831 may include the name of the setting (e.g., "Preferred location for navigation") and the description of the setting (e.g., "Used to improve the positioning accuracy of lane-level navigation"). The setting box 4832 can be used to display the relative position results set by the user. The setting box 4832 in the user interface 480 includes "Not Set," indicating that the current user has not set a relative position result. The vehicle diagram 4833 may include multiple in-vehicle location markers, as detailed in [reference needed]. Figure 4E The description of the vehicle schematic diagram 4712 in the user interface 470 shown in (1) is as follows. The electronic device 100 can receive user operation for any lane position indicator, and in response to the user operation, set the position indicated by the lane position indicator (such as the instrument panel) to a relative position result, and at this time the position indicated by the lane position indicator can be displayed in the setting box 4832.

[0141] In some embodiments, when the electronic device 100 activates lane-level navigation, a prompt message may be displayed to prompt the user to grant authorization. For example, a pop-up window may prompt the user to authorize the map application to use images from the camera (also known as a webcam) to obtain more accurate lane information. Specific examples can be found in [link to relevant documentation]. Figure 4G The user interface shown is 490.

[0142] like Figure 4G As shown, user interface 490 and Figure 4AThe user interface 420 shown in (2) is similar, except that the user interface 490 does not include the lane navigation interface 421, but includes a prompt box 491. The prompt box 491 may include a prompt 491A (such as "Do you allow the positioning system to obtain images from the front camera to improve positioning accuracy?"), a confirmation control 491C, and a cancellation control 491D. The confirmation control 491C can be used to authorize the map application to obtain images from the front camera, and the cancellation control 491D can be used to refuse authorization for the map application to obtain images from the front camera. After the user authorizes the map application to obtain images from the front camera, the electronic device 100 can obtain the relative position result of the vehicle based on the image recognition of the front camera, and determine the lane based on the relative position result and the high-precision positioning result. After the user refuses authorization for the map application to obtain images from the front camera, the electronic device 100 can directly determine the lane based on the high-precision positioning result, or determine the lane based on the relative position result and the high-precision positioning result set by the user. Optionally, the prompt box 491 also includes a prompt message 491B (such as "If you do not select in 10 seconds, the default will not be allowed"). If the electronic device 100 does not receive any user operation for the confirmation control 491C and the cancellation control 491D within 10 seconds after displaying the prompt box 491, the electronic device 100 can determine that the user refuses to authorize the map application to obtain the image from the front camera.

[0143] For example, electronic device 100 receives an action acting on Figure 4A When the user operates the navigation control 415A in the user interface 410 shown in (1), the lane-level navigation function is activated. That is, the electronic device 100 can respond to the user operation and display... Figure 4G The user interface shown is 490.

[0144] For example, electronic device 100 receives an action acting on Figure 4B When the user operates the lane navigation control 431 in the user interface 430 shown in (1), the lane-level navigation function is activated. That is, the electronic device 100 can respond to the user operation and display... Figure 4G The user interface shown is 490.

[0145] For example, when electronic device 100 detects that it is currently in a preset situation (such as approaching an intersection, encountering a traffic light, or having heavy traffic nearby), it activates the lane-level navigation function. In other words, when electronic device 100 detects that it is currently in a preset situation, it displays... Figure 4G The user interface shown is 490.

[0146] In other embodiments, users can set permissions for the map application through the system settings function of the electronic device 100, such as allowing the map application to use images from the camera. Specific examples can be found in [link to relevant documentation]. Figure 4H .

[0147] like Figure 4H As shown in (1), the electronic device 100 can display a settings user interface 510. The user interface 510 may include a title (such as "Application Permissions") and an application name 511 (such as "Map Application"), which can indicate to the user interface 510 the permissions to be set for the map application. The user interface 510 may include a permission list 512 and a permission list 513, whereby the permission list 512 displays permissions that the map application is allowed to use, such as storage, phone, and location, and the permission list 513 displays permissions that the map application is prohibited (denied), such as camera 513A, contacts, microphone, and calendar.

[0148] Electronic device 100 can receive user operations for camera 513A and, in response to the user operations, display... Figure 4H The user interface 520 shown in (2) is as follows. Figure 4H As shown in (2), the user interface 520 may include a title (such as “Camera Permissions”) and an application name 521 (such as “Map Application”), which may instruct the user interface 520 to set camera permissions for the map application, such as a control 522 indicating permissions allowed only when used, a control 523 indicating permissions to be asked each time, or a control 524 indicating permissions to be denied.

[0149] In other embodiments, users can configure map application permissions through the map application's settings, such as allowing the map application to use camera images; specific examples can be found in [link to relevant documentation]. Figure 4I .

[0150] like Figure 4I As shown, the electronic device 100 can display a user interface 530 for a map application. The user interface 530 may include a setting name 531 (e.g., "lane-level navigation") and a switch control 532. When the switch control 532 is in an "on" state, it indicates that the lane-level navigation function has been enabled. In this case, the user interface 530 can display a settings interface 533. The settings interface 533 may include a settings description 533A. The settings description 533A may include the name of the setting (e.g., "camera permissions") and a description of the setting (e.g., "camera images are used to improve positioning accuracy"). It can instruct the settings interface 533 to set camera permissions for the map application, such as permissions allowed only when used, permissions that require prompting each time, or permissions that are prohibited.

[0151] In addition to the user operations exemplified above, in other embodiments, user operations can also be voice input, for example... Figure 4B The user operation shown for the lane navigation control 431 can be the user's voice command "Start lane navigation". This application does not limit the form of the user operation.

[0152] The positioning method involved in the embodiments of this application will be described below. This method can be applied to... Figure 3A The illustrated electronic device 100. This method can be applied to... Figure 3B The electronic device 100 shown.

[0153] Please see Figure 5 , Figure 5 This is a flowchart illustrating a positioning method provided in an embodiment of this application. The method may include, but is not limited to, the following steps:

[0154] S101: The map application has entered the in-vehicle navigation mode.

[0155] For example, electronic device 100 receives a signal targeting... Figure 4A The user operation of the navigation control 415A in the user interface 410 shown in (1) causes the map application to enter the in-vehicle navigation mode in response to the user operation.

[0156] S102: The map application sends a normal location request to the location calculation module.

[0157] In some embodiments, a normal location request can be used to request a normal location result.

[0158] S103: The positioning and calculation module performs GNSS general positioning to obtain general positioning results (e.g., accuracy between 3 meters and 5 meters).

[0159] For example, the positioning calculation module uses common positioning techniques such as pseudorange-based point positioning to process the GNSS measurement data acquired by the GNSS chip to obtain a common positioning result. GNSS measurement data includes, but is not limited to, pseudorange and Doppler frequency.

[0160] S104: The positioning calculation module sends the normal positioning result to the map application.

[0161] S105: The map application displays a standard navigation interface based on the standard location results.

[0162] For example, a typical navigation interface is Figure 4B The user interface 430 shown in (1) is shown.

[0163] Among them, S101-S105 are optional steps.

[0164] S106: The map application has entered lane-level navigation mode.

[0165] In some embodiments, when the electronic device 100 receives a first user operation, it enters a lane-level navigation mode, whereby the first user operation triggers the activation of the navigation function. For example... Figure 4AIn the illustrated embodiment, when the electronic device 100 receives a user operation on the navigation control 415A in the user interface 410, the map application enters lane-level navigation mode. Optionally, in this case, the electronic device 100 may not execute S101-S105.

[0166] In other embodiments, when the electronic device 100 receives a first user operation, it enters an in-vehicle navigation mode; subsequently, when it receives a second user operation, it enters a lane-level navigation mode. The first user operation is used to trigger the activation of the navigation function, and the second user operation is used to trigger the activation of the lane-level navigation function. For example... Figure 4B In the illustrated embodiment, when the electronic device displays the user interface 430 (i.e., the aforementioned ordinary navigation interface), it receives a user operation on the lane navigation control 431 in the user interface 430, and the map application enters the lane-level navigation mode.

[0167] In other embodiments, when the electronic device 100 receives a first user operation, it enters in-vehicle navigation mode. Subsequently, when a preset situation is detected, it enters lane-level navigation mode. The first user operation is used to trigger the navigation function to start. The preset situation includes, but is not limited to, approaching an intersection, encountering a traffic light, or having a large number of vehicles nearby. For example... Figure 4C In the embodiment shown, when the electronic device displays the user interface 430 (i.e., the above-mentioned ordinary navigation interface), it detects that it is about to enter a fork in the road, and the map application enters the lane-level navigation mode.

[0168] S107: The map application sends a high-precision positioning request to the positioning solution module.

[0169] In some embodiments, a high-precision positioning request can be used to obtain a high-precision positioning result. In some embodiments, a high-precision positioning request can also be used to obtain the position of the electronic device 100 within the vehicle (which can also be understood as the relative position of the electronic device 100 and the vehicle, hereinafter referred to as the relative position result).

[0170] S108: The positioning and calculation module performs GNSS high-precision positioning to obtain high-precision positioning results (e.g., accuracy less than 1 meter).

[0171] For example, the positioning solution module can use high-precision positioning technology to process GNSS measurement data acquired by the GNSS chip, auxiliary data sent by third-party devices, and inertial measurement data acquired by the IMU to obtain high-precision positioning results. High-precision positioning technologies include, but are not limited to, DGNSS, RTK, PPP, RTD, or a combination of RTK and VDR. GNSS measurement data includes, but is not limited to, pseudorange, Doppler frequency, and carrier phase. Auxiliary data includes, but is not limited to, observation data from the RTK server, precise ephemeris or ephemeris correction data in PPP high-precision positioning, and atmospheric corrections.

[0172] S109: The positioning solution module sends high-precision positioning results to the map application.

[0173] S110: The map application determines the vehicle's lane based on high-precision positioning results and displays a lane-level navigation interface according to the lane.

[0174] In some embodiments, the map application can match high-precision positioning results with high-precision maps to determine the lane information of the vehicle.

[0175] For example, the lane-level navigation interface is Figure 4A The user interface 420 shown in (2) is shown.

[0176] S111: The positioning calculation module sends a location recognition request to the location recognition module.

[0177] In some embodiments, a location identification request can be used to obtain relative location results.

[0178] S112: The position recognition module obtains the position of the electronic device 100 inside the vehicle (i.e., the relative position result mentioned above).

[0179] In some embodiments, the location recognition module can perform scene recognition and feature extraction on the image data acquired by the image sensor to determine the relative location result. Specific examples are shown below. Figure 7 Image sensors include, but are not limited to, those that include... Figure 3A The camera shown is 193, an infrared camera, or other sensors.

[0180] In some embodiments, the image sensor is used in a secure mode, which can be understood as performing any operation in the system security domain of the electronic device 100, thus providing a high level of privacy. Optionally, in this case, the location recognition module / map application may use the image processor's image without user authorization.

[0181] In other embodiments, the location recognition module can determine the relative location result based on the image obtained by the image processor only after the user authorizes the location recognition module / map application to use the image of the image processor.

[0182] In one scenario, when electronic device 100 activates lane-level navigation, it may display a prompt message to authorize the location recognition module / map application to use the image from the image processor. For example, electronic device 100 displays... Figure 4G The user interface 490 shown includes a prompt box 491 containing a prompt message 491A. When the electronic device 100 receives a user action on the confirmation control 491C in the prompt box 491, it authorizes the map application to use the camera image to determine the aforementioned relative position result.

[0183] In another scenario, the user can authorize a map application to use camera images through the system settings of the electronic device 100. For example, the electronic device 100 displays... Figure 4H As shown in (2), when the electronic device 100 receives a control 522 (indicating the permission allowed when only used) in the user interface 520, it authorizes the map application to use the camera image to determine the aforementioned relative position result.

[0184] In another scenario, users can authorize the map application to use camera images through its settings. For example, electronic device 100 displays... Figure 4I As shown in the user interface 530, when the electronic device 100 receives a control in the user interface 520 indicating the permission allowed only when used, it authorizes the map application to use the camera image to determine the aforementioned relative position result.

[0185] For example, the relative position results include the following four cases: center console, dashboard, left A-pillar, and right A-pillar. It is not limited to these; the relative position results may include more or fewer cases. In some examples, the relative position results may include left B-pillar, right B-pillar, left C-pillar, and right C-pillar. In other embodiments, the relative position results may include left, middle, and right. A schematic diagram of the above positions can be found [link to diagram]. Figure 2A The vehicle structure shown.

[0186] S113: The location recognition module sends the relative position result to the positioning calculation module.

[0187] S114: The positioning calculation module sends the relative position result to the map application.

[0188] S115: The map application determines the vehicle's lane based on high-precision positioning results and relative position results, and displays a lane-level navigation interface according to the lane.

[0189] In some embodiments, the map application first determines the target location based on high-precision positioning results and relative position results. Then, the map application can match the target location results with the high-precision map to determine the lane where the vehicle is located. An example of determining the target location is shown below (the locations described in the following examples can be found in [reference needed]). Figure 2A (The vehicle body structure shown):

[0190] In one scenario, when the relative position result is a location such as the central control unit, the target positioning result is determined to be a high-precision positioning result. Specifically, the difference between the centerline (parallel to the y-axis) and the coordinates of the vehicle's center on the x-axis at this type of position is less than or equal to a preset difference (e.g., 0.1 meters). The central control unit will be used as an example to illustrate this type of position in the following explanations.

[0191] In another scenario, when the relative position results are the left A-pillar, left B-pillar, left C-pillar, etc., the target positioning result is determined as the position half the width of the vehicle to the right of the high-precision positioning result. In this case, the centerline (parallel to the y-axis) of this position is to the left of the vehicle's center, and the difference between this position and the vehicle's center coordinate on the x-axis is approximately half the width of the vehicle (e.g., less than or equal to half the vehicle's width plus a preset difference). The left A-pillar will be used as an example to illustrate this position in the following examples. See below for a specific example. Figure 8A .

[0192] In another scenario, when the relative position results are the right A-pillar, right B-pillar, right C-pillar, etc., the target positioning result is determined as the position half the width of the vehicle to the left of the high-precision positioning result. In this case, the centerline (parallel to the y-axis) of this position is to the right of the vehicle's center, and the difference between this position and the vehicle's center on the x-axis is approximately half the width of the vehicle (e.g., less than or equal to half the width of the vehicle plus a preset difference). The right A-pillar will be used as an example to illustrate this type of position in the following explanations.

[0193] In another scenario, when the relative position result is the dashboard (or similar position in a vehicle with the driver's seat on the left), the target positioning result is determined as a position shifted 1 / 4 of the vehicle's width to the right of the high-precision positioning result. In this case, the centerline (parallel to the y-axis) of this position is to the left of the vehicle's center, and the difference between this position and the vehicle's center coordinate on the x-axis is approximately 1 / 4 of the vehicle's width (or less than or equal to 1 / 4 of the vehicle's width plus a preset difference). The dashboard will be used as an example to illustrate this position in the future. Similarly, when the relative position result is the dashboard (or similar position in a vehicle with the driver's seat on the right), the target positioning result is determined as a position shifted 1 / 4 of the vehicle's width to the left of the high-precision positioning result.

[0194] In other embodiments, the map application can adjust the high-precision map based on the relative position results, and then match the high-precision positioning results with the adjusted high-precision map to determine the vehicle's lane. Examples of adjusting the high-precision map are shown below (the locations described in the following examples can be found in [reference needed]). Figure 2A (The vehicle body structure shown):

[0195] In one scenario, when the relative position result is the same as the central control position, the high-precision map is not adjusted.

[0196] In another scenario, when the relative position result is similar to the left A-pillar, the high-precision map is shifted to the left by half the width of the vehicle. See below for a specific example. Figure 8B .

[0197] In another scenario, when the relative position result is a position such as the right A-pillar, the high-precision map is moved to the right by half the width of a vehicle.

[0198] In another scenario, when the relative position result is the dashboard (or similar position for a vehicle with the driver's seat on the left), the high-precision map is moved to the left by 1 / 4 of a vehicle's width. Similarly, when the relative position result is the dashboard (or similar position for a vehicle with the driver's seat on the right), the target positioning result is determined as the high-precision positioning result moved to the right by 1 / 4 of a vehicle's width.

[0199] In some embodiments, whether the driver's seat of the aforementioned vehicle is on the left or right can be determined by a map application based on the traffic regulations (driving on the left or right) of the area where the electronic device 100 is currently located. Driving on the left corresponds to vehicles with the driver's seat on the right, and driving on the right corresponds to vehicles with the driver's seat on the right. However, this is not a limitation. In other embodiments, whether the driver's seat of the aforementioned vehicle is on the left or right can be determined by a map application based on vehicle information, such as determining whether the driver's seat is on the left or right based on the vehicle model information obtained by the electronic device 100. This application does not limit this to any particular embodiment.

[0200] In some embodiments, the width of the vehicle can be determined by the electronic device 100 based on vehicle information, such as vehicle model information obtained by the electronic device 100. However, in other embodiments, the width of the vehicle can be calculated by the electronic device 100 based on data collected by sensors such as cameras.

[0201] In some embodiments, when the lane determined in S115 is the same as the lane determined in S110, the lane-level navigation interface in S110 is maintained. In other embodiments, when the lane determined in S115 is different from the lane determined in S110, the currently displayed interface is updated to the lane-level navigation interface in S115. For example, the electronic device 100 displays... Figure 4AWhen the user interface 420 shown in (2) (i.e., the lane-level navigation interface in S110) is determined to update the displayed lane, it can then be displayed. Figure 4D The user interface 460 shown in (2) (i.e., the lane-level navigation interface in S115).

[0202] In one possible implementation, the method may also include (for example, after S115):

[0203] S116: The positioning calculation module determines that the position of the electronic device 100 has changed.

[0204] For example, when a user removes the electronic device 100 from the vehicle mount or changes the position of the vehicle mount on which the electronic device 100 is placed, the electronic device 100 can detect the change in its position through sensors such as an accelerometer and a gyroscope, and report the position change event to the positioning calculation module.

[0205] S117: The positioning calculation module sends a location recognition request to the location recognition module.

[0206] S118: The position recognition module acquires the position (i.e., relative position result) of the electronic device 100 within the vehicle.

[0207] S119: The location recognition module sends the relative position result to the positioning calculation module.

[0208] S120: The location recognition module sends the relative location result to the map application.

[0209] S121: The map application determines the lane where the vehicle is located based on high-precision positioning results and relative position results, and displays a lane-level navigation interface according to the lane.

[0210] S117-S121 is similar to S112-S115, the difference being that the execution time is different, so the content included in the relative position result can be different, and the determined lane can be different.

[0211] Please see Figure 6 , Figure 6 This is a flowchart illustrating another positioning method provided in an embodiment of this application. The method may include, but is not limited to, the following steps:

[0212] S201: The map application has entered lane-level navigation mode.

[0213] S202: The map application sends a high-precision positioning request to the positioning solution module.

[0214] S203: The positioning solution module performs GNSS high-precision positioning to obtain high-precision positioning results.

[0215] S204: The positioning solution module sends high-precision positioning results to the map application.

[0216] S205: The map application determines the lane where the vehicle is located based on the high-precision positioning results and displays a lane-level navigation interface according to the lane.

[0217] S206: The positioning calculation module sends a location recognition request to the location recognition module.

[0218] S207: The location recognition module obtains the relative position result.

[0219] S208: The location recognition module sends the relative position result to the positioning calculation module.

[0220] S201-S208 and Figure 5 Similar to 106-S113, see details. Figure 5 Explanation of 106-S113.

[0221] S209: The positioning solution module determines the target positioning result based on the high-precision positioning result and the relative position result.

[0222] For an example of S209, please refer to [link / reference]. Figure 5 An example of the target location result determined in S115.

[0223] In some embodiments, the positioning calculation module can first determine whether the driver's seat of the vehicle is on the left or right, and then obtain the target positioning result based on the determined result. In one case, when the map application sends a high-precision positioning request to the positioning calculation module, it can send the traffic regulations (driving on the left or right) of the area where the electronic device 100 is currently located. The positioning calculation module determines whether the driver's seat of the vehicle is on the left or right according to these traffic regulations; driving on the left corresponds to a vehicle with a driver's seat on the right, and driving on the right corresponds to a vehicle with a driver's seat on the left. In another case, when the map application sends a high-precision positioning request to the positioning calculation module, it can send driver's seat indication information. The positioning calculation module can determine whether the driver's seat of the vehicle is on the left or right according to this driver's seat indication information. In yet another case, the positioning calculation module can determine whether the driver's seat of the vehicle is on the left or right by itself. The specific explanation is similar to that in S115 where the map application determines whether the driver's seat of the vehicle is on the left or right, and will not be repeated here.

[0224] In some embodiments, the positioning calculation module may first determine the width of the vehicle, and then obtain the target positioning result based on the determined result. The explanation of how the positioning calculation module determines the width of the vehicle is similar to the explanation of how the map application determines the width of the vehicle in S115, and will not be repeated here.

[0225] S210: The positioning calculation module sends the target positioning result to the map application.

[0226] S211: The map application determines the lane where the vehicle is located based on the target positioning result and displays a lane-level navigation interface according to the lane.

[0227] In some embodiments, the map application can match the target location results with a high-precision map to determine the lane in which the vehicle is located.

[0228] In one possible implementation, prior to S201, the method may further include... Figure 5 S101-S105.

[0229] In one possible implementation, the method may further include (for example, after S211): Figure 5 The subsequent process of S116 is similar to that of S206-S211. The difference is that the execution time is different, so the contents of the relative position result may be different, the target positioning result may be different, and the determined lane may be different.

[0230] exist Figure 5 and Figure 6 In the method shown, the electronic device 100 can perform feature detection on the in-vehicle environment using an image sensor to accurately identify the relative position of the electronic device 100 and the vehicle, that is, the placement position of the electronic device 100 during in-vehicle navigation. Based on the relative position result, the electronic device 100 can then, on the application side (e.g., ... Figure 5 Map applications) combine high-precision positioning results to determine lanes, or on the system side (such as... Figure 6 The positioning calculation module adjusts the positioning results to eliminate system errors in lane-level navigation and improve the accuracy of vehicle positioning and lane recognition.

[0231] Furthermore, in Figure 6 In the method shown, the map application does not need to be aware of the relative position result, but only needs to focus on the reported target positioning result. The processing flow remains unchanged, minimizing changes to the application side, which is more in line with development needs.

[0232] Not limited to the examples above, in some embodiments, instead of the positioning calculation module sending a location identification request to the location identification module, the map application may directly send the location identification request to the location identification module. In other embodiments, instead of the location identification module sending the relative location result to the positioning calculation module and then the positioning calculation module sending the relative location result to the map application, the location identification module may directly send the relative location result to the map application.

[0233] Not limited to the examples above, in other embodiments, the relative position result obtained by the location recognition module may be a recognition failure. Recognition failure can occur in situations including, but not limited to, the location recognition module / map application not being granted permission to use the image from the image processor, or the image obtained by the image processor being insufficient to recognize the relative position result. In one case, when the electronic device 100 determines that the relative position result is a recognition failure, it can maintain the display of the previous lane-level navigation interface (the lane is determined based on the high-precision positioning result). In another case, when the electronic device 100 determines that the relative position result is a recognition failure, the map application can display a prompt message, such as displaying... Figure 4E The user interface 470 shown in (1) prompts the user to manually set the relative position result. If the user-set relative position result is obtained, the electronic device 100 can determine the vehicle's lane based on the high-precision positioning result and the user-set relative position result; otherwise, it retains the previous lane-level navigation interface. In another case, assuming the user has set the relative position result in advance, an example of the setting interface can be found in [reference needed]. Figure 4F The illustrated embodiment. When the electronic device 100 determines that the relative position result is a recognition failure, it can determine the vehicle's lane based on the high-precision positioning result and the relative position result set by the user; otherwise, it will continue to display the previous lane-level navigation interface.

[0234] Not limited to the examples above, in other embodiments, it is assumed that the user has pre-set the relative position result; an example of the setting interface can be found here. Figure 4F The illustrated embodiment shows that the electronic device 100 can determine the vehicle's lane directly based on the acquired high-precision positioning result and the user-set relative position result without obtaining the relative position result through a position recognition module.

[0235] Not limited to the examples above, in other embodiments, it is assumed that the user has pre-set the relative position result; an example of the setting interface can be found here. Figure 4F The illustrated embodiment. In scenario 1, the electronic device 100 can obtain a relative position result through a location recognition module; in scenario 2, it can directly use the user-set relative position result without obtaining the relative position result through the location recognition module. For example, if the battery level of the electronic device 100 is greater than or equal to a preset threshold, it falls under scenario 1; if it is less than the preset threshold, it falls under scenario 2. This application does not limit the specific definitions of scenario 1 and scenario 2. Optionally, the location recognition module of the electronic device 100 may only be activated in scenario 1.

[0236] In the above embodiments, the electronic device 100 first determines the lane where the vehicle is located based on the high-precision positioning result obtained by the positioning calculation module, and displays the corresponding lane-level navigation interface. After obtaining the relative position result, the electronic device 100 determines the lane where the vehicle is located based on the relative position result and the high-precision positioning result, and determines whether to update the previously displayed lane-level navigation interface based on the determined lane, so as to provide a more accurate lane positioning result without affecting the original navigation function.

[0237] In other embodiments, the lane-level navigation interface may not be displayed before the electronic device 100 obtains the relative position result. After obtaining the relative position result, the lane in which the vehicle is located is determined based on the relative position result and the high-precision positioning result, and then the corresponding lane-level navigation interface is displayed. For example, Figure 5 The method shown may not include S110, S109, and S114; the order of these steps is not limited. Alternatively, Figure 6 The method shown may exclude S204-S205. In other words, it directly provides users with more accurate lane positioning results, making lane-level navigation more precise and reliable.

[0238] Please see Figure 7 , Figure 7 An exemplary flowchart is shown to illustrate a process for obtaining relative position results.

[0239] In some embodiments, the electronic device 100 can directly use the first model to obtain the relative position result. The process of obtaining the first model may include:

[0240] S301: Electronic device 100 acquires multiple images.

[0241] These multiple images could be images from multiple different electronic devices at different locations on different vehicles.

[0242] S302: Electronic device 100 takes multiple images as input and the corresponding relative position results as output to train the first model.

[0243] In some embodiments, the electronic device 100 can train on these multiple images to encode and classify features, thereby constructing an AI classification model, namely the first model mentioned above. The features of the first model include, but are not limited to, seats, windows, doors, and human posture.

[0244] The process of obtaining relative position results using the first model may include:

[0245] S303: Electronic device 100 uses the currently acquired image as input to the first model and obtains the output of the first model: the position of electronic device 100 inside the vehicle (i.e., the relative position result).

[0246] For example, the currently acquired image may be an image acquired by the electronic device 100 within a preset time period.

[0247] In other embodiments, the electronic device 100 can use a second model to identify the driver and obtain a relative position result based on the driver's facial orientation. The process of obtaining the second model may include:

[0248] S301: Electronic device 100 acquires multiple images (multiple different electronic devices at different locations in different vehicles).

[0249] S304: Electronic device 100 takes multiple images as input and driver information as output to train a second model.

[0250] In some embodiments, the electronic device 100 can train on these multiple images to encode and classify features, constructing an AI classification model, namely the second model mentioned above. The features of the second model include, but are not limited to, seats, windows, doors, and human posture. The driver information mentioned above includes, but is not limited to, driver posture information.

[0251] The process of obtaining relative position results using the second model can include:

[0252] S305: Electronic device 100 uses the currently acquired image as input to the second model and obtains the output of the second model: driver information.

[0253] S306: Electronic device 100 identifies and processes the driver's information, determines the relative position of electronic device 100 and the driver based on the identified driver's facial orientation (e.g., the direction the face faces for a long time), and then determines the position of electronic device 100 in the vehicle (i.e., the relative position result) based on the relative position.

[0254] Not limited to the examples above, in other embodiments, the electronic device 100 may also use a second model to identify the driver and obtain the relative position result based on the driver's body posture. The specific process may include:

[0255] S305: Electronic device 100 uses the currently acquired image as input to the second model and obtains the output of the second model: driver information.

[0256] S307: Electronic device 100 identifies and processes the driver's information, and determines the relative position of electronic device 100 and the driver based on the identified human posture of the driver (such as the posture of the legs, the posture of the hands, the posture of the neck and shoulders, etc.), thereby determining the position of electronic device 100 in the vehicle (i.e., the relative position result) based on the relative position.

[0257] The features of the first model and the second model can be the same or different.

[0258] In some embodiments, Figure 5 S112, Figure 5 S118 or Figure 6 S207 may include the above-described S303. In other embodiments, Figure 5 S112, Figure 5 S118 or Figure 6 S207 may include the aforementioned S305-S306. In other embodiments, Figure 5 S112, Figure 5 S118 or Figure 6 S207 may include the above-mentioned S305-S307.

[0259] In addition to the examples above, in some other embodiments, the electronic device 100 may not train the first model or the second model. For example, the server trains the first model or the second model and sends the obtained first model or the second model to the electronic device 100. It is not limited to this. It is also possible that the developer trains the first model or the second model and stores the first model or the second model in the electronic device 100. This application does not limit this.

[0260] In some embodiments, the electronic device 100 can adjust the high-precision positioning result based on the relative position result, and then match the adjusted high-precision positioning result with a high-precision map to determine the lane where the vehicle is located. Specific examples are shown below. Figure 8A . Figure 8A The following explanation uses a high-precision map including lane 1, where lane 1 is 3.5 meters wide and the width of a vehicle is 2 meters.

[0261] like Figure 8A As shown, assuming the electronic device 100 is located at position 1, and the error of the high-precision positioning result is less than or equal to 1 meter, the high-precision positioning result could be any position within range 1 (with position 1 as the center and 1 meter as the radius). Since part of range 1 is located outside lane 1, the lane determined based on the high-precision positioning result may not be lane 1, resulting in lane identification errors.

[0262] Assuming the relative position obtained by electronic device 100 is the left A-pillar, electronic device 100 can adjust the high-precision positioning result to the right by half the width of the vehicle (i.e., 1 meter). Taking position 1 as an example, moving position 1 1 meter to the right results in position 2. The high-precision positioning result can be any position within range 2 (with position 2 as the center and 1 meter as the radius). Since range 2 is entirely within lane 1, the lane determined based on the high-precision positioning result is the correct lane 1.

[0263] In other embodiments, the electronic device 100 can adjust the high-precision map based on the relative position result, and then match the high-precision positioning result with the adjusted high-precision map to determine the lane where the vehicle is located. Specific examples are provided below. Figure 8B .

[0264] Figure 8B and Figure 8A Similarly, the difference is that electronic device 100 is adjusting a high-precision map at this time. Figure 8B Taking lane 1 in a high-precision map as an example, the electronic device 100 can adjust lane 1 in the high-precision map to the left by half the width of a vehicle (i.e., 1 meter). For details, please refer to... Figure 8B Lane 1 after adjustment. At this point, since all areas within range 1 are within the adjusted lane 1, the lane determined based on the high-precision positioning results is the correct lane 1.

[0265] exist Figure 8A and Figure 8B In the example shown, the electronic device 100 can use the relative position result to adjust the high-precision positioning result or high-precision map so that the final high-precision positioning result used to determine the lane is located at the center of the vehicle (not limited to this, in practice it can be that the difference between the coordinates of the vehicle center and the center of the vehicle on the x-axis is less than or equal to a preset difference, such as 0.1 meters), thereby eliminating the system error of lane-level navigation and improving the accuracy of lane recognition.

[0266] Please refer to Figure 9 , Figure 9 An exemplary schematic diagram of the hardware structure of another electronic device 100 is shown.

[0267] like Figure 9 As shown, the electronic device 100 may include a processor 901, a memory 902, a transceiver 903, a GNSS chip 904, and an image sensor 905. The processor 901, memory 902, transceiver 903, GNSS chip 904, and image sensor 905 can be interconnected via a bus 906.

[0268] The processor 901 can be a general-purpose processor, digital signal processor, application-specific integrated circuit, field-programmable gate array or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0269] The memory 902 can be non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SS), or it can be volatile memory, such as random-access memory (RAM). Memory is any other medium capable of carrying or storing desired program code in the form of instructions or data structures, and accessible by a computer. It is not limited to this; the memory 902 can also be a circuit or any other device capable of implementing storage functions, used to store program instructions and / or data. The memory 902 can be used to store at least one program instruction, and the processor 901 is used to execute at least one program instruction to implement the technical solution of the above embodiments. Its implementation principle and technical effects are similar to those of the related embodiments of the above methods, and will not be repeated here.

[0270] Transceiver 903 is used to receive and transmit data. GNSS chip 904 is used to acquire GNSS measurement data, which is used to obtain general or high-precision positioning results. Image sensor 905 is used to acquire images, which are used to obtain relative position results. Image sensor 905 includes, for example, but not limited to, cameras, infrared cameras, or other sensors.

[0271] In some embodiments, the electronic device 100 may further include an inertial measurement unit (IMU). Figure 9 (Not shown in the image), the inertial measurement unit is used to acquire inertial measurement data, which is used to obtain high-precision positioning results.

[0272] The methods provided in the embodiments of this application can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, they can be implemented, in whole or in part, in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be magnetic media (e.g., floppy disk, hard disk, magnetic tape), optical media (e.g., digital video disc (DWD), or semiconductor media (e.g., SSD), etc.

[0273] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. 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 scope of the technical solutions of the embodiments of this application.

Claims

1. A positioning method, characterized in that, Applied to electronic devices, the method includes: Obtain the first positioning coordinates of the electronic device, obtain the first position of the electronic device, the first position is the position of the electronic device in the vehicle, the first position is one of a plurality of preset positions in the vehicle, and any preset position in the plurality of preset positions corresponds to a preset distance; Based on the first positioning coordinates and the first position, the electronic device is determined to be located in the first lane; Lane-level navigation is performed based on the first lane; The step of obtaining the first position of the electronic device includes: acquiring image data through the camera of the electronic device, inputting the image data into a first model to obtain the first position, wherein the first model is trained based on multiple images of different electronic devices at different positions in different vehicles; or, inputting the image data into a second model to obtain the driver information of the vehicle, determining the relative position of the electronic device and the driver based on the facial orientation or human posture in the driver information, and determining the first position based on the relative position, wherein the second model is trained based on multiple images of different electronic devices at different positions in different vehicles.

2. The method as described in claim 1, characterized in that, Determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position includes: The second positioning coordinates are determined based on the first positioning coordinates and the first position, and the distance between the second positioning coordinates and the first positioning coordinates is a preset distance corresponding to the first position; The second location coordinates are matched with the map to determine that the second location coordinates are located in the first lane.

3. The method as described in claim 2, characterized in that, When the first position is located on the central axis of the vehicle, the preset distance is zero, and the second positioning coordinate is the first positioning coordinate; When the first position is located to the left of the vehicle's centerline, the second positioning coordinate is the coordinate of the first positioning coordinate moved to the right of the vehicle by the preset distance along the vertical direction of the vehicle's centerline; When the first position is located to the right of the vehicle's centerline, the second positioning coordinate is the coordinate of the first positioning coordinate moved to the left of the vehicle by the preset distance along the vertical direction of the vehicle's centerline.

4. The method as described in claim 1, characterized in that, Determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position includes: Adjust the map according to the first position and the preset distance corresponding to the first position; The first positioning coordinates are matched with the adjusted map to determine that the first positioning coordinates are located in the first lane.

5. The method as described in claim 4, characterized in that, When the first position is located on the centerline of the vehicle, the preset distance is zero; When the first position is located to the left of the vehicle's centerline, adjusting the map according to the first position and the preset distance corresponding to the first position includes: moving the map to the left of the vehicle by the preset distance along the vertical direction of the vehicle's centerline; When the first position is located to the right of the vehicle's centerline, adjusting the map according to the first position and the preset distance corresponding to the first position includes: moving the map to the right of the vehicle by the preset distance along the vertical direction of the vehicle's centerline.

6. The method as described in claim 1, characterized in that, Determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position includes: The electronic device reports the first positioning coordinates and the first location to the first application; The first application determines that the electronic device is located in the first lane based on the first positioning coordinates and the first position.

7. The method as described in claim 1, characterized in that, Determining that the electronic device is located in the first lane based on the first positioning coordinates and the first position includes: The electronic device determines the second positioning coordinates based on the first positioning coordinates and the first position; The electronic device reports the second positioning coordinates to the first application; The first application determines that the electronic device is located in the first lane based on the second positioning coordinates.

8. The method as described in claim 1, characterized in that, The step of obtaining the first location of the electronic device includes: the first location being set by the user through the electronic device.

9. The method as described in claim 1, characterized in that, The method for determining that the electronic device is located before the first lane based on the first positioning coordinates and the first position further includes: Based on the first positioning coordinates, the electronic device is determined to be located in the second lane, which may be the same as or different from the first lane. Lane-level navigation is performed based on the second lane.

10. The method as described in claim 1, characterized in that, After performing lane-level navigation based on the first lane, the method further includes: When the position of the electronic device changes, a second position of the electronic device is obtained. The second position is the position of the electronic device in the vehicle, and the second position may be the same as or different from the first position. The electronic device is located in the third lane based on its positioning coordinates and the second position. The third lane may be the same as or different from the first lane. Lane-level navigation is performed based on the third lane.

11. The method as described in claim 1, characterized in that, The method further includes: Obtain the third positioning coordinates of the electronic device and the position of the electronic device in the vehicle; When the location of the electronic device in the vehicle fails to be determined, a prompt message is displayed; Receive the third location input by the user based on the prompt information; Based on the third positioning coordinates and the third position, the electronic device is determined to be located in the fourth lane; Lane-level navigation is performed based on the fourth lane.

12. The method as described in claim 1, characterized in that, The method further includes: The fourth position to receive user input; Obtain the fourth positioning coordinates of the electronic device and the position of the electronic device in the vehicle; When it fails to obtain the location of the electronic device in the vehicle, the electronic device is determined to be located in the fifth lane based on the fourth positioning coordinates and the fourth position. Lane-level navigation is performed based on the fifth lane.

13. The method as described in claim 1, characterized in that, The method further includes: Receive the first instruction; Obtaining the first positioning coordinates of the electronic device includes: In response to the first instruction, the first positioning coordinates of the electronic device are obtained.

14. The method as described in claim 13, characterized in that, The first instruction is used to trigger lane-level navigation; before receiving the first instruction, the method further includes: Obtain the fifth positioning coordinates of the electronic device; Road-level navigation is performed based on the fifth positioning coordinates.

15. The method as described in claim 13, characterized in that, Before receiving the first instruction, the method further includes: Obtain the fifth positioning coordinates of the electronic device; Road-level navigation is performed based on the fifth positioning coordinates; The receiving of the first instruction includes: When the electronic device is in a preset scenario, it receives the first instruction. The preset scenario includes any one of the following: the difference between the current time and the time when the vehicle enters the intersection is less than or equal to a first difference; the difference between the current time and the time when the vehicle arrives at the zebra crossing is less than or equal to a second difference; and the number of vehicles around the vehicle is greater than or equal to a first number.

16. An electronic device, characterized in that, include: One or more processors and one or more memories; wherein the one or more memories are coupled to one or more processors, the one or more memories being used to store computer program code, the computer program code including computer instructions, which, when the one or more processors execute the computer instructions, cause the electronic device to perform the method as described in any one of claims 1-15.

17. A computer storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-15.

Citation Information

Patent Citations

  • Lane level positioning method, related device, equipment and storage medium

    CN113295174A

  • Detecting positioning of a sensor system associated with a vehicle

    US20210405641A1