CN116734873A - Direction determination method, direction determination device, electronic device and computer readable storage medium - Google Patents

Direction determination method, direction determination device, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN116734873A
CN116734873A CN202210207151.9A CN202210207151A CN116734873A CN 116734873 A CN116734873 A CN 116734873A CN 202210207151 A CN202210207151 A CN 202210207151A CN 116734873 A CN116734873 A CN 116734873A
Authority
CN
China
Prior art keywords
navigation
electronic equipment
simulated moving
electronic device
moving direction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210207151.9A
Other languages
Chinese (zh)
Inventor
徐廷念
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210207151.9A priority Critical patent/CN116734873A/en
Publication of CN116734873A publication Critical patent/CN116734873A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)

Abstract

The present application relates to a direction determining method, apparatus, computer device, storage medium and computer program product. The method comprises the following steps: acquiring a current position and a set target position of electronic equipment, and generating a navigation path from the current position to the target position of the electronic equipment; acquiring a navigation direction from the current position in the navigation path; and detecting the inclination direction of the electronic equipment relative to a reference plane, and generating a simulated moving direction corresponding to the inclination direction so as to determine whether the navigation direction and the simulated moving direction are consistent. The method can improve the efficiency of direction determination.

Description

Direction determination method, direction determination device, electronic device and computer readable storage medium
Technical Field
The present application relates to computer technology, and in particular, to a direction determining method, apparatus, electronic device, and computer readable storage medium.
Background
With the development of computer technology, more and more users use electronic devices for navigation. During navigation, a user walks in accordance with a navigation instruction direction in the electronic device. Thus, the user is required to actually move to verify to which direction in the actual scene the direction of the navigation instruction corresponds before walking.
However, this conventional direction determining method has a problem in that the efficiency of direction determination is low.
Disclosure of Invention
The embodiment of the application provides a direction determining method, a direction determining device, electronic equipment and a computer readable storage medium, which can improve the efficiency of direction determination.
A direction determining method applied to an electronic device, the method comprising:
acquiring a current position and a set target position of the electronic equipment, and generating a navigation path from the current position to the target position of the electronic equipment;
acquiring a navigation direction from the current position in the navigation path;
and detecting the inclination direction of the electronic equipment relative to a reference plane, and generating a simulated moving direction corresponding to the inclination direction so as to determine whether the navigation direction and the simulated moving direction are consistent.
A direction determining apparatus for use in an electronic device, the apparatus comprising:
the electronic equipment comprises an acquisition module, a navigation module and a control module, wherein the acquisition module is used for acquiring the current position of the electronic equipment and a set target position and generating a navigation path from the current position to the target position of the electronic equipment;
the acquisition module is also used for acquiring the navigation direction from the current position in the navigation path;
the detection module is used for detecting the inclination direction of the electronic equipment relative to a reference plane, and generating a simulated moving direction corresponding to the inclination direction so as to determine whether the navigation direction is consistent with the simulated moving direction.
An electronic device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the direction determination method as described above.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of a method as described above.
A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described above.
The direction determining method, the device, the electronic equipment, the computer readable storage medium and the computer program product acquire the current position and the set target position of the electronic equipment, generate a navigation path from the current position to the target position of the electronic equipment, and acquire the navigation direction from the current position in the navigation path; by detecting the inclination direction of the electronic equipment relative to the reference plane, the simulated moving direction corresponding to the inclination direction can be generated, so that whether the navigation direction is consistent with the simulated moving direction is determined, the problem that the direction determination process is complicated and the efficiency is low due to the fact that a user actually moves to determine whether the moving direction is consistent with the navigation direction is avoided, the direction consistent with the navigation direction in an actual scene can be determined more quickly, and the efficiency of direction determination is improved. And through the inclination direction of the electronic equipment relative to the reference plane, the corresponding simulated moving direction is simulated, and whether the direction of the user to move is correct or not can be judged in advance, so that the accuracy of the moving direction in the navigation process can be improved.
A direction determining method applied to an electronic device, the method comprising:
receiving an input target position, and displaying a navigation path from a current position to the target position of the electronic equipment;
and in response to the tilting operation of the electronic equipment, displaying the simulated moving direction corresponding to the tilting operation so as to determine whether the simulated moving direction is consistent with the navigation direction from the current position in the navigation path.
A direction determining apparatus for use in an electronic device, the apparatus comprising:
the display module is used for receiving an input target position and displaying a navigation path from the current position to the target position of the electronic equipment;
the display module is also used for responding to the tilting operation of the electronic equipment and displaying the simulated moving direction corresponding to the tilting operation so as to determine whether the simulated moving direction is consistent with the navigation direction from the current position in the navigation path.
An electronic device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the direction determination method as described above.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of a method as described above.
A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described above.
The direction determining method, the device, the electronic equipment, the computer readable storage medium and the computer program product acquire the current position and the set target position of the electronic equipment, generate a navigation path from the current position to the target position of the electronic equipment, and acquire the navigation direction from the current position in the navigation path; by detecting the inclination direction of the electronic equipment relative to the reference plane, the simulated moving direction corresponding to the inclination direction can be generated, so that whether the navigation direction is consistent with the simulated moving direction is determined, the problem that the direction determination process is complicated and the efficiency is low due to the fact that a user actually moves to determine whether the moving direction is consistent with the navigation direction is avoided, the direction consistent with the navigation direction in an actual scene can be determined more quickly, and the efficiency of direction determination is improved. And through the inclination direction of the electronic equipment relative to the reference plane, the corresponding simulated moving direction is simulated, and whether the direction of the user to move is correct or not can be judged in advance, so that the accuracy of the moving direction in the navigation process can be improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an internal block diagram of an electronic device in one embodiment;
FIG. 2 is a flow chart of a method of direction determination in one embodiment;
FIG. 3 is a schematic illustration of gravitational acceleration in one embodiment;
FIG. 4 is a schematic view of gravitational acceleration in another embodiment;
FIG. 5 is a flow chart of a method of direction determination in another embodiment;
FIG. 6 is a flow chart of a method of direction determination in another embodiment;
FIG. 7 is a schematic diagram of an electronic device simulating a direction of movement in one embodiment;
FIG. 8 is a block diagram of a direction determining apparatus in one embodiment;
fig. 9 is an internal structural diagram of an electronic device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, a direction determining method is provided, where the method is applied to a terminal to illustrate, it is understood that the method may also be applied to a server, and may also be applied to a system including the terminal and the server, and implemented through interaction between the terminal and the server. The terminal can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, and the internet of things equipment can be smart speakers, smart televisions, smart air conditioners, smart vehicle-mounted equipment and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 1, an electronic device is taken as an example of a smart watch, where the smart watch includes a control unit, a display screen, a navigation module, a gravitational accelerometer, a bluetooth module, a storage module, and keys. Optionally, the control unit may be an ultra-low power consumption Apollo chip, the navigation module may be a dual-frequency high-precision navigation module, and the gravity accelerometer may be an MPU6050 triaxial acceleration sensor.
Furthermore, the intelligent watch can also communicate with other terminals such as mobile phones through the Bluetooth module, so that network sharing and information transmission between the intelligent watch and the other terminals are realized.
In this embodiment, as shown in fig. 2, the method includes the following steps:
step 202, obtaining a current position and a set target position of the electronic device, and generating a navigation path from the current position to the target position of the electronic device.
It is understood that the navigation path is a path that moves from the current position to the target position.
Optionally, the electronic device opens a navigation application program, starts a navigation function, and responds to the starting operation of the navigation function to acquire the current position of the electronic device through the positioning system; acquiring a target position in response to a setting operation; and generating a navigation path of the electronic equipment from the current position to the target position through a path planning algorithm. The positioning system may be a global navigation satellite system (Globa lNavigation Satellite System, GNSS), and the global navigation satellite system may specifically be one of GPS (Globa lPositioning System ), beidou satellite navigation system, GALILEO satellite navigation system (GALILEO), etc.
Further, the electronic device obtains the selected target traffic mode, and generates a navigation path from the current position to the target position of the electronic device in the target traffic mode. The target traffic mode can be walking, riding, driving, public transportation or subway, and the like, so that the navigation path can be judged more accurately.
Step 204, obtaining the navigation direction from the current position in the navigation path.
It is understood that there may be one or more navigation directions in the navigation path. For example, if the current location and the target location are on the same street, there is a navigation direction in the navigation path from the current location to the target location. As another example, the current location and the target location are on different streets, there are multiple different navigation directions in the navigation path from the current location to the target location. The navigation direction from the current position is the first navigation direction in the navigation path.
In step 206, the tilt direction of the electronic device relative to the reference plane is detected, and a simulated moving direction corresponding to the tilt direction is generated to determine whether the navigation direction and the simulated moving direction are consistent.
The reference plane is a plane for reference detection of the tilt direction. The reference plane may be a horizontal plane or a vertical plane, or may be a plane with other set angles, not limited thereto. The simulated movement direction is a direction in which the user movement is simulated. It can be understood that the inclination direction of the electronic device with respect to the reference plane may determine, from a preset correspondence between the inclination direction and the simulated movement direction, the simulated movement direction corresponding to the inclination direction, that is, the movement direction to be simulated by the user through the inclination of the electronic device.
Optionally, the electronic device displays the analog identifier, responds to the triggering operation of the analog identifier, enters the direction simulation page, detects the inclination direction of the electronic device relative to the reference plane in the direction simulation page, and determines the analog movement direction corresponding to the inclination direction from the preset corresponding relation between the inclination direction and the analog movement direction. Wherein the simulated identification may be a navigation arrow, a cartoon character, etc.
Further, the electronic device can display the simulation object and control the simulation object to move towards the simulation moving direction. The simulation object may be a simulation person, an arrow, a preset mark, or the like, which is not limited thereto.
In one embodiment, the electronic device compares the simulated movement direction with the navigation direction; if the simulated moving direction and the navigation direction are both directed in the same direction, the navigation direction is consistent with the simulated moving direction; if the simulated moving direction and the navigation direction are both directed in different directions, the navigation direction and the simulated moving direction are inconsistent.
In another embodiment, the electronic device displays the simulated moving direction and the navigation direction simultaneously in the navigation page, and the simulated moving direction and the navigation direction are used for judging whether the navigation direction is consistent with the simulated moving direction or not by a user.
In other embodiments, the electronic device may also determine whether the navigation direction and the simulated moving direction are consistent in other manners, which are not limited herein.
Further, the electronic device displays the simulated moving direction. Taking the reference plane as a horizontal plane as an example, the electronic equipment is inclined forwards relative to the horizontal plane, namely the inclination direction is forwards, generating a simulation moving direction corresponding to the inclination direction as forwards, and controlling a simulation object in the simulation page to forwards move; the electronic equipment is inclined backwards relative to the horizontal plane, namely the inclination direction is backward, the simulated moving direction corresponding to the inclination direction is generated to be backward, and the simulated object in the simulated page is controlled to move backward; the electronic equipment inclines to the right relative to the horizontal plane, namely, the inclination direction is to the right, the simulated moving direction corresponding to the inclination direction is generated to be to the right, and the simulated object in the simulated page is controlled to move to the right; the electronic device is tilted to the left with respect to the horizontal plane, that is, the tilting direction is left, and generates a simulated moving direction corresponding to the tilting direction to the left, and controls the simulated object in the simulated page to move to the left.
In one scenario, if the user does not determine that the navigation direction corresponds to the direction pointed in the actual scenario during the navigation, the electronic device may be tilted one or more times, and the direction of movement of the user, that is, the simulated movement direction, may be simulated by tilting the electronic device with respect to the reference plane, so as to determine whether the simulated movement direction is consistent with the navigation direction, so that it may be determined that the navigation direction corresponds to the direction pointed in the actual scenario under the consistent condition, and navigation may be performed more accurately.
In this embodiment, a current position and a set target position of the electronic device are obtained, a navigation path from the current position to the target position of the electronic device is generated, and a navigation direction from the current position in the navigation path is obtained; by detecting the inclination direction of the electronic equipment relative to the reference plane, the simulated moving direction corresponding to the inclination direction can be generated, so that whether the navigation direction is consistent with the simulated moving direction is determined, the problem that the direction determination process is complicated and the efficiency is low due to the fact that a user actually moves to determine whether the moving direction is consistent with the navigation direction is avoided, the direction consistent with the navigation direction in an actual scene can be determined more quickly, and the efficiency of direction determination is improved. And through the inclination direction of the electronic equipment relative to the reference plane, the corresponding simulated moving direction is simulated, and whether the direction of the user to move is correct or not can be judged in advance, so that the accuracy of the moving direction in the navigation process can be improved.
In one embodiment, detecting an inclination of an electronic device with respect to a reference plane includes: detecting an inclination angle of the electronic device relative to a reference plane; and determining the inclination direction of the electronic equipment relative to the reference plane according to the inclination angle.
It is understood that the tilt angle is the angle at which the electronic device is tilted with respect to the reference plane. The tilt direction is the direction in which the electronic device is tilted with respect to the reference plane.
It can be understood that the electronic device obtains a reference angle of the reference plane in the space coordinate system, obtains a first angle of the electronic device in the space coordinate system through the angle sensor, and performs difference value operation on the first angle and the reference angle to obtain an inclination angle of the electronic device relative to the reference plane; and determining the inclination direction of the electronic equipment relative to the reference plane from the corresponding relation between the preset inclination angle and the inclination direction.
Taking the reference plane as a horizontal plane as an example, the inclination angle of the electronic equipment relative to the horizontal plane is 20 degrees inclined towards the positive direction of the X axis, and the inclination direction is inclined leftwards; the inclination angle of the electronic equipment relative to the horizontal plane is 5 degrees in the negative direction of the X axis, and the inclination direction is inclined to the right; the inclination angle of the electronic equipment relative to the horizontal plane is 1 degree inclined to the positive direction of the Y axis, and the inclination direction is forward inclination; the electronic device is inclined at an angle of 2 degrees to the negative Y-axis direction with respect to the horizontal plane, and the inclination direction is backward.
In this embodiment, by detecting the inclination angle of the electronic device with respect to the reference plane, the inclination direction of the electronic device with respect to the reference plane can be accurately determined according to the inclination angle, so that the determination of the direction can be more accurately realized in the navigation process.
In one embodiment, detecting an angle of inclination of an electronic device relative to a reference plane includes: acquiring the gravity acceleration of the electronic equipment in the process of rotating relative to a reference plane through a gravity accelerometer; determining a first component on a first axis and a second component on a second axis of the reference coordinate system based on the gravitational acceleration, respectively; and determining the inclination angle of the electronic equipment based on the first component and the second component.
A gravitational accelerometer (Gsensor) is a sensor for sensing gravitational acceleration. The reference coordinate system may be the gravitational accelerometer's own multi-axis coordinate system. For example, the gravitational accelerometer is a two-axis sensor having an X axis and a Y axis, respectively. For another example, the gravity accelerometer is a triaxial sensor, which has an X axis, a Y axis and a Z axis respectively, and the reference coordinate system is an XYZ coordinate system of the multiaxial coordinate system of the gravity accelerometer itself. In other embodiments, the reference coordinate system may also be a geographic coordinate system, or the like, without being limited thereto.
The reference coordinate system includes at least two axes, a first axis and a second axis of the at least two axes. The electronic device obtains the gravitational acceleration of the electronic device and determines a first component of the gravitational acceleration on a first axis and a second component of the gravitational acceleration on a second axis of the reference coordinate system, respectively.
In one embodiment, as shown in fig. 3, the gravity acceleration of the electronic device during the rotation relative to the reference plane is obtained by using a gravity accelerometer, and the gravity acceleration is in the same direction as the second axis Y axis of the reference coordinate system, then the second component ay=g on the second axis, and the first component ax=0 on the first axis, so as to obtain the inclination angle of the electronic device as 0 degrees.
In another embodiment, as shown in fig. 4, the gravity accelerometer obtains the gravity acceleration of the electronic device during the rotation relative to the reference plane, and assuming that the inclination angle of the electronic device relative to the reference plane is α, then the first component of the gravity acceleration g on the first axis X is ax=gsin α, and the second component of the gravity acceleration g on the second axis Y is ay=gcos α, so that the inclination angle of the electronic device relative to the reference plane is α=arctan (Ax/Ay).
In one embodiment, the method further comprises: if the navigation direction is consistent with the simulated moving direction, navigating by using a navigation path; and if the navigation direction is inconsistent with the simulated moving direction, returning to execute the step of detecting the inclination angle of the electronic equipment in the reference coordinate system in response to the rotation of the electronic equipment, and generating the simulated moving direction corresponding to the inclination angle so as to determine whether the navigation direction is consistent with the simulated moving direction.
If the navigation direction is consistent with the simulated moving direction, the simulated direction of the electronic equipment is consistent with the navigation direction, and if the user moves towards the simulated moving direction, the navigation direction in the navigation path is consistent. Therefore, if the navigation direction is consistent with the simulated moving direction, the navigation path is used for navigation, so that the navigation can be more accurately performed, and the target position can be reached. Further, if the navigation direction is consistent with the simulated moving direction, the electronic device displays the first information to prompt the user that the navigation direction is consistent with the simulated moving direction.
If the navigation direction is inconsistent with the simulated moving direction, the direction simulated by the electronic equipment does not accord with the navigation direction, then a new inclination angle is acquired in response to the rotation of the electronic equipment, so that the new simulated moving direction is determined, whether the new simulated moving direction is consistent with the navigation direction is judged, the problem of navigation error caused by the movement of a user to the wrong simulated moving direction is avoided, and the direction corresponding to the direction in an actual scene of the navigation direction can be determined more accurately, so that the navigation is performed more accurately.
Further, if the navigation direction is inconsistent with the simulated moving direction, a prompt message is displayed to prompt the user to rotate the electronic device to other directions so as to simulate other simulated moving directions.
In one embodiment, as shown in fig. 5, taking an electronic device as an example of a smart watch, a user keeps a horizontal state by lifting his/her hand, and opens navigation software; the intelligent watch acquires current position information; acquiring a set target position; planning a path according to the current position information and the target position; selecting whether to intelligently simulate a navigation direction; if yes, a virtual arrow is generated in the map to move towards the simulated moving direction, and the user knows the simulated moving direction and the navigation direction; the user exits from intelligent simulation navigation, and navigation is performed according to the actual walking direction of the user; if not, navigating according to the actual walking direction of the user.
In an embodiment, as shown in fig. 6, another direction determining method is provided, where this embodiment is applied to a terminal for illustration, it is understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and implemented through interaction between the terminal and the server. The terminal can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, and the internet of things equipment can be smart speakers, smart televisions, smart air conditioners, smart vehicle-mounted equipment and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In this embodiment, the method includes the steps of:
step 602, receiving an input target position, and displaying a navigation path from a current position to the target position of the electronic device.
In other embodiments, the electronic device may also display the navigation direction in the navigation path starting from the current location.
In step 604, in response to the tilting operation on the electronic device, a simulated moving direction corresponding to the tilting operation is displayed to determine whether the simulated moving direction and the navigation direction from the current position in the navigation path are consistent.
The electronic device detects an inclination direction of the electronic device relative to the reference plane in response to an inclination operation of the electronic device itself, generates a simulated moving direction corresponding to the inclination direction, and displays the simulated moving direction to determine whether the simulated moving direction is identical to a navigation direction from a current position in the navigation path.
In this embodiment, a current position and a set target position of the electronic device are obtained, a navigation path from the current position to the target position of the electronic device is generated, and a navigation direction from the current position in the navigation path is obtained; by detecting the inclination direction of the electronic equipment relative to the reference plane, the simulated moving direction corresponding to the inclination direction can be generated, so that whether the navigation direction is consistent with the simulated moving direction is determined, the problem that the direction determination process is complicated and the efficiency is low due to the fact that a user actually moves to determine whether the moving direction is consistent with the navigation direction is avoided, the direction consistent with the navigation direction in an actual scene can be determined more quickly, and the efficiency of direction determination is improved.
Taking the electronic device as a smart watch as an example, as shown in fig. 7, if the smart watch is tilted to the left, determining that the analog moving direction is to move to the left, displaying the analog object 702 in the page of the smart watch, and controlling the analog object 702 to move to the left.
In one embodiment, a tilt angle of the electronic device relative to a reference plane is detected in response to a tilt operation of the electronic device; and determining the inclination direction of the electronic equipment relative to the reference plane according to the inclination angle, and generating an analog movement direction corresponding to the inclination direction.
In one embodiment, detecting an angle of inclination of an electronic device relative to a reference plane includes: acquiring the gravity acceleration of the electronic equipment in the process of rotating relative to a reference plane through a gravity accelerometer; determining a first component on a first axis and a second component on a second axis of the reference coordinate system based on the gravitational acceleration, respectively; and determining the inclination angle of the electronic equipment based on the first component and the second component.
In one embodiment, if the navigation direction is consistent with the simulated moving direction, navigating with the navigation path; and if the navigation direction is inconsistent with the simulated moving direction, responding to the rotation of the electronic equipment, returning to execute the step of responding to the tilting operation of the electronic equipment, displaying the simulated moving direction corresponding to the tilting operation, and determining whether the simulated moving direction is consistent with the navigation direction from the current position in the navigation path.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a direction determining device for realizing the above-mentioned direction determining method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the one or more direction determining devices provided below may be referred to the limitation of the direction determining method hereinabove, and will not be repeated here.
In one embodiment, as shown in fig. 8, there is provided a direction determining apparatus including: an acquisition module 802 and a detection module 804, wherein:
the obtaining module 802 is configured to obtain a current location of the electronic device and a set target location, and generate a navigation path from the current location to the target location of the electronic device.
The obtaining module 802 is further configured to obtain a navigation direction from the current position in the navigation path.
The detection module 804 is configured to detect an inclination direction of the electronic device with respect to the reference plane, and generate a simulated moving direction corresponding to the inclination direction, so as to determine whether the navigation direction and the simulated moving direction are consistent.
In this embodiment, a current position and a set target position of the electronic device are obtained, a navigation path from the current position to the target position of the electronic device is generated, and a navigation direction from the current position in the navigation path is obtained; by detecting the inclination direction of the electronic equipment relative to the reference plane, the simulated moving direction corresponding to the inclination direction can be generated, so that whether the navigation direction is consistent with the simulated moving direction is determined, the problem that the direction determination process is complicated and the efficiency is low due to the fact that a user actually moves to determine whether the moving direction is consistent with the navigation direction is avoided, the direction consistent with the navigation direction in an actual scene can be determined more quickly, and the efficiency of direction determination is improved.
In one embodiment, the detecting module 804 is further configured to detect an inclination angle of the electronic device with respect to a reference plane; and determining the inclination direction of the electronic equipment relative to the reference plane according to the inclination angle.
In one embodiment, the detecting module 804 is further configured to obtain, by using a gravitational accelerometer, a gravitational acceleration of the electronic device during rotation relative to the reference plane; determining a first component on a first axis and a second component on a second axis of the reference coordinate system based on the gravitational acceleration, respectively; and determining the inclination angle of the electronic equipment based on the first component and the second component.
In one embodiment, the detecting module 804 is further configured to navigate with a navigation path if the navigation direction is consistent with the simulated moving direction; if the navigation direction is inconsistent with the simulated moving direction, responding to the rotation of the electronic equipment, returning to continuously detecting the inclination angle of the electronic equipment in the reference coordinate system, and generating the simulated moving direction corresponding to the inclination angle so as to determine whether the navigation direction is consistent with the simulated moving direction.
In one embodiment, there is provided a direction determining apparatus including: a display module, wherein:
and the display module is used for receiving the input target position and displaying a navigation path from the current position to the target position of the electronic equipment.
The display module is also used for responding to the tilting operation of the electronic equipment and displaying the simulated moving direction corresponding to the tilting operation so as to determine whether the simulated moving direction is consistent with the navigation direction from the current position in the navigation path.
In this embodiment, the input target position is received, the navigation path from the current position to the target position of the electronic device is displayed, and in response to the tilting operation on the electronic device, the simulated moving direction corresponding to the tilting operation can be displayed, so as to determine whether the simulated moving direction is consistent with the navigation direction from the current position in the navigation path, so that the problem that the direction determination process is complicated and the efficiency is low due to the fact that the user actually moves to determine whether the moving direction is consistent with the navigation direction is avoided, the direction consistent with the navigation direction in the actual scene can be determined more quickly, and the efficiency of direction determination is improved.
In one embodiment, the above direction determining apparatus further includes: and a detection module. The detection module is used for detecting the inclination angle of the electronic device relative to the reference plane after responding to the inclination operation of the electronic device; and determining the inclination direction of the electronic equipment relative to the reference plane according to the inclination angle, and generating an analog movement direction corresponding to the inclination direction.
In one embodiment, the detection module is further configured to obtain, via a gravitational accelerometer, a gravitational acceleration of the electronic device during rotation relative to the reference plane; determining a first component on a first axis and a second component on a second axis of the reference coordinate system based on the gravitational acceleration, respectively; and determining the inclination angle of the electronic equipment based on the first component and the second component.
In one embodiment, the detection module is further configured to navigate with a navigation path if the navigation direction and the simulated moving direction are consistent; and if the navigation direction is inconsistent with the simulated moving direction, responding to the rotation of the electronic equipment, returning to the display module, executing the tilting operation to the electronic equipment, and displaying the simulated moving direction corresponding to the tilting operation to determine whether the simulated moving direction is consistent with the navigation direction from the current position in the navigation path.
The respective modules in the above-described direction determining means may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a direction determination method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a direction determination method.
Embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform a direction determination method.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A direction determining method, applied to an electronic device, the method comprising:
acquiring a current position and a set target position of the electronic equipment, and generating a navigation path from the current position to the target position of the electronic equipment;
acquiring a navigation direction from the current position in the navigation path;
and detecting the inclination direction of the electronic equipment relative to a reference plane, and generating a simulated moving direction corresponding to the inclination direction so as to determine whether the navigation direction and the simulated moving direction are consistent.
2. The method of claim 1, wherein the detecting the tilt direction of the electronic device relative to a reference plane comprises:
detecting an inclination angle of the electronic device relative to a reference plane;
and determining the inclination direction of the electronic equipment relative to the reference plane according to the inclination angle.
3. The method of claim 2, wherein the detecting the tilt angle of the electronic device relative to a reference plane comprises:
acquiring the gravity acceleration of the electronic equipment in the process of rotating relative to a reference plane through a gravity accelerometer;
determining a first component on a first axis and a second component on a second axis of the reference coordinate system based on the gravitational acceleration, respectively;
and determining the inclination angle of the electronic equipment based on the first component and the second component.
4. The method according to claim 1, wherein the method further comprises:
if the navigation direction is consistent with the simulated moving direction, navigating by using the navigation path; and/or
And if the navigation direction is inconsistent with the simulated moving direction, responding to the rotation of the electronic equipment, returning to execute the step of detecting the inclination angle of the electronic equipment in a reference coordinate system, and generating the simulated moving direction corresponding to the inclination angle so as to determine whether the navigation direction is consistent with the simulated moving direction.
5. A direction determining method, applied to an electronic device, the method comprising:
receiving an input target position, and displaying a navigation path from a current position to the target position of the electronic equipment;
and in response to the tilting operation of the electronic equipment, displaying the simulated moving direction corresponding to the tilting operation so as to determine whether the simulated moving direction is consistent with the navigation direction from the current position in the navigation path.
6. A direction determining apparatus, characterized in that it is applied to an electronic device, the apparatus comprising:
the electronic equipment comprises an acquisition module, a navigation module and a control module, wherein the acquisition module is used for acquiring the current position of the electronic equipment and a set target position and generating a navigation path from the current position to the target position of the electronic equipment;
the acquisition module is also used for acquiring the navigation direction from the current position in the navigation path;
the detection module is used for detecting the inclination direction of the electronic equipment relative to a reference plane, and generating a simulated moving direction corresponding to the inclination direction so as to determine whether the navigation direction is consistent with the simulated moving direction.
7. A direction determining apparatus, characterized in that it is applied to an electronic device, the apparatus comprising:
the display module is used for receiving an input target position and displaying a navigation path from the current position to the target position of the electronic equipment;
the display module is also used for responding to the tilting operation of the electronic equipment and displaying the simulated moving direction corresponding to the tilting operation so as to determine whether the simulated moving direction is consistent with the navigation direction from the current position in the navigation path.
8. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the direction determination method of any of claims 1-4 or 5.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-4 or 5.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1-4 or 5.
CN202210207151.9A 2022-03-03 2022-03-03 Direction determination method, direction determination device, electronic device and computer readable storage medium Pending CN116734873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210207151.9A CN116734873A (en) 2022-03-03 2022-03-03 Direction determination method, direction determination device, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210207151.9A CN116734873A (en) 2022-03-03 2022-03-03 Direction determination method, direction determination device, electronic device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116734873A true CN116734873A (en) 2023-09-12

Family

ID=87904891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210207151.9A Pending CN116734873A (en) 2022-03-03 2022-03-03 Direction determination method, direction determination device, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116734873A (en)

Similar Documents

Publication Publication Date Title
US9223408B2 (en) System and method for transitioning between interface modes in virtual and augmented reality applications
US10187757B1 (en) Method and system for determining position of an inertial computing device in a distributed network
KR101433305B1 (en) Mobile device based content mapping for augmented reality environment
CN102388406B (en) Portable electronic device recording is used to produce three-dimensional model
US8850337B2 (en) Information processing device, authoring method, and program
CN102750079B (en) Terminal unit and object control method
Pryss et al. Advanced algorithms for location-based smart mobile augmented reality applications
CN102419680B (en) Electronic equipment and display method thereof
EP3482162B1 (en) Systems and methods for dynamically providing scale information on a digital map
CN108958462A (en) A kind of methods of exhibiting and device of virtual objects
Pryss et al. The AREA framework for location-based smart mobile augmented reality applications
US20130316736A1 (en) System and Method for Determining a Magnetic Field using a Mobile Device
Pryss et al. Enabling tracks in location-based smart mobile augmented reality applications
US9021709B2 (en) Electronic device magnetic interference indication method
CN114064829A (en) Method and device for carrying out aggregation display on positioning points and electronic equipment
CN116734873A (en) Direction determination method, direction determination device, electronic device and computer readable storage medium
US20200314642A1 (en) Location anonymization system
CN117308966B (en) Indoor positioning and navigation method, system and computer equipment
CN116718196B (en) Navigation method, device, equipment and computer readable storage medium
CN109634497A (en) Position of appearing method of adjustment, device, equipment and the storage medium of map label point
CA2815540C (en) System and method for determining a magnetic field using a mobile device
US20210374780A1 (en) Location point of interest generation system
EP2730886A9 (en) Magnetic interference indication method in an electronic device
CN116916443A (en) Positioning method, positioning device, communication equipment and storage medium
CN116489591A (en) User positioning method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination