Navigation method, device, computer storage medium and computer program product
By monitoring the posture changes of the mobile terminal and the camera optical axis angle, and automatically switching the navigation mode, the problem of inconvenient switching of AR real-life navigation and map navigation mode is solved, and the travel experience and navigation efficiency are improved.
Patent Information
- Application Number
- CN202110643277.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-09
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-06-09
AI Technical Summary
The existing technology is difficult to achieve smooth switching between AR real-life navigation and map navigation modes, resulting in poor travel experience and requires manual switching modes.
By obtaining the real-time attitude information of the mobile terminal, it monitors whether the angle between the camera optical axis and the selected direction reaches the set navigation mode switching angle value, automatically switches the navigation mode, switches from AR real-life navigation to map navigation or vice versa.
It realizes automatic smooth switching of navigation mode, increases the interactivity and fun of the travel experience, reduces manual operations of travel objects, and improves navigation accuracy and efficiency.
Smart Images

Figure CN115460320B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a navigation method, device, computer storage medium, and computer program product. Background Art
[0002] Augmented Reality (AR) uses image processing technology to integrate virtual content with real content in real time, achieving interaction between virtual and real things. AR real scene is an extension and development of virtual reality, adding real environment to virtual reality to create a new experience. AR real scene navigation provides navigation guidance services for travelers by superimposing the real environment and the virtual world on the same screen or space in real time, further improving the travel experience of travelers.
[0003] At present, applications with map navigation capabilities can support both AR real-scene navigation and map navigation. These two modes have their own advantages and disadvantages. How to achieve smooth switching between the two navigation modes is a problem that technical personnel in this field need to solve. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a navigation solution for a mobile terminal to at least partially solve the above problems.
[0005] According to a first aspect of an embodiment of the present application, a navigation method is provided, comprising acquiring real-time posture information of a mobile terminal; determining a posture change of the mobile terminal based on the real-time posture information; and monitoring whether an angle between an optical axis of a camera of the mobile terminal and a selected direction reaches a set navigation mode switching angle value as the posture of the mobile terminal changes, so as to switch the navigation mode, wherein the switching of the navigation mode comprises: switching from an AR real-scene navigation mode to a map navigation mode or switching from a map navigation mode to an AR real-scene navigation mode.
[0006] According to a second aspect of an embodiment of the present application, a navigation device is provided, comprising an acquisition module for acquiring real-time posture information of a mobile terminal; a determination module for determining a posture change of the mobile terminal based on the real-time posture information; and a switching module for monitoring, as the posture of the mobile terminal changes, whether the angle between the camera optical axis of the mobile terminal and a selected direction reaches a set navigation mode switching angle value, so as to switch the navigation mode, wherein the switching of the navigation mode comprises: switching from an AR real-scene navigation mode to a map navigation mode or switching from a map navigation mode to an AR real-scene navigation mode.
[0007] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the navigation method described in the first aspect.
[0008] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the navigation method as described in the first aspect is implemented.
[0009] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising computer instructions, wherein the computer instructions instruct a computing device to perform operations corresponding to the navigation method described in the first aspect.
[0010] According to the navigation scheme provided by the embodiment of the present application, the real-time posture information of the mobile terminal is obtained; the posture change of the mobile terminal is determined according to the real-time posture information; as the posture of the mobile terminal changes, the angle between the camera optical axis of the mobile terminal and the selected direction is monitored to see whether it reaches the set navigation mode switching angle value, so as to switch the navigation mode. The switching of the navigation mode includes: switching from AR real-view navigation mode to map navigation mode or switching from map navigation mode to AR real-view navigation mode. The present application can determine the action of the mobile terminal according to the posture change of the mobile terminal by mode switching, and then monitor whether the angle between the camera optical axis of the mobile terminal and the selected direction reaches the set navigation mode switching angle value. If the angle between the camera optical axis of the mobile terminal and the selected direction reaches the set navigation mode switching angle value, it means that the image acquisition angle of the mobile terminal can capture a richer environment at this time, and the two navigation modes of the mobile terminal are automatically and smoothly switched, so as to convey more spatial images to the travel object, increase interactivity and fun, and do not require the travel object to manually switch, thereby improving the travel experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0012] Figure 1 A flowchart of a navigation method provided in an embodiment of the present application;
[0013] Figure 2 A schematic diagram of the rotation of a mobile terminal provided in an embodiment of the present application;
[0014] Figure 3 An application scenario of a navigation method provided in an embodiment of the present application;
[0015] Figure 4A A schematic diagram of a navigation mode switching method of a mobile terminal provided in an embodiment of the present application;
[0016] Figure 4B A schematic diagram of another method for switching navigation modes of a mobile terminal provided in an embodiment of the present application;
[0017] Figure 5A A schematic diagram of another method for switching navigation modes of a mobile terminal provided in an embodiment of the present application;
[0018] Figure 5B A schematic diagram of another method for switching navigation modes of a mobile terminal provided in an embodiment of the present application;
[0019] Figure 6 A schematic diagram of an effective viewing angle of AR real-scene navigation provided in an embodiment of the present application;
[0020] Fig. 7A A schematic diagram of an AR real-scene navigation mode provided in an embodiment of the present application;
[0021] Figure 7B A schematic diagram of another AR real-scene navigation mode provided in an embodiment of the present application;
[0022] Fig. 8A A schematic diagram of a map navigation mode provided in an embodiment of the present application;
[0023] Figure 8B A schematic diagram of another map navigation mode provided in an embodiment of the present application;
[0024] Fig. 9 A schematic diagram of an effective viewing angle for map navigation provided in an embodiment of the present application;
[0025] Fig.10 A structural block diagram of a navigation device provided in an embodiment of the present application;
[0026] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0028] It should be noted that the first and second in this application are only for distinguishing the names and do not represent an order relationship. They cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features, for example, the first switching angle value and the second switching angle value.
[0029] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0030] Embodiment 1
[0031] The navigation method provided in the first embodiment of the present application is as follows: Figure 1 As shown, Figure 1 A flowchart of a navigation method provided in an embodiment of the present application, the navigation method comprising the following steps:
[0032] Step S101: Acquire real-time posture information of the mobile terminal.
[0033] In the embodiments of the present application, the mobile terminal includes but is not limited to: for example, a mobile phone, a laptop computer, a tablet computer, a personal digital assistant, a camera with a gesture sensor or a gyroscope, a camera with a gesture sensor or a gyroscope, a wearable device (such as glasses, gloves), and other electronic devices.
[0034] The attitude information is used to characterize the position of the mobile terminal in three-dimensional space, which generally includes the pitch angle, heading angle and roll angle of the mobile terminal, as well as the longitude and latitude of the mobile terminal. The real-time attitude information in the embodiment of the present application can be obtained in real time by an attitude sensor or gyroscope set in the mobile terminal, and the embodiment of the present application is not limited to this.
[0035] Step S102: Determine the posture change of the mobile terminal according to the real-time posture information.
[0036] In the embodiment of the present application, the posture change of the mobile terminal can be determined based on the posture information of the mobile terminal collected in real time.
[0037] Step S103: as the posture of the mobile terminal changes, monitor whether the angle between the camera optical axis of the mobile terminal and the selected direction reaches a set navigation mode switching angle value to switch the navigation mode.
[0038] The switching of the navigation mode includes: switching from the AR real-scene navigation mode to the map navigation mode or switching from the map navigation mode to the AR real-scene navigation mode.
[0039] It should be noted that the optical axis of the camera of the mobile terminal represents a straight line passing through the centers of all lenses of the lens group in the camera, and can also be understood as a line between the camera and the object being photographed when shooting. The selected direction can be a vertical direction or a horizontal direction, and the selected direction is related to the posture change of the mobile terminal. For example, if the posture change is the movement of the mobile terminal from the horizontal direction to the vertical direction, the selected direction is the horizontal direction; if the posture change is the movement of the mobile terminal from the vertical direction to the horizontal direction, the selected direction is the vertical direction.
[0040] The change in the posture of the mobile terminal can reflect the rotation direction of the mobile terminal, such as Figure 2 As shown, Figure 2 A schematic diagram of a rotation of a mobile terminal provided in an embodiment of the present application, Figure 2 The posture change of the mobile terminal includes the clockwise or counterclockwise rotation of the mobile terminal around the X-axis. The angle information between the camera optical axis of the mobile terminal and the horizontal or vertical direction can reflect the rotation position of the mobile terminal. For example, taking the mobile terminal as a mobile phone as an example, the travel object holds the mobile phone and rotates around the X-axis. The mobile phone display is used to display AR real scenes and maps, and the rear camera of the mobile phone shoots the surrounding environment in real time. In order to facilitate the travel object to better experience AR real-scene navigation, it can be understood that when the rear camera of the mobile phone shoots the ground, that is, the angle between the camera optical axis and the horizontal direction is 90°, and the navigation mode of the mobile phone is map navigation; when the mobile phone rotates counterclockwise around the X-axis, the angle between the camera optical axis and the horizontal direction slowly decreases. When the rear camera of the mobile phone shoots the front, that is, the angle between the camera optical axis and the horizontal direction is 0°, the navigation mode of the mobile phone is AR real-scene navigation. In an embodiment of the present application, during the rotation of the mobile terminal around the X-axis, the rotation position of the mobile terminal changes, that is, the angle between the camera optical axis and the horizontal direction or the vertical direction changes. If it is monitored that the angle between the camera optical axis of the mobile terminal and the selected direction reaches the set navigation mode switching angle value, the current navigation mode of the mobile terminal is automatically switched.
[0041] In this example, the mobile terminal rotates, and the angle between the camera optical axis of the mobile terminal and the horizontal or vertical direction reaches the set navigation mode switching angle value. When both of the above are met, the navigation mode of the mobile terminal is automatically switched, thereby improving the accuracy of the navigation mode switching.
[0042] The navigation mode switching angle value set in the embodiment of the present application can be appropriately set by a person skilled in the art according to actual needs, or determined by analyzing a large number of switching angle values used when switching the navigation mode of the mobile terminal by processing a large number of angles between the camera optical axis and the horizontal direction or the vertical direction, and the embodiment of the present application is not limited to this.
[0043] like Figure 3 As shown, Figure 3 An application scenario of a navigation method provided in an embodiment of the present application is that a mobile phone moves from a horizontal direction to a vertical direction, the selected direction is the horizontal direction, the mobile phone rotates counterclockwise around the X-axis, and the angle between the camera optical axis and the horizontal direction changes from 90° to 0°. When it is monitored that the angle between the camera optical axis and the horizontal direction reaches the set navigation mode switching angle value α, α is less than 90°, and the navigation mode of the mobile terminal is automatically switched from the map navigation mode to the AR real-scene navigation mode.
[0044] Optionally, step S103 can also be implemented by the following steps: as the posture of the mobile terminal changes, monitor whether the angle between the camera optical axis of the mobile terminal and the vertical line or the horizontal line reaches the set navigation mode switching angle value to switch the navigation mode; wherein the horizontal line is parallel to the ground, the vertical line is perpendicular to the ground, and the camera optical axis, the horizontal line and the vertical line are in the same plane. It should be noted that if the camera optical axis, the horizontal line and the vertical line are not in the same plane, the angle will be calculated as a spatial angle when calculating the angle between the camera optical axis and the horizontal line or the vertical line. The spatial angle is the angle between two non-coplanar straight lines, and the spatial angle cannot truly reflect the rotation position of the mobile terminal. In this example, by setting the camera optical axis, the horizontal line and the vertical line in the same plane, the angle between the camera optical axis and the horizontal line or the vertical line is avoided from being calculated as a spatial angle, thereby reducing the error and improving the accuracy of the calculated angle.
[0045] Optionally, step S103 can also be implemented by the following steps: as the posture of the mobile terminal changes, monitoring whether the angle between the camera optical axis of the mobile terminal and the horizontal plane or the plumb plane reaches a set navigation mode switching angle value to switch the navigation mode. It should be noted that if the horizontal plane and the plumb plane are used, it is not necessary to define the camera optical axis, the horizontal direction and the vertical direction to be in the same plane.
[0046] According to the navigation scheme provided by the embodiment of the present application, the real-time posture information of the mobile terminal is obtained; the posture change of the mobile terminal is determined according to the real-time posture information; as the posture of the mobile terminal changes, the angle between the camera optical axis of the mobile terminal and the selected direction is monitored to see whether it reaches the set navigation mode switching angle value, so as to switch the navigation mode. The switching of the navigation mode includes: switching from AR real-view navigation mode to map navigation mode or switching from map navigation mode to AR real-view navigation mode. The present application can determine the action of the mobile terminal according to the posture change of the mobile terminal by mode switching, and then monitor whether the angle between the camera optical axis of the mobile terminal and the selected direction reaches the set navigation mode switching angle value. If the angle between the camera optical axis of the mobile terminal and the selected direction reaches the set navigation mode switching angle value, it means that the image acquisition angle of the mobile terminal can capture a richer environment at this time, and the two navigation modes of the mobile terminal are automatically and smoothly switched, so as to convey more spatial images to the travel object, increase interactivity and fun, and do not require the travel object to manually switch, thereby improving the travel experience.
[0047] Embodiment 2
[0048] Embodiment 2 of the present application is based on the solution of embodiment 1. Optionally, in an example of the embodiment of the present application, the embodiment of the present application may include the following steps S201-S204.
[0049] Step S201: Acquire real-time posture information of the mobile terminal.
[0050] Step S201 is consistent with step S101 in the first embodiment and will not be described again.
[0051] Step S202: Determine the real-time pitch angle information of the mobile terminal according to the real-time posture information.
[0052] Step S203: Determine the change in the posture of the mobile terminal according to the change in the pitch angle information.
[0053] The posture change includes: moving from a horizontal direction to a vertical direction or from a vertical direction to a horizontal direction.
[0054] The real-time posture information includes the pitch angle of the mobile terminal. The pitch angle information of the mobile terminal reflects the change of the pitch angle of the mobile terminal. The change of the pitch angle of the mobile terminal represents the rotational movement direction of the mobile terminal. For example, if the pitch angle of the mobile terminal does not change, it means that the mobile terminal has not rotated; if the pitch angle of the mobile terminal becomes larger, it means that the mobile terminal rotates counterclockwise, that is, the mobile terminal moves from the horizontal direction to the vertical direction; if the pitch angle of the mobile terminal becomes smaller, it means that the mobile terminal rotates clockwise, that is, the mobile terminal moves from the vertical direction to the horizontal direction.
[0055] For example, Figure 2 As shown, taking the mobile terminal as a mobile phone as an example, the mobile phone rotates around the X-axis, that is, the mobile phone swings back and forth, and the pitch angle of the mobile phone changes, and the pitch angle changes in the range of -180° to 180°. According to the change of the pitch angle information, the posture change of the mobile terminal is determined. For example, if the pitch angle of the mobile phone does not change, it means that the mobile phone does not rotate; if the pitch angle of the mobile phone increases, it means that the mobile phone rotates counterclockwise around the X-axis, that is, the mobile phone moves from the horizontal direction to the vertical direction; if the pitch angle of the mobile phone decreases, it means that the mobile phone rotates clockwise around the X-axis, that is, the mobile phone moves from the vertical direction to the horizontal direction.
[0056] It should be noted that in the embodiment of the present application, the movement of the mobile terminal from the horizontal direction to the vertical direction is the same movement process as the movement of the camera optical axis from a direction perpendicular to the horizontal direction to a direction parallel to the horizontal direction, and they are interchangeable. The movement of the mobile terminal from the vertical direction to the horizontal direction is the same movement process as the movement of the camera optical axis from a direction parallel to the horizontal direction to a direction perpendicular to the horizontal direction, and they are interchangeable.
[0057] Step S204: as the posture of the mobile terminal changes, monitor whether the angle between the camera optical axis of the mobile terminal and the selected direction reaches a set navigation mode switching angle value to switch the navigation mode.
[0058] Step S204 is consistent with step S103 in the first embodiment and will not be described again.
[0059] Optionally, when the navigation mode of the mobile terminal is automatically switched in step S204, it can be specifically implemented in the following two examples.
[0060] Example 1: If the posture change is that the mobile terminal moves from the horizontal direction to the vertical direction, and the selected direction is the horizontal direction, then monitor whether the angle between the camera optical axis of the mobile terminal and the horizontal direction reaches the set navigation mode first switching angle value. If it reaches, switch the navigation mode of the mobile terminal from the map navigation mode to the AR real scene navigation mode, wherein the set navigation mode first switching angle value is less than 90°. Alternatively, the navigation mode of the mobile terminal can be switched from the AR real scene navigation mode to the map navigation mode.
[0061] Among them, when the mobile terminal moves from the horizontal direction to the vertical direction, the angle between the camera optical axis of the mobile terminal and the horizontal direction changes from 90° to 0°. If the angle between the camera optical axis of the mobile terminal and the horizontal direction reaches the set navigation mode first switching angle value, the navigation mode of the mobile terminal is switched from the map navigation mode to the AR real scene navigation mode, which can be understood as the angle between the camera optical axis and the horizontal direction changes from greater than the first switching angle value to the first switching angle value, and the navigation mode of the mobile terminal is switched from the map navigation mode to the AR real scene navigation mode.
[0062] like Figure 4A and Figure 4B As shown, Figure 4A and Figure 4B The present application provides a method for switching navigation modes of a mobile terminal. Figure 4A and Figure 4B α represents the first switching angle value, and mobile phone represents the mobile terminal. Figure 4A 4.1 represents the three-dimensional space. The mobile phone swings back and forth, that is, the mobile phone rotates around the X axis, and the camera optical axis is in the YOZ plane. In this example, the mobile terminal moves from the horizontal direction to the vertical direction. For ease of understanding, Figure 4A 4.2 represents the YOZ two-dimensional plane, the Y axis is the horizontal direction, and the Z axis is the vertical direction. Figure 4B 4.3 and 4.4 respectively represent two scenarios in which the camera optical axis moves from a direction perpendicular to the horizontal direction to a direction parallel to the horizontal direction. Figure 4B In 4.3, the pitch angle of the mobile phone varies from 0° to 90°. When the mobile phone rotates counterclockwise, the angle between the optical axis of the mobile phone camera and the horizontal direction changes from 90° to 0°. Figure 4B In 4.4, the pitch angle of the mobile phone varies from 180° to 90°. The mobile phone rotates clockwise, and the angle between the optical axis of the mobile phone camera and the horizontal direction changes from 90° to 0°. When the angle between the optical axis of the camera and the horizontal direction changes from greater than α to α, the navigation mode of the mobile phone is switched from the map navigation mode to the AR real scene navigation mode. α is less than 90°. For example, α can be 20°, 25° or 30°, etc.
[0063] In this example, the first switching angle value can be appropriately set by a person skilled in the art according to actual needs, or determined by analyzing a large number of switching angle values used when switching the navigation mode of the mobile terminal by processing a large number of angles between the camera optical axis and the horizontal direction, and the embodiments of the present application are not limited to this.
[0064] Optionally, in an example of an embodiment of the present application, if the angle between the camera optical axis of the mobile terminal and the horizontal direction does not reach the set navigation mode first switching angle value, the navigation mode of the mobile terminal is maintained in the map navigation mode; if the angle between the camera optical axis of the mobile terminal and the horizontal direction exceeds the set navigation mode first switching angle value, the navigation mode of the mobile terminal is maintained in the AR real scene navigation mode.
[0065] Among them, the angle between the camera optical axis of the mobile terminal and the horizontal direction does not reach the set first switching angle value of the navigation mode, which can be understood as the angle between the camera optical axis and the horizontal direction is greater than the first switching angle value and less than or equal to 90°; the angle between the camera optical axis of the mobile terminal and the horizontal direction exceeds the set first switching angle value of the navigation mode, which can be understood as the angle between the camera optical axis and the horizontal direction is greater than or equal to 0° and less than or equal to the first switching angle value.
[0066] like Figure 4A and Figure 4B As shown, if the angle between the camera optical axis and the horizontal direction is greater than α and less than or equal to 90°, the navigation mode of the mobile phone is the map navigation mode; if the angle between the camera optical axis and the horizontal direction is greater than or equal to 0° and less than or equal to α, the navigation mode of the mobile phone is the AR real-scene navigation mode.
[0067] It should be noted that in the actual application process, there is no restriction on the starting position of the mobile terminal. It is not necessarily the case that the camera optical axis is perpendicular to the horizontal direction as the rotation starting point, and the camera optical axis is parallel to the horizontal direction as the rotation end point. It is only necessary to determine whether the rotation direction of the mobile terminal is from the horizontal direction to the vertical direction, or from the vertical direction to the horizontal direction, and whether the angle between the camera optical axis and the horizontal direction exceeds the first switching angle value.
[0068] Example 2: If the posture change is that the mobile terminal moves from the vertical direction to the horizontal direction, and the selected direction is the vertical direction, the angle between the camera optical axis of the mobile terminal and the vertical direction is monitored to reach the set navigation mode second switching angle value, and the navigation mode of the mobile terminal is switched from the AR real scene navigation mode to the map navigation mode, wherein the set navigation mode second switching angle value is less than 90°. Alternatively, the navigation mode of the mobile terminal can be switched from the map navigation mode to the AR real scene navigation mode, and this switching is used in conjunction with Example 1, which switches the navigation mode of the mobile terminal from the AR real scene navigation mode to the map navigation mode.
[0069] Among them, when the mobile terminal moves from the vertical direction to the horizontal direction, the angle between the camera optical axis of the mobile terminal and the vertical direction changes from 90° to 0°. If the angle between the camera optical axis of the mobile terminal and the vertical direction reaches the set second switching angle value of the navigation mode, the navigation mode of the mobile terminal is switched from the AR real scene navigation mode to the map navigation mode, which can be understood as the angle between the camera optical axis and the vertical direction changes from greater than the second switching angle value to the second switching angle value, and the navigation mode of the mobile terminal is switched to the map navigation mode.
[0070] like Figure 5A and Figure 5B As shown, Figure 5A and Figure 5B A navigation mode switching method for a mobile terminal provided in an embodiment of the present application is provided respectively; Figure 5A and Figure 5B β represents the second switching angle value, and mobile phone represents the mobile terminal. Figure 5A 5.1 represents the three-dimensional space. The mobile phone swings back and forth, that is, the mobile phone rotates around the X axis, and the camera optical axis is in the YOZ plane. In this example, the mobile terminal moves from the vertical direction to the horizontal direction. For ease of understanding, Figure 5A5.2 represents the YOZ two-dimensional plane, the Y axis is the horizontal direction, and the Z axis is the vertical direction. Figure 5B 5.3 and 5.5 respectively represent two scenarios in which the camera optical axis moves from a direction parallel to the horizontal direction to a direction perpendicular to the horizontal direction. Figure 5B In 5.3, the pitch angle of the mobile phone varies from 90° to 0°. When the mobile phone rotates clockwise, the angle between the optical axis of the mobile phone camera and the vertical direction changes from 90° to 0°. Figure 5B In 5.5, the pitch angle of the mobile phone varies from 90° to 180°. The mobile phone rotates counterclockwise, and the angle between the optical axis of the mobile phone camera and the vertical direction changes from 90° to 0°. When the angle between the camera optical axis and the vertical direction changes from greater than β to β, the navigation mode of the mobile phone is switched from AR real scene navigation mode to map navigation mode. β is less than 90°. For example, β can be 22°, 25° or 33°, etc. β can also be the complementary angle of α, for example, 70°, 65° or 60°, etc.
[0071] It can be understood that 4.3 in Figure 4 and 5.3 in Figure 5 are two opposite rotation processes, and 4.4 in Figure 4 and 5.4 in Figure 5 are two opposite rotation processes. In the embodiment of the present application, the first switching angle value and the second switching angle value may be the same or different. In one achievable method, the first switching angle value and the second switching angle value may be complementary angles to each other. If the first switching angle value and the second switching angle value may be complementary angles to each other, then 5.3 in Figure 5 is the inverse process of 4.3 in Figure 4, and 5.4 in Figure 5 is the inverse process of 4.4 in Figure 4. This example does not limit the second switching angle value, which is consistent with the description of the first switching angle value and will not be repeated here.
[0072] Optionally, in an example of an embodiment of the present application, if the angle between the camera optical axis of the mobile terminal and the vertical direction does not reach the set navigation mode second switching angle value, the navigation mode of the mobile terminal is maintained in the AR real scene navigation mode; if the angle between the camera optical axis of the mobile terminal and the vertical direction exceeds the set navigation mode second switching angle value, the navigation mode of the mobile terminal is maintained in the map navigation mode.
[0073] Among them, the angle between the camera optical axis of the mobile terminal and the vertical direction does not reach the set second switching angle value of the navigation mode, which can be understood as the angle between the camera optical axis and the vertical direction is greater than the second switching angle value and less than or equal to 90°; the angle between the camera optical axis of the mobile terminal and the vertical direction exceeds the set second switching angle value of the navigation mode, which can be understood as the angle between the camera optical axis and the vertical direction is greater than or equal to 0° and less than or equal to the second switching angle value.
[0074] like Figure 5A and Figure 5BAs shown, if the angle between the camera optical axis and the vertical direction is greater than β and less than or equal to 90°, the navigation mode of the mobile phone is the AR real-scene navigation mode; if the angle between the camera optical axis and the vertical direction is greater than or equal to 0° and less than or equal to β, the navigation mode of the mobile phone is the map navigation mode.
[0075] It should be noted that in the actual application process, there is no restriction on the starting position of the mobile terminal. It is not necessarily the case that the camera optical axis is parallel to the horizontal direction as the rotation starting point, and the camera optical axis is perpendicular to the horizontal direction as the rotation end point. It is only necessary to determine whether the rotation direction of the mobile terminal is from the horizontal direction to the vertical direction, or from the vertical direction to the horizontal direction, and whether the angle between the camera optical axis and the vertical direction exceeds the second switching angle value.
[0076] Optionally, in an example of an embodiment of the present application, if the viewing angle acquisition range corresponding to the camera optical axis of the mobile terminal belongs to a set abnormal viewing angle acquisition range, the navigation mode of the mobile terminal is a map navigation mode.
[0077] The abnormal viewing angle acquisition range set in the embodiment of the present application can be expressed as an angle between the camera optical axis and the positive direction of the vertical direction ranging from 0° to -180°, where the positive direction of the vertical direction is the direction away from the ground.
[0078] In the embodiment of the present application, the range that can be reached by the direction of sight of the traveling object is used as the effective image acquisition viewing angle range of the mobile terminal, that is, the normal viewing angle acquisition range, which can be understood as the effective viewing angle of AR real-view navigation. Figure 6 As shown, Figure 6 A schematic diagram of an effective viewing angle of AR real-scene navigation provided in an embodiment of the present application. Figure 6 6.1 is a three-dimensional space. Figure 6 The shaded parts of 6.1 and 6.2 represent the effective viewing angle of AR real-view navigation, that is, the effective image acquisition viewing angle range is located in front of the travel object, that is, Figure 6 The angle between the camera optical axis and the positive direction of the vertical direction indicated in 6.3 is 0° to 180°, which is the normal viewing angle acquisition range. It can be understood that the effective viewing angle of AR real scene navigation indicated in 6.3 corresponds to Figure 4B The camera optical axis of the example moves from perpendicular to the horizontal direction to parallel to the two scenes, and the corresponding Figure 5B The example shows two scenarios where the camera optical axis moves from parallel to the horizontal direction to vertical direction. When the angle between the camera optical axis and the positive direction of the vertical direction is 0° to -180°, it means that the image acquisition viewing angle range is not within the effective image acquisition viewing angle range, that is, it is not a normal viewing angle acquisition range, such as Figure 6The abnormal viewing angle acquisition range indicated by the dotted parts in 6.1 and 6.2 can also be understood as the rear of the travel object. The navigation mode of the mobile terminal is the map navigation mode, and the AR real-scene navigation mode is no longer used, which can save the energy consumption of the mobile terminal.
[0079] After the above step S204, the navigation method further includes: step S205, displaying a navigation interface matching the navigation mode of the mobile terminal.
[0080] After determining the navigation mode of the mobile terminal, in this example, a navigation interface matching the navigation mode of the mobile terminal is also displayed in the display area of the mobile terminal to facilitate viewing by travelers and improve travel experience.
[0081] The navigation interface displayed in step S205 is described here through the following two examples.
[0082] Example 1: If the navigation mode of the mobile terminal is the AR real scene navigation mode, the AR real scene is displayed in the first display area of the navigation display area of the mobile terminal, and the 3D map navigation is displayed in the second display area. The area of the first display area is larger than that of the second display area.
[0083] like Fig. 7A and Figure 7B As shown, Fig. 7A and Figure 7B A schematic diagram of an AR real-scene navigation mode is provided for an embodiment of the present application. When the navigation mode of the mobile terminal is the AR real-scene navigation mode, the map navigation and the AR real-scene navigation are presented to the travel object at the same time. The display area of the mobile terminal retains both the map navigation and the AR real-scene navigation. The coexistence of the two makes it convenient for the travel object to view the itinerary, further increasing the navigation effect. To facilitate the viewing habits of the travel object, the first display area in this example is set above the second display area. And the area of the area used to display the AR real scene is larger than the area of the area used to display the 3D map, which can reduce the impact of the 3D navigation map on the line of sight of the travel object.
[0084] In this example, the second display area displays 3D map navigation. Compared with flat map navigation, 3D map navigation has a stronger sense of spatial stereoscopic sense. It is placed in the same display area with AR real-scene navigation, which is more in line with the viewing habits of travelers and improves the travel experience.
[0085] Optionally, in an example of an embodiment of the present application, when the navigation mode of the mobile terminal is an AR real scene navigation mode, the navigation method further includes: synchronously updating the navigation mark in the AR real scene according to the navigation mark of the current positioning position in the 3D map navigation.
[0086] It should be noted that the real-time posture information of the mobile terminal also includes the longitude and latitude of the mobile terminal, and the current location of the mobile terminal is determined according to the longitude and latitude of the mobile terminal. The current location of the mobile terminal can also be obtained through the navigation antenna of the mobile terminal, which is not limited in the embodiment of the present application.
[0087] The navigation sign in the AR real scene is synchronously updated according to the navigation sign of the current location in the 3D map navigation, so that the navigation sign in the AR real scene is consistent with the navigation sign of the current location in the 3D map navigation. During the AR real scene navigation process, the AR navigation sign can be always displayed in the real scene video of the display interface to improve the intuitiveness of the navigation process.
[0088] In this example, the navigation sign is used to remind the travel object, such as Fig. 7A "Go straight for 1.2 km" and Figure 7B The "unnamed road" in the navigation mark includes at least one of the direction of travel, the road of travel, the distance to be traveled, and the time to be traveled. When the navigation mode of the mobile terminal is the AR real-view navigation mode, the direction of travel, the road of travel, the distance to be traveled, and the time to be traveled are indicated in the AR real-view navigation video. For example, the road of travel can be a green line or a road name, such as Zhongshan Road. The direction of travel may include straight, left turn, right turn, and U-turn, etc. The direction of travel may be an arrow icon used to guide the travel object to travel, for example, an arrow pointing to the left indicates that the travel object needs to travel to the left. The distance to be traveled includes the remaining distance in the direction of travel, the distance between the current positioning position of the mobile terminal and the next intersection or the next turning point, and the remaining distance between the current positioning position of the mobile terminal and the destination. The time to be traveled includes the remaining time in the direction of travel, the time required to reach the next intersection or the next turning point, and the estimated time of arrival, the time required to reach the destination, and the estimated time of arrival. For example, the AR navigation sign shows that Zhongshan Road is 20 meters straight, the distance to be carried out is 5 meters, and it will take 10 minutes to reach the destination. The embodiment of the present application does not limit the specific content of the navigation information.
[0089] Example 2: If the navigation mode of the mobile terminal is a map navigation mode, the navigation display area of the mobile terminal displays a flat map navigation.
[0090] When the navigation mode of the mobile terminal is map navigation mode, the AR real scene is no longer displayed, such as Fig. 8A and Figure 8B As shown, Fig. 8A and Figure 8B A schematic diagram of a map navigation mode is provided for an embodiment of the present application, in which a flat map navigation is displayed in a display area of a mobile terminal, thereby improving display efficiency and reducing the impact on the viewing line of sight of travelers.
[0091] Since when the navigation mode of the mobile terminal is the AR real scene navigation mode, the second display area of the mobile terminal displays the 3D map navigation, and when the navigation mode of the mobile terminal is the map navigation mode, the display area of the mobile terminal displays the flat map navigation, it can be seen that the map navigation mode does not depend on the image acquisition device of the mobile terminal. Take the mobile phone as an example to represent the mobile terminal, such as Fig. 9 As shown, Fig. 9 A schematic diagram of an effective viewing angle of a map navigation provided in an embodiment of the present application. Regardless of the viewing angle of the mobile phone camera, the map navigation mode can be effective regardless of how the mobile phone is rotated, such as Fig. 9 The mobile phone can display map navigation in the display area by rotating 360° around the X axis, 360° around the Y axis, and 360° around the Z axis, so that travelers can view the navigation overview at any time according to the map navigation in any posture, know the surrounding terrain and road conditions in advance, and improve the travel experience. Map navigation is different from AR real-scene navigation. AR real-scene navigation can only take effect within the effective image acquisition viewing angle.
[0092] Embodiment 3
[0093] In this embodiment, a mobile phone is taken as an example to represent a mobile terminal, and a specific example is given to illustrate the navigation method of the mobile terminal in the embodiment of the present application, as follows.
[0094] 1. When the mobile phone camera angle of view is in the "AR real scene navigation effective angle of view", the "AR real scene navigation" mode can be used, such as in Example 2. Figure 6 shown.
[0095] 2. "Map navigation" does not depend on the mobile phone camera. It can be effective when the mobile phone camera is at any viewing angle, such as in Example 2. Fig. 9 shown.
[0096] 3. Mode switching, taking the mobile phone camera perspective to represent the camera optical axis as an example.
[0097] 3.1. When the camera angle of the mobile phone moves from perpendicular to the horizontal direction to parallel to the horizontal direction, and the angle between the camera angle and the horizontal direction reaches the switching angle value α, the navigation mode of the mobile terminal switches from "map navigation mode" to "AR real scene navigation mode".
[0098] 3.2. When the camera angle of the mobile phone moves from parallel to the horizontal direction to vertical direction, and the angle between the camera angle and the vertical direction reaches the switching angle value β, the navigation mode of the mobile terminal switches from "AR real scene navigation mode" to "map navigation mode".
[0099] In this example, the transition animation between the "AR real-scene navigation mode" and the "map navigation mode" is connected. The transition animation is the animation effect when the two modes are switched. This example does not limit the specific method of animation transition, and any appropriate animation method can be used for transition. Taking the switch from "AR real-scene navigation mode" to "map navigation mode" as an example, "AR real-scene navigation" can be exited by flying in, bouncing, zooming, pulling out from the bottom, pulling out from the top, etc., and "map navigation" can be entered by flying in, bouncing, zooming, pulling in from the bottom, pulling in from the top, etc., and then "map navigation" is displayed in the display area of the mobile phone. Among them, the above two navigation methods can be exited first and then entered, or exit and enter are executed at the same time. When exiting and entering are executed at the same time, the two navigation modes exist at the same time. When switching, in one mode, the "AR real-scene navigation" is reduced in proportion and then disappears from the entire display area of the mobile phone; the "map navigation" is enlarged in proportion and then occupies the entire display area of the mobile phone; in the other mode, the "AR real-scene navigation" does not scale and exits from the top or bottom of the mobile phone. At the same time, the "map navigation" enters from the bottom or top of the mobile phone, so as to achieve a smooth transition of the navigation mode through animation connection. The "AR real-scene navigation mode" highlights the navigation guidance content, and the "map navigation mode" displays the complete global navigation information. Improve the travel experience through the changes in different focus modes. And in the "non-AR real-scene navigation effective viewing angle", the "AR real-scene navigation mode" is not used to save energy.
[0100] AR real-scene navigation is a map navigation that uses AR technology and combines real scenes and points. Points are a general term for all elements that combine real scenes and play a role in navigation and guidance, and can be understood as navigation signs. AR real-scene navigation focuses on the display of real scenes and points, and is used to intuitively display the real geographical features obtained in real time. The area occupied by the displayed part in the entire map is very limited, and the travel object cannot effectively view the full navigation overview. When only map navigation is displayed, although the travel object can view the full navigation overview well according to the map navigation and know the surrounding terrain and road conditions in advance, the map navigation only displays the map, and there is no interaction with the travel object, which is not intuitive enough and lacks fun. In the prior art, the travel object can independently select the required navigation function according to its own needs, but the travel object needs to switch manually, which reduces the travel experience. In this example, by tracking the status of the mobile phone and transitioning the changes between the AR real-scene navigation mode and the map navigation mode through animation, the interactivity and fun are increased, and there is no need for the travel object to switch manually, which improves the travel experience.
[0101] Embodiment 4:
[0102] Based on any of the navigation methods described in the above embodiments 1 to 3, the present application embodiment provides a navigation device, such as Fig.10 As shown, Fig.10 A navigation device is provided in an embodiment of the present application. The navigation device 100 includes: an acquisition module 1001, which is used to acquire real-time posture information of a mobile terminal; a determination module 1002, which is used to determine the posture change of the mobile terminal according to the real-time posture information; a switching module 1003, which is used to monitor whether the angle between the camera optical axis of the mobile terminal and the selected direction reaches a set navigation mode switching angle value as the posture of the mobile terminal changes, so as to switch the navigation mode. The switching of the navigation mode includes: switching from an AR real-scene navigation mode to a map navigation mode or switching from a map navigation mode to an AR real-scene navigation mode.
[0103] Optionally, in an example of an embodiment of the present application, the determination module 1002 is also used to determine the real-time pitch angle information of the mobile terminal based on the real-time posture information; determine the posture change of the mobile terminal based on the change of the pitch angle information, and the posture change includes: movement from the horizontal direction to the vertical direction or from the vertical direction to the horizontal direction.
[0104] Optionally, in an example of an embodiment of the present application, the switching module 1003 is also used to monitor whether the angle between the camera optical axis of the mobile terminal and the horizontal direction reaches a set navigation mode first switching angle value if the posture change is the movement of the mobile terminal from a horizontal direction to a vertical direction, and the selected direction is a horizontal direction. If reached, the navigation mode of the mobile terminal is switched from the map navigation mode to the AR real scene navigation mode, wherein the set navigation mode first switching angle value is less than 90°.
[0105] Optionally, in an example of an embodiment of the present application, the navigation device also includes a first maintaining module, and the first maintaining module is used to maintain the navigation mode of the mobile terminal in the map navigation mode if the angle between the camera optical axis of the mobile terminal and the horizontal direction does not reach the set first switching angle value of the navigation mode; if the angle between the camera optical axis of the mobile terminal and the horizontal direction exceeds the set first switching angle value of the navigation mode, maintain the navigation mode of the mobile terminal in the AR real scene navigation mode.
[0106] Optionally, in an example of an embodiment of the present application, the switching module 1003 is also used to monitor the angle between the camera optical axis of the mobile terminal and the vertical direction to reach the set navigation mode second switching angle value if the posture change is the movement of the mobile terminal from a vertical direction to a horizontal direction, and the selected direction is a vertical direction, and the navigation mode of the mobile terminal is switched from the AR real-scene navigation mode to the map navigation mode, wherein the set navigation mode second switching angle value is less than 90°.
[0107] Optionally, in an example of an embodiment of the present application, the navigation device also includes a second maintaining module, and the second maintaining module is also used to maintain the navigation mode of the mobile terminal in the AR real scene navigation mode if the angle between the camera optical axis of the mobile terminal and the vertical direction does not reach the set second switching angle value of the navigation mode; if the angle between the camera optical axis of the mobile terminal and the vertical direction exceeds the set second switching angle value of the navigation mode, the navigation mode of the mobile terminal is maintained in the map navigation mode.
[0108] Optionally, in an example of an embodiment of the present application, the navigation device also includes a map display module, and the map display module is also used to set the navigation mode of the mobile terminal to a map navigation mode if the viewing angle acquisition range corresponding to the camera optical axis of the mobile terminal belongs to a set abnormal viewing angle acquisition range.
[0109] The navigation device of the embodiment of the present application is used to implement the corresponding navigation methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the navigation device of the embodiment of the present application can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.
[0110] Embodiment 5
[0111] Based on any of the navigation methods described in the above embodiments 1 to 3, the present application embodiment provides an electronic device. It should be noted that the navigation method of the present application embodiment can be executed by any appropriate electronic device with mobile terminal navigation capabilities, including but not limited to: mobile phones, laptops, tablet computers, personal digital assistants, cameras with attitude sensors or gyroscopes, cameras with attitude sensors or gyroscopes, wearable devices (such as glasses, gloves), etc. Fig.11 As shown, Fig.11 The electronic device 110 may include a processor 1102, a communication interface 1104, a memory 1106, and a communication bus 1108.
[0112] The processor 1102 , the communication interface 1104 , and the memory 1106 communicate with each other via a communication bus 1108 .
[0113] The communication interface 1104 is used to communicate with other electronic devices or servers.
[0114] The processor 1102 is used to execute the computer program 1110, and specifically can execute the relevant steps in the above navigation method embodiment.
[0115] Specifically, the computer program 1110 may include computer program codes including computer operation instructions.
[0116] The processor 1102 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0117] The memory 1106 is used to store the computer program 1110. The memory 1106 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0118] The specific implementation of each step in program 1110 can refer to the corresponding description of the corresponding steps and units in the above navigation method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0119] Embodiment 6
[0120] Based on the navigation method described in the above-mentioned embodiments 1 to 3, an embodiment of the present application provides a computer storage medium storing a computer program, which implements the navigation method described in the embodiments 1 to 3 when executed by a processor.
[0121] Based on the navigation method described in the above-mentioned embodiments 1 to 3, an embodiment of the present application provides a computer program product, including computer instructions, which instruct a computing device to perform operations corresponding to the navigation method described in embodiments 1 to 3.
[0122] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0123] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the navigation method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the navigation method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the navigation method shown herein.
[0124] Those of ordinary skill in the art will appreciate that the various exemplary units and method steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0125] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
Claims
1. A navigation method, comprising: Acquire the real-time attitude information of the mobile terminal in real time through an attitude sensor or a gyroscope arranged in the mobile terminal; Determine, according to the real-time posture information, a posture change of the mobile terminal, the posture change comprising: moving from a horizontal direction to a vertical direction or from a vertical direction to a horizontal direction; if the posture change is that the mobile terminal moves from a horizontal direction to a vertical direction, the selected direction is a horizontal direction; if the posture change is that the mobile terminal moves from a vertical direction to a horizontal direction, the selected direction is a vertical direction; As the posture of the mobile terminal changes, monitor whether the angle between the camera optical axis of the mobile terminal and the selected direction reaches the set navigation mode switching angle value to switch the navigation mode. The switching of the navigation mode includes: switching from AR real-scene navigation mode to map navigation mode or switching from map navigation mode to AR real-scene navigation mode.
2. The method according to claim 1, wherein: Determining a posture change of the mobile terminal according to the real-time posture information includes: Determining the real-time pitch angle information of the mobile terminal according to the real-time posture information; According to the change of the pitch angle information, the posture change of the mobile terminal is determined.
3. The method according to claim 2, wherein: If the posture change is that the mobile terminal moves from a horizontal direction to a vertical direction, and the selected direction is a horizontal direction, then as the posture of the mobile terminal changes, monitoring whether the angle between the camera optical axis of the mobile terminal and the selected direction reaches a set navigation mode switching angle value to switch the navigation mode includes: Monitor whether the angle between the camera optical axis of the mobile terminal and the horizontal direction reaches the set first switching angle value of the navigation mode. If reached, switch the navigation mode of the mobile terminal from the map navigation mode to the AR real scene navigation mode, wherein the set first switching angle value of the navigation mode is less than 90°.
4. The method according to claim 3, wherein: The method further comprises: If the angle between the camera optical axis of the mobile terminal and the horizontal direction does not reach the set first navigation mode switching angle value, maintaining the navigation mode of the mobile terminal as the map navigation mode; If the angle between the camera optical axis of the mobile terminal and the horizontal direction exceeds the set first switching angle value of the navigation mode, the navigation mode of the mobile terminal is maintained as the AR real scene navigation mode.
5. The method according to claim 2, wherein: If the posture change is that the mobile terminal moves from a vertical direction to a horizontal direction, and the selected direction is a vertical direction, then as the posture of the mobile terminal changes, monitoring whether the angle between the camera optical axis of the mobile terminal and the selected direction reaches a set navigation mode switching angle value to switch the navigation mode includes: Monitor that the angle between the camera optical axis of the mobile terminal and the vertical direction reaches the set navigation mode second switching angle value, and switch the navigation mode of the mobile terminal from the AR real scene navigation mode to the map navigation mode, wherein the set navigation mode second switching angle value is less than 90°.
6. The method according to claim 5, wherein: The method further comprises: If the angle between the camera optical axis of the mobile terminal and the vertical direction does not reach the set second switching angle value of the navigation mode, maintaining the navigation mode of the mobile terminal in the AR real scene navigation mode; If the angle between the camera optical axis of the mobile terminal and the vertical direction exceeds the set navigation mode second switching angle value, the navigation mode of the mobile terminal is maintained in the map navigation mode.
7. The method according to any one of claims 1 to 6, wherein: The method further comprises: If the viewing angle acquisition range corresponding to the camera optical axis of the mobile terminal belongs to the set abnormal viewing angle acquisition range, the navigation mode of the mobile terminal is the map navigation mode.
8. A navigation device, comprising: An acquisition module, used to acquire real-time attitude information of the mobile terminal in real time through an attitude sensor or a gyroscope arranged in the mobile terminal; A determination module, configured to determine a posture change of the mobile terminal according to the real-time posture information, wherein the posture change includes: movement from a horizontal direction to a vertical direction or from a vertical direction to a horizontal direction; wherein, if the posture change is that the mobile terminal moves from a horizontal direction to a vertical direction, the selected direction is a horizontal direction, and if the posture change is that the mobile terminal moves from a vertical direction to a horizontal direction, the selected direction is a vertical direction; A switching module is used to monitor whether the angle between the camera optical axis of the mobile terminal and the selected direction reaches a set navigation mode switching angle value as the posture of the mobile terminal changes, so as to switch the navigation mode. The switching of the navigation mode includes: switching from AR real-scene navigation mode to map navigation mode or switching from map navigation mode to AR real-scene navigation mode.
9. A computer storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the navigation method according to any one of claims 1 to 7.
10. A computer program product, comprising computer instructions, wherein the computer instructions instruct a computing device to perform operations corresponding to the navigation method according to any one of claims 1 to 7.
