Ar path creation method, related apparatus, and communication system

By collecting data from the cameras and motion sensors of electronic devices, users can customize AR routes and add annotations, which solves the problem of inaccurate navigation in internal areas of existing AR navigation and realizes the problem of insufficient road data and poor positioning signals. Provide accurate navigation services.

WO2024199190A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/083636
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-27
Filing Date
2024-03-25
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing AR navigation applications are difficult to provide accurate navigation services in internal areas such as residential communities and underground garages, mainly due to insufficient road data construction and poor positioning signals.

Method used

By capturing images with the camera of electronic devices and collecting data from motion sensors, users can customize AR routes, add travel annotations during the production process, generate AR route data, and achieve real-time matching to provide navigation services without relying on complete road data and accurate positioning information.

Benefits of technology

In scenarios where road data construction is insufficient and positioning signals are poor, accurate AR navigation services are provided, improving the accuracy and user experience of AR route production, and simplifying user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024083636_03102024_PF_FP_ABST
    Figure CN2024083636_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides an AR path creation method, a related apparatus, and a communication system. An electronic device can turn on a camera to capture an image, and acquire data collected by a motion sensor so as to create an AR path. During data acquisition, the electronic device can likewise prompt a user to add a progress marker. The progress marker can be used for identifying at a specified position progress information such as a progress direction, and can improve the accuracy of AR path creation. When data is obtained for a completed AR path, the electronic device can use the AR path data to perform real-time matching and provide AR navigation, without needing to rely on flawless road data and accurate and stable positioning information. In this way, even in scenarios involving insufficient road data and a poor positioning signal, the AR path data can nevertheless provide an accurate AR navigation service to a user.
Need to check novelty before this filing date? Find Prior Art

Description

AR route creation method, related device and communication system

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 27, 2023, with application number 202310334706.0, and priority to the Chinese patent application entitled “AR route production method, related devices and communication system”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to an AR route creation method, related devices, and a communication system. Background Art

[0003] With the development of augmented reality (AR) technology, AR is gradually being applied to navigation. AR routes can provide users with more intuitive navigation services. AR technology relies on the development of road data and accurate positioning. However, currently, in areas such as residential areas, underground garages, and shopping malls, there are common problems such as insufficient road data storage and poor positioning signals. Existing AR navigation applications often struggle to provide users with accurate AR navigation services in these areas.

[0004] Summary of the Invention

[0005] The present application provides an AR route production method, related devices and communication systems. Users can customize AR routes and add travel annotations in the process of making AR routes to improve the accuracy of AR route production. When using the AR route navigation produced by the AR route production method of the present application, electronic devices can use AR route data for real-time matching to provide AR navigation. The AR navigation process does not need to rely on complete road data and accurate and stable positioning information. In this way, even in scenarios where road data construction is insufficient and positioning signals are poor, the above-mentioned AR route data can provide users with accurate AR navigation services.

[0006] In a first aspect, the present application provides an AR route production method. In which, a first electronic device can obtain a first image sequence by shooting with a camera within a first time period, and the first time period is the time period for the first electronic device to reach the end point of the first route from the starting point of the first route along the first route. The first electronic device receives a first operation within the first time period, and the first operation is used to add first travel information to the first image, and the first image sequence includes the first image. The first electronic device obtains first route data of the first route, and the first route data is determined based on the first image sequence and the first travel information.

[0007] The first route mentioned above may represent an AR route.

[0008] The above-mentioned first operation can refer to the operation of the direction labeling control 442A shown in Figure 4E of this application, the operation of the direction labeling control 442A shown in Figure 4G, the operation of the elevator labeling control 442B shown in Figure 4I, etc.

[0009] As can be seen from the above method, the first electronic device can use a camera to capture an image of the AR route and use the image to create the AR route. In addition, the first electronic device can also prompt the user to add travel annotations when creating the AR route. This can make the AR route more accurate.

[0010] In combination with the first aspect, in some embodiments, before the first electronic device receives the first operation within the first time period, the first electronic device recognizes that the first image contains a first key point; the first electronic device provides a first prompt, and the first prompt is used to prompt the user to add travel information.

[0011] In combination with the first aspect, in some embodiments, before the first electronic device receives the first operation within the first time period, the first electronic device determines based on the motion sensor that the offset angle of the first electronic device at the first moment is greater than the first angle; the first electronic device provides a second prompt, and the second prompt is used to prompt the user to add travel information.

[0012] The first image may be taken by the first electronic device within a second time period, and the second time period is a time period including the first moment.

[0013] More specifically, the first image is taken by the first electronic device at the first moment.

[0014] The above-mentioned first prompt and second prompt can refer to the annotation addition prompt 443 shown in Figure 4E of this application.

[0015] As can be seen from the above embodiments, when the first electronic device recognizes the presence of key points on the image or determines that the first electronic device has a large angle offset based on the data collected by the motion sensor, it can prompt the user to add travel information. The user can add travel information based on the prompt of the first electronic device. This eliminates the need for the user to think about where to add travel information and reduces the situation where the user does not know where to add travel information. The above prompts for adding travel information can help users better create AR routes and improve the user experience of creating AR routes.

[0016] In conjunction with the first aspect, in some embodiments, the travel information may include one or more of the following: travel direction, elevator arrival floor information, and stair arrival floor information. The travel direction may be, for example, left turn, right turn, straight ahead, backward, etc.

[0017] In combination with the first aspect, in some embodiments, the first route data may include: road features of the first image sequence, image features of the first image sequence, and a first path; wherein, the road features of any frame image in the first image sequence include a timestamp, and one or more of the following: key points, travel information, road width, road position, building signs, wherein the road features of the first image include first travel information; the image features of any frame image in the first image sequence include one or more of the following: color features, texture features, shape features, spatial relationship features; the first path is used to represent the position of each point on the first route.

[0018] In some embodiments, the first path may be determined according to image features of the first image sequence.

[0019] In conjunction with the first aspect, in some embodiments, the first electronic device sends a first image sequence of road features to a server, and the first electronic device obtains first route data from the server. Optionally, the first electronic device may also generate the first route data itself.

[0020] In combination with the first aspect, in some embodiments, the first electronic device obtains first motion data based on data collected by the motion sensor within a first time period, and the first motion data includes the offset angle and moving distance of the first electronic device; wherein the first route data is also determined based on the first motion data.

[0021] As can be seen from the above embodiments, the first route data can be determined by combining the first image sequence and the first motion data. For example, the above method can use the AR route determined by the road images in the first image sequence and the AR route determined based on the first motion data to correct each other, thereby obtaining the first route data for the first route. This is more accurate than an AR route determined solely by images captured by a camera or data collected solely by a motion sensor.

[0022] In combination with the first aspect, in some embodiments, the first electronic device recognizes that the second image in the first image sequence contains a second key point; the first electronic device determines second travel information associated with the second image; wherein the first route data is also determined based on the second travel information.

[0023] In combination with the first aspect, in some embodiments, the first electronic device determines based on a motion sensor that the offset angle of the first electronic device at the second moment is greater than the first angle; the first electronic device determines third travel information associated with a third image in the first image sequence, and the third image is taken within a time period including the second moment; wherein the first route data is also determined based on the third travel information.

[0024] As can be seen from the above embodiment, the first electronic device can automatically add travel information during the data collection phase of creating an AR route. This simplifies the user's operation during the AR route creation process and improves the user experience. The first electronic device automatically adding travel information can also improve the accuracy of AR route creation.

[0025] In combination with the first aspect, in some embodiments, the first electronic device obtains a second image sequence by shooting with a camera within a first time period; the first electronic device extracts frames of the second image sequence to obtain a first image sequence.

[0026] As can be seen from the above embodiment, the first electronic device can extract frames from the captured image and then generate an AR route based on the extracted images. The above frame extraction analysis can effectively reduce the amount of calculation of the electronic device 100 and improve the efficiency of AR route generation.

[0027] In combination with the first aspect, in some embodiments, the first electronic device receives a second operation, and the second operation is used to set one or more of the following contents of the first route: AR guide, turning effects, starting point welcome words, starting point animation, end point closing words, end point animation, roadside scenery; the first electronic device sets the first route according to the second operation.

[0028] The above-mentioned second operation can refer to the user operations on the AR guide setting area 621, key point turning special effect setting area 622, starting point welcome setting area 623 and other areas shown in Figure 6B in this application.

[0029] As can be seen from the above embodiments, after creating an AR route, users can personalize the AR route so that the content presented by the AR route when used for AR navigation better meets their preferences and needs. The above personalized AR route settings can also better motivate users to create AR routes.

[0030] In combination with the first aspect, in some embodiments, the first electronic device sends first indication information to the second electronic device, where the first indication information is used to obtain first route data; or, the first electronic device sends the first route data to the second electronic device.

[0031] The first indication information may be data in the form of a link, a QR code, etc.

[0032] It can be seen from the above embodiments that after a user creates an AR route, the AR route can be shared with other users. In addition, the user can personalize the AR route differently for different sharing objects. For example, after a user creates an AR route with the destination at his home, he can share the personalized AR route with friends and family. This can bring the user closer to others and provide a better AR navigation experience for others visiting the user's home. For another example, after a merchant creates an AR route with the destination at his own shop, he can use the personalized setting method to integrate product advertisements into the AR route. Merchants can share personalized AR routes with customers. This can increase the entrance for merchants to push traffic and help merchants attract more customers.

[0033] In a second aspect, the present application provides an AR navigation method, in which a second electronic device can obtain first route data of a first route. The second electronic device determines that a user is located at a first position on the first route based on an image captured by a camera and the first route data; the second electronic device determines that features of a first real-time image match features of a first image in the first route data, where the first real-time image is captured by the second electronic device at the first position, and the first image is an image corresponding to the first position in the first route data; the second electronic device determines first travel information associated with the first image in the first route data; and the second electronic device provides first travel guidance based on the first travel information.

[0034] In some embodiments, the second electronic device may receive the first indication information sent by the first electronic device. The second electronic device may obtain the first route data from the server based on the first indication information. Alternatively, the second electronic device may receive the first route data sent by the first electronic device.

[0035] As can be seen from the above method, the second electronic device can use AR route data for real-time matching to provide AR navigation, without relying on complete road data and accurate and stable positioning information. In this way, even in scenarios with insufficient road data and poor positioning signals, the second electronic device can use AR route data to provide users with accurate AR navigation services.

[0036] In conjunction with the second aspect, in some embodiments, the second electronic device may use the road features and / or image features of the image to determine whether the features of the first real-time image match the features of the first image. Specifically, if it is determined that the road features of the first real-time image match the road features of the first image, and / or if it is determined that the image features of the first real-time image match the image features of the first image, the second electronic device may determine that the features of the first real-time image match the features of the first image.

[0037] The first route data may include road features and image features of the first image. The road features and image features of the first real-time image may be obtained by the second electronic device performing image analysis on the first real-time image. Road features of an image frame may include a timestamp and one or more of the following: key points, travel information, road width, road location, and building identification. Image features of an image frame may include one or more of the following: color features, texture features, shape features, and spatial relationship features.

[0038] In conjunction with the second aspect, in some embodiments, the first travel information is traveling in a first direction at a first location. Then, the first travel guidance may be used to instruct the user to travel in the first direction.

[0039] In combination with the second aspect, in some embodiments, the second electronic device determines the first real-time route based on images captured within a third time period, where the third time period is the time period for the second electronic device to travel from the starting point of the first route to the first location; the second electronic device compares the position on the first real-time route with the position on the first route to determine that the user is at the first location.

[0040] The first real-time route can change in real time as the user moves. The second electronic device can determine whether the first real-time route is part of the first route. The fact that the first real-time route is part of the first route may indicate that the first real-time route and the first route match, and the user is traveling along the AR route. The fact that the first real-time route is not part of the first route may indicate that the first real-time route and the first route do not match, and the user's route has deviated from the first route. The second electronic device can determine the coordinates of each point on the first real-time route and the first route in the same coordinate system. The second electronic device can determine whether the first real-time route is part of the first route by comparing the coordinates of each point on the first real-time route with the coordinates of each point on the first route. If the second electronic device can find a point on the first route that is located at the same or similar location to all points on the first real-time route, the second electronic device can determine that the first real-time route is part of the first route. These points located at the same location may indicate points with the same coordinates. These points located at similar locations may indicate points where the distance between the two points is less than a preset distance. The embodiment of this application does not limit the value of the preset distance.

[0041] In combination with the second aspect, in some embodiments, the second electronic device obtains second motion data based on data collected by the motion sensor within a third time period, and the second motion data includes the offset angle and moving distance of the second electronic device; wherein the first real-time route is also determined based on the second motion data.

[0042] In conjunction with the second aspect, in some embodiments, the first location is a starting point of the first route. When the second electronic device determines that the user's location is not at the first location, the second electronic device may provide first information for instructing the user to go to the first location.

[0043] The above-mentioned first information can refer to the information in the prompt box 822 shown in Figure 8B of this application.

[0044] In some embodiments, the second electronic device may also provide the user with a navigation service from the current location to the first location.

[0045] In conjunction with the second aspect, in some embodiments, before the second electronic device determines that an image feature of the first real-time image matches an image feature of the first image in the first route data, the second electronic device captures a second real-time image at the first location;

[0046] The second electronic device determines that features of the second real-time image do not match features of the first image; the second electronic device provides second information, where the second information is used to instruct the user to adjust the shooting direction at the first position; and the second electronic device captures the first real-time image at the first position.

[0047] It can be seen from the above embodiments that the second electronic device can correct the user's direction of travel in real time by matching the features of the image taken during AR navigation with the features of the image in the AR route data in real time, giving the user a more accurate and intuitive AR navigation experience. Among them, the second electronic device can indicate the direction adjusted by the user by matching the image taken at a position with the image at this position in the template image. Furthermore, the user can accurately travel on the AR route in the adjusted direction according to the direction of travel indicated by the second electronic device. In this way, the user does not need to judge how to travel by himself when using AR navigation.

[0048] In combination with the second aspect, in some embodiments, the second electronic device determines that the user is located at the second position of the first route based on the image captured by the camera and the first route data; the second electronic device determines that the features of the third real-time image match the features of the fourth image in the first route data, the third real-time image is captured by the second electronic device at the second position, and the fourth image is the image corresponding to the second position in the first route data; the second electronic device provides second travel guidance based on the third real-time image.

[0049] In some embodiments, the third real-time image is captured by the second electronic device toward a second direction, and the second travel guide is used to instruct the user to travel toward the second direction.

[0050] In a third aspect, the present application provides an electronic device, which may include a camera, a motion sensor, a memory, and a processor. The camera may be used to capture images. The motion sensor may be used to collect motion data of the electronic device. The memory may be used to store a computer program. The processor may be used to invoke the computer program, causing the electronic device to execute any possible implementation method of the first or second aspect.

[0051] In a fourth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enables the electronic device to execute any possible implementation method in the first aspect or the second aspect.

[0052] In a fifth aspect, the present application provides a computer program product, which may include computer instructions. When the computer instructions are run on an electronic device, the electronic device executes any possible implementation method in the first aspect or the second aspect.

[0053] In a sixth aspect, the present application provides a chip, which is applied to an electronic device, and the chip includes one or more processors, which are used to call computer instructions to enable the electronic device to execute any possible implementation method as in the first aspect or the second aspect.

[0054] It is understandable that the electronic device provided in the third aspect, the computer-readable storage medium provided in the fourth aspect, the computer program product provided in the fifth aspect, and the chip provided in the sixth aspect are all used to execute the methods provided in the embodiments of the present application. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] FIG1 is an architecture diagram of a communication system provided in an embodiment of the present application;

[0056] FIG2A is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0057] FIG2B is a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0058] FIG3 is an architecture diagram of another communication system provided in an embodiment of the present application;

[0059] 4A to 4N are schematic diagrams of some scenarios for making AR routes provided in embodiments of the present application;

[0060] FIG5A is a flowchart of an AR route creation method provided in an embodiment of the present application;

[0061] FIG5B is a schematic diagram of road features in an AR route image provided by an embodiment of the present application;

[0062] FIG6A and FIG6B are schematic diagrams of some scenarios for personalized AR route settings provided by embodiments of the present application;

[0063] Figures 6C to 6E are schematic diagrams of some scenarios for sharing AR routes provided in embodiments of the present application.

[0064] FIG7 is a flow chart of a method for sharing an AR route provided in an embodiment of the present application;

[0065] 8A to 8L are schematic diagrams of some AR navigation scenarios provided by embodiments of the present application;

[0066] FIG9 is a flowchart of an AR navigation method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0068] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0069] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0070] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application (APP) or an operating system (OS) and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0071] The present application provides a method for creating an AR route. When creating an AR route, the electronic device 100 can turn on its camera to capture an image and obtain data collected by motion sensors (such as a gravity sensor, accelerometer, gyroscope, etc.). The electronic device 100 can perform image analysis on the image. Upon identifying key points in the image, the electronic device 100 can prompt the user to add a travel annotation. The key points can indicate locations where there are multiple travel directions or where the travel direction may change. For example, intersections, stairs, etc. When the data collected by the gyroscope sensor determines that the electronic device 100 has experienced a large angle of deviation, the electronic device 100 can also prompt the user to add a travel annotation. The electronic device 100 can add a travel annotation in response to the user's operation to add a travel annotation. Optionally, the electronic device 100 can also automatically add a travel annotation upon identifying key points in the image or determining that the electronic device 100 has experienced a large angle of deviation. The electronic device 100 can also detect the distance the electronic device 100 has moved using a gravity sensor and an accelerometer. The travel distance can represent the length of the distance from the starting point of the AR route to each location on the AR route.

[0072] The electronic device 100 can transmit the aforementioned movement annotations, one or more road information items such as road location, road width, and building identification obtained based on image analysis, as well as the offset angle and travel distance of the electronic device 100, to the server. The aforementioned road location can represent the position of the electronic device 100 relative to the starting point of the AR route when a frame of image was captured. The server can generate an AR route based on the data transmitted by the electronic device 100.

[0073] After user 1 uses the electronic device 100 to create an AR route, he can share the AR route he created with other users, such as user 2. User 2 can open the AR route shared by user 1 on the electronic device 101 and go to the destination along the AR route. Among them, when the electronic device 101 of user 2 provides AR navigation services based on the AR route created by user 1, it can obtain the AR route data of the AR route. The electronic device 101 can turn on the camera to capture images and provide real-time guidance based on the captured images and AR route data. Optionally, the electronic device 101 can also provide AR navigation services in combination with data collected by motion sensors (such as deflection angle, acceleration, etc.).

[0074] It can be seen that when making an AR route, the electronic device 100 can capture images on the AR route through a camera, and detect the motion data of the electronic device 100 on the AR route through a motion sensor. The AR route can be generated in combination with the above-mentioned images and motion data. In addition, the electronic device 100 can also prompt the user to add travel annotations when making an AR route. This can make the AR route more accurate. Users can share the AR routes they make with other users. When the electronic device 101 provides AR navigation services according to the AR route, it can use the images captured by the electronic device 101 and the motion data of the electronic device 100. In this way, AR navigation does not require complete road data and the electronic device can obtain accurate and stable positioning signals. In scenarios where road data construction is insufficient and the positioning signal is poor, the AR production method provided in this application can also provide users with accurate AR navigation services.

[0075] Structure of communication systems and equipment

[0076] The following first introduces the architecture of the communication system involved in this application and the hardware structure and software structure of the device.

[0077] FIG1 exemplarily shows an architecture diagram of a communication system 10 provided in an embodiment of the present application.

[0078] As shown in Figure 1, the communication system 10 may include multiple electronic devices (such as electronic device 100, electronic device 101, electronic device 102, etc.) and a server 200. Among them, these multiple electronic devices can establish communication connections with the server 200. These multiple electronic devices can also establish communication connections with each other. This application does not limit the method of the above-mentioned communication connection.

[0079] Electronic devices 100, 101, and 102 may be mobile phones, tablet computers, smart watches, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. The embodiments of the present application do not limit the specific types of electronic devices.

[0080] The above-mentioned multiple electronic devices may be installed with a map application. The map application may be integrated with an AR navigation service, which can be used to provide an AR route creation function and an AR navigation function based on the AR route. Not limited to map applications, other AR navigation applications may also be installed in the above-mentioned multiple electronic devices. The subsequent embodiments of this application will be specifically described using a map application as an example.

[0081] For example, the electronic device 100 may initiate AR route creation in response to a user operation enabling the AR route creation function. During the AR route creation process, the user may hold the electronic device 100 and travel from the starting point of the AR route to the end point of the AR route. The route taken by the user from the starting point to the end point is the AR route.

[0082] In the process of making an AR route, the electronic device 100 can determine the road features of the image based on the image captured by the camera and the added travel annotations. The road features of a frame image may include a timestamp, a frame number, and one or more of the following parameters: travel direction, road position, road width, and building identification. In the process of making an AR route, the electronic device 100 can also determine the motion data of the electronic device 100 based on a motion sensor (such as a gravity sensor, an acceleration sensor, and a gyroscope sensor). The motion data may include a timestamp, an offset angle, and a moving distance.

[0083] The electronic device 100 may send the road features of the image determined during the AR route creation process and the motion data of the electronic device 100 to the server 200. The server 200 may create the AR route based on the road features and motion data from the electronic device 100.

[0084] In some embodiments, after the server 200 creates the AR route, it can send the AR route data to the electronic device 100. In this way, the user can view the AR route he or she created after completing the data collection in the process of creating the AR route.

[0085] In some embodiments, the electronic device 100 may further identify image features of an image captured by a camera. The image features may include one or more of the following: color features, texture features, shape features, spatial relationship features, and the like. The electronic device 100 may send the above image features to the server 200. The AR route data generated by the server 200 may include the above image features. Optionally, the electronic device 100 may also send images captured during the creation of the AR route to the server 200. The server 200 may identify the image features of the received images and generate an AR route based on these image features.

[0086] Among them, the image features in the AR route data can be used to provide travel direction guidance through image feature matching during AR navigation.

[0087] In some embodiments, the user can also personalize the AR route he or she created. For example, the electronic device 100 can provide the user with one or more of the following personalized setting options: starting point welcome words and / or animation setting options, AR wizard setting options, key point turning special effects setting options, roadside scenery setting options, end point ending words and / or animation setting options, etc. The electronic device 100 can adjust the AR route according to the personalized setting data determined by the above-mentioned personalized setting options. Alternatively, the electronic device 100 can send the above-mentioned personalized setting data to the server 200. The server 200 can adjust the AR route and send the adjusted AR route to the electronic device 100. In this way, the electronic device 100 can obtain a personalized AR route.

[0088] In some embodiments, users can share their own AR routes with other users. The electronic device 100 can obtain the indication information of the AR route from the server 200. The indication information can be used to obtain AR route data from the server 200. The indication information can be data in the form of a link, a QR code, etc. The embodiment of the present application does not limit the implementation form of the above-mentioned indication information. The electronic device 100 can send the indication information of the above-mentioned AR route to the electronic device 101. The electronic device 101 can use the indication information to obtain the AR route data from the server 200. The electronic device 101 provides an AR navigation function based on the obtained AR route data.

[0089] In some scenarios, residents can create AR routes from the community gate to their home or from the underground garage. Residents can share these AR routes with relatives, friends, delivery drivers, and other visitors, providing them with convenient and intuitive navigation routes to help them reach their homes smoothly.

[0090] In other scenarios, merchants in a mall can create AR routes from the mall entrance to their store or from the mall's underground garage to their store. Merchants in the mall can share these AR routes with customers, delivery drivers, and other visitors, providing them with convenient and intuitive navigation routes to help them shop, dine, or pick up food at their stores.

[0091] Not limited to the above scenarios, the AR route creation method and the AR route sharing and navigation method provided by the communication system 10 shown in FIG1 can also be applied to more scenarios.

[0092] As can be seen from the communication system 10 shown in Figure 1, users can participate in the production of AR routes. Users can use electronic devices to collect data required to produce AR routes. The server 200 generates a corresponding AR route based on the data obtained by the electronic device when making the AR route. When the electronic device performs AR navigation on the AR route produced according to the AR route production method provided by this application, the image and motion data obtained by the electronic device in real time can be matched with the AR route data, and real-time AR guidance can be provided based on the matching results. In this way, AR navigation does not require complete road data and the electronic device can obtain accurate and stable positioning signals. In scenarios where road data construction is insufficient and positioning signals are poor, the AR production method provided by this application can also provide users with accurate AR navigation services.

[0093] Here, the software and hardware structure of the electronic device 100 is introduced. The structures of the electronic devices such as the electronic device 101 and the electronic device 102 in the communication system 10 can refer to the introduction of the structure of the electronic device 100. This application will not repeat them in detail.

[0094] FIG. 2A exemplarily shows a schematic diagram of the hardware structure of the electronic device 100 .

[0095] As shown in Figure 2A, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0096] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0097] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0098] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0099] Processor 110 may also include a memory for storing instructions and data. In some examples, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces processor 110 latency, and thus improves system efficiency.

[0100] USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 130 can be used to connect a charger to charge electronic device 100, transfer data between electronic device 100 and peripheral devices, or connect headphones to play audio.

[0101] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.

[0102] The power management module 141 is used to connect 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 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.

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

[0104] 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 a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0105] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1.

[0106] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0107] The 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 that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.

[0108] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

[0109] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0110] The ISP is used to process data fed back by the camera 193. For example, when taking a photo, 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, which is then transmitted to the ISP for processing and converted into an image visible to the naked eye.

[0111] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0112] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0113] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0114] The external memory 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

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

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

[0117] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some examples, the audio module 170 can be set in the processor 110, or some functional modules of the audio module 170 can be set in the processor 110. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone jack 170D is used to connect wired headphones.

[0118] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a gravity sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0119] The gyroscope sensor can be used to determine the motion posture of the electronic device 100. In some embodiments, the gyroscope sensor can be used to determine the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes). The electronic device 100 can also use the gyroscope sensor to determine the offset angle of the electronic device 100.

[0120] The accelerometer can detect the magnitude of acceleration in all directions (generally three axes) of the electronic device 100. In some embodiments, the accelerometer can be used to identify the posture of the electronic device 100 and can be applied to applications such as landscape and portrait screen switching and pedometers.

[0121] The gravity sensor can be used to determine the tilt angle of the electronic device 100 relative to the horizontal plane. In some embodiments, the gravity sensor can be used to determine the screen state of the electronic device 100, so as to adjust the screen to keep it horizontal.

[0122] In some embodiments, the electronic device 100 may determine the movement distance of the electronic device 100 within a period of time through an acceleration sensor and a gravity sensor.

[0123] Buttons 190 include a power button, a volume button, etc. Motor 191 can generate vibration prompts. Indicator 192 can be an indicator light that can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0124] The SIM card interface 195 is used to connect a SIM card. A SIM card can be connected to and disconnected from the electronic device 100 by inserting or removing it from the SIM card interface 195. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some examples, the electronic device 100 uses an eSIM, or embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0125] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device 100 is exemplarily described.

[0126] FIG2B is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0127] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime (Android Runtime) and system library, and kernel layer.

[0128] The application layer can include a series of application packages.

[0129] As shown in FIG2B , the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, short message, etc. Among them, the map application can be used to provide functions such as viewing the sunlight information of the bus seats and navigation.

[0130] The application framework layer provides APIs and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.

[0131] As shown in FIG2B , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, an activity manager, and the like.

[0132] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0133] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0134] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0135] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0136] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0137] The Notification Manager allows applications to display notification information in the status bar (such as the pull-down notification bar). It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the Notification Manager is used to notify the completion of downloads, message reminders, etc. The Notification Manager can also be used to display notifications in the form of icons or scrolling text in the status bar at the top of the system, such as notifications from applications running in the background, or notifications that appear on the screen in the form of dialog windows. For example, text messages can be displayed in the status bar, prompts can be sounded, electronic devices can vibrate, indicator lights can flash, etc.

[0138] The Activity Manager is responsible for managing activities, starting, switching, and scheduling components in the system, as well as managing and scheduling applications. The Activity Manager can be called by upper-level applications to open corresponding activities.

[0139] Android Runtime includes core libraries and a virtual machine. Android Runtime is responsible for scheduling and management of the Android system.

[0140] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0141] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0142] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0143] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0144] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0145] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0146] A 2D graphics engine is a drawing engine for 2D drawings.

[0147] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0148] FIG3 exemplarily shows an architecture diagram of another communication system 20 provided in an embodiment of the present application.

[0149] As shown in FIG. 3 , the communication system 20 may include an electronic device 100 , an electronic device 101 , and a server 200 .

[0150] The electronic device 100 may be installed with a map application 310. The map application 310 may be used to provide AR route creation and AR navigation functions. The map application 310 may include an AR route recording module 311, an AR route matching module 312, and an AR route visual analysis module 313.

[0151] The AR route recording module 311 can be used for data collection. The data collected by the AR route recording module 311 can be used to create an AR route. When the AR route creation function is turned on, the AR route recording module 311 can call the camera in the electronic device 100 to capture images. In some embodiments, the AR route recording module 311 can also be used to call the motion sensor in the electronic device 100 to collect sensor data. The above-mentioned motion sensor may include one or more of the following: a gravity sensor, an acceleration sensor, and a gyroscope sensor. The electronic device 100 can determine the motion data of the electronic device 100 through the above-mentioned sensor data, for example, the offset angle, moving distance, etc. of the electronic device 100.

[0152] The AR route visual analysis module 313 can be used to perform visual analysis on images. The AR route recording module 311 can send images captured by the camera to the AR route visual analysis module 313. The AR route visual analysis module 313 can perform visual analysis on the received images to obtain road information within the images. Road information within a frame of image can include one or more of the following: key points, road location, road width, and building identification.

[0153] Among them, the key point of a frame of image can represent a position where there are multiple directions of travel on the road captured by this frame of image. The user may need to change the direction of travel at this key point. For example, a frame of image includes an intersection. The user may want to go straight ahead at the intersection, or may want to turn left or right. Then the intersection can represent a key point in this frame of image. For another example, a frame of image includes a staircase. The user may want to go up the stairs at the staircase, or may not want to go up the stairs and need to go straight ahead around the stairs. Then the staircase can represent a key point in this frame of image. When there are one or more key points in a frame of image, the electronic device 100 can prompt the user to add travel annotations to improve the accuracy of AR route production.

[0154] The road position of a frame image can represent the position on the AR route when the frame image was captured during the AR route creation process. In this way, the created AR route data can include images at various locations on the AR route. These images can be used for image matching during AR navigation to provide users with accurate travel directions.

[0155] The road width of a frame of image can represent the width of the road captured in this frame of image. In one possible implementation, the AR route visual analysis module 313 can calculate the actual width of the road based on the focal length of the camera when capturing the image and the width of the road presented in the image. This embodiment of the application does not limit the implementation method of determining the road width.

[0156] The building identification of a frame of image may represent the identification information of the building captured in this frame of image. The above building identification information may include but is not limited to: identification information on road signs, door information, and elevator identification information.

[0157] In one possible implementation, the AR route visual analysis module 313 may include an image analysis module. The image analysis module may be a module trained based on a neural network and may be used to analyze road information in an image. The present embodiment of the application does not limit the method by which the AR route visual analysis module 313 performs visual analysis on an image.

[0158] In some embodiments, the AR route visual analysis module 313 may also be used to identify image features of an image. The image features of a frame of image may include one or more of the following: color features, texture features, shape features, spatial relationship features, etc.

[0159] The AR route matching module 312 can be used to perform real-time matching based on the data collected by the electronic device 100 and the AR route data when the electronic device 100 provides the AR navigation function. The above matching results can be used to correct the user's walking route during AR navigation, thereby providing the user with accurate AR navigation.

[0160] In one possible implementation, the electronic device 100 may obtain AR route data. This AR route data may include a path. The path in the AR route data may be referred to as a template path. During AR navigation, the electronic device 100 may determine the user's real-time path based on captured images and / or data collected by motion sensors. The electronic device 100 may match this real-time path with the template path to determine the user's current location on the AR route. In this way, the electronic device 100 can determine how the user should proceed from their current location based on the AR route data and provide corresponding navigation guidance. A mismatch between the user's real-time path and the template path may indicate that the user's current location has deviated from the AR route. If the electronic device 100 determines that the real-time path does not match the template path, the electronic device 100 may prompt the user to make adjustments to return to the AR route. For example, if the electronic device 100 matches the real-time path with the template path and determines that the portion of the real-time path starting at position A does not match the template path, the electronic device 100 may prompt the user to return to position A along the original path. Then, the electronic device 100 can provide travel guidance at position A based on the AR route data, so as to instruct the user to travel along the AR route at position A, thereby preventing the user from deviating from the AR route at position A again.

[0161] In one possible implementation, the AR route data acquired by the electronic device 100 also includes image features of images at various locations along the AR route. The image features in the AR route data can be referred to as template image features. During AR navigation, the electronic device 100 can capture real-time images and determine the real-time image features of the real-time images. The electronic device 100 can match the real-time image features at the same location on the AR route with the template image features to determine the user's direction of travel at that location. For example, when creating an AR route, image 1 can be captured at location A. When performing AR navigation based on the AR route, the electronic device 100 can capture image 2 at the same location A. The electronic device 100 can use the AR route matching module 312 to match the image features of image 1 with those of image 2. If the image features of image 1 and image 2 match (for example, the similarity between image 1 and image 2 exceeds a preset similarity threshold), the electronic device 100 can prompt the user to continue moving in the direction of the camera's shooting. If the image features of image 1 and image 2 do not match, the electronic device 100 can prompt the user to adjust the camera's shooting direction to change the captured image. The electronic device 100 can use the AR route matching module 312 to determine whether the image features of the image captured after the shooting direction is adjusted match the image features of the image 1. If the image features of the image captured after the shooting direction is adjusted match the image features of the image 1, the electronic device 100 can prompt the user to adjust the direction of travel and move toward the adjusted shooting direction. The embodiment of the present application does not limit the implementation method of the AR route matching module 312 to determine whether the images match.

[0162] Optionally, the AR route data may also include images of various locations on the AR route. During AR navigation, the electronic device 100 may perform image matching based on the images in the AR route data to determine the user's direction of travel at a certain location.

[0163] In some embodiments, the AR route recording module 311, the AR route matching module 312, and the AR route visual analysis module 313 can be downloaded and installed separately. For example, the map application 310 in the electronic device 100 can obtain a service for providing an AR route creation function. Specifically, the electronic device 100 can obtain the AR route recording module 311 and the AR route visual analysis module 313 from an application server. The application server can be a server for providing application installation packages. After obtaining the AR route recording module 311 and the AR route visual analysis module 313, the map application 310 in the electronic device 100 can provide an AR route creation function. For another example, the map application 310 in the electronic device 100 can obtain a service for providing an AR navigation function. Specifically, the electronic device 100 can obtain the AR route matching module 312 from the application server. In this way, the map application 310 in the electronic device 100 can provide an AR navigation function through the AR route matching module 312.

[0164] The map application 310 is not limited to the AR route recording module 311 , the AR route matching module 312 , and the AR route visual analysis module 313 . More or fewer modules may be included in the map application 310 .

[0165] The server 200 may include an AR route generation module 320. The AR route generation module 320 may be used to generate a corresponding AR route based on data obtained by an electronic device (such as the electronic device 100) when creating an AR route. The above-mentioned AR route generation method will be described in detail in subsequent embodiments. It will not be expanded here.

[0166] In some embodiments, the AR route generation module 320 may also be configured to provide an AR route download service. Through the AR route download service, electronic devices (such as the electronic device 100 or the electronic device 101 ) may obtain AR route data from the server 200 , thereby performing AR navigation based on the obtained AR route data.

[0167] The electronic device 101 may have a map application 330 installed. The map application 330 may provide AR navigation functionality. The map application 330 may include an AR route matching module 331. The AR route matching module 331 may refer to the description of the AR route matching module 312 above. In some embodiments, the map application 330 may also include an AR route recording module 311 and an AR route visual analysis module 313 to provide AR route creation functionality. The map application 330 may also include more or fewer modules.

[0168] In some embodiments, the electronic device 100 can enable the AR route creation function and send the AR route creation data determined by the AR route recording module 311 and the AR route visual analysis module 313 to the server 200. The AR route creation data may include image features of images captured when creating the AR route, road features, and motion data of the electronic device 100 when creating the AR route.

[0169] The server 200 can process the AR route creation data through the AR route generation module 320 to generate an AR route. The server 200 can send the AR route data to the electronic device 100 so that the user can view the AR route created on the electronic device 100. The AR route data can include one or more of the following: the path from the starting point to the end point, image features of images at each location on the AR route, and travel direction information of key points on the AR route.

[0170] In one possible implementation, the server 200 may send AR route indication information (such as a link, QR code, etc.) to the electronic device 100 so that the user of the electronic device 100 can share the AR route with other users. For example, the electronic device 100 may send the AR route indication information to the electronic device 101. The electronic device 101 may obtain the AR route data from the server 200 based on the indication information. The electronic device 101 may process the received AR route data through the AR route matching module 331, thereby performing AR navigation based on the AR route data.

[0171] Based on the structure of the above-mentioned communication system and electronic equipment, the following will specifically introduce the scenarios and methods for making AR routes, the scenarios and methods for personalizing AR routes, and the scenarios and methods for navigating according to AR routes provided by this application. Using the AR route production method provided by this application to produce AR routes for AR navigation can get rid of the dependence of AR navigation on complete road data construction and stable and accurate positioning information. In scenarios where road data construction is insufficient and positioning signals are poor, the AR production method provided by this application can also provide users with accurate AR navigation services.

[0172] Creating AR routes

[0173] 4A to 4N exemplarily illustrate some schematic diagrams of scenarios for creating AR routes.

[0174] As shown in FIG4A , electronic device 100 displays user interface 410. User interface 410 may include one or more application icons, such as a map application icon 411. In response to an operation (e.g., a click) on map application icon 411, electronic device 100 may launch the map application and display user interface 420 shown in FIG4B .

[0175] As shown in FIG. 4B , the user interface 420 may include a map display area 421 and a function option box 422 .

[0176] A map may be displayed in map display area 421. The map may include a location marker 421A. Electronic device 100 may obtain information about the current location of electronic device 100 and determine the display position of location marker 421A on the map based on the location information. In other words, location marker 421A may be used to indicate the current location of electronic device 100, i.e., the current location of the user of electronic device 100.

[0177] The function option box 422 may include one or more function options. A function option may correspond to a function that the map application can provide. For example, the function option box 422 may include an AR route option 422A. The AR route option 422A may correspond to an AR route creation function. In response to an operation (e.g., a click operation) on the AR route option 422A, the electronic device 100 may display the user interface 430 shown in Figure 4C.

[0178] As shown in FIG. 4C , the user interface 430 may include a creation control 431 , a custom AR route area 432 , and a share AR route area 433 .

[0179] Among them, the production control 431 can be used to trigger the electronic device 100 to produce an AR route.

[0180] The custom AR route area 432 may be used to display AR route options created by the electronic device 100. For example, if the electronic device 100 has not created an AR route, the custom AR route area 432 may be empty.

[0181] The AR route shared by others area 433 may be used to display AR route options shared by other users and received and saved by the electronic device 100. For example, the AR route shared by others area 433 may include an AR route option 433A. The name of the AR route corresponding to AR route option 433A may be "XX Mall Dumpling Restaurant". This embodiment of the application does not limit the name of the above AR route.

[0182] As shown in FIG. 4C , in response to an operation (eg, a click operation) on the production control 431 , the electronic device 100 may display a prompt box 434 as shown in FIG. 4D .

[0183] As shown in FIG4D , a prompt box 434 may be used to prompt the user that a camera is required to create an AR route and to ask the user whether to allow the electronic device 100 to turn on the camera. Prompt box 434 may include a confirmation control 434A and a cancel control 434B. Confirmation control 434A may be used to allow the electronic device 100 to turn on the camera. Cancel control 434B may be used to deny permission for the electronic device 100 to turn on the camera. In response to the operation of confirmation control 434A, the electronic device 100 may turn on the camera, display the user interface 440 shown in FIG4E , and begin data collection to create the AR route.

[0184] It is understandable that the AR route production method provided in this application requires the use of a camera to capture images. Before starting to produce an AR route, the electronic device 100 asks the user whether to allow the map application to use images captured by the camera to produce the AR route, and can prompt the user to turn on the camera during the process of making the AR route. This can better protect the user's privacy. In some embodiments, in response to the operation of the production control 431 shown in Figure 4C, the electronic device 100 can also directly start data collection to produce an AR route without displaying the prompt box 434 shown in Figure 4D. In other embodiments, the electronic device 100 can display the prompt box 434 shown in Figure 4D before producing the AR route for the first time. If the user agrees that the electronic device 100 turns on the camera when producing the AR route for the first time, the electronic device 100 can directly start data collection to produce the AR route when producing the AR route for the second and subsequent times, without displaying the prompt box 434 shown in Figure 4D.

[0185] In some embodiments, in response to the operation of the production control 431 shown in Figure 4C or the determination control 434A shown in Figure 4D, the electronic device 100 may also provide prompt information for AR route production. For example, the prompt information may include prompting the user to turn on the camera when the user is at the starting point of the AR route to be produced, to travel from the starting point to the end point during the production of the AR route, and to keep the camera's shooting direction and travel direction consistent, etc. The above prompt information can help users better use the AR route production function to produce a more accurate AR route. It should be noted that the consistency between the shooting direction and the travel direction of the above-mentioned camera can indicate that the captured picture is the picture in front of the user's walking route.

[0186] In some embodiments, the electronic device 100 may prompt the user to determine the starting point of the AR route after turning on the camera. For example, the electronic device 100 may ask the user whether the user is currently at the starting point. In response to the operation for determining that the current location is the starting point, the electronic device 100 may obtain the location information of the current location and save the location information as the location information of the starting point. Alternatively, if the current location is not the starting point, the user may move to the starting point and perform relevant user operations on the electronic device 100 to indicate the moved location as the starting point. The embodiments of the present application do not limit the method by which the electronic device 100 determines the starting point when making an AR route.

[0187] As shown in FIG. 4E , the user interface 440 may include an image display area 441 , an annotation control area 442 , an annotation adding prompt 443 , and a completion control 444 .

[0188] Among them, the image display area 441 can be used to display images captured by the camera. For example, in the scenario of making an AR route from the community gate to home, the community gate is the starting point of the AR route. The user can stand at the community gate and start collecting data for making the AR route. Among them, the user can start from the community gate, walk through the route he wants to make, and hold the electronic device 100 to shoot the scenery that can be seen in the direction of travel. As shown in Figure 4E, when it is at the starting point (i.e., the community gate), the direction of travel of the route is to enter the community through the community gate. At this time, when the shooting direction of the electronic device 100 is consistent with the direction of travel, the electronic device 100 can capture images about the community gate.

[0189] The annotation control area 442 may include one or more annotation controls. A single annotation control can be used to add a travel annotation indicating the direction of travel or other travel information when creating an AR route. For example, the annotation control area 442 may include a direction annotation control 442A, an elevator annotation control 442B, and a staircase annotation control 442C.

[0190] Direction labeling controls 442A may include a forward control, a backward control, a left turn control, and a right turn control. The forward control may be used to add a label indicating that the direction of travel is forward. The forward direction may represent the shooting direction of the camera in electronic device 100. The backward control may be used to add a label indicating that the direction of travel is turning backward. The left turn control may be used to add a label indicating that the direction of travel is a left turn. The right turn control may be used to add a label indicating that the direction of travel is a right turn.

[0191] The elevator annotation control 442B may be used to add an elevator annotation. The elevator annotation may be used to indicate that an elevator is required at the location on the AR route where the elevator annotation is added.

[0192] The stair annotation control 442C may be used to add a stair annotation, which may be used to indicate that stairs need to be climbed at the location on the AR route where the stair annotation is added.

[0193] The above-mentioned direction label control 442A, elevator label control 442B, and stair label control 442C are merely exemplary descriptions of the present application and should not constitute a limitation on the present application. The label control area 442 may also include more or fewer travel labels.

[0194] When creating an AR route, the electronic device 100 can perform image analysis on the captured image. The electronic device 100 can identify whether the image contains key points. If a key point is identified in the image, the electronic device 100 can prompt the user to add a travel annotation for the frame.

[0195] For example, the image displayed in the image display area 441 shown in FIG4E is an image P1 of a residential community entrance. When located at the residential community entrance shown in image P1, the direction of travel may include forward, left turn, and right turn. It will be understood that the above image P1 was captured when the shooting direction of the electronic device 100 was toward the residential community entrance. That is, when capturing image P1, the user may have been facing the residential community entrance. The above direction of forward travel when located at the residential community entrance shown in image P1 may represent the direction of travel through the residential community entrance and into the residential community.

[0196] The electronic device 100 may perform image analysis on the image P1 and determine that the image P1 contains key points. Therefore, the electronic device 100 may display a note adding prompt 443 on the user interface 440 shown in FIG4E . The note adding prompt 443 may be used to prompt the user to add a travel note at the current location.

[0197] In one possible implementation, when it is recognized that the above-mentioned image P1 contains key points, the electronic device 100 can stop the shooting screen in the image display area 441 at the shooting screen of image P1, and prompt the user to add a travel annotation. The user can add a travel annotation using the annotation control in the annotation control area 442 according to the annotation addition prompt 443. The electronic device 100 can determine the direction of travel based on the travel annotation added by the user. For example, in response to the operation of the forward control in the direction annotation control 442A shown in Figure 4E, the electronic device 100 can determine that the direction of travel is forward. Among them, the electronic device 100 can associate the direction of travel with image P1. The association relationship between the above-mentioned forward direction of travel and image P1 can be used to indicate that the direction of travel is forward when the AR navigation captures an image matching image P1.

[0198] When detecting the user's operation of adding a travel annotation, the electronic device 100 can continue to display the image captured by the camera in real time in the image display area 441.

[0199] In another possible implementation, when it is recognized that the above-mentioned image P1 contains key points, the electronic device 100 can still continue to display the image captured by the camera in real time in the image display area 441, and prompt the user to add a travel annotation. Among them, the electronic device 100 can detect the user's operation of adding a travel annotation within a preset time period (such as 3 seconds, 5 seconds, 6 seconds, etc.) after the annotation addition prompt 443 shown in Figure 4E is displayed. When the user's operation of adding a travel annotation is detected within the above-mentioned preset time period, the electronic device 100 can associate the travel direction determined based on the operation of adding the travel annotation with the image P1. Optionally, when the user's operation of adding a travel annotation is not detected within the above-mentioned preset time period, the electronic device 100 can determine the travel direction based on the multiple frames of images captured within the above-mentioned preset time period and / or the motion data of the electronic device 100, and then associate the travel direction with the image P1. In other words, the electronic device 100 can automatically add travel annotations when making an AR route.

[0200] The embodiment of the present application does not limit the content displayed on the display screen of the electronic device 100 when prompting the user to add a travel annotation.

[0201] The finish making control 444 may be used to trigger the electronic device 100 to finish making the AR route.

[0202] In some embodiments, when adding a travel annotation to indicate the direction of travel, the electronic device 100 may display a travel direction indicator to confirm whether the added travel annotation is correct. Optionally, the electronic device 100 may also receive the user's operation on the above-mentioned travel direction indicator, and adjust the display position and indicated direction of the travel direction indicator. In this way, the user can more accurately mark the direction of travel on the AR route and improve the accuracy of AR route production. In addition, the AR route data may include information such as the display position and indicated direction of the above-mentioned travel direction indicator. When other electronic devices perform AR navigation based on AR route data, they can provide direction guidance based on information such as the display position and indicated direction of the travel direction indicator.

[0203] Exemplarily, in response to an operation on the forward control in the direction annotation control 442A shown in FIG. 4E , the electronic device 100 may display the traveling direction indicator 449A shown in FIG. 4F in the image display area 441 .

[0204] As shown in FIG4F , a direction indicator 449A can be displayed on the image at the location of entering the cell from the cell gate, and can be used to indicate that the direction of travel is straight ahead and entering the cell from the cell gate. The user can adjust the display position, indicated direction, and other information of the direction indicator 449A. For example, in response to an operation to move the direction indicator 449A to the left, the electronic device 100 can move the direction indicator 449A to the left. For another example, in response to an operation to rotate the direction indicator 449A, the electronic device 100 can rotate the direction indicator 449A, thereby adjusting the direction indicated by the direction indicator 449A.

[0205] In some embodiments, the user can proactively add travel annotations without being prompted by the electronic device 100 to do so.

[0206] As shown in Figure 4G, the electronic device 100 can display the image captured by the camera in real time in the image display area 441. During the process of collecting data for creating an AR route, the user can keep the captured image of the electronic device 100 focused on the image ahead of the user's route and walk along the route they wish to create. When reaching the location represented by the image in the image display area 441 shown in Figure 4G, the user can add a travel annotation using the annotation controls in the annotation control area 442. For example, in response to the operation of the right turn control in the direction annotation control 442A shown in Figure 4G, the electronic device 100 can determine that the direction of travel is a right turn. The electronic device 100 can associate the right turn direction with a frame of image captured when the add travel annotation is received. Alternatively, the electronic device 100 can associate the right turn direction with any frame of image captured within time period 1. Time period 1 can include a preset time period (e.g., 3 seconds, 4 seconds, etc.) before the add travel annotation is received, as well as a preset time period after the add travel annotation is received.

[0207] Optionally, in response to the operation of the right turn control in the direction annotation control 442A shown in FIG. 4G , the electronic device 100 may display the travel direction indicator 449B shown in FIG. 4H in the image display area 441 .

[0208] As shown in FIG4H , a travel direction indicator 449B may be displayed on the road in the image to indicate that the travel direction is a right turn. The user may adjust information such as the display position and indicated direction of the travel direction indicator 449B. For example, in response to an operation to adjust the turn angle of the travel direction indicator 449B, the electronic device 100 may adjust the turn angle of the travel direction indicator 449B.

[0209] As shown in Figure 4I, the image presented in the image display area 441 is an image of an elevator. This may indicate that the user has reached the location of the elevator in the process of making an AR route. In response to the operation of the elevator annotation control 442B, the electronic device 100 may display the prompt box 445 shown in Figure 4J. The prompt box 445 can be used to prompt the user to mark the floor to be reached by elevator. The prompt box 445 may include a floor input area 445A and a confirmation control 445B. The floor input area 445A can be used to enter floor information (such as the 11th floor). In response to the operation of the confirmation control 445B, the electronic device 100 can determine the elevator information and associate the elevator information with a frame of image captured when the operation of the elevator annotation control 442B shown in Figure 4I is received. Alternatively, the electronic device 100 can associate the elevator information with any frame of image captured within time period 2. The time period 2 may include a preset time period (e.g., 3 seconds, 4 seconds, etc.) before the operation of the elevator label control 442B shown in FIG4I is received, and a preset time period after the operation of the elevator label control 442B shown in FIG4I is received. The elevator information may include information about the floor reached by the elevator.

[0210] As shown in Figure 4K, when the user reaches the end point in the process of making an AR route, the user can end the making of the AR route by completing the making control 444. In response to the operation of the completion making control 440, the electronic device 100 can determine the position when the operation of the completion making control 440 is received as the end point of the AR route. Alternatively, the electronic device 100 can determine any position within a preset time period (such as 3 seconds, 4 seconds, etc.) before the operation of the completion making control 440 is received, or within a preset time period after the operation of the completion making control 440 is received as the end point of the AR route. Optionally, in response to the operation of the completion making control 440, the electronic device 100 can also turn off the camera and stop image acquisition.

[0211] As shown in FIG4K , electronic device 100 may also display a prompt box 446. Prompt box 446 may be used to prompt the user to name the created AR route. Prompt box 446 may include a route name input area 446A and a confirmation control 446B. Route name input area 446A may be used to enter a name for the AR route. Confirmation control 446B may be used to confirm the name in route name input area 446A as the name of the AR route created for the scenario shown in FIG4E through FIG4K .

[0212] In some embodiments, the map application includes a switch for automatically adding travel annotations. The switch for automatically adding travel annotations can be used to turn on or off the function of automatically adding travel annotations. When the function of automatically adding travel annotations is turned on, the electronic device 100 can automatically add travel annotations after identifying key points on the image during the process of making an AR route. Among them, after the electronic device 100 adds the travel annotations, the travel information determined according to the travel annotations (such as the direction of travel, the elevator arrival floor) can be associated with the corresponding image. When the function of automatically adding travel annotations is turned off, the electronic device 100 can prompt the user to add travel annotations after identifying key points on the image during the process of making an AR route (refer to the aforementioned Figure 4E).

[0213] In some embodiments, if the electronic device 100 does not detect the user's operation of adding a travel annotation within a preset time period after prompting the user to add a travel annotation, the electronic device 100 can automatically add the travel annotation and associate the travel information determined based on the travel annotation with the corresponding image.

[0214] For example, as shown in FIG4M , electronic device 100 may display an image captured in real time by a camera in image display area 441 . The image presented in image display area 441 shown in FIG4M may be image P2 of a road within a residential complex. On the road within the residential complex shown in image P2, travel directions may include forward and right turn. Electronic device 100 may perform image analysis on image P2 and determine that image P2 contains key points. Therefore, electronic device 100 may display annotation add prompt 447 shown in FIG4M . Annotation add prompt 447 may prompt a user to add a travel annotation. Electronic device 100 may detect user actions to add travel annotations within a preset time period after displaying annotation add prompt 447. If no user actions to add travel annotations are detected within the preset time period, electronic device 100 may determine a travel direction based on multiple frames of images captured within the preset time period and / or motion data of electronic device 100, and further associate the travel direction with image P2. For example, after electronic device 100 displays annotation add prompt 447 , no travel annotations are manually added, and the handheld electronic device turns right. The electronic device 100 can capture a series of images during the above-mentioned right turn through the camera. The image presented in the image display area 441 shown in Figure 4N may be the corresponding image after the above-mentioned right turn. The electronic device 100 can perform image analysis on multiple frames of images taken within a preset time period after prompting the user to add a travel annotation, and determine that the user turned right. Alternatively, the electronic device 100 can determine that the electronic device 100 deflects to the right based on data collected by a motion sensor (such as a gyroscope sensor) within a preset time period after the user adds a travel annotation, thereby determining that the user turned right. The electronic device 100 can associate the direction of travel for turning right with the image P2 shown in Figure 4M. The association of the direction of travel for turning right with the image P2 can indicate that when the user is at the position shown in the image P2 on the AR route, it is about to turn right.

[0215] After the electronic device 100 automatically adds a travel annotation, it may display a prompt box 448 as shown in FIG4N . Prompt box 448 may be used to notify the user that the electronic device 100 has automatically added a travel annotation to the AR route, as well as the content of the travel annotation. Optionally, the electronic device 100 may also respond to a user's operation to cancel the travel annotation, canceling the travel annotation automatically added by the electronic device 100 or manually added by the user.

[0216] Optionally, after the electronic device 100 automatically adds the travel annotation, it can also display a travel direction indicator in the image display area 441 based on the added travel annotation. The travel direction indicator can refer to the travel direction indicator 449A shown in Figure 4F and the travel direction indicator 449B shown in Figure 4H. No further details will be given here.

[0217] FIG5A exemplarily shows a flow chart of an AR route creation method provided in an embodiment of the present application.

[0218] As shown in FIG5A , the AR route creation method may include steps S511 to S523 .

[0219] 1. (S511-S516) The electronic device 100 obtains road features of the image on the AR route.

[0220] S511: The electronic device 100 receives a user operation to start an AR route creation function.

[0221] The user operation of starting the AR route making function can refer to the operation of the making control 431 shown in FIG. 4C .

[0222] S512: The electronic device 100 turns on the camera and determines the focal length of the camera.

[0223] The focal length can be used to measure the actual size of an object in an image captured by a camera. For example, the electronic device 100 can determine the actual width of a road based on the pixel width of the road in the image and the focal length.

[0224] S513: The electronic device 100 performs image analysis on the image captured by the camera to obtain road information in the image. The road information includes one or more of the following: key points, road positions, road widths, and building identifications.

[0225] S514: When a key point is identified in a frame of image, the electronic device 100 prompts the user to add a moving annotation.

[0226] S515: The electronic device 100 receives a user operation of adding a moving annotation to a frame of image, and determines the moving direction corresponding to the frame of image.

[0227] For steps S514 and S515 , reference may be made to the description of the embodiments shown in the aforementioned FIG. 4E to FIG. 4N .

[0228] It should be noted that the above steps S514 and S515 are optional.

[0229] In one possible implementation, when a key point is identified in a frame of image, the electronic device 100 can automatically add a travel annotation. Specifically, the electronic device 100 can determine the travel direction based on multiple frames of image captured after the key point is identified and / or motion data of the electronic device 100 (such as an offset angle), thereby associating the travel direction with the image in which the key point is identified. For example, in a scene of turning right, the electronic device 100 can identify the key point in a frame of image before turning right, and can capture a series of images during the above-mentioned right turn process. The electronic device 100 can determine that the travel direction is a right turn based on this series of images. Therefore, the electronic device 100 can associate the travel direction of the right turn with the frame of image in which the key point is identified. For another example, in a scene of turning right, the electronic device 100 can identify the key point in a frame of image before turning right, and detect the offset angle of the electronic device 100 during the above-mentioned right turn process through the gyroscope sensor. The offset angle can indicate that the electronic device 100 is turning right. Therefore, the electronic device 100 can determine that the traveling direction is a right turn, and associate the right turn traveling direction with a frame of image in which the key point is identified.

[0230] As can be seen, during the data collection phase of creating an AR route, the electronic device 100 can automatically add movement annotations, eliminating the need for the user to manually add movement annotations. This can improve the accuracy of AR route creation and simplify the user's AR route creation process. Creating an AR route can be simpler and more convenient for users.

[0231] S516. The electronic device 100 stores the road features of the image captured during the process of making the AR route. The road features of a frame of image include a timestamp, a frame number, and one or more of the following parameters: travel direction, road position, road width, and building identification.

[0232] In one possible implementation, in the process of making an AR route, the electronic device 100 can perform frame extraction analysis on the captured image. For example, the electronic device 100 can capture multiple frames of images within 1 second. The electronic device 100 can extract 1 frame of image per second. The electronic device 100 can perform image analysis on the extracted image to obtain road information in the image and determine the road features of the image. The embodiment of the present application does not limit the frequency of the above-mentioned frame extraction. For example, the electronic device 100 can extract 2 frames of image per second, or 1 frame of image every 2 seconds. The above-mentioned frame extraction analysis can effectively reduce the amount of calculation of the electronic device 100 and improve the efficiency of AR route production.

[0233] When the above road features are obtained, the electronic device 100 may store the road features of each frame image according to the format shown in Table 1 below.

[0234] Table 1

[0235] The timestamp of a frame of image may indicate the time when the electronic device 100 captured the frame of image. The frame number of a frame of image may indicate the order of the frame of image among all images used to produce the AR route. For example, the electronic device 100 may extract one frame of image per second for frame analysis. The first frame of image may represent a frame of image extracted from an image captured within the first second. The second frame of image may represent a frame of image extracted from an image captured within the second second. The road feature storage format shown in Table 1 is only an exemplary description of the present application. The embodiments of the present application do not limit the storage format of road features.

[0236] The direction of travel for a frame of image can be determined based on the travel annotations added to that frame of image. In addition to the direction of travel, travel annotations can also be used to determine other travel information, such as elevator arrival floors, stairway arrival floors, and so on. For example, the travel annotations added using the direction annotation control 442A shown in FIG4E can be used to determine the direction of travel. The travel annotations added using the elevator annotation control 442B shown in FIG4E can be used to determine the elevator arrival floors. In other words, the road features of the above-mentioned frame of image can include travel information. This travel information can include one or more of the following: direction of travel, elevator arrival floors, stairway arrival floors, and so on.

[0237] The road width of a frame image can represent the width of the road captured in this frame image. The above road width can be used to determine the center position of the road on the AR route. In this way, when performing AR navigation, the electronic device 100 can display a mark indicating the direction of travel (such as an AR guide, a turning effect, etc.) at the center position of the road on the screen.

[0238] The frame numbers in the above road features are optional.

[0239] In some embodiments, the road features of a frame of image may also include key points. For example, electronic device 100 may identify key points in a frame of image. Electronic device 100 may store information about the key points and incorporate the key point information into the road features of the frame of image. The information about a key point may include one or more of the following: the location of the key point in the image, the direction of travel indicated by the location of the key point, and so on.

[0240] Please refer to FIG5B , which exemplarily shows road features of an image on an AR route provided in an embodiment of the present application.

[0241] In one possible implementation, the electronic device 100 may determine the start and end points of the AR route. The start and end points may be determined based on the location of the electronic device 100 when the electronic device 100 detects user operations to start and end the collection of data for generating the AR route. The electronic device 100 may determine road features based on images captured and annotations added during the process of generating the AR route from the start and end points.

[0242] As shown in Figure 5B, the electronic device 100 can establish a coordinate axis with the starting point of the AR route as the origin. The above-mentioned coordinate axis can be a two-dimensional coordinate axis, or it can be a three-dimensional coordinate axis. In the two-dimensional coordinate axis, the horizontal axis can be the x-axis. The vertical axis can be the y-axis, and the plane formed by the x-axis and the y-axis can be a plane parallel to the horizontal plane. It can be understood that if a three-dimensional coordinate axis is constructed, the horizontal axis and the vertical axis of the three-dimensional coordinate axis can be the same as the horizontal axis and the vertical axis of the two-dimensional coordinate axis, respectively, and the third axis of the three-dimensional coordinate axis can be perpendicular to the horizontal plane and can represent the altitude. The two-dimensional coordinate axis is used as an example for explanation here.

[0243] As shown in Figure 5B, point A1 is located at the origin of the coordinate axis and can represent the starting point of the AR route. The electronic device 100 captures image 531 at point A1. Image 531 can be captured at time t1 and is the a1-th frame image. Image 531 can be the image presented in the image display area 441 shown in Figure 4E above. As can be seen from Figure 4E above, image 531 can be associated with travel information determined based on travel annotations. The travel information may include a forward travel direction. Image 531 may include a road entering the cell. The electronic device 100 can determine the actual width of the road (e.g., 5 meters). The electronic device 100 can also determine the road position of image 531 based on image 531. The road position of image 531 can be represented by the coordinates of point A1 in the coordinate axis. Therefore, the electronic device 100 can determine road features such as the timestamp, frame number, travel information, road width, and road position of image 531. The electronic device 100 may store the road features of the image 531 in the following format: (travel information) t1--a1 frame--forward, (road width) t1--a1 frame--5 meters, (road position) t1--a1 frame--(0, 0).

[0244] Point A2 is a location point on the AR route. The electronic device 100 captures image 532 at point A2. Image 532 may be captured at time t2 and is the a2-th frame image. Image 532 may be the image presented in the image display area 441 shown in FIG4G . As can be seen from FIG4G , image 532 may be associated with travel information determined based on travel annotations. The travel information may include a rightward travel direction. Image 532 includes a road inside the cell. The electronic device 100 may determine the actual width of the road (e.g., 3 meters). The electronic device 100 may also determine the road position of image 532 based on image 532 and images captured before point A2. The road position of image 532 may be represented by the coordinates of point A2 in the coordinate axis. Therefore, the electronic device 100 may determine road features such as the timestamp, frame number, travel information, road width, and road position of image 532. The electronic device 100 may store the road features of the image 532 in the following format: (travel information) t2--a2 frame--right, (road width) t2--a2 frame--3 meters, (road position) t2--a2 frame--(x1, y1).

[0245] Point A3 is another location point on the AR route. The electronic device 100 captures image 533 at point A3. Image 533 may be captured at time t3 and is the a3th frame image. Image 533 may be the image presented in the image display area 441 shown in FIG4I . As can be seen from FIG4I , image 533 may be associated with travel information determined based on travel annotations. This travel information may include elevator arrival floor information (e.g., elevator 11th floor). Image 533 includes an elevator. The electronic device 100 can determine the building identification (e.g., elevator) of image 533. The electronic device 100 can also determine the road location of image 533 based on image 533 and images captured between point A3. The road location of image 533 can be represented by the coordinates of point A3 in the coordinate axis. Therefore, the electronic device 100 can determine road features such as the timestamp, frame number, travel information, building identification, and road location of image 533. The electronic device 100 can store the road features of the image 533 in the following format: (travel information) t3--a3 frame--right, (building identification) t3--a3 frame--elevator, (road position) t3--a3 frame--(x2, y2). It should be noted that the curve 500 shown in Figure 5B can represent the path of the AR route. Among them, the curve 500 can be a curve with point A1 as the starting point, point A4 as the end point, and including point A2 and point A3. The coordinates of each point on the curve 500 can represent the position of each point on the AR route. In one possible implementation, the electronic device 100 can perform image analysis on the captured image, and determine the coordinates of each point on the curve 500 in the above-mentioned coordinate axis in combination with the travel information determined based on the travel annotation. The above-mentioned travel information can be used to determine whether the travel direction has changed, thereby improving the accuracy of making the AR route.

[0246] In one possible implementation, during the data collection process for making an AR route, the electronic device 100 can display one or more of the above-mentioned road features in real time on the user interface. For example, the electronic device 100 can display the timestamp, road width, and road position of the captured image in real time. In this way, the user can understand in real time how long the data has been collected, the width of the current road, and the length of the current distance. For another example, the electronic device 100 can display the path between the current position and the starting point in real time. In this way, while the user is walking along the AR route they want to make, the user can view the process of the AR route's path being gradually generated.

[0247] 2. ( S517 - S521 ) The electronic device 100 obtains motion data of the electronic device 100 on the AR route.

[0248] S517 : The electronic device 100 obtains data collected by the gravity sensor, the acceleration sensor, and the gyroscope sensor.

[0249] In a possible implementation, the electronic device may determine the motion data of the electronic device 100 based on data collected by a gravity sensor, an acceleration sensor, and a gyroscope sensor. The motion data of the electronic device 100 may include an offset angle, a moving distance, and the like.

[0250] The electronic device 100 is not limited to using a gravity sensor, an acceleration sensor, or a gyroscope sensor. The electronic device 100 may also use other motion sensors (such as a direction sensor, etc.) to determine the motion data of the electronic device 100 .

[0251] S518: The electronic device 100 detects, based on the gyroscope sensor, that the offset angle of the electronic device 100 is greater than a preset angle, and prompts the user to add a travel annotation.

[0252] In a scenario where a user holds the electronic device 100 to collect data for generating an AR route, a larger offset angle of the electronic device 100 may indicate a change in the direction of travel.

[0253] In addition to prompting the user to add a moving annotation when the image is identified as containing key points, the electronic device 100 can also prompt the user to add a moving annotation when the offset angle is greater than a preset angle. The method of prompting the user to add a moving annotation can refer to the description of the embodiment shown in Figure 4E above. The value of the preset angle can be, for example, 50°, 60°, etc. The embodiment of the present application does not limit the value of the preset angle.

[0254] In one possible implementation, when prompting the user to add travel annotations based on the offset angle, the electronic device 100 can detect the user's operation of adding travel annotations within a preset time period (such as 3 seconds, 4 seconds, etc.) after prompting the user to add travel annotations.

[0255] If a user operation of adding a travel annotation is detected within the preset time period, the electronic device 100 may associate the travel information determined based on the travel annotation with the image captured when the deviation angle is detected to be greater than the preset angle. Alternatively, the electronic device 100 may associate the travel information determined based on the travel annotation with any frame of image captured within time period 3. Time period 3 may be a preset time period before the deviation angle is detected to be greater than the preset angle, or a preset time period after the deviation angle is detected to be greater than the preset angle.

[0256] Optionally, if no user operation to add a travel annotation is detected within the preset time period, the electronic device 100 may automatically add a travel annotation based on the offset angle of the electronic device 100. The electronic device 100 may associate the travel direction determined based on the offset angle with an image captured when the offset angle is detected to be greater than the preset angle, or with any frame of image captured within the above-mentioned time period 3. For example, the offset angle of the electronic device 100 is an angle of deflection to the right based on the current travel direction. Then, the electronic device 100 can determine that the travel direction is right based on the offset angle.

[0257] In one possible implementation, when the offset angle of the electronic device 100 is greater than a preset angle, the electronic device 100 may automatically add a travel annotation or add a travel annotation in response to a user operation. The electronic device 100 may determine the travel information based on the added travel annotation. The electronic device 100 may send the travel information to the server 200, and the server 200 may associate the travel information with the corresponding image. For example, the electronic device 100 detects that the offset angle is greater than the preset angle at moment 1. Based on the offset angle at moment 1, the electronic device 100 may add a travel annotation and determine the travel information based on the travel annotation. The electronic device 100 sends the timestamp (such as moment 1)-offset angle-travel information as a piece of data to the server 200. The server 200 may associate the travel information in this piece of data with the image captured at the timestamp (such as moment 1) in this piece of data. Alternatively, the server 200 may associate the travel information in this piece of data with a frame of image captured before the timestamp in this piece of data. That is, the server 200 can adjust the road features of the image from the electronic device 100 and record the travel information obtained based on the large angle offset under the corresponding timestamp and frame number.

[0258] The above method of adding travel annotations in combination with the motion data of the electronic device 100 can improve the accuracy of determining the AR route.

[0259] In one possible implementation, after the electronic device 100 identifies key points in the image captured at moment 1, it may remind the user to add a moving annotation or automatically add a moving annotation. If the electronic device 100 adds a moving annotation to the image captured at the above moment 1, then if the electronic device 100 detects that the offset angle is greater than the preset angle within a preset time period after the above moment 1, there is no need to remind the user to add a moving annotation or automatically add a moving annotation again. If the electronic device 100 does not add a moving annotation to the image captured at the above moment 1, then if the electronic device 100 detects that the offset angle is greater than the preset angle within a preset time period after the above moment 1, it may remind the user to add a moving annotation or automatically add a moving annotation.

[0260] It is understandable that at locations on the AR route where a change in direction is required (such as a turn), the electronic device 100 will typically first capture an image containing key points when collecting data. Subsequently, only after the user changes their direction will the electronic device 100 detect that the offset angle is greater than the preset angle. This method avoids prompting the user to repeatedly add movement annotations at a location where the direction of travel changes, thereby improving the user experience during the data collection phase.

[0261] S519 . The electronic device 100 stores offset information when the offset angle of the electronic device 100 is greater than a preset angle during the AR route creation process. The offset information includes a timestamp and an offset angle.

[0262] The electronic device 100 may store the above-mentioned offset information in the format shown in Table 2 below.

[0263] Table 2

[0264] The electronic device 100 may store one or more pieces of offset information. The timestamp of a piece of offset information may be the time when the electronic device 100 detects the offset angle in the piece of information.

[0265] S520: The electronic device 100 detects the moving distance based on the gravity sensor and the acceleration sensor.

[0266] S521: The electronic device 100 stores the movement distance information during the process of making the AR route, where the movement distance information includes a timestamp and a movement distance.

[0267] The electronic device 100 may store the moving distance information in the format shown in Table 3 below.

[0268] Table 3

[0269] The electronic device 100 may store one or more pieces of movement distance information. The movement distance in a piece of movement distance information may represent the distance from the starting point of the AR route to a location on the AR route (such as the location of point A2 or point A3 shown in FIG. 5B ). The timestamp of a piece of movement distance information may be the time when the electronic device 100 arrives at the location on the AR route corresponding to the movement distance in the piece of movement distance information.

[0270] In one possible implementation, in addition to the timestamp and movement distance, a movement distance information may also include a turning point serial number. An AR route may include one or more turning points. A turning point may be a position where the forward and backward directions of travel are different. The starting point of the AR route may be the first turning point. The position where the direction of travel changes for the first time from the starting point may be the second turning point. Similarly, the electronic device 100 may record the serial numbers of the one or more turning points. Among them, the electronic device 100 may determine the change in direction of travel based on the travel annotation, or may determine the change in direction of travel based on the offset angle of the electronic device 100. Furthermore, the electronic device 100 may determine the position where the direction of travel changes as a turning point. The embodiment of the present application does not limit the method by which the electronic device 100 determines the turning point on the AR route.

[0271] In the case where the moving distance information includes a turning point number, the moving distance in a moving distance information can represent the distance between a position on the AR route and the turning point corresponding to the turning point number in the moving distance information, and the length of the distance to a position on the AR route. Among them, the above-mentioned one position can be a position on the AR route from the turning point corresponding to the turning point number to the next turning point. In other words, each turning point can be equivalent to a starting point. The electronic device 100 can determine the position on the route between two adjacent turning points on the AR route and the length of the distance to the previous turning point based on the data collected by the gravity sensor and the acceleration sensor. In this way, when using the AR route for AR navigation, the navigating electronic device can prompt the user how far in the current direction of travel he needs to change the direction of travel.

[0272] 3. ( S522 , S523 ) Generate an AR route based on road features and motion data.

[0273] S522 : The electronic device 100 sends the road features, offset information, and movement distance information stored in the process of creating the AR route to the server 200 .

[0274] S523: The server 200 generates an AR route based on the road features, offset information, and movement distance information.

[0275] In one possible implementation, the server 200 may fuse the above-mentioned road features, offset information, and movement distance information based on a timestamp. Specifically, the server 200 may determine path 1 of the AR route based on the received road features. Path 1 may be used to represent the positions of each point passed from the starting point to the end point of the AR route. Path 1 may include a timestamp and the coordinates corresponding to the timestamp. The coordinates corresponding to the timestamp in path 1 may represent the road position in the road feature. The server 200 may also determine path 2 of the AR route based on the received offset information and movement distance information. Path 2 may also include a timestamp and the coordinates corresponding to the timestamp. Since path 1 is determined based on the road features, and path 2 is determined based on the motion data of the electronic device 100, there may be differences between path 1 and path 2. The coordinates corresponding to the same timestamp in path 1 and path 2 may be different. The server 200 may generate path 3 using path 1 and path 2. Path 3 may serve as the path of the AR route generated by the server 200. Server 200 may select the coordinates corresponding to the same timestamp in Path 1 and Path 2, calculate the mean, and determine the mean as the coordinate corresponding to the timestamp in Path 3. For example, server 200 may select coordinate 1 corresponding to timestamp t1 in Path 1 and coordinate 2 corresponding to timestamp t1 in Path 2. Server 200 may calculate the mean of coordinates 1 and 2 to obtain coordinate 3. Server 200 may determine the coordinate corresponding to timestamp t1 in Path 3 as coordinate 3. Besides calculating the mean, server 200 may also use other methods to fuse Path 1 and Path 2 to obtain Path 3.

[0276] The server 200 may generate an AR route and obtain AR route data. The AR route data may include the path from the starting point to the end point (such as the path 3 described above). In addition, the AR route data may also include one or more of the following: image features of the image at each position on the path from the starting point to the end point, travel information on the path from the starting point to the end point (such as travel direction, elevator arrival floor, etc.), and road width at each position on the path from the starting point to the end point.

[0277] The method of generating an AR route by fusing road features, offset information, and movement distance information is not limited to the above method. The server 200 may also generate an AR route by other data fusion methods.

[0278] It should be noted that the above steps S517 to S521 are optional. That is, the electronic device 100 and the server 200 can generate an AR route based on images captured from the starting point to the end point without using data collected by the motion sensor.

[0279] In one possible implementation, the electronic device 100 may also determine image features based on an image captured during the process of creating an AR route. The electronic device 100 may send the above-mentioned image features to the server 200. Alternatively, the electronic device 100 may send an image captured during the process of creating an AR route to the server 200. The server 200 may then identify the image features of the received image. The above-mentioned image features may include one or more of the following: color features, texture features, shape features, spatial features, and the like. The above-mentioned image features may be included in the AR route data generated by the server 200. The image features included in the AR route data may be referred to as template image features.

[0280] As can be seen from the method shown in Figure 5A above, the present application can produce an AR route by obtaining the road features and the motion data of the electronic device 100 on the AR route to be produced. The above method uses multi-source data fusion to correct each other using the AR route determined based on the road features and the AR route determined based on the motion data, thereby improving the accuracy of the AR route. This is more accurate than the AR route determined only by the image captured by the camera, or the AR route determined only by the data collected by the motion sensor. In addition, the present application also combines the travel annotations added during the data collection process to produce the AR route. The travel information determined by the above travel annotations further improves the accuracy of the AR route. When using the AR route produced by the above method for AR navigation, it can be based on road feature matching and device motion data matching, without relying on complete road data and accurate and stable positioning information. In this way, even in scenarios where road data construction is insufficient and the positioning signal is poor, the above AR route data can provide users with accurate AR navigation services.

[0281] Personalized AR route setting

[0282] In some embodiments, after creating an AR route using the electronic device 100, the user can also customize the AR route, such as setting an AR guide, key turn effects, a welcome message and / or animation at the starting point, a closing message and / or animation at the end point, and scenery along the route.

[0283] FIG6A and FIG6B exemplarily show some schematic diagrams of scenarios for setting personalized AR routes.

[0284] As shown in FIG6A , electronic device 100 may display user interface 610. User interface 610 may refer to user interface 430 shown in FIG4C . User interface 610 may display an AR route option 611. The AR route corresponding to AR route option 611 may be the AR route created for the scene shown in FIG4C to FIG4L .

[0285] In some embodiments, in response to an operation (e.g., a long press operation) on the AR route option 611, the electronic device 100 may display a setting control 612 as shown in FIG6A . The setting control 612 may be used to trigger the electronic device 100 to personalize the AR route corresponding to the AR route option 611.

[0286] In response to an operation (e.g., a click operation) on the setting control 612, the electronic device 100 may display the user interface 620 shown in FIG6B . The user interface 620 may include an AR guide setting area 621, a key point turn effect setting area 622, a starting point welcome message setting area 623, an OK control 624, and a cancel control 625.

[0287] The AR guide setting area 621 may include one or more AR guide options. For example, AR guide option 621A, AR guide option 621B, and AR guide option 621C. The above-mentioned AR guide options can be used to set the guide in AR navigation to the guide corresponding to the AR guide option. The above-mentioned AR guide can be a virtual animal or character image, such as a virtual cat, a virtual dog, a virtual little girl, and so on. The AR guide can be used to follow the AR route during AR navigation to provide direction guidance to the user. The AR guide setting area 621 may also include more controls 621D. More controls 621D can be used to view more AR guide options. In one possible implementation, the above-mentioned AR guide can also be customized by the user.

[0288] The key point turning effect setting area 622 may include one or more turning effect options. For example, turning effect option 622A and turning effect option 622B. The above turning effect options can be used to set the turning effect at the key point in AR navigation to the effect corresponding to the turning effect option. For example, the turning effect can be a rocket turning effect, a lightning turning effect, etc. The above turning effect options can be used to indicate the direction of travel and provide directional guidance to the user. The key point turning effect setting area 622 may also include more controls 622C. More controls 622C can be used to view more turning effect options.

[0289] The starting point welcome message setting area 623 may include a welcome message input control 623A. The welcome message input control 623A can be used to enter the starting point welcome message. The above starting point welcome message can be used to display when AR navigation begins. For example, the starting point welcome message can be "Welcome to my home." Optionally, the starting point welcome message setting area 623 may also include a control for setting a starting point animation. The above starting point animation can also be used to display when AR navigation begins.

[0290] The personalized setting content shown in Figure 6B is only an exemplary description of an embodiment of the present application. The electronic device 100 can also provide more or less personalized setting content, so that the content presented by the AR route when used for AR navigation better meets the preferences and needs of the AR route maker. For example, the electronic device 100 can also provide controls for setting the end point closing remarks, controls for setting the end point animation, controls for setting the scenery effects on both sides of the route, and so on. The above-mentioned end point closing remarks and end point animation can be used to be displayed at the end of AR navigation. The above-mentioned scenery effects on both sides of the route can be used to be displayed on both sides of the road in the shooting picture during AR navigation. The above-mentioned scenery effects on both sides of the route can be, for example, flowers, grass, trees, wood, advertising signs and the like. The embodiment of the present application does not limit the personalized setting content provided by the electronic device 100.

[0291] The confirmation control 624 may be used to trigger the electronic device 100 to personalize the AR route according to the personalized settings in the user interface 620. For example, in response to the operation of the confirmation control 624, the electronic device 100 may set the AR guide of the AR route to the AR guide corresponding to the AR guide option 621A shown in FIG6B , set the key point turning effects of the AR route to the turning effects corresponding to the turning effect option 622B shown in FIG6B , and set the starting point welcome message to "Welcome to my home" as shown in FIG6B .

[0292] The cancel control 625 may be used to cancel personalizing the AR route.

[0293] As shown in the scenarios shown in Figures 6A and 6B above, after creating an AR route, users can personalize the AR route so that the content presented by the AR route when used for AR navigation better meets their preferences and needs. This personalized AR route setting can also better motivate users to create AR routes.

[0294] 6C to 6E exemplarily illustrate some schematic diagrams of scenarios for sharing AR routes.

[0295] As shown in FIG6C , the electronic device 100 may display a user interface 610. The user interface 610 may include an AR route option 611. In response to the operation of selecting the AR route option 611 shown in FIG6C , the electronic device 100 may display the user interface 610 shown in FIG6D .

[0296] 6D , the AR route option 611 is selected. The user interface 610 may also include a share control 613 and a delete control 614 .

[0297] The sharing control 613 may be used to trigger the electronic device 100 to share the AR route corresponding to the AR route option selected in the user interface 610 with other users.

[0298] The delete control 614 may be used to trigger the electronic device 100 to delete the AR route corresponding to the AR route option that is selected in the user interface 610 .

[0299] For example, when AR route option 611 is selected, in response to an operation on share control 613, electronic device 100 may display user interface 630 shown in FIG6E . User interface 630 may be a user interface of a social communication application. User interface 630 may include a search control 631 and a contact list 632.

[0300] Search control 631 may be used to search for contacts in contact list 632 .

[0301] The contact list 632 may include one or more contact options, such as contact option 632A. In response to an operation on contact option 632A, the electronic device 100 may share the AR route corresponding to the AR route option 611 shown in FIG. 6D with the contact corresponding to contact option 632A.

[0302] FIG7 exemplarily shows a flow chart of a method for sharing an AR route provided in an embodiment of the present application.

[0303] As shown in FIG. 7 , the method may include steps S711 to S715 .

[0304] S711 : The electronic device 100 receives a user operation to share AR route 1 .

[0305] The user operation of sharing the AR route 1 can refer to the operation of the sharing control 613 shown in FIG. 6D .

[0306] S712 : The electronic device 100 prompts the user whether to personalize the AR route 1 .

[0307] In one possible implementation, the electronic device 100 may display a prompt box. This prompt box may be used to inquire whether to personalize AR Route 1. If the user requesting to personalize AR Route 1 is detected, the electronic device 100 may execute step S713 below. If the user rejecting the personalized AR Route 1 operation is detected, the electronic device 100 may execute step S714 below.

[0308] S713 : The electronic device 100 personalizes the AR route 1 according to the user operation for personalization.

[0309] User operations for performing personalized settings may refer to the operations shown in FIG. 6B .

[0310] In one possible implementation, the electronic device 100 may determine personalized setting data based on a user operation for performing personalized settings. The electronic device 100 may then transmit the personalized setting data to the server 200. The server 200 may personalize the AR route 1 based on the personalized setting data, obtaining personalized AR route 1 data. Alternatively, the electronic device 100 may also perform personalized settings on the AR route 1 based on the personalized setting data, obtaining personalized AR route 1 data.

[0311] It can be understood that the above steps S712 and S713 are optional. After the electronic device 100 receives the user operation of sharing the AR route 1, it can also directly execute step S714. The above step S713 can also be independent. The electronic device 100 can provide options and / or controls for personalization in response to the user operation requesting personalization of the AR route 1. Then, the electronic device 100 can personalize the AR route 1 according to the user operation for personalization. The above user operation requesting personalization of the AR route 1 can refer to the user operation shown in Figure 6A above.

[0312] S714 : The electronic device 100 sends indication information of the AR route 1 to the electronic device 101 , where the electronic device 101 is the device of the shared user.

[0313] In one possible implementation, the electronic device 100 may request the server 200 to obtain the indication information of the AR route 1. The indication information of the AR route 1 may be used to obtain the AR route 1 data from the server 200. Then, the electronic device 100 may send the indication information of the AR route 1 to the electronic device 101. The indication information of the AR route 1 may be data in the form of a link, a QR code, or the like. The embodiment of the present application does not limit the method by which the electronic device 100 obtains the indication information of the AR route 1. For example, the electronic device 100 may generate the indication information of the AR route 1 itself.

[0314] S715 . The electronic device 101 obtains AR route 1 data according to the indication information of AR route 1 , and provides AR navigation service according to the AR route 1 data.

[0315] In a possible implementation, the electronic device 101 may request the server 200 to obtain the AR route 1 data according to the indication information of the AR route 1 .

[0316] In another possible implementation, after server 200 generates AR route 1 based on the road features and motion data sent by electronic device 100, it may send the AR route 1 data to electronic device 100. When electronic device 100 shares AR route 1 with electronic device 101, electronic device 100 may directly send the AR route 1 data to electronic device 101. Alternatively, electronic device 100 may send indication information of AR route 1 to electronic device 101. Then, electronic device 101 may request to obtain AR route 1 data from electronic device 100 based on the indication information of AR route 1.

[0317] The specific method of the above-mentioned AR navigation will be introduced in subsequent embodiments and will not be expanded here.

[0318] The electronic device 101 may store the indication information and / or data of the AR route 1. In this way, the user of the electronic device 101 may also share the AR route 1 with other users.

[0319] As can be seen from the method shown in Figure 7 above, after a user creates an AR route, he or she can share the AR route with other users. In addition, the user can personalize the AR route differently for different sharing objects. For example, after a user creates an AR route with the end point being his or her home, he or she can share the personalized AR route with friends and family. This can bring the user closer to others and provide a better AR navigation experience for others visiting the user's home. For another example, after a merchant creates an AR route with the end point being his or her own shop, he or she can use the personalized setting method to incorporate product advertisements into the AR route. Merchants can share personalized AR routes with customers. This can increase the entrance for merchants to push traffic and help merchants attract more customers.

[0320] In some embodiments, after a user creates an AR route, they can publish it publicly. Other users can search for the publicly published AR route on a map application and use it for AR navigation.

[0321] AR Navigation

[0322] 8A to 8L exemplarily illustrate some AR navigation scenario diagrams provided in embodiments of the present application.

[0323] In some embodiments, the electronic device 100 can share the AR route with the electronic device 101. Here, the electronic device 101 is taken as an example to be the device of the contact corresponding to the contact option 632A shown in FIG6E (ie, the user named "Zhang San").

[0324] As shown in Figure 8A, the electronic device 101 can display a user interface 810. The user interface 810 can be a user interface of a social communication application. The user interface 810 can include a contact name 811 and a message 812. Among them, the contact name 811 can represent the name of the contact who communicates with the user to which the electronic device 101 belongs. For example, the contact name 811 can be "Alice". This can indicate that the electronic device 100 is a device of a user named "Alice". The message 812 can be sent by the user corresponding to the contact name 811 to the user to which the electronic device 101 belongs. The message 812 may include indication information of the AR route. Here, the AR route named "from the gate of the first community to home" in the aforementioned embodiment is used to introduce the AR navigation method provided in the embodiment of the present application.

[0325] In one possible implementation, in response to an operation (eg, a click operation) on the message 812 shown in FIG8A , the electronic device 101 may obtain AR route data and may use the AR route data to provide an AR navigation server.

[0326] Specifically, upon acquiring AR route data, the electronic device 101 may determine whether the current location is at the starting point of the AR route. If the current location of the electronic device 101 is not at the starting point of the AR route, the electronic device 101 may prompt the user to go to the starting point of the AR route. If the current location of the electronic device 101 is at the starting point of the AR route, the electronic device 101 may use the AR route data for AR navigation.

[0327] 1. The following describes a situation where the current location of the electronic device 101 is not at the starting point of the AR route.

[0328] For example, in response to the operation on the message 812 shown in FIG8A , after the electronic device 101 determines that the current location is not at the starting point of the AR route, the electronic device 101 may display the user interface 820 shown in FIG8B .

[0329] As shown in Figure 8B, the user interface 820 can be a user interface of a map application. The user interface 820 can include a map display area 821. The map display area 821 can display a location marker 821A and an AR route starting point marker 821B. Among them, the location marker 821A can be used to indicate the current location of the electronic device 101. The AR route starting point marker 821B can be determined by the electronic device 101 based on the acquired AR route data. The AR route starting point marker 821B can be used to indicate the location of the starting point of the AR route. For example, the starting point of the AR route can be the entrance of the first cell. It can be seen that the location marker 821A and the AR route starting point marker 821B are displayed at different locations on the map. That is, the current location of the electronic device 101 is not at the starting point of the AR route.

[0330] The user interface 820 may also include a prompt box 822. The prompt box 822 may be used to prompt the user that the starting point of the AR route has not yet been reached and to ask the user whether to navigate to the starting point of the AR route. The prompt box 822 may include a confirmation control 822A and a cancel control 822B. The confirmation control 822A may be used to trigger the electronic device 101 to provide navigation services from the current location to the starting point of the AR route. The cancel control 822B may be used to refuse the electronic device 101 from providing navigation services from the current location to the starting point of the AR route. In response to an operation on the confirmation control 822A, such as a click operation, the electronic device 101 may display the user interface 830 shown in Figure 8C.

[0331] As shown in FIG8C , the electronic device 101 can provide navigation services with the current location of the electronic device 101 as the starting point and the starting point of the AR route (e.g., the first community gate) as the end point. The user interface 830 may include starting point information 831, end point information 832, a travel mode option area 833, a navigation route 834, an AR navigation control 835, and a start navigation control 836.

[0332] The starting point information 831 may be used to indicate the starting point for providing navigation services by the electronic device 101. For example, if the starting point information 831 is "my location", it may indicate that the starting point is the current location of the electronic device 101.

[0333] The destination information 832 may be used to indicate the destination of the navigation service provided by the electronic device 101. For example, if the destination information is "first cell gate", it may indicate that the destination is the location corresponding to the "first cell gate" (ie, the starting point of the AR route).

[0334] The travel mode options area 833 may include one or more travel mode options. For example, a walking option 833A, a cycling option, a bus option, and so on. The electronic device 101 may provide corresponding navigation services based on the travel mode selected in the travel mode options area 833. For example, if the walking option 833A is selected, the electronic device 101 may provide navigation services for walking from the starting point to the destination.

[0335] The navigation route 834 may be a route from the starting point indicated by the starting point information 831 to the end point indicated by the end point information 832 .

[0336] The AR navigation control 835 can be used to trigger the electronic device 101 to provide AR navigation services. In one possible implementation, the electronic device 101 can use existing road data and positioning information in the electronic device 101 to perform AR navigation to guide the user from the current location to the end point of the AR route.

[0337] The start navigation control 836 may be used to trigger the electronic device 101 to provide a conventional navigation service. Conventional navigation services may be a navigation service that is different from AR navigation services and may not require the user to turn on the camera. In one possible implementation, the electronic device 101 may use the positioning information in the electronic device 101 to provide conventional navigation services.

[0338] In response to an operation on the start navigation control 836 shown in FIG. 8C , such as a click operation, the electronic device 101 may display a user interface 840 shown in FIG. 8D .

[0339] As shown in FIG8D , the user interface 840 may display a map. The map may include navigation information (such as the location information of the starting point, the location information of the end point, the navigation route information from the starting point to the end point, the real-time location information of the electronic device 101, etc.). In this way, the user can determine their real-time location and whether they have deviated from the navigation route based on the above navigation information.

[0340] The user interface 840 may further include an exit navigation control 841. The exit navigation control 841 may be used to trigger the electronic device 101 to end navigation.

[0341] When the user reaches the starting point of the AR route according to the navigation service provided by the electronic device 101 as shown in FIG8D , the electronic device 101 can detect that the current location of the electronic device 101 is at the starting point of the AR route and display the prompt box 842 as shown in FIG8E .

[0342] Alternatively, in response to the operation on the message 812 shown in FIG8A , after the electronic device 101 determines that the current location is at the starting point of the AR route, the electronic device 101 may display the user interface 840 shown in FIG8E .

[0343] 2. The following describes the situation where the electronic device 101 is currently located at the starting point of the AR route.

[0344] For example, as shown in FIG8E , a prompt box 842 may be used to prompt the user that the current location is at the starting point of the AR route, and to ask the user whether to use the AR route corresponding to the message 812 shown in FIG8A for AR navigation. The AR route corresponding to the above message 812 may be the aforementioned AR route named "from the gate of the first community to home". The prompt box 842 may include a confirmation control 843 and a cancel control 844. Among them, the confirmation control 843 may be used to trigger the electronic device 101 to provide AR navigation services based on the AR route data obtained from the message 812. The cancel control 844 may be used to refuse the electronic device 101 to provide AR navigation services. In response to the operation of the confirmation control 843, the electronic device 101 may provide AR navigation services based on the AR route data obtained from the message 812.

[0345] As shown in FIG8F , when performing AR navigation, the electronic device 101 may turn on the camera and display a user interface 850. The user interface 850 may include an AR route name 851, an image display area 852, a starting point welcome message 853, an AR guide 854, a turn effect 855, and an exit navigation control 856.

[0346] The AR route name 851 may be used to indicate the name of the AR route, for example, “from the gate of the first community to home”.

[0347] The image display area 852 may be used to display images captured by the electronic device 100 .

[0348] The starting point welcome message 853, the AR guide 854, and the turning special effects 855 may be determined based on the user's personalized settings in the AR route data.

[0349] For example, referring to the scenario of personalized AR route setting in FIG6B , the starting point welcome message 853 may contain "Welcome to my home," the AR guide 854 may be a virtual cat, and the turning effect 855 may be a lightning turn effect. The starting point welcome message 853, AR guide 854, and turning effect 855 shown in FIG8F are merely illustrative of this application and should not be construed as limiting this application.

[0350] The exit navigation control 856 may be used to trigger the electronic device 101 to exit AR navigation.

[0351] In one possible implementation, the electronic device 101 may perform image recognition on images captured during AR navigation to obtain image features. The electronic device 101 may match the image features with template image features to determine the target's direction of travel in real time. The AR route data obtained by the electronic device 101 may include the template image features.

[0352] Exemplarily, as shown in FIG8G , the template image includes the image 871 captured by the aforementioned electronic device 100 at the starting point of the AR route (refer to the image displayed in the image display area 441 shown in FIG4E ). The electronic device 101 captures an image 872 at the starting point of the AR route. The image 872 may be, for example, the image displayed in the image display area 852 shown in FIG8F . The electronic device 101 may match the template image features of the image 871 with the image features of the image 872. As can be seen from FIG4E and FIG8F , the area 871A in the image 871 and the area 872A in the image 872 are substantially the same. That is, the shooting direction of the image 872 is biased to the left compared to the shooting direction of the image 871. The electronic device 101 may determine, based on the image feature matching results of the images 871 and 872, that the user's current direction of travel at the starting point is the direction in which the current shooting direction of the electronic device 101 is biased to the right.

[0353] Optionally, the electronic device 101 may also match the road features of the image captured during the AR navigation process with the road features of the template image to determine the target travel direction in real time. The AR route data obtained by the electronic device 101 may include the road features of the template image.

[0354] As shown in Figure 8F, the electronic device 101 can prompt the user's direction of travel at the current location through AR guide 854 and turn effect 855. As can be seen from Figure 8F, the AR guide 854 and turn effect 855 can be used to instruct the user to turn right and adjust the shooting direction of the electronic device 101. The direction of travel indicated by the AR guide 854 and turn effect 855 shown in Figure 8F can be determined by the electronic device 101 based on the results of image feature matching.

[0355] As shown in Figure 8H , when the user turns right according to the instructions of AR guide 854 and turn effect 855 shown in Figure 8F , the shooting direction of electronic device 101 can also be adjusted accordingly. The shooting screen of electronic device 101 shown in Figure 8H has moved to the right compared to the shooting screen shown in Figure 8F . In the scene shown in Figure 8H , electronic device 101 is still at the starting point of the AR route and captures image 873 in image display area 852 shown in Figure 8H . That is, image 873 is still the image captured by electronic device 101 at the starting point of the AR route. Electronic device 101 can match the template image features of image 871 with the image features of image 873. Comparing images 871 and 873 reveals that the content of images 871 and 873 is substantially identical. That is, the shooting direction of image 873 is substantially the same as the shooting direction of image 871. Based on the image feature matching results of images 871 and 873, electronic device 101 can determine that the user's current direction of travel at the starting point is the direction of travel associated with image 871 in the template image.

[0356] Furthermore, as shown in the scene shown in FIG. 4E , the image 871 in the template image is associated with a direction of travel determined based on the travel annotation. For example, the direction of travel is forward. The electronic device 101 can combine the matching results of the above images and the direction of travel associated with the template image (i.e., image 871) at the starting point of the AR route to determine that the user's direction of travel at the current location is forward.

[0357] As shown in Figure 8H, the electronic device 100 can display a travel prompt box 857. The travel prompt box 857 can be used to prompt the user of the travel direction. For example, the content in the travel prompt box 857 can be "Go straight and enter from the first community gate." In addition, the electronic device 100 can also prompt the user of the travel direction at the current location through the AR guide 854 and the turning special effect 862. As can be seen from Figure 8H, the AR guide 854 and the turning special effect 862 can be used to instruct the user to go straight. Among them, the travel direction indicated by the AR guide 854 and the turning special effect 862 shown in Figure 8H can be determined by the electronic device 101 in combination with the result of image feature matching, and the travel information in the AR route data (that is, the travel annotations added by the user when making the AR route).

[0358] In one possible implementation, the AR route data may include the display position and indicated direction of the travel direction indicator (refer to the travel direction indicator 449A shown in FIG. 4F and the travel direction indicator 449B shown in FIG. 4H ) on the image when adding travel annotations. When the electronic device 101 performs AR navigation based on the AR route data, it can display turning effects based on the display position and indicated direction of the travel direction indicator on the image. For example, the display position and indicated direction of the turning effect 862 shown in FIG. 8H on the image can be respectively consistent with the display position and indicated direction of the travel direction indicator 449A on the image shown in FIG. 4F . It can be seen that users can effectively provide direction guidance to other users during AR navigation by adding travel annotations when making AR routes.

[0359] As can be seen from the above method, during AR navigation, the electronic device 101 can perform real-time image feature matching between the image captured during navigation and the template image at the same location, and prompt the user with the direction of travel based on the image feature matching results. In addition, the electronic device 100 can also provide direction guidance based on the above image feature matching results and the travel information in the AR route data.

[0360] As can be appreciated, by matching image features between images captured during AR navigation and template images in real time, electronic device 101 can correct the user's direction of travel in real time, providing the user with a more accurate and intuitive AR navigation experience. If electronic device 101 only displays the heading prompt box 857 shown in FIG8H upon determining that the user is at the starting point of the AR route, the user may be heading in the wrong direction. For example, although the user is at the starting point of the AR route, they may not be facing the residential entrance. In this case, if the user moves forward according to the heading indicated by heading prompt box 857, they will deviate from the AR route. For example, if the user is facing away from the residential entrance, moving forward will lead them away from the residential entrance. This is clearly contrary to the AR route. Therefore, in the AR navigation method provided in embodiments of the present application, electronic device 101 can indicate the user's adjusted heading by matching an image captured at a certain location with the image of the template image at that location. Consequently, with the adjusted heading, the user can accurately travel along the AR route according to the heading indicated by electronic device 101. This eliminates the need for users to make their own decisions when using AR navigation.

[0361] As shown in FIG8I , the user can follow the AR navigation instructions in the electronic device 101. When guiding the user to a location on the AR route, the electronic device 101 can match the image captured at this location with the image at this location in the template image. This description uses the location where the electronic device 101 captured the image in the image display area 852 shown in FIG8I as location 1 on the AR route as an example.

[0362] The electronic device 101 can obtain a template image at position 1 on the AR route from the AR route data. The template image at position 1 can be image 874 shown in FIG8J. Image 874 can refer to the image in the image display area 441 shown in FIG4G. The image captured by the electronic device 101 at position 1 can be image 875 shown in FIG8J. Image 875 can be the image in the image display area 852 shown in FIG8I. The electronic device 101 can match the template image features of image 874 with the image features of image 875. As can be seen from FIG8J, the content of image 874 and image 875 are basically the same. That is, the shooting direction of image 874 and the shooting direction of image 875 are basically the same. Based on the image feature matching results of image 874 and image 875, the electronic device 101 determines that the user's direction of travel at position 1 is the direction of travel associated with image 874 in the template image.

[0363] In some embodiments, the electronic device 101 may also match the road features of image 874 with the road features of image 875. The road features of image 874 may be obtained by the electronic device 101 from the received AR route data. The road features of image 874 may include one or more of the following: key points, direction of travel, road position, road width, building signs, etc. The electronic device 101 may perform image analysis on image 875 to obtain the road features of image 875. The road features of image 875 may include one or more of the following: key points, direction of travel, road position, road width, building signs, etc. The embodiment of the present application does not limit the method of matching the above-mentioned road features. When it is determined that the road features of image 874 and the road features of image 875 match, the electronic device 101 may determine that the user's direction of travel at position 1 is the direction of travel associated with image 874 in the template image.

[0364] In some embodiments, electronic device 101 may combine the aforementioned road features and image features to determine whether image 874 matches image 875. If the road features of image 874 match the road features of image 875, and the image features of image 874 match the image features of image 875, electronic device 101 may determine that the user's direction of travel at position 1 is the direction of travel associated with image 874 in the template image.

[0365] Furthermore, as shown in the scene shown in FIG. 4G , image 874 is associated with a direction of travel determined based on the travel annotation. For example, the direction of travel is right. Electronic device 101 can combine the matching results of the above images with the direction of travel associated with the template image (i.e., image 874) at AR route position 1 to determine that the user's direction of travel at position 1 is right.

[0366] As shown in Figure 8I, the electronic device 101 can display a travel prompt box 858. The travel prompt box 858 can be used to prompt the user of the travel direction. For example, the content in the travel prompt box 858 can be "turn right". In addition, the electronic device 101 can also display an AR guide 854 and a turning effect 859. Both the AR guide 854 and the turning effect 859 in Figure 8I can be used to prompt the user to turn right. Among them, the travel direction indicated by the AR guide 854 and the turning effect 859 shown in Figure 8I can be determined based on one or more of the following information: the results of road feature matching, the results of image feature matching, and the travel information in the AR route data (i.e., the travel annotations added by the user when making the AR route).

[0367] Optionally, the display position and indicated direction of the turning effect 859 on the image may be respectively consistent with the display position and indicated direction of the travel direction indicator 449B on the image shown in FIG. 4H .

[0368] It should be noted that if the user has not personalized the AR route, the electronic device 101 may display the aforementioned turn effect 859 according to the default effect. The display style of the aforementioned default effect can refer to the display style of the travel direction indicator 449B shown in Figure 4H . In other words, the display style of the turn effect 859 can be the same as the display style of the travel direction indicator 449B shown in Figure 4H .

[0369] As shown in FIG8K , the user can proceed to position 2 according to the guidance of the AR navigation in the electronic device 101. The position 2 may be the location where the electronic device 101 captures the image in the image display area 852 shown in FIG8K .

[0370] The electronic device 101 can obtain a template image at position 2 on the AR route from the AR route data. The template image at position 2 can be image 876 shown in FIG8L . Image 876 can refer to the image in the image display area 441 shown in FIG4I . The image captured by the electronic device 101 at position 2 can be image 877 shown in FIG8L . Image 877 can be the image in the image display area 852 shown in FIG8K . The electronic device 101 can match the template image features of image 876 with the image features of image 877. As can be seen from FIG8L , the content of image 876 and image 877 are substantially the same. That is, the shooting direction of image 876 and the shooting direction of image 877 are substantially the same. Based on the image feature matching result of image 876 and image 877, the electronic device 101 determines that the user's travel information at position 2 is the travel information associated with image 876 in the template image.

[0371] Furthermore, as shown in the scenes shown in Figures 4I and 4J above, image 876 is associated with travel information determined based on the travel annotation. For example, the travel information is taking the elevator to the 11th floor. Electronic device 101 can combine the matching results of the above images with the travel information associated with the template image at AR route location 2 (i.e., image 876) to determine that the user can take the elevator to the 11th floor after arriving at location 2.

[0372] As shown in FIG8K , electronic device 101 may display a moving reminder box 861. This moving reminder box 861 may be used to prompt the user with moving information. For example, the content in moving reminder box 861 may be "Take the elevator to the 11th floor." Furthermore, the AR guide 854 shown in FIG8K may also be used to prompt the user to take the elevator.

[0373] In one possible implementation, the electronic device 101 may match the image features of an image taken at a location during AR navigation with the template image features of the template image of the AR route at this location. During the above-mentioned image feature matching process, the electronic device 101 may remind the user to adjust the shooting direction so that the shooting direction presented by the image taken by the electronic device 101 is consistent with the shooting direction presented by the template image. If the template image is associated with travel information, the electronic device 101 may prompt the user how to move according to the travel information. If the template image is not associated with travel information such as a travel direction, the electronic device 101 may instruct the user to move in the current shooting direction.

[0374] As can be seen from the above AR navigation scenario, the electronic device 101 can use AR route data for real-time matching to provide users with more accurate and intuitive travel guidance. During the AR navigation process, users can follow the navigation prompts of the electronic device 101 throughout the journey without having to search for travel directions and other travel information themselves.

[0375] The following provides an AR navigation method provided by an embodiment of the present application based on the aforementioned AR navigation scenario.

[0376] FIG9 exemplarily shows a flow chart of an AR navigation method provided by an embodiment of the present application. As shown in FIG9 , the AR navigation method may include steps S911 to S916. Among them:

[0377] S911: Determine whether the user is at the starting point of the AR route.

[0378] In one possible implementation, in response to triggering the electronic device 101 to perform AR navigation, the electronic device 101 may determine whether the user's current location (i.e., the location of the electronic device 101) is the starting point of an AR route. The AR route may be an AR route created using the AR route creation method provided in an embodiment of the present application.

[0379] If the current location of the electronic device 101 is not at the starting point of the AR route, the electronic device 101 may execute the following step S912 .

[0380] If the current location of the electronic device 101 is at the starting point of the AR route, the electronic device 101 can use the AR route data for AR navigation. The AR route data obtained by the electronic device 101 may include: the path of the AR route, template image features of each location on the AR route, and travel information determined based on travel annotations on the AR route.

[0381] S912: Prompt the user to go to the starting point of the AR route.

[0382] The electronic device 101 prompts the user to go to the starting point of the AR route. Optionally, the electronic device 101 can also provide the user with a navigation service from the current location to the starting point of the AR route.

[0383] The method for the electronic device 101 to prompt the user to go to the starting point of the AR route may refer to the description of the embodiments shown in the aforementioned FIG. 8A to FIG. 8D .

[0384] The following steps S913 to S916 may be a possible implementation manner in which the electronic device 101 uses the AR route data to perform AR navigation.

[0385] S913 : Obtain the real-time path of the user starting from the starting point, and determine the user's position on the AR route as position A1 based on the real-time path and the path of the AR route.

[0386] The electronic device 101 can obtain the real-time path of the user starting from the starting point of the AR route. The above real-time path can change in real time as the user moves. In one possible implementation, the electronic device 101 can determine the real-time path of the user based on the image captured by the electronic device 101 and / or the data collected by the motion sensor. The method for the electronic device 101 to determine the above real-time path can refer to the method for determining the path of the AR route in step S523 shown in Figure 5A above.

[0387] The path of the above AR route can be called a template path.

[0388] The electronic device 101 can determine whether the above-mentioned real-time path is part of the template path. If the real-time path is part of the template path, it can indicate that the real-time path and the template path match, and the user is traveling along the AR route. If the real-time path is not part of the template path, it can indicate that the real-time path and the template path do not match, and the user's route deviates from the AR route. Among them, the electronic device 101 can determine the coordinates of each point on the real-time path and the template path in the same coordinate system. The electronic device 101 can determine whether the real-time path is part of the template path by comparing the coordinates of each point on the real-time path with the coordinates of each point on the template path. If the electronic device 101 can find a point on the template path that is at the same or similar position as all the points on the real-time path, the electronic device 101 can determine that the real-time path is part of the template path. The above-mentioned points with the same position can represent points with the same coordinates. The above-mentioned points with similar positions can represent points where the distance between the two points is less than a preset distance. The embodiment of the present application does not limit the value of the above-mentioned preset distance.

[0389] In one possible implementation, if the real-time path is not part of the template path, the electronic device 101 may prompt the user to make adjustments to return to the AR route. If the real-time path is part of the template path, the electronic device 101 may determine the user's current position on the AR route. Among them, the most recently determined point on the real-time path may represent the user's current position. The electronic device 101 may find a point on the template path that is the same as or close to the most recently determined point on the real-time path, thereby determining the user's current position on the AR route. For example, the user's current position on the AR route is position A1.

[0390] S914: Determine whether the real-time image captured at position A1 matches the template image at position A1.

[0391] The template image at the position A1 may represent an image captured at the position A1 during the data collection phase of creating the AR route.

[0392] In one possible implementation, the electronic device 101 may capture an image at position A1 during AR navigation (i.e., a real-time image captured at position A1). The electronic device 101 may match the image features of the real-time image captured at position A1 with the image features of the template image at position A1. The image features of the real-time image captured at position A1 may be obtained by image analysis performed by the electronic device 101. The image features of the template image at position A1 may be included in the AR route data acquired by the electronic device 100. The above-mentioned image feature matching process may refer to the description of the embodiments shown in Figures 8F to 8L above.

[0393] If it is determined that the real-time image captured at position A1 does not match the template image at position A1, the electronic device 101 may execute the following step S915.

[0394] If it is determined that the real-time image captured at position A1 matches the template image at position A1, the electronic device 101 may execute the following step S916.

[0395] In one possible implementation, electronic device 101 may also match road features in the real-time image captured at location A1 with road features in the template image at location A1. The road features in the real-time image captured at location A1 may be obtained by electronic device 101 through image analysis. The road features in the template image at location A1 may be included in the AR route data acquired by electronic device 100. This matching of the road features in the real-time image and the road features in the template image may indicate matching between the real-time image and the template image.

[0396] Optionally, the electronic device 101 may also combine image features and road features to determine whether the real-time image and the template image match.

[0397] S915: Prompt the user to adjust the shooting direction at position A1.

[0398] For a scenario in which the electronic device 101 prompts the user to adjust the shooting direction, reference may be made to the scenario shown in aforementioned FIG. 8F .

[0399] The electronic device 101 may match the real-time image captured at position A1 after the shooting direction is changed with the template image at position A1. In other words, the electronic device 101 may repeatedly execute steps S914 and S915 until the real-time image captured by the electronic device 101 at position A1 matches the template image at position A1.

[0400] S916 , finding that the template image at position A1 is associated with travel information, and providing travel guidance according to the travel information associated with the template image.

[0401] The above travel information can be determined based on the travel annotations added during the AR route creation process. For example, the travel information can include one or more of the following: travel direction, elevator arrival floor, stair arrival floor, etc.

[0402] For example, the movement information associated with the template image at position A1 is "turn right." The electronic device 101 may prompt the user to turn right when the user arrives at position A1. Alternatively, the movement information may be more specifically "turn right L meters ahead of position A1." The electronic device 101 may prompt the user to turn right L meters ahead of position A1 when the user arrives at position A1.

[0403] For another example, the travel information associated with the template image at position A1 is taking the elevator to the 11th floor. When the user arrives at position A1, the electronic device 101 may prompt the user to take the elevator to the 11th floor.

[0404] The method for the electronic device 101 to provide travel guidance based on the travel information associated with the template image can refer to the introduction of the embodiments shown in Figures 8F, 8I, and 8K above. In one possible implementation, when it is determined that the real-time image taken at position A1 matches the template image at position A1, the electronic device 101 can also provide travel guidance to the user based on the real-time image taken at position A1. For example, the real-time image taken by the electronic device 101 at position A1 is taken in direction F. The travel guidance provided by the electronic device 101 when the user is at position A1 can be used to instruct the user to travel in direction F. Among them, the electronic device 101 can instruct the user to travel in direction F through one or more contents such as an AR guide and a direction indicator.

[0405] It should be noted that the method for the electronic device 101 to provide travel guidance at other locations on the AR route can refer to the aforementioned method for providing travel guidance at location A1, which will not be described in detail here.

[0406] As can be seen from the method shown in FIG9 above, when the electronic device 101 provides AR navigation services according to AR route data, it can use images captured by the electronic device 101 and motion data of the electronic device 100. In this way, AR navigation does not require complete road data and the electronic device can obtain accurate and stable positioning signals. In scenarios where road data construction is insufficient and positioning signals are poor, the AR navigation method provided in this application can also provide users with accurate AR navigation services.

[0407] It is understood that the various user interfaces described in the embodiments of this application are merely exemplary interfaces and do not limit the scope of this application. In other embodiments, the user interface may adopt a different interface layout, include more or fewer controls, and add or remove other functional options. As long as they are based on the same inventive concept provided by this application, they are all within the scope of protection of this application.

[0408] It should be noted that, without causing any contradiction or conflict, any feature in any embodiment of the present application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of the present application.

[0409] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An AR route making method, characterized in that: The method comprises: The first electronic device obtains a first image sequence by shooting with a camera within a first time period, where the first time period is a time period for the first electronic device to reach an end point of the first route from a starting point of the first route along the first route; The first electronic device receives a first operation within the first time period, the first operation is used to add first travel information to a first image, and the first image sequence includes the first image; The first electronic device acquires first route data of the first route, where the first route data is determined according to the first image sequence and the first travel information.

2. The method according to claim 1, characterized in that Before the first electronic device receives a first operation within the first time period, the method further includes: The first electronic device recognizes that the first image includes a first key point; The first electronic device provides a first prompt, where the first prompt is used to prompt a user to add travel information.

3. The method according to claim 1, characterized in that Before the first electronic device receives a first operation within the first time period, the method further includes: The first electronic device determines, according to the motion sensor, that a deviation angle of the first electronic device at a first moment is greater than a first angle; The first electronic device provides a second prompt, where the second prompt is used to prompt the user to add travel information.

4. The method according to claim 3, characterized in that The first image is taken by the first electronic device within a second time period, and the second time period is a time period including the first moment.

5. The method according to claim 3, characterized in that: The first image is taken by the first electronic device at the first moment.

6. The method according to any one of claims 2 to 5, characterized in that: The travel information includes one or more of the following: travel direction, elevator arrival floor information, and stair arrival floor information.

7. The method according to any one of claims 1 to 6, characterized in that The first route data includes: road features of the first image sequence, image features of the first image sequence, and a first path; wherein, The road features of any frame of the first image sequence include a timestamp, and one or more of the following: a key point, travel information, road width, road position, and building identification, wherein the road features of the first image include the first travel information; The image features of any frame of image in the first image sequence include one or more of the following: color features, texture features, shape features, and spatial relationship features; The first path is used to indicate the location of each point on the first route.

8. The method according to claim 7, characterized in that The method further comprises: The first electronic device sends the road features of the first image sequence to a server; The first electronic device acquiring first route data of the first route specifically includes: The first electronic device obtains the first route data from the server.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: The first electronic device obtains first motion data according to data collected by the motion sensor in the first time period, wherein the first motion data includes a deviation angle and a moving distance of the first electronic device; Wherein, the first route data is also determined according to the first motion data.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: The first electronic device recognizes that a second image in the first image sequence includes a second key point; The first electronic device determines second travel information associated with the second image; Wherein, the first route data is also determined according to the second travel information.

11. The method according to any one of claims 1 to 10, characterized in that The method further comprises: The first electronic device determines, according to the motion sensor, that a deviation angle of the first electronic device at the second moment is greater than the first angle; The first electronic device determines third travel information associated with a third image in the first image sequence, the third image being captured within a time period including the second moment; Wherein, the first route data is also determined according to the third travel information.

12. The method according to any one of claims 1 to 11, characterized in that The first electronic device obtains a first image sequence by shooting with a camera within a first time period, specifically including: The first electronic device obtains a second image sequence by photographing with the camera within the first time period; The first electronic device extracts frames from the second image sequence to obtain the first image sequence.

13. The method according to any one of claims 1 to 12, characterized in that The method further comprises: The first electronic device receives a second operation, where the second operation is used to set one or more of the following contents of the first route: an AR guide, a turning effect, a welcome message at the starting point, an animation at the starting point, a closing message at the end point, an animation at the end point, and roadside scenery; The first electronic device sets the first route according to the second operation.

14. The method according to any one of claims 1 to 13, characterized in that The method further comprises: The first electronic device sends first indication information to the second electronic device, where the first indication information is used to obtain the first route data; or The first electronic device sends the first route data to the second electronic device.

15. An AR navigation method, characterized in that: The method comprises: The second electronic device acquires first route data of the first route; The second electronic device determines, based on the image captured by the camera and the first route data, that the user is located at a first position on the first route; The second electronic device determines that a feature of a first real-time image matches a feature of a first image in the first route data, the first real-time image is taken by the second electronic device at the first location, and the first image is an image corresponding to the first location in the first route data; The second electronic device determines, in the first route data, first travel information associated with the first image; The second electronic device provides a first traveling guide according to the first traveling information.

16. The method according to claim 15, characterized in that The second electronic device determines that a feature of the first real-time image matches a feature of the first image in the first route data, specifically including: The second electronic device determines that a road feature of the first real-time image matches a road feature of the first image, and / or the second electronic device determines that an image feature of the first real-time image matches an image feature of the first image.

17. The method according to claim 15 or 16, characterized in that The first travel information is traveling in a first direction at the first position.

18. The method according to any one of claims 15 to 17, characterized in that: The second electronic device determines that the user is located at a first position of the first route according to the image captured by the camera and the first route data, specifically including: The second electronic device determines a first real-time route based on images captured within a third time period, where the third time period is a time period for the second electronic device to travel from a starting point of the first route to the first location; The second electronic device compares the position on the first real-time route with the position on the first route to determine that the user is located at the first position.

19. The method according to claim 18, characterized in that The method further comprises: The second electronic device obtains second motion data according to data collected by the motion sensor in the third time period, wherein the second motion data includes a deviation angle and a moving distance of the second electronic device; Wherein, the first real-time route is also determined according to the second motion data.

20. The method according to any one of claims 15 to 19, characterized in that The first location is a starting point of the first route, and the method further includes: The second electronic device determines that the user is not at the first location; The second electronic device provides first information, where the first information is used to instruct the user to go to the first location.

21. The method according to any one of claims 15 to 20, characterized in that Before the second electronic device determines that the image feature of the first real-time image matches the image feature of the first image in the first route data, the method further includes: The second electronic device captures a second real-time image at the first position; The second electronic device determines that a feature of the second real-time image does not match a feature of the first image; The second electronic device provides second information, where the second information is used to instruct the user to adjust the shooting direction at the first position; The second electronic device captures the first real-time image at the first position.

22. The method according to any one of claims 15 to 21, characterized in that The method further comprises: The second electronic device determines, based on the image captured by the camera and the first route data, that the user is located at a second position of the first route; The second electronic device determines that a feature of a third real-time image matches a feature of a fourth image in the first route data, the third real-time image is taken by the second electronic device at the second location, and the fourth image is an image corresponding to the second location in the first route data; The second electronic device provides second traveling guidance according to the third real-time image.

23. The method according to claim 22, characterized in that The third real-time image is taken by the second electronic device toward a second direction, and the second traveling guide is used to instruct the user to travel toward the second direction.

24. An electronic device, characterized in that: The electronic device includes a camera, a motion sensor, a memory and a processor, wherein the camera is used to capture images; the motion sensor is used to collect motion data of the electronic device; the memory is used to store a computer program; and the processor is used to call the computer program so that the electronic device executes the method described in any one of claims 1-14 or 15-23.

25. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1-14 or 15-23.

26. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the method according to any one of claims 1 to 14 or 15 to 23.

Citation Information

Patent Citations

  • A method for using augmented reality-guided routes and a mobile terminal using this method.

    CN102281348A

  • Image display method and image acquisition device

    CN104034335A

  • Route generation and sharing method and device, route point adding method and device as well as route navigation method and device

    CN105675003A

  • Navigation method and navigation device

    CN107532913A

  • Vehicle Control System, Server Device, Vehicle Control Method, And Vehicle Control Program

    CN108153299A

Cited By

  • Wearable smart watch convenient for navigation interaction

    CN120141525A