AR (Augmented Reality) route making method, related device and communication system

Customizing AR routes through the cameras and motion sensors of electronic devices solves the problems of insufficient road data and poor positioning signals in AR navigation in the existing technology, and enables accurate navigation services in these scenarios.

CN118706104APending Publication Date: 2024-09-27HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310334706.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

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

Method used

Capture images and motion sensor data through the camera of electronic devices, customize AR routes, add travel annotations, and generate accurate AR route data to achieve AR navigation without the need for perfect road data and stable positioning information.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118706104A
    Figure CN118706104A
Patent Text Reader

Abstract

The invention provides an AR route making method, a related device and a communication system. The electronic equipment can start a camera to shoot an image, and obtains data collected by a motion sensor to make an AR route. In the data acquisition process, the electronic equipment can also prompt the user to add an advancing mark. The marching mark can be used for marking marching information such as the marching direction at the designated position, and the accuracy of AR route making can be improved. When the manufactured AR route data is obtained, the electronic equipment can use the AR route data to carry out real-time matching to provide AR navigation without depending on perfect road data and accurate and stable positioning information. Therefore, even in the scene of insufficient road data construction and poor positioning signal, the AR route data can provide accurate AR navigation service for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of augmented reality (AR) technology, AR technology has gradually been applied to the field of navigation. AR routes can provide users with navigation services more intuitively. AR technology relies on the construction of road data and the accuracy of positioning. However, there are currently problems such as insufficient road data storage construction and poor positioning signals in internal areas such as residential areas, underground garages, and shopping malls. Existing AR navigation applications often find it difficult to provide users with accurate AR navigation services in the above internal areas. Summary of the invention

[0003] 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 making AR routes. When using the AR route navigation produced by the AR route production method of the present application, the electronic device can use the 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.

[0004] In a first aspect, the present application provides an AR route production method. Among them, the first electronic device can obtain a first image sequence by shooting through a camera within a first time period, and the first time period is a 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.

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

[0006] The first operation mentioned above can refer to this application Figure 4E The operation of the direction label control 442A is shown. Figure 4G The operation of the direction label control 442A is shown. Fig. 4I The operation of elevator labeling control 442B is shown, and so on.

[0007] As can be seen from the above method, the first electronic device can use a camera to capture an image on 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.

[0008] 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.

[0009] In combination with the first aspect, in some embodiments, before the first electronic device receives the first operation within a first time period, the first electronic device determines based on a 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.

[0010] 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.

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

[0012] The first and second tips mentioned above can refer to this application Figure 4E The annotation shown adds prompt 443.

[0013] It can be seen from the above embodiments that when the first electronic device recognizes the existence of key points on the image or determines that the first electronic device has a large angle deviation 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.

[0014] 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, stair arrival floor information. The travel direction may be, for example, left turn, right turn, straight ahead, backward, etc.

[0015] 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, and 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, and spatial relationship features; the first path is used to represent the position of each point on the first route.

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

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

[0018] 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 an offset angle and a moving distance of the first electronic device; wherein the first route data is also determined based on the first motion data.

[0019] It can be seen from the above embodiments that the first route data can be determined in combination with the above first image sequence and the first motion data. For example, the above method can use the AR route determined by the road image of 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 of the first 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.

[0020] 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.

[0021] 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.

[0022] As can be seen from the above embodiments, the first electronic device can automatically add travel information during the data collection stage of making an AR route. This simplifies the user operation in the process of making an AR route and improves the user experience. The first electronic device automatically adding travel information can also improve the accuracy of AR route making.

[0023] In combination with the first aspect, in some embodiments, the first electronic device obtains a second image sequence by photographing 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.

[0024] From the above embodiment, it can be known that the first electronic device can extract frames of the captured image and then generate an AR route based on the extracted image. 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.

[0025] 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 message, starting point animation, end point closing message, end point animation, roadside scenery; the first electronic device sets the first route according to the second operation.

[0026] The second operation can refer to the Figure 6B User operations in areas such as the AR guide setting area 621, the key point turning special effect setting area 622, and the starting point welcome message setting area 623 are shown.

[0027] From the above embodiments, it can be seen that after making an AR route, the user 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 personalization of the AR route can also better inspire users to make AR routes.

[0028] 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.

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

[0030] It can be seen from the above embodiments that after the user makes an AR route, the AR route can be shared with other users. In addition, the user can make different personalized settings for the AR route according to different sharing objects. For example, after the user makes an AR route with the end point as his own home, he can share the personalized AR route with relatives and friends. 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 makes an AR route with the end point as 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.

[0031] In a second aspect, the present application provides an AR navigation method, where a second electronic device can obtain first route data of a first route. The second electronic device determines that the user is located at a first position of the first route based on an image captured by a camera and the first route data; 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 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.

[0032] 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 according to the first indication information. Alternatively, the second electronic device may receive the first route data sent by the first electronic device.

[0033] From the above method, it can be seen that 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 the scenario where road data is insufficient and the positioning signal is poor, the second electronic device can use AR route data to provide users with accurate AR navigation services.

[0034] 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. Wherein, when determining that the road features of the first real-time image match the road features of the first image, and / or determining 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.

[0035] 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. The road features of a frame of image may include a timestamp, and one or more of the following: key points, travel information, road width, road location, building identification. The image features of a frame of image may include one or more of the following: color features, texture features, shape features, and spatial relationship features.

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

[0037] 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, and 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.

[0038] The first real-time route may change in real time as the user moves. The second electronic device may 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 matches the first route, 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 does not match the first route, and the user's route deviates from the first route. Among them, the second electronic device may 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 may 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 the same or close to all points on the first real-time route, the second electronic device may determine that the first real-time route is part of the first route. The points with the same position may indicate points with the same coordinates. The points with similar positions may indicate 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 preset distance.

[0039] 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 an offset angle and a moving distance of the second electronic device; wherein the first real-time route is also determined based on the second motion data.

[0040] 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, where the first information is used to instruct the user to go to the first location.

[0041] The above first information can refer to this application Figure 8B The information in the prompt box 822 is shown.

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

[0043] 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 the second real-time image at the first location;

[0044] 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, the second information is used to instruct the user to adjust the shooting direction at the first position; the second electronic device shoots the first real-time image at the first position.

[0045] 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 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.

[0046] 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 features of the third real-time image match 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 instructions based on the third real-time image.

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

[0048] 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 call the computer program so that the electronic device executes any possible implementation method in the first aspect or the second aspect.

[0049] 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.

[0050] 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.

[0051] 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, and the processor is 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.

[0052] 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 method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 is an architecture diagram of a communication system provided in an embodiment of the present application;

[0054] Figure 2A It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0055] Figure 2B It is a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0056] Figure 3 is an architecture diagram of another communication system provided in an embodiment of the present application;

[0057] Figure 4A to Figure 4N It is a schematic diagram of some scenarios for making AR routes provided in the embodiments of the present application;

[0058] Figure 5A is a flow chart of an AR route making method provided in an embodiment of the present application;

[0059] Figure 5B It is a schematic diagram of road features of an image on an AR route provided in an embodiment of the present application;

[0060] Fig. 6A and Figure 6B It is a schematic diagram of some scenarios for personalized setting of AR routes provided in the embodiments of the present application;

[0061] Figure 6C to Figure 6E This is a schematic diagram of some scenarios for sharing AR routes provided in the embodiments of the present application.

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

[0063] Figure 8A to Figure 8L Schematic diagram of some AR navigation scenarios provided by embodiments of the present application;

[0064] Fig. 9 It is a flowchart of an AR navigation method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] 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 the appended 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 indication to the contrary 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: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in a "or" relationship.

[0066] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear 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 other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0067] In the embodiments of the present application, the words "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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0068] The term "user interface (UI)" in the following embodiments of the present application refers to the 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 can be recognized by the user. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation 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.

[0069] The present application provides an AR route making method. When making an AR route, the electronic device 100 can turn on the camera to capture an image and obtain data collected by a motion sensor (such as a gravity sensor, an acceleration sensor, a gyroscope sensor, etc.). Among them, the electronic device 100 can perform image analysis on the image. When it is recognized that the image includes key points, the electronic device 100 can prompt the user to add a travel annotation. The above-mentioned key points can indicate that there are multiple directions of travel and the location where the direction of travel may change. For example, an intersection, a staircase, etc. When it is determined that the electronic device 100 has a large angle offset according to the data collected by the gyroscope sensor, 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 of adding a travel annotation. Optionally, the electronic device 100 can also automatically add a travel annotation when it is recognized that the image includes a key point or it is determined that the electronic device 100 has a large angle offset. The electronic device 100 can also detect the moving distance of the electronic device 100 through a gravity sensor and an acceleration sensor. The moving distance can represent the length of the journey from the starting point of the AR route to each location on the AR route.

[0070] The electronic device 100 may send the above-mentioned moving annotation, one or more road information such as the road position, road width, building identification, etc. obtained based on image analysis, and the offset angle and moving distance of the electronic device 100 to the server. The above-mentioned road position may represent the position of the electronic device 100 from the starting point of the AR route when taking a frame of image. The server may generate an AR route based on the data sent by the electronic device 100.

[0071] After user 1 uses the electronic device 100 to make an AR route, he can share the AR route he made 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 according to the AR route made 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.).

[0072] 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 the 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 images captured by the electronic device 101 and the motion data of the electronic device 100. In this way, AR navigation does not require perfect 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 in this application can also provide users with accurate AR navigation services.

[0073] Communication system and equipment structure

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

[0075] Figure 1 The architecture diagram of the communication system 10 provided in the embodiment of the present application is exemplified.

[0076] like Figure 1 As shown, 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 between each other. This application does not limit the method of the above communication connection.

[0077] Electronic devices 100, 101, 102, etc. 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.

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

[0079] For example, the electronic device 100 may start making an AR route in response to a user operation of turning on the AR route making function. In the process of making an AR route, the user may hold the electronic device 100 and start from the starting point of the AR route and move to the end point of the AR route. The route that the user takes from the starting point to the end point is the AR route.

[0080] 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 of image may include a timestamp, a frame number, and one or more of the following parameters: direction of travel, 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 motion sensors (such as gravity sensors, acceleration sensors, gyroscope sensors). The motion data may include timestamps, offset angles, and moving distances.

[0081] The electronic device 100 may send the road features of the image determined in the process of making the AR route and the motion data of the electronic device 100 to the server 200. The server 200 may make the AR route based on the road features and motion data from the electronic device 100.

[0082] In some embodiments, after the server 200 has prepared the AR route, the AR route data may be sent to the electronic device 100. In this way, after the user completes the data collection in the process of preparing the AR route, the user can view the AR route prepared by himself.

[0083] In some embodiments, the electronic device 100 may also identify image features of images captured by the camera. The image features may include one or more of the following: color features, texture features, shape features, spatial relationship features, etc. 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 process of making 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.

[0084] 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.

[0085] In some embodiments, the user can also personalize the AR route he made. For example, the electronic device 100 can provide the user with one or more of the following personalized setting options: welcome words and / or animation setting options at the starting point, 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 personalized setting options. Alternatively, the electronic device 100 can send the above 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.

[0086] 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. Among them, 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 indication information. The electronic device 100 can send the indication information of the above 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 can provide an AR navigation function based on the obtained AR route data.

[0087] In some scenarios, residents can create an AR route from the community gate to their home or from the underground garage to their home. The residents can share the AR route with their relatives, friends, deliverymen and other visitors, thereby providing these visitors with a convenient and intuitive navigation route to help them reach their home smoothly.

[0088] In other scenarios, merchants in a mall can create an AR route from the mall entrance to the merchant's location or from the mall's underground garage to the merchant's location. The merchants in the mall can share the AR route with customers, deliverymen and other visitors, thereby providing these visitors with convenient and intuitive navigation routes to help them shop, dine or pick up food at their stores.

[0089] Not limited to the above scenarios, Figure 1 The AR route making method and the AR route sharing and navigation method provided by the communication system 10 can also be applied to more scenarios.

[0090] Depend on Figure 1It can be seen from the communication system 10 shown that 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 according to the AR route produced by the AR route production method provided in this application, the image and motion data obtained in real time by the electronic device 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 electronic devices to obtain accurate and stable positioning signals. In scenarios where road data construction is insufficient and positioning signals are poor, the AR production method provided in this application can also provide users with accurate AR navigation services.

[0091] 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.

[0092] Figure 2A The schematic diagram of the hardware structure of the electronic device 100 is exemplarily shown.

[0093] like Figure 2A As shown, 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.

[0094] It is to be understood that the structure illustrated in the embodiment of the present application does 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0095] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.

[0096] 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.

[0097] The processor 110 may also be provided with a memory for storing instructions and data. In some examples, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0098] The USB interface 130 is an interface that complies with USB standard specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 100, or may be used to transmit data between the electronic device 100 and a peripheral device. It may also be used to connect headphones to play audio through the headphones.

[0099] 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 the charging management module 140 charges the battery 142, it can also power the electronic device through the power management module 141.

[0100] 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 power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.

[0101] 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.

[0102] 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 the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0103] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to 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), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.

[0104] 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 integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0105] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.

[0106] 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.

[0107] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0108] The ISP is used to process data fed back by the camera 193. For example, when taking a photo, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, and the light signal is converted into an electrical signal. The camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.

[0109] 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.

[0110] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0111] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0112] 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 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0113] 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 may 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 may 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.

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

[0115] 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 arranged in the processor 110, or some functional modules of the audio module 170 can be arranged 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.

[0116] 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.

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

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

[0119] 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 screen state of the electronic device 100 can be determined by the gravity sensor, so that the screen is adjusted to keep it horizontal.

[0120] In some embodiments, the electronic device 100 may determine the moving distance of the electronic device 100 within a period of time by using an acceleration sensor and a gravity sensor.

[0121] The buttons 190 include a power button, a volume button, etc. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, messages, missed calls, notifications, etc.

[0122] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or removing it from the SIM card interface 195. The electronic device 100 can support 1 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, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0123] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device 100 is exemplified.

[0124] Figure 2B It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0125] 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. The system is divided into four layers, from top to bottom: application layer, application framework layer, Android Runtime and system library, and kernel layer.

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

[0127] like Figure 2BAs shown, 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 sunshine information of the bus seats and navigation.

[0128] The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0129] like Figure 2B As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an activity manager, and the like.

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

[0131] 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.

[0132] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

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

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

[0135] The notification manager enables 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 automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0136] 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.

[0137] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.

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

[0139] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0140] The system library may 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.

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

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

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

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

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

[0146] Figure 3 The following is an exemplary diagram of the architecture of another communication system 20 provided in an embodiment of the present application.

[0147] like Figure 3 As shown, the communication system 20 may include an electronic device 100 , an electronic device 101 and a server 200 .

[0148] The electronic device 100 may be installed with a map application 310. The map application 310 may be used to provide an AR route making function and an AR navigation function. 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.

[0149] 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 make an AR route. Among them, when the AR route making 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 of the electronic device 100, the moving distance, etc.

[0150] The AR route visual analysis module 313 can be used to perform visual analysis on the image. The AR route recording module 311 can send the image 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 image to obtain the road information in the image. The road information in a frame of image can include one or more of the following: key points, road location, road width, building identification.

[0151] 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 forward 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 go up the stairs and need to go straight forward 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.

[0152] The road position of a frame image can represent the position on the AR route when the frame image is taken during the process of making the AR route. In this way, the prepared AR route data can include images at various positions on the AR route. These images can be used for image matching during AR navigation to provide accurate travel directions.

[0153] 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. The embodiment of the present application does not limit the implementation method of determining the road width.

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

[0155] In a 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 embodiment of the present application does not limit the method by which the AR route visual analysis module 313 performs visual analysis on an image.

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

[0157] The AR route matching module 312 can be used for 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 accurate AR navigation for the user.

[0158] In a possible implementation, the electronic device 100 may obtain AR route data. The 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 real-time path that the user is walking on based on the captured image and / or the data collected by the motion sensor. The electronic device 100 may match the real-time path with the template path to determine the current position of the user on the AR route. In this way, the electronic device 100 may determine how the user should proceed at the current position based on the AR route data, thereby providing corresponding travel guidance. Among them, the real-time path of the user does not match the template path, which may indicate that the current position of the user 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, the electronic device 100 matches the real-time path with the template path, and determines that the part of the real-time path starting from position A does not match the template path. Then, the electronic device 100 may prompt the user to return to position A along the original route. 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.

[0159] In a possible implementation, the AR route data acquired by the electronic device 100 also includes image features of images at various positions on the AR route. The image features in the AR route data may be referred to as template image features. The electronic device 100 may capture real-time images during AR navigation and determine real-time image features of the real-time images. The electronic device 100 may match the real-time image features and template image features at the same position on the AR route to determine the direction of travel of the user at this position. For example, when making an AR route, image 1 may be captured at position A. When the electronic device 100 performs AR navigation according to the AR route, image 2 may be captured at position A. The electronic device 100 may match the image features of the above-mentioned image 1 with the image features of image 2 through the AR route matching module 312. If the image features of the above-mentioned image 1 and the image features of image 2 can match (for example, the similarity between image 1 and image 2 is higher than a preset similarity threshold), the electronic device 100 may prompt the user to continue to move in the shooting direction of the camera. If the image features of the above-mentioned image 1 and the image features of image 2 do not match, the electronic device 100 may prompt the user to adjust the shooting direction of the camera to change the shooting picture. The electronic device 100 can determine whether the image features of the image captured after the shooting direction is adjusted match the image features of the image 1 through the AR route matching module 312. 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 image matches.

[0160] Optionally, the AR route data may also include images at 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 direction of travel of the user at a certain location.

[0161] 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 making function. Among them, the electronic device 100 can obtain the AR route recording module 311 and the AR route visual analysis module 313 through the application server. The above-mentioned application server can be a server for providing an application installation package. When the above-mentioned AR route recording module 311 and the AR route visual analysis module 313 are obtained, the map application 310 in the electronic device 100 can provide an AR route making function. For another example, the map application 310 in the electronic device 100 can obtain a service for providing an AR navigation function. Among them, the electronic device 100 can obtain the above-mentioned 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.

[0162] Not limited to the above-mentioned AR route recording module 311 , AR route matching module 312 , and AR route visual analysis module 313 , the map application 310 may also include more or fewer modules.

[0163] 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 acquired by an electronic device (such as the electronic device 100) when making an AR route. The above-mentioned AR route generation method will be specifically introduced in subsequent embodiments. It will not be expanded here.

[0164] In some embodiments, the AR route generation module 320 may also be used to provide an AR route download service. Through the AR route download service, an electronic device (such as the electronic device 100, the electronic device 101, etc.) may obtain AR route data from the server 200, and perform AR navigation according to the obtained AR route data.

[0165] The electronic device 101 may be installed with a map application 330. The map application 330 may provide an AR navigation function. The map application 330 may include an AR route matching module 331. The AR route matching module 331 may refer to the above introduction to the AR route matching module 312. In some embodiments, the map application 330 may also include an AR route recording module 311 and an AR route visual analysis module 313, thereby providing an AR route making function. The map application 330 may also include more or fewer modules.

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

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

[0168] In a possible implementation, the server 200 may send indication information (such as a link, a QR code, etc.) of the AR route 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 indication information of the AR route to the electronic device 101. The electronic device 101 may obtain the AR route data from the server 200 according to the indication information. The electronic device 101 may process the received AR route data through the AR route matching module 331, so as to perform AR navigation according to the AR route data.

[0169] Based on the structure of the above-mentioned communication system and electronic equipment, 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 in this application will be specifically introduced below. AR navigation using the AR route made by the AR route making method provided in this application can get rid of the AR navigation's dependence on perfect 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 in this application can also provide users with accurate AR navigation services.

[0170] Creating AR Routes

[0171] Figure 4A to Figure 4N Some schematic diagrams of scenarios for making AR routes are shown as examples.

[0172] like Figure 4A As shown, the electronic device 100 displays a user interface 410. The user interface 410 may include one or more application icons. For example, a map application icon 411. In response to an operation (such as a click operation) on the map application icon 411, the electronic device 100 may start the map application and display the map application. Figure 4BUser interface 420 is shown.

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

[0174] A map may be displayed in the map display area 421. The map may include a location marker 421A. The electronic device 100 may obtain the current location information of the electronic device 100, and determine the display position of the location marker 421A on the map according to the location information. That is, the location marker 421A may be used to indicate the current location of the electronic device 100, that is, the current location of the user of the electronic device 100.

[0175] 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 Figure 4C User interface 430 is shown.

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

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

[0178] 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.

[0179] The AR route area 433 shared by others can be used to display AR route options shared by other users received and saved by the electronic device 100. For example, the AR route area 433 shared by others can include an AR route option 433A. The name of the AR route corresponding to the AR route option 433A can be the dumpling restaurant in the XX shopping mall. The embodiment of the present application does not limit the name of the above-mentioned AR route.

[0180] like Figure 4C As shown, in response to an operation (such as a click operation) on the production control 431, the electronic device 100 may display Figure 4D Prompt box 434 is shown.

[0181] like Figure 4DAs shown, prompt box 434 can be used to prompt the user that a camera is required to create an AR route, and ask the user whether to agree that the electronic device 100 turns on the camera. Prompt box 434 can include a confirmation control 434A and a cancel control 434B. Among them, the confirmation control 434A can be used to agree that the electronic device 100 turns on the camera. The cancel control 434B can be used to refuse the electronic device 100 to turn on the camera. In response to the operation of the confirmation control 434A, the electronic device 100 can turn on the camera and display Figure 4E The user interface 440 shown starts data collection to create an AR route.

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

[0183] In some embodiments, in response to Figure 4C As shown in the production control 431 or Figure 4D For the operation of the confirmation control 434A shown, the electronic device 100 can 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 process of making 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 making 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.

[0184] 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 an operation for determining that the current location is the starting point, the electronic device 100 may obtain 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 that the moved location is the starting point. The embodiment of the present application does not limit the method by which the electronic device 100 determines the starting point when making an AR route.

[0185] like Figure 4E As shown, 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 .

[0186] The image display area 441 may be used to display images captured by the camera. For example, in a scenario where an AR route is created from a residential gate to a home, the residential gate is the starting point of the AR route. The user may stand at the residential gate and start collecting data for creating an AR route. The user may start from the residential gate, walk along the route he or she wishes to create, and hold the electronic device 100 to capture the scenery that can be seen in the direction of travel. Figure 4E As shown, when the user is at the starting point (i.e., the gate of the community), the direction of the route is to enter the community through the gate of the community. At this time, when the shooting direction of the electronic device 100 is consistent with the traveling direction, the electronic device 100 can capture images about the gate of the community.

[0187] The annotation control area 442 may include one or more annotation controls. One annotation control may be used to add a travel annotation for indicating a travel direction or other travel information when making an AR route. For example, the annotation control area 442 may include a direction annotation control 442A, an elevator annotation control 442B, and a stair annotation control 442C.

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

[0189] 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.

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

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

[0192] In the process of making an AR route, the electronic device 100 can perform image analysis on the captured image. Among them, the electronic device 100 can identify whether the image contains key points. When the image is identified to contain key points, the electronic device 100 can prompt the user to add a travel annotation for the frame image.

[0193] For example, in Figure 4E The image displayed in the image display area 441 is an image P1 about the gate of the community. When located at the gate of the community shown in the image P1, the direction of travel may include forward, left turn and right turn. It can be understood that the above image P1 is taken when the shooting direction of the electronic device 100 is toward the gate of the community. That is, when shooting the image P1, the user may be facing the gate of the community. The above-mentioned direction of travel when located at the gate of the community shown in the image P1 may represent the direction of travel through the gate of the community to enter the community.

[0194] The electronic device 100 can perform image analysis on the image P1 to determine that the image P1 contains key points. Figure 4E The illustrated user interface 440 displays a note adding prompt 443. The note adding prompt 443 can be used to prompt the user to add a travel note at the current location.

[0195] In a possible implementation, when the image P1 is identified to contain key points, the electronic device 100 may stop the captured image in the image display area 441 at the captured image of the image P1 and prompt the user to add a moving annotation. The user may add a moving annotation using the annotation control in the annotation control area 442 according to the annotation adding prompt 443. The electronic device 100 may determine the moving direction according to the moving annotation added by the user. For example, in response to Figure 4E As shown, for the operation of the forward control in the direction annotation control 442A, 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 the image P1. The association relationship between the forward direction of travel and the image P1 can be used to indicate that the direction of travel is forward when the AR navigation captures an image matching the image P1.

[0196] 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 .

[0197] In another possible implementation, when the image P1 is identified to contain 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 moving annotation. Figure 4E The operation of adding a travel annotation by the user is detected within a preset time period (such as 3 seconds, 5 seconds, 6 seconds, etc.) after the annotation adding prompt 443 shown. When the operation of adding a travel annotation by the user 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 operation of adding a travel annotation by the user is not detected within the above-mentioned preset time period, the electronic device 100 can determine the travel direction based on multiple frames of images taken 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.

[0198] 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.

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

[0200] 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 the AR route data, they can provide direction guidance based on information such as the display position and indicated direction of the travel direction indicator.

[0201] For example, in response to Figure 4E As shown in the figure, for the operation of the forward control in the direction annotation control 442A, the electronic device 100 can display in the image display area 441 Figure 4F Direction of travel indicator 449A is shown.

[0202] like Figure 4FAs shown, the traveling direction indicator 449A can be displayed on the image at the position of entering the cell from the cell gate, which can be used to indicate that the traveling direction is straight, entering the cell from the cell gate. Among them, the user can adjust the display position, indication direction and other information of the traveling direction indicator 449A. For example, in response to the operation of moving the traveling direction indicator 449A to the left, the electronic device 100 can move the traveling direction indicator 449A to the left. For another example, in response to the operation of rotating the traveling direction indicator 449A, the electronic device 100 can rotate the traveling direction indicator 449A, thereby adjusting the direction indicated by the traveling direction indicator 449A.

[0203] In some embodiments, the user can actively add travel notes without being prompted by the electronic device 100 to add travel notes.

[0204] like Figure 4G As shown, the electronic device 100 can display the image captured by the camera in real time in the image display area 441. In the process of collecting data for making an AR route, the user can keep the shooting screen of the electronic device 100 as the front screen of the user's walking route, and walk along the route he wants to make. Figure 4G When the position of the image in the image display area 441 is displayed, the user can add a running annotation through the annotation control in the annotation control area 442. For example, in response to Figure 4G As shown, by operating the right turn control in the direction annotation control 442A, the electronic device 100 can determine that the direction of travel is a right turn. The electronic device 100 can associate the direction of travel of the right turn with a frame of image captured when the above-mentioned adding the travel annotation is received. Alternatively, the electronic device 100 can associate the direction of travel of the right turn with any frame of image captured within time period 1. The above-mentioned time period 1 may include a preset time period (such as 3 seconds, 4 seconds, etc.) before receiving the above-mentioned adding the travel annotation, and a preset time period after receiving the above-mentioned adding the travel annotation.

[0205] Optional, in response to Figure 4G As shown in the figure, for the operation of the right turn control in the direction annotation control 442A, the electronic device 100 can display the right turn control in the image display area 441. Figure 4H Direction of travel indicator 449B is shown.

[0206] like Figure 4H As shown, the traveling direction indicator 449B can be displayed on the road in the image, and can be used to indicate that the traveling direction is to turn right. Among them, the user can adjust the display position, indication direction and other information of the traveling direction indicator 449B. For example, in response to the operation of adjusting the turning angle of the traveling direction indicator 449B, the electronic device 100 can adjust the turning angle of the traveling direction indicator 449B.

[0207] like Fig. 4I As shown, the image displayed 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 Figure 4J The prompt box 445 is used to prompt the user to mark the floor to be reached by taking the elevator. The prompt box 445 may include a floor input area 445A and a confirmation control 445B. The floor input area 445A may be used to input floor information (such as the 11th floor). In response to the operation of the confirmation control 445B, the electronic device 100 may determine the elevator information and compare the elevator information with the elevator information received. Fig. 4I Alternatively, the electronic device 100 may associate the elevator information with any frame of image captured during time period 2. The above time period 2 may include the time period when the elevator information is received. Fig. 4I The preset time period (such as 3 seconds, 4 seconds, etc.) before the operation of the elevator marking control 442B is shown, and after receiving Fig. 4I The preset time period after the operation of the elevator marking control 442B is shown. The above elevator information may include the floor information reached by taking the elevator.

[0208] like Figure 4K As shown, in the process of the user making an AR route, when the end point is reached, 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.

[0209] like Figure 4K As shown, the electronic device 100 may also display a prompt box 446. The prompt box 446 may be used to prompt the user to name the created AR route. The prompt box 446 may include a route name input area 446A and a confirmation control 446B. The route name input area 446A may be used to input the name of the AR route. The confirmation control 446B may be used to determine the name in the route name input area 446A as the aforementioned Figure 4E to Figure 4K The name of the AR route created by the scene shown.

[0210] 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 ).

[0211] 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 according to the travel annotation with the corresponding image.

[0212] For example, Figure 4M As shown, the electronic device 100 can display the image captured by the camera in real time in the image display area 441. Figure 4M The image displayed in the image display area 441 may be an image P2 of a road inside a community. On the road inside the community shown in the image P2, the travel direction may include going forward and turning right. The electronic device 100 may perform image analysis on the image P2 and determine that the image P2 contains key points. Therefore, the electronic device 100 may display Figure 4M The annotation adding prompt 447 is shown. The annotation adding prompt 447 can be used to prompt the user to add travel annotations. The electronic device 100 can detect the user's operation of adding travel annotations within a preset time period after the annotation adding prompt 447 is displayed. When the user's operation of adding travel annotations 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 P2. For example, after the electronic device 100 displays the annotation adding 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 of the above-mentioned right turn process through the camera. Figure 4NThe image presented in the image display area 441 shown may be the image corresponding to the above-mentioned right turn. The electronic device 100 may perform image analysis on multiple frames of images captured within a preset time period after prompting the user to add a travel annotation, and determine that the user has turned right. Alternatively, the electronic device 100 may determine that the electronic device 100 has deflected to the right based on data collected by a motion sensor (such as a gyroscope sensor) within a preset time period after the user has added a travel annotation, thereby determining that the user has turned right. The electronic device 100 may compare the direction of the right turn with the direction of the right turn. Figure 4M The association of the right-turn direction with the image P2 may indicate that the user will need to turn right when the user is at the position shown in the image P2 on the AR route.

[0213] After the electronic device 100 automatically adds the travel annotation, it can display Figure 4N The prompt box 448 is shown. The prompt box 448 can be used to prompt 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 can also respond to the user's operation of canceling the travel annotation and cancel the travel annotation automatically added by the electronic device 100 or manually added by the user.

[0214] 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 according to the added travel annotation. The travel direction indicator can refer to the aforementioned Figure 4F The direction of travel indicator 449A shown, Figure 4H The travel direction indicator 449B shown is not described in detail here.

[0215] Figure 5A The following is a flowchart of an AR route creation method provided in an embodiment of the present application.

[0216] like Figure 5A As shown, the AR route making method may include steps S511 to S523. Among them:

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

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

[0219] The user operation of starting the AR route creation function can refer to the above Figure 4C Operation of production control 431 is shown.

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

[0221] The focal length can be used to measure the actual size of the scene in the image captured by the camera. For example, the electronic device 100 can determine the actual width of the road according to the pixel width of the road in the image and the focal length.

[0222] 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.

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

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

[0225] Step S514 and step S515 may refer to the aforementioned Figure 4E to Figure 4N Description of the illustrated embodiment.

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

[0227] In a 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 direction of travel based on multiple frames of images taken after the key point is identified and / or the motion data of the electronic device 100 (such as the offset angle), thereby associating the direction of travel 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 in the above-mentioned right turn process. The electronic device 100 can determine that the direction of travel is a right turn based on this series of images. Therefore, the electronic device 100 can associate the direction of travel of the right turn with a 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 in the above-mentioned right turn process through a gyroscope sensor. The offset angle can indicate that the electronic device 100 turns right. Therefore, the electronic device 100 can determine that the traveling direction is a right turn, and associate the traveling direction of the right turn with a frame of image in which the key point is identified.

[0228] It can be seen that during the data collection stage of making an AR route, the electronic device 100 can automatically add travel annotations without the user having to manually add travel annotations. This can not only improve the accuracy of AR route making, but also simplify the operation of making an AR route for the user. It is easier and more convenient for the user to make an AR route.

[0229] 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.

[0230] In a 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 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 frame extraction analysis can effectively reduce the amount of calculation of the electronic device 100 and improve the efficiency of AR route production.

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

[0232]

[0233] Table 1

[0234] 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 make an 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 storage format of road features is not limited in the embodiments of the present application.

[0235] The traveling direction of a frame of image can be determined based on the traveling annotation added to the frame of image. In addition to the traveling direction, the traveling annotation can also be used to determine other traveling information such as the elevator arrival floor, the staircase arrival floor, etc. Figure 4E The travel annotation added by the direction annotation control 442A shown can be used to determine the travel direction. Figure 4E The travel annotation added by the elevator annotation control 442B shown can be used to determine the elevator arrival floor. In other words, the road feature of the above-mentioned one frame of image can include travel information. The travel information can include one or more of the following: travel direction, elevator arrival floor, stair arrival floor, etc.

[0236] The road width of a frame image may represent the width of the road captured in this frame image. The road width may be used to determine the center position of the road on the AR route. In this way, the electronic device 100 may 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 when performing AR navigation.

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

[0238] In some embodiments, the road features of a frame of image may also include key points. For example, the electronic device 100 may identify key points on a frame of image. The electronic device 100 may store the information of the key points and incorporate the information of the key points into the road features of this frame of image. The information of a key point may include one or more of the following: the position of the key point on the image, the direction of travel contained in the position of the key point, etc.

[0239] Please refer to Figure 5B , Figure 5B The road features of the image on the AR route provided by the embodiment of the present application are exemplified.

[0240] In a possible implementation, the electronic device 100 may determine the start and end point of the AR route. The start and end point may be determined based on the location of the electronic device 100 when the electronic device 100 detects the user operation of starting and ending the collection of data for making the AR route. The electronic device 100 may determine the road features based on the images taken and the travel annotations added during the process of making the AR route from the start to the end point.

[0241] like Figure 5B As shown, 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 also 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, which can represent the altitude. The two-dimensional coordinate axis is used as an example for explanation here.

[0242] like Figure 5B As shown, point A1 is located at the origin of the coordinate axis, which 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 a1th frame image. Image 531 can be the aforementioned Figure 4E The image displayed in the image display area 441 is shown. Figure 4EIt can be seen that image 531 may be associated with travel information determined based on the travel annotation. The travel information may include a forward travel direction. Image 531 may include a road entering the community. The electronic device 100 may determine the actual width of the road (such as 5 meters). The electronic device 100 may also determine the road position of image 531 based on image 531. The road position of image 531 may be represented by the coordinates of point A1 in the coordinate axis. Therefore, the electronic device 100 may determine the road features of image 531, such as the timestamp, frame number, travel information, road width, and road position. The electronic device 100 may store the road features of 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).

[0243] Point A2 is a location point on the AR route. The electronic device 100 captures an image 532 at point A2. Image 532 may be captured at time t2 and is the a2th frame image. Image 532 may be the aforementioned Figure 4G The image displayed in the image display area 441 is shown. Figure 4G It can be seen that image 532 may be associated with travel information determined based on travel annotations. The travel information may include a rightward travel direction. Image 532 contains roads 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 taken 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 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).

[0244] Point A3 is another location point on the AR route. The electronic device 100 captures an image 533 at point A3. Image 533 may be captured at time t3 and is the a3th frame image. Image 533 may be the aforementioned Fig. 4I The image displayed in the image display area 441 is shown. Fig. 4IIt can be seen that image 533 may be associated with travel information determined based on travel annotations. The travel information may include elevator arrival floor information (such as elevator 11th floor). Image 533 contains an elevator. The electronic device 100 can determine the building identification (such as an elevator) of image 533. The electronic device 100 can also determine the road position of image 533 based on image 533 and the image taken between point A3. The road position of image 533 can be represented by the coordinates of point A3 in the coordinate axis. Therefore, the electronic device 100 can determine the road features of image 533, such as the timestamp, frame number, travel information, building identification, and road position. The electronic device 100 can store the road features of 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 Figure 5B The curve 500 shown may represent the path of the AR route. Among them, the curve 500 may be a curve starting from point A1, ending at point A4, and including point A2 and point A3. The coordinates of each point on the curve 500 may represent the position of each point on the AR route. In one possible implementation, the electronic device 100 may 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.

[0245] 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 that he or she wants to make, the user can view the process of the gradual generation of the path of the AR route.

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

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

[0248] In a possible implementation, the electronic device may determine the motion data of the electronic device 100 according to the data collected by the gravity sensor, the acceleration sensor, and the gyroscope sensor. The motion data of the electronic device 100 may include a deviation angle, a moving distance, and the like.

[0249] Without being 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 .

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

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

[0252] In addition to prompting the user to add a moving annotation when the image is identified to contain key points, the electronic device 100 may also prompt the user to add a moving annotation when the offset angle is greater than a preset angle. Figure 4E The value of the preset angle may be, for example, 50°, 60°, etc. The embodiment of the present application does not limit the value of the preset angle.

[0253] In one possible implementation, when the user is prompted 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 the user is prompted to add travel annotations.

[0254] If the user's operation of adding a travel annotation is detected within the above-mentioned 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. The above-mentioned time period 3 may be a preset time period before the deviation angle is detected to be greater than the preset angle, and a preset time period after the deviation angle is detected to be greater than the preset angle.

[0255] Optionally, if the user's operation of adding a travel annotation is not detected within the above-mentioned preset time period, the electronic device 100 can automatically add a travel annotation according to the offset angle of the electronic device 100, wherein the electronic device 100 can associate the travel direction determined according to 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 deflected to the right based on the current travel direction. Then, the electronic device 100 can determine that the travel direction is to the right based on the offset angle.

[0256] In a 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 time 1. Based on the offset angle at this time 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 time 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 time 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.

[0257] 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.

[0258] In a 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 deviation 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 again to add a moving annotation or automatically add a moving annotation. 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 deviation 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.

[0259] It is understandable that at the location where the travel direction needs to be changed on the AR route (such as the location of a turn), the electronic device 100 usually captures an image containing key points when collecting data. After that, after the user changes the travel direction, the electronic device 100 will detect that the offset angle is greater than the preset angle. The above method can avoid prompting the user to repeatedly add travel annotations at a location where the travel direction changes, thereby improving the user experience during the data collection stage.

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

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

[0262] Timestamp Offset Angle

[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 moving distance information in the process of making the AR route, where the moving distance information includes a timestamp and a moving distance.

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

[0268] Timestamp Moving distance

[0269] Table 3

[0270] The electronic device 100 may store one or more pieces of moving distance information. The moving distance in one piece of moving distance information may represent the distance from the starting point of the AR route to a location on the AR route (such as the aforementioned Figure 5B The timestamp of a piece of moving distance information may be the time when the electronic device 100 reaches the position corresponding to the moving distance in the piece of moving distance information on the AR route.

[0271] In a possible implementation, in addition to the timestamp and the moving distance, a moving 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 the direction of travel based on the travel annotation, or may determine the change in the 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.

[0272] 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 journey 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 journey 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 long in the current direction of travel before changing the direction of travel.

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

[0274] S522. The electronic device 100 sends the road features, offset information, and moving distance information stored in the process of making the AR route to the server 200.

[0275] S523: The server 200 generates an AR route according to the road features, the offset information, and the moving distance information.

[0276] In a possible implementation, the server 200 may fuse the above-mentioned road features, offset information, and moving distance information based on the timestamp. Specifically, the server 200 may determine the path 1 of the AR route based on the received road features. The path 1 may be used to represent the positions of the points passed from the starting point of the AR route to the end point. Path 1 may include a timestamp and a coordinate 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 the path 2 of the AR route based on the received offset information and moving distance information. The path 2 may also include a timestamp and a coordinate 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 be used as the path of the AR route generated by the server 200. The 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 coordinates corresponding to the timestamp in path 3. For example, the server 200 may select the coordinate 1 corresponding to the timestamp t1 in path 1, and the coordinate 2 corresponding to the timestamp t1 in path 2. The server 200 may calculate the mean of the coordinate 1 and the coordinate 2 to obtain the coordinate 3. The server 200 may determine the coordinate corresponding to the timestamp t1 in path 3 as the coordinate 3. Not limited to calculating the mean, the server 200 may also obtain the path 3 by fusing the above-mentioned path 1 and path 2 using other methods.

[0277] The server 200 may generate an AR route and obtain AR route data. The AR route data may include a path from the starting point to the end point (such as the above-mentioned path 3). 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.

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

[0279] 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 the images taken from the starting point to the end point without using the data collected by the motion sensor.

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

[0281] By the above Figure 5A It can be seen from the method shown that the present application can make an AR route by obtaining the road features and the motion data of the electronic device 100 on the AR route to be made. 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 make 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 made 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 positioning signals are poor, the above AR route data can provide users with accurate AR navigation services.

[0282] Personalize AR route

[0283] In some embodiments, after the user creates an AR route using the electronic device 100, the user can also personalize the AR route, for example, setting an AR guide in the AR route, key point turning effects, a welcome message and / or animation at the starting point, a closing message and / or animation at the end point, scenery along the route, and the like.

[0284] Fig. 6A and Figure 6B Some schematic diagrams of scenarios for personalized AR route settings are shown as examples.

[0285] like Fig. 6A As shown, the electronic device 100 can display a user interface 610. The user interface 610 can refer to the aforementioned Figure 4C The user interface 430 shown in FIG. 610 may display an AR route option 611. The AR route corresponding to the AR route option 611 may be the aforementioned Figure 4C to Figure 4LThe AR route created by the scene shown.

[0286] In some embodiments, in response to an operation on the AR route option 611 (eg, a long press operation), the electronic device 100 may display Fig. 6A The setting control 612 shown. The setting control 612 can be used to trigger the electronic device 100 to personalize the AR route corresponding to the AR route option 611.

[0287] In response to an operation (eg, a click operation) on the setting control 612, the electronic device 100 may display Figure 6B The user interface 620 shown. The user interface 620 may include an AR guide setting area 621, a key point turning special effect setting area 622, a starting point welcome message setting area 623, a confirmation control 624, and a cancel control 625.

[0288] The AR guide setting area 621 may include one or more AR guide options. For example, AR guide option 621A, AR guide option 621B, AR guide option 621C. The above-mentioned AR guide options can be used to set the guide in the 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, etc. 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.

[0289] The key point turning effect setting area 622 may include one or more turning effect options. For example, turning effect option 622A, 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 direction guidance for 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.

[0290] The starting point welcome message setting area 623 may include a welcome message input control 623A. The welcome message input control 623A may be used to input the starting point welcome message. The above starting point welcome message may be displayed when AR navigation starts. For example, the starting point welcome message may 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 may also be displayed when AR navigation starts.

[0291] Figure 6B The personalized settings shown are only exemplary descriptions of embodiments of the present application. The electronic device 100 may also provide more or less personalized settings 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 may also provide controls for setting the end point ending 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 ending remarks and end point animations can be used to display at the end of AR navigation. The scenery effects on both sides of the route can be used to display on both sides of the road in the shooting picture during AR navigation. The 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 settings content provided by the electronic device 100.

[0292] The confirmation control 624 may be used to trigger the electronic device 100 to personalize the AR route according to the personalized setting content 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 Figure 6B The AR guide corresponding to the AR guide option 621A shown in the figure sets the key point turning effect of the AR route to Figure 6B The turning effect corresponding to the turning effect option 622B is shown, and the starting point welcome message is set to Figure 6B "Welcome to my home" is shown.

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

[0294] By the above Fig. 6A and Figure 6B As can be seen from the scenario shown, after making an AR route, the user 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 personalization of the AR route can also better inspire users to make AR routes.

[0295] Figure 6C to Figure 6E Some schematic diagrams of scenarios for sharing AR routes are shown as examples.

[0296] like Figure 6C As shown, the electronic device 100 may display a user interface 610. The user interface 610 may include an AR route option 611. Figure 6C The operation of selecting the AR route option 611 is shown, and the electronic device 100 may display Fig.6D User interface 610 is shown.

[0297] like Fig.6DAs shown, the AR route option 611 is selected. The user interface 610 may also include a share control 613 and a delete control 614.

[0298] 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.

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

[0300] For example, when the AR route option 611 is selected, in response to the operation of the share control 613, the electronic device 100 may display Fig. 6E The user interface 630 shown in FIG. 6A may be a user interface of a social communication application. The user interface 630 may include a search control 631 and a contact list 632.

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

[0302] The contact list 632 may include one or more contact options. For example, the contact option 632A. In response to the operation of the contact option 632A, the electronic device 100 may Fig.6D The AR route corresponding to the AR route option 611 is shared with the contact corresponding to the contact option 632A.

[0303] Figure 7 A flowchart of a method for sharing an AR route provided in an embodiment of the present application is exemplified.

[0304] like Figure 7 As shown, the method may include steps S711 to S715.

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

[0306] The user operation of sharing AR route 1 can refer to the above Fig.6D The operation of the sharing control 613 is shown.

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

[0308] In a possible implementation, the electronic device 100 may display a prompt box. The prompt box may be used to inquire whether to personalize the AR route 1. If it is detected that the user needs to personalize the AR route 1, the electronic device 100 may execute the following step S713. If it is detected that the user refuses to personalize the AR route 1, the electronic device 100 may execute the following step S714.

[0309] S713 . The electronic device 100 personalizes the AR route 1 according to the user operation for personalizing the AR route 1 .

[0310] For user operations for personalized settings, please refer to the above Figure 6B The operation shown.

[0311] In a possible implementation, the electronic device 100 may determine the personalized setting data according to the user operation for performing the personalized setting. Then, the electronic device 100 may send the personalized setting data to the server 200. The server 200 may personalize the AR route 1 according to the personalized setting data to obtain the personalized AR route 1 data. Optionally, the electronic device 100 may also personalize the AR route 1 according to the personalized setting data to obtain the personalized AR route 1 data.

[0312] It is understandable that the above steps S712 and S713 are optional. After receiving the user operation of sharing the AR route 1, the electronic device 100 may also directly execute step S714. The above step S713 may also be independent. The electronic device 100 may provide options and / or controls for performing personalized settings in response to the user operation requesting personalized settings for the AR route 1. Then, the electronic device 100 may personalize the AR route 1 according to the user operation for performing personalized settings. The above user operation requesting personalized settings for the AR route 1 may refer to the aforementioned Fig. 6A User actions shown.

[0313] 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.

[0314] In a 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 connection, 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 by itself.

[0315] 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.

[0316] 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 .

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

[0318] The specific method of the above AR navigation will be introduced in the subsequent embodiments, but will not be expanded here.

[0319] The electronic device 101 may store the indication information and / or the 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.

[0320] By the above Figure 7It can be seen from the method shown that after the user makes 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 the user makes an AR route with the end point being his or her home, the personalized AR route can be shared with relatives and friends. 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 makes an AR route with the end point being his or her own shop, he or she can use a 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.

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

[0322] AR Navigation

[0323] Figure 8A to Figure 8L Schematic diagrams of some AR navigation scenarios provided in embodiments of the present application are exemplified.

[0324] In some embodiments, the electronic device 100 can share the AR route with the electronic device 101. Fig. 6E The device of the contact (ie, the user named "Zhang San") corresponding to the contact option 632A is taken as an example for explanation.

[0325] like Fig. 8A As shown, 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". Message 812 can be sent from the user corresponding to the contact name 811 to the user to which the electronic device 101 belongs. Message 812 may include indication information of the AR route. Here, the AR route is the AR route named "from the gate of the first community to the home" in the aforementioned embodiment to introduce the AR navigation method provided in the embodiment of the present application.

[0326] In one possible implementation, in response to Fig. 8A As shown, by operating the message 812 (eg, clicking), the electronic device 101 can obtain AR route data. The electronic device 101 can use the AR route data to provide an AR navigation server.

[0327] Specifically, when the AR route data is obtained, the electronic device 101 can 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 can 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 can use the AR route data for AR navigation.

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

[0329] For example, in response to Fig. 8A As shown in the operation of message 812, after the electronic device 101 determines that the current location is not at the starting point of the AR route, the electronic device 101 can display Figure 8B User interface 820 is shown.

[0330] like Figure 8B As shown, the user interface 820 may be a user interface of a map application. The user interface 820 may include a map display area 821. A location marker 821A and an AR route starting point marker 821B may be displayed in the map display area 821. Among them, the location marker 821A may be used to indicate the current location of the electronic device 101. The AR route starting point marker 821B may be determined by the electronic device 101 based on the acquired AR route data. The AR route starting point marker 821B may be used to indicate the location of the starting point of the AR route. For example, the starting point of the AR route may be the gate of the first community. 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.

[0331] The user interface 820 may further 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 to provide 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 a Figure 8C User interface 830 is shown.

[0332] like Figure 8CAs shown, 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 (such as the first community gate) as the end point. The user interface 830 may include starting point information 831, end point information 832, travel mode option area 833, navigation route 834, AR navigation control 835, and start navigation control 836.

[0333] The starting point information 831 may be used to indicate the starting point of the navigation service provided 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.

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

[0335] The travel mode option area 833 may include one or more travel mode options. For example, a walking option 833A, a cycling option, a bus option, etc. The electronic device 101 may provide corresponding navigation services according to the travel mode selection in the travel mode option area 833. For example, the walking option 833A is selected. The electronic device 101 may provide a navigation service for walking from the starting point to the end point.

[0336] 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 .

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

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

[0339] In response to Figure 8C As shown in the operation of the start navigation control 836, such as a click operation, the electronic device 101 can display Fig.8D User interface 840 is shown.

[0340] like Fig.8DAs shown, 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 his real-time location and whether he deviates from the navigation route based on the above navigation information.

[0341] 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.

[0342] When the user Fig.8D The navigation service provided by the electronic device 101 reaches the starting point of the AR route, and the electronic device 101 can detect that the current location of the electronic device 101 is at the starting point of the AR route. The electronic device 101 can display Fig. 8E Prompt box 842 is shown.

[0343] Or, in response to Fig. 8A As shown in the operation of message 812, after the electronic device 101 determines that the current location is at the starting point of the AR route, the electronic device 101 can display Fig. 8E User interface 840 is shown.

[0344] 2. The following describes the situation where the current location of the electronic device 101 is at the starting point of the AR route.

[0345] For example, Fig. 8E As shown, the prompt box 842 can be used to prompt the user that the current location is at the starting point of the AR route and ask the user whether to use the aforementioned Fig. 8A AR navigation is performed on the AR route corresponding to the message 812 shown. 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 can be used to trigger the electronic device 101 to provide AR navigation services according to the AR route data obtained from the message 812. The cancel control 844 can 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 can provide AR navigation services according to the AR route data obtained from the message 812.

[0346] like Fig.8F As shown, when performing AR navigation, the electronic device 101 can turn on the camera and display the 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.

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

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

[0349] 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.

[0350] For example, referring to the aforementioned Figure 6B In the scenario of personalizing the AR route, the content of the starting point welcome message 853 may be "Welcome to my home", the AR guide 854 may be a virtual cat, and the turning effect 855 may be a lightning turning effect. Fig.8F The starting point welcome message 853, AR guide 854, and turning special effects 855 shown are merely exemplary illustrations of the present application and should not constitute a limitation on the present application.

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

[0352] In a possible implementation, the electronic device 101 may perform image recognition on the image captured during the AR navigation process to obtain image features. The electronic device 101 may match the image features with the template image features to determine the target travel direction in real time. The AR route data acquired by the electronic device 101 may include the above-mentioned template image features.

[0353] For example, Figure 8G As shown, the template image includes the image 871 taken by the electronic device 100 at the starting point of the AR route (refer to the Figure 4E The electronic device 101 captures an image 872 at the starting point of the AR route. The image 872 may be, for example, Fig.8F The image displayed in the image display area 852 is shown. The electronic device 101 can match the template image features of the image 871 with the image features of the image 872. Figure 4E and Fig.8F It can be seen that area 871A in image 871 and area 872A in image 872 are substantially the same. That is, the shooting direction of image 872 is biased to the left compared to the shooting direction of image 871. The electronic device 101 can determine, based on the image feature matching results of image 871 and image 872, that the current moving direction of the user at the starting point is the direction in which the current shooting direction of the electronic device 101 is biased to the right.

[0354] 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 acquired by the electronic device 101 may include the road features of the template image.

[0355] like Fig.8F As shown, the electronic device 101 can prompt the user the direction of travel at the current location through the AR guide 854 and the turning effect 855. Fig.8F It can be seen that the AR guide 854 and the turning effect 855 can be used to instruct the user to turn right and adjust the shooting direction of the electronic device 101. Fig.8F The travel direction indicated by the AR guide 854 and the turning effect 855 may be determined by the electronic device 101 based on the result of image feature matching.

[0356] like Figure 8H As shown, when the user Fig.8F When the AR guide 854 and the turning effect 855 indicate turning right, the shooting direction of the electronic device 101 can also be adjusted accordingly. Figure 8H The picture shown is compared with the Fig.8F The shooting screen shown moves to the right. Figure 8H In the scene shown, the electronic device 101 is still at the starting point of the AR route and captures Figure 8H Image 873 in the image display area 852 is shown. That is, image 873 is still the image taken by the electronic device 101 at the starting point of the AR route. The electronic device 101 can match the template image features of image 871 with the image features of image 873. By comparing image 871 and image 873, it can be seen that the contents of image 871 and image 873 are basically the same. That is, the shooting direction of image 873 is basically the same as the shooting direction of image 871. The 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 based on the image feature matching results of image 871 and image 873.

[0357] Furthermore, from the aforementioned Figure 4E As can be seen from the scene shown, 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 direction of travel of the user at the current position is forward.

[0358] like Figure 8HAs shown, the electronic device 100 can display a moving prompt box 857. The moving prompt box 857 can be used to prompt the user of the moving direction. For example, the content in the moving 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 moving direction at the current location through the AR guide 854 and the turning special effect 862. Figure 8H It can be seen that the AR guide 854 and the turning effect 862 can be used to instruct the user to go straight. Figure 8H The travel direction indicated by the AR guide 854 and the turning effect 862 can be determined by the electronic device 101 based on the result 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).

[0359] In one possible implementation, the AR route data may include a travel direction indicator when adding a travel annotation (see Figure 4F The direction of travel indicator 449A shown, Figure 4H When the electronic device 101 performs AR navigation according to the AR route data, the turning effect can be displayed according to the display position and the indicated direction of the traveling direction indicator 449B on the image. For example, Figure 8H The display position and indicated direction of the turning effect 862 shown in the image can be respectively Figure 4F The display position of the traveling direction indicator 449A shown on the image is consistent with the indicated direction. It can be seen that when the user adds traveling annotations when making an AR route, it can effectively provide direction guidance for other users during the AR navigation process.

[0360] It can be seen from the above method that during the AR navigation process, the electronic device 101 can perform image feature matching on the image captured during the navigation process and the template image at the same position in real time, and prompt the user with the direction of travel based on the image feature matching result. In addition, the electronic device 100 can also provide travel direction guidance in combination with the above image feature matching result and the travel information in the AR route data.

[0361] It is understandable that the electronic device 101 can correct the user's direction of travel in real time by matching the image features of the image taken during AR navigation with the template image in real time, giving the user a more accurate and intuitive AR navigation experience. Figure 8HIf the user does not see the moving prompt box 857 shown, the user may go in the wrong direction. For example, although the user is at the starting point of the AR route, the user may not be facing the gate of the community. At this time, the user will deviate from the AR route if he goes straight forward according to the direction of travel indicated by the moving prompt box 857. For example, the user may have his back to the gate of the community, and the user will go straight forward away from the gate of the community. This is obviously contrary to the AR route. Therefore, in the AR navigation method provided in an embodiment of the present application, the electronic device 101 can indicate the direction adjusted by the user by matching an image taken at a position with an 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 electronic device 101. In this way, the user does not need to judge how to travel by himself when using AR navigation.

[0362] like Figure 8I As shown, the user can travel according to the guidance of the AR navigation in the electronic device 101. When guiding the user to a location on the AR route, the electronic device 101 can match the image taken at this location with the image at this location in the template image. Figure 8I The following description will be made by taking as an example the position where the image in the image display area 852 is located as position 1 on the AR route.

[0363] 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 Figure 8J The image 874 shown. The image 874 can refer to the aforementioned Figure 4G The image shown is an image in the image display area 441. The image captured by the electronic device 101 at position 1 may be Figure 8J The image 875 shown. The image 875 can be Figure 8I The image in the image display area 852 is shown. The electronic device 101 can match the template image features of the image 874 with the image features of the image 875. Figure 8J It can be seen that the contents of image 874 and image 875 are substantially the same. That is, the shooting direction of image 874 is substantially the same as the shooting direction of image 875. The electronic device 101 can determine that the moving direction of the user at position 1 is the moving direction associated with image 874 in the template image based on the image feature matching results of image 874 and image 875.

[0364] In some embodiments, the electronic device 101 may also match the road features of image 874 with the road features of image 875. Among them, 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 identification, 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 identification, etc. The embodiment of the present application does not limit the method of matching the above road features. When it is determined that the road features of image 874 match the road features of image 875, the electronic device 101 may determine that the direction of travel of the user at position 1 is the direction of travel associated with image 874 in the template image.

[0365] In some embodiments, the electronic device 101 may combine the above-mentioned road features and image features to determine whether the image 874 matches the image 875. When the road features of the image 874 match the road features of the image 875, and the image features of the image 874 match the image features of the image 875, the electronic device 101 may determine that the direction of travel of the user at position 1 is the direction of travel associated with the image 874 in the template image.

[0366] Furthermore, from the aforementioned Figure 4G As can be seen from the scene shown, image 874 is associated with a direction of travel determined based on the travel annotation. For example, the direction of travel is right. 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 874) at AR route position 1 to determine that the user's direction of travel at position 1 is right.

[0367] like Figure 8I As shown, the electronic device 101 can display a moving prompt box 858. The moving prompt box 858 can be used to prompt the user the direction of travel. For example, the content in the moving 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. Figure 8I The AR guide 854 and the turning effect 859 in the figure can both be used to prompt the user to turn right. Figure 8I The travel direction indicated by the AR guide 854 and the turning effect 859 shown 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).

[0368] Optionally, the display position and indicated direction of the turning effect 859 on the image can be respectively the same as the above Figure 4H The display position and indicated direction of the traveling direction indicator 449B shown on the image remain consistent.

[0369] It should be noted that, if the user does not personalize the AR route, the electronic device 101 may display the above turning effect 859 according to the default effect. The display style of the above default effect can refer to the above Figure 4H That is, the display style of the turning effect 859 can be the same as the display style of the travel direction indicator 449B shown in FIG. Figure 4H The display style of the shown travel direction indicator 449B is the same.

[0370] like Figure 8K As shown, the user can go to position 2 according to the guidance of the AR navigation in the electronic device 101. The above position 2 can be taken by the electronic device 101 Figure 8K The image shown in the image display area 852 is where the image is located.

[0371] 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 Figure 8L The image 876 shown. The image 876 can refer to the aforementioned Fig. 4I The image shown is an image in the image display area 441. The image captured by the electronic device 101 at position 2 may be Figure 8L The image 877 shown. The image 877 can be Figure 8K The image in the image display area 852 is shown. The electronic device 101 can match the template image features of the image 876 with the image features of the image 877. Figure 8L It can be seen that the contents of image 876 and image 877 are substantially the same. That is, the shooting direction of image 876 is substantially the same as the shooting direction of image 877. The electronic device 101 can determine, based on the image feature matching results of image 876 and image 877, that the travel information of the user at position 2 is the travel information associated with image 876 in the template image.

[0372] Furthermore, from the aforementioned Fig. 4I and Figure 4J As can be seen from the scene shown, 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. The electronic device 101 can combine the matching results of the above images and the travel information associated with the template image (i.e., image 876) at the AR route position 2 to determine that the user can take the elevator to the 11th floor after arriving at position 2.

[0373] like Figure 8KAs shown, the electronic device 101 can display a moving reminder box 861. The moving reminder box 861 can be used to prompt the user with moving information. For example, the content in the moving reminder box 861 can be "take the elevator to the 11th floor". In addition, Figure 8K The AR guide 854 shown may also be used to prompt the user to take the elevator.

[0374] In one possible implementation, the electronic device 101 may match the image features of an image captured 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 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 captured 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 the travel direction, the electronic device 101 may instruct the user to move in the current shooting direction.

[0375] 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, the user can follow the navigation prompts of the electronic device 101 throughout the process without having to find travel information such as the travel direction by themselves.

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

[0377] Fig. 9 The following is a flowchart of an AR navigation method provided by an embodiment of the present application. Fig. 9 As shown, the AR navigation method may include steps S911 to S916. Among them:

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

[0379] 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 the AR route. The AR route may be an AR route produced using the AR route production method provided in an embodiment of the present application.

[0380] 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.

[0381] 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 acquired by the electronic device 101 may include: the path of the AR route, template image features of each position on the AR route, and travel information determined based on travel annotations on the AR route.

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

[0383] 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.

[0384] The method for the electronic device 101 to prompt the user to go to the starting point of the AR route can refer to the aforementioned Figures 8A to 8D Description of the illustrated embodiment.

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

[0386] S913 . Obtain the real-time path of the user starting from the starting point, and determine the position of the user on the AR route as position A1 according to the real-time path and the path of the AR route.

[0387] The electronic device 101 may obtain the real-time path of the user starting from the starting point of the AR route. The real-time path may change in real time as the user moves. In one possible implementation, the electronic device 101 may 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 real-time path may refer to the aforementioned Figure 5A The method for determining the path of the AR route in step S523 is shown.

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

[0389] The electronic device 101 can determine whether the above-mentioned real-time path is part of the template path. The fact that the real-time path is part of the template path can indicate that the real-time path and the template path match, and the user is traveling along the AR route. The fact that the real-time path is not part of the template path 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 points on the template path that are the same or close to 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.

[0390] 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 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.

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

[0392] The template image at the position A1 mentioned above may represent an image captured at the position A1 during the data collection stage of making an AR route.

[0393] In one possible implementation, the electronic device 101 may capture an image at position A1 (i.e., a real-time image captured at position A1) during AR navigation. 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 performing image analysis 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 image feature matching process may refer to the aforementioned Figure 8F to Figure 8L Description of the illustrated embodiment.

[0394] 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.

[0395] 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.

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

[0397] 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.

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

[0399] The scene in which the electronic device 101 prompts the user to adjust the shooting direction can refer to the aforementioned Fig.8F The scene shown.

[0400] The electronic device 101 may match the real-time image captured after the shooting direction at position A1 is changed with the template image at position A1. That is, the electronic device 101 may execute steps S914 and S915 in a loop until the real-time image captured by the electronic device 101 at position A1 matches the template image at position A1.

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

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

[0403] For example, the traveling information associated with the template image at position A1 is turning right. The electronic device 101 may prompt the user to turn right when the user arrives at position A1. Optionally, the above traveling information may be more specifically turning right at L meters ahead of position A1. The electronic device 101 may prompt the user to turn right at L meters ahead of position A1 when the user arrives at position A1.

[0404] For another example, the travel information associated with the template image at position A1 is to take 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.

[0405] The method for the electronic device 101 to provide travel guidance according to the travel information associated with the template image can refer to the aforementioned Fig.8F , Figure 8I , Figure 8K Introduction to the illustrated embodiment. In one possible implementation, when it is determined that the real-time image captured at position A1 matches the template image at position A1, the electronic device 101 may also provide the user with travel instructions based on the real-time image captured at position A1. For example, the real-time image captured by the electronic device 101 at position A1 is captured in direction F. The travel instructions provided by the electronic device 101 when the user is at position A1 may be used to instruct the user to travel in direction F. Among them, the electronic device 101 may instruct the user to travel in direction F through one or more contents such as an AR guide, a direction indicator, etc.

[0406] 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 method for providing travel guidance at the location A1 described above, which will not be described in detail here.

[0407] By the above Fig. 9 It can be seen from the method shown that when the electronic device 101 provides AR navigation services according to the AR route data, the images taken by the electronic device 101 and the motion data of the electronic device 100 can be used. In this way, AR navigation does not require perfect road data and the electronic device can obtain accurate and stable positioning signals. In the scenario where the road data construction is insufficient and the positioning signal is poor, the AR navigation method provided by this application can also provide users with accurate AR navigation services.

[0408] It is understandable that the various user interfaces described in the embodiments of the present application are only example interfaces and do not limit the present application scheme. In other embodiments, the user interface may adopt a different interface layout, may include more or fewer controls, and may increase or decrease other functional options, as long as they are based on the same inventive concept provided by the present application, they are all within the scope of protection of the present application.

[0409] 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.

[0410] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned 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

Cited By

  • Parking lot navigation method, device and equipment and readable storage medium

    CN121148185A