Moving track acquisition method and device, storage medium and electronic equipment
By using wireless positioning tags and anchor points to improve the accuracy of the control device's indicated position, and combining inertial sensors to obtain the moving trajectory, the trajectory inaccuracy caused by inertial sensor errors is solved, and a higher trajectory accuracy is achieved.
Patent Information
- Application Number
- CN202311701920.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2025-06-13
AI Technical Summary
In the prior art, as the use time of the control device increases, due to the continuous accumulation of acceleration and angular velocity, the error between the writing traces acquired by the inertial sensor and the actual writing traces written by the user becomes larger and larger, resulting in inaccurate trajectory acquisition.
By using wireless positioning tags and wireless positioning anchors to obtain the indicated position of the control device, the accuracy of the indicated position is improved, and then an inertial sensor is used to obtain the movement trajectory of the indicated position based on the accurate indicated position.
Improve the accuracy of the moving trajectory, reduce the trajectory error caused by inertial sensor error, and ensure the accuracy of writing traces.
Smart Images

Figure CN120143994A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a method, apparatus, storage medium, and electronic device for obtaining a movement trajectory. Background Art
[0002] Most current terminal devices with display screens support users to write on the display screen by means of finger or capacitive pen touch. To adapt to more application scenarios and not confine users in front of the display screen, in some technologies, users can use a control device to point to the display screen and then move the control device to achieve the purpose of writing on the display screen. However, in some technologies, the inertial sensor in the control device is often used to obtain the movement of the control device, so as to obtain the writing trace corresponding to the control device. However, as the usage time of the control device increases, due to the continuous accumulation of acceleration and angular velocity, the error between the obtained writing trace and the actual writing trace of the user will become larger and larger. A method for obtaining a writing trace that reduces sensor error needs to be proposed. Summary of the Invention
[0003] Embodiments of this application provide a method, apparatus, storage medium, and electronic device for obtaining a movement trajectory. The indication position of the control device can be obtained by using a wireless positioning tag and a wireless positioning anchor point, improving the accuracy of the indication position. Then, based on the accurate indication position, an inertial sensor is used to obtain the movement trajectory of the indication position, thereby improving the accuracy of the movement trajectory. The technical solutions are as follows:
[0004] In a first aspect, an embodiment of this application provides a method for obtaining a movement trajectory. The method includes:
[0005] Based on the distance between a wireless positioning tag on a control device and a wireless positioning anchor point on a display device, obtain the tag coordinates of the wireless positioning tag in a three-dimensional rectangular coordinate system. There are at least two wireless positioning tags on the control device and at least three wireless positioning anchor points on the display device;
[0006] Determine the indication position of the control device with respect to the display screen based on the tag coordinates;
[0007] Based on the indication position and an inertial sensor in the control device, obtain the movement trajectory of the indication position.
[0008] In a second aspect, an embodiment of this application provides a device for obtaining a movement trajectory. The device includes:
[0009] A tag positioning module, configured to obtain the tag coordinates of a wireless positioning tag in a three-dimensional rectangular coordinate system based on the distance between a wireless positioning tag on a control device and a wireless positioning anchor point on a display device. There are at least two wireless positioning tags on the control device and at least three wireless positioning anchor points on the display device;
[0010] An indication position acquisition module, configured to determine an indication position of a control device with respect to a display screen based on tag coordinates;
[0011] A movement trajectory acquisition module, configured to acquire a movement trajectory of the indication position based on the indication position and an inertial sensor in the control device.
[0012] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores multiple instructions, and the instructions are adapted to be loaded and executed by a processor to perform the above method steps.
[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded and executed by the processor to perform the above method steps.
[0014] In one or more embodiments of the present application, based on the distance between a wireless positioning tag on a control device and a wireless positioning anchor on a display device, tag coordinates of the wireless positioning tag in a three-dimensional rectangular coordinate system are obtained. There are at least two wireless positioning tags on the control device, and at least three wireless positioning anchors on the display device. An indication position of the control device with respect to the display screen is determined based on the tag coordinates, and a movement trajectory of the indication position is obtained based on the indication position and an inertial sensor in the control device. By using the wireless positioning tag and the wireless positioning anchor to obtain the indication position of the control device, the accuracy of the indication position is improved, and then the movement trajectory of the indication position is obtained by using the inertial sensor based on the accurate indication position, thereby improving the accuracy of the movement trajectory. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0016] Figure 1 is an exemplary diagram of using a control device for writing provided by an embodiment of the present application;
[0017] Figure 2 is a flowchart of a movement trajectory acquisition method provided by an embodiment of the present application;
[0018] Figure 3 is a flowchart of a movement trajectory acquisition method provided by an embodiment of the present application;
[0019] Figure 4It is an example schematic diagram for obtaining label coordinates provided by an embodiment of the present application;
[0020] Figure 5 It is an example schematic diagram for calculating indication coordinates provided by an embodiment of the present application;
[0021] Figure 6 It is an example schematic diagram for obtaining a movement trajectory provided by an embodiment of the present application;
[0022] Figure 7 It is a schematic structural diagram of a movement trajectory acquisition device provided by an embodiment of the present application;
[0023] Figure 8 It is a schematic structural diagram of a movement trajectory acquisition device provided by an embodiment of the present application;
[0024] Figure 9 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Specific implementation manners
[0025] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0026] The user can use a control device to point to the display screen of the display device, and can use the control device to point to the indication position on the display screen of the display device, so that without touching the display device, a movement trajectory of the indication position is left on the display screen by moving the control device. The display device can display the movement trajectory of the indication position on the display screen, so as to achieve the purpose of the user writing with the control device. It can be understood that the movement trajectory of the indication position can be the writing trace left by the user on the display screen of the display device with the control device. The user can also send an indication instruction to the display device through the movement trajectory of the indication position. The indication instruction is used to control the display device, and the indication instruction can include instructions such as marking, clicking, sliding, and returning. The movement trajectory acquisition method provided by the embodiments of the present application can be implemented depending on a computer program and can run on a movement trajectory acquisition device based on the von Neumann architecture. This computer program can be integrated in an application or run as an independent tool class application. The display device can be a terminal device such as a display screen, a mobile phone with a display function, a projection device, or a conference tablet. The movement trajectory acquisition device can be the display device or a module or application program in the display device for implementing the movement trajectory acquisition method, and the control device is an electronic device for writing on the display device.
[0027] Please refer to Figure 1 , which provides an example schematic diagram of writing using a control device. There can be wireless positioning anchors at different positions on the display device, and wireless positioning tags can be present at different positions on the control device. As Figure 1 shown, the number of wireless positioning anchors can be at least three, the number of wireless positioning tags can be at least two, and wireless communication can be used between the wireless positioning anchors and the wireless positioning tags. The moving trajectory acquisition device can obtain the distance between the wireless positioning anchor and the wireless positioning tag through the wireless signal between the wireless positioning anchor and the wireless positioning tag. It can be understood that since the wireless positioning anchor can be at a fixed position on the display device, based on the interval distance between the wireless positioning tag and each wireless positioning anchor, combined with the position of the wireless positioning anchor, the position of the wireless positioning tag relative to the display device can be obtained, thereby obtaining the posture of the control device relative to the display device. Among them, the wireless method for communication between the wireless positioning anchor and the wireless positioning tag can be Ultra WideBand (UWB) communication. UWB is a wireless carrier communication technology that does not use a sine carrier but uses nanosecond-level non-sine wave narrow pulses to transmit data.
[0028] To more accurately obtain the posture of the control device relative to the display device, the moving trajectory acquisition device can establish a three-dimensional rectangular coordinate system based on the display screen of the display device. As Figure 1 shown, the midpoint of the upper border of the display screen can be used as the origin o, the straight line corresponding to the upper border of the display screen can be used as the x-axis, the parallel straight line of the side border of the display screen can be used as the y-axis, that is, the display plane corresponding to the display screen is in the xoy plane of the three-dimensional rectangular coordinate system, and the straight line passing through the origin o and perpendicular to the xoy plane can be used as the z-axis. It can be understood that since the wireless positioning anchor can be at a fixed position on the display device, the anchor coordinates of the wireless positioning anchor in the three-dimensional rectangular coordinate system can be determined according to the fixed position. Then, combined with the anchor coordinates and the interval distance, the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system can be calculated, and the indication coordinates of the indication position of the control device relative to the display screen in the three-dimensional rectangular coordinate system can also be calculated. Through the indication coordinates, the indication position on the display screen can be determined more accurately.
[0029] Among them, the control device can be a laser remote control device. The laser remote control device can be an electronic device that can emit laser rays, such as a laser pointer or a remote control. The indicated position is the position indicated by the laser ray of the laser remote control device on the display device. For example, the user can use the control device to point to the display device to achieve the purpose of writing or sending control instructions on the display device. At this time, the control device can emit a laser ray to the display device, and the indicated position can be the landing point of the laser ray on the display device, which represents the position that the user wants to indicate on the display device through the control device.
[0030] The following will specifically describe the mobile trajectory acquisition method provided by this application with reference to specific embodiments.
[0031] Please refer to Figure 2 , which is a schematic flowchart of a mobile trajectory acquisition method provided by an embodiment of this application. As Figure 2 shown, the method of the embodiment of this application can include the following steps S101-S103.
[0032] S101, based on the distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device, obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system.
[0033] Specifically, the mobile trajectory acquisition device can obtain the distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device. The wireless positioning tag and the wireless positioning anchor can communicate wirelessly. The mobile trajectory acquisition device can obtain the distance between the wireless positioning anchor and the wireless positioning tag through the wireless signal between the wireless positioning anchor and the wireless positioning tag. For example, the mobile trajectory acquisition device can obtain the propagation time of the wireless signal between the wireless positioning anchor and the wireless positioning tag, and based on the propagation time and the propagation speed of the wireless signal, the distance between the wireless positioning anchor and the wireless positioning tag can be obtained. Among them, there can be at least two wireless positioning tags on the control device, and at least three wireless positioning anchors on the display device.
[0034] The moving trajectory acquisition device can also establish a three-dimensional rectangular coordinate system based on the display screen of the display device. For example, the display plane corresponding to the display screen can be on the xoy plane of a rectangular coordinate system in the three-dimensional rectangular coordinate system. Since the wireless positioning anchor points can be at fixed positions on the display device, the anchor point coordinates of the wireless positioning anchor points in the three-dimensional rectangular coordinate system are also fixed. The fixed positions can be the initial settings of the moving trajectory acquisition device, or can be set by the user or relevant staff. The moving trajectory acquisition device can obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system based on the interval distances between the wireless positioning tag and each wireless positioning anchor point. For example, the moving trajectory acquisition device can calculate the tag coordinates according to the anchor point coordinates and the interval distances.
[0035] S102. Determine the indicated position of the control device for the display screen based on the tag coordinates.
[0036] Specifically, the wireless positioning tag is on the control device, and the number of wireless positioning tags can be at least two. For example, there can be one wireless positioning tag at each of the head and tail of the control device. Then the line connecting the two tag coordinates can represent the attitude and the indicated direction of the control device in the three-dimensional rectangular coordinate system, so that the indicated position of the control device for the display screen can be obtained. Therefore, the moving trajectory acquisition device can determine the indicated position of the control device for the display screen based on the tag coordinates. For example, the coordinates of the indicated position can be the intersection coordinates of the straight line passing through all the tag coordinates and the display plane corresponding to the display screen.
[0037] S103. Obtain the moving trajectory of the indicated position based on the indicated position and the inertial sensor in the control device.
[0038] Specifically, the user can leave a movement trajectory indicating the position on the display screen by moving the control device and changing the posture of the control device. After the movement trajectory acquisition device obtains the accurate indicated position through the wireless positioning tag and the wireless positioning anchor, it can obtain the change in the posture of the control device in the three-dimensional rectangular coordinate system based on the inertial sensor in the control device, and then combine the indicated position to obtain the movement trajectory of the user's indicated position on the display screen based on the control device. The inertial sensor (Inertial Measurement Unit, IMU) can detect and measure the acceleration, tilt, shock, vibration, rotation and multi-degree-of-freedom movement of the control device. For example, if the movement trajectory acquisition device detects that the control device moves horizontally to the left based on the inertial sensor, it can obtain the movement trajectory of the user's indicated position on the display screen based on the control device as a straight line drawn to the left starting from the indicated position. The display device can display the movement trajectory of the indicated position on the display screen, so as to achieve the purpose of the user writing with the control device. The user can also send an indication instruction to the display device through the movement trajectory of the indicated position. The indication instruction is used to control the display device, and the indication instruction can include instructions such as marking, clicking, swiping, and returning.
[0039] In the embodiment of the present application, based on the distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device, the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system are obtained. There are at least two wireless positioning tags on the control device, and there are at least three wireless positioning anchors on the display device. Based on the tag coordinates, the indicated position of the control device relative to the display screen is determined, and based on the indicated position and the inertial sensor in the control device, the movement trajectory of the indicated position is obtained. By using the wireless positioning tag and the wireless positioning anchor to obtain the indicated position of the control device, the accuracy of the indicated position is improved, and then based on the accurate indicated position, the inertial sensor is used to obtain the movement trajectory of the indicated position, thereby improving the accuracy of the movement trajectory.
[0040] Please refer to Figure 3 , which is a schematic flowchart of a movement trajectory acquisition method provided by an embodiment of the present application. As Figure 3 shown, the method of the embodiment of the present application may include the following steps S201-S207.
[0041] S201, determine the anchor coordinates of the wireless positioning anchor in the three-dimensional rectangular coordinate system.
[0042] Specifically, the movement trajectory acquisition device can establish a three-dimensional rectangular coordinate system based on the display screen of the display device. For example, the display plane corresponding to the display screen can be on the xoy plane of a rectangular coordinate system in the three-dimensional rectangular coordinate system. Since the wireless positioning anchor points can be at fixed positions on the display device, the anchor point coordinates of the wireless positioning anchor points in the three-dimensional rectangular coordinate system are also fixed. The fixed positions can be the initial settings of the movement trajectory acquisition device, or can be set by the user or relevant staff. The movement trajectory acquisition device can determine the anchor point coordinates of the wireless positioning anchor points in the three-dimensional rectangular coordinate system.
[0043] Optionally, there can be at least three wireless positioning anchor points at different positions on the display device. For example, there can be one wireless positioning anchor point on the upper border, the upper right corner of the border, and the right border of the display screen respectively.
[0044] S202. Based on the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchor point, obtain the interval distance between the wireless positioning tag and the wireless positioning anchor point.
[0045] Specifically, the wireless positioning tag and the wireless positioning anchor point have a wireless signal communication function for wireless communication. The movement trajectory acquisition device can obtain the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchor point, and then obtain the interval distance between the wireless positioning tag and the wireless positioning anchor point based on the propagation time. For example, multiplying the propagation time by the propagation speed of the wireless signal can obtain the interval distance.
[0046] Optionally, the movement trajectory acquisition device can determine the target wireless positioning tag on the control device. Since the number of wireless positioning tags can be at least two, the target wireless positioning tag can be any wireless positioning tag on the control device. The movement trajectory acquisition device can respectively obtain the propagation time of the wireless signal between the target wireless positioning tag and each wireless positioning anchor point, and then calculate the product of the propagation time and the propagation speed of the wireless signal to respectively obtain the interval distance between the wireless target positioning tag and each wireless positioning anchor point. Among them, the propagation speed of the wireless signal can be the speed of light.
[0047] Optionally, the movement trajectory acquisition device can calculate the interval distance using the bilateral double-sided ranging method. For example, the movement trajectory acquisition device can control the wireless positioning anchor point to send a wireless signal to the wireless positioning tag. After receiving the wireless signal, the wireless positioning tag can return the wireless signal to the wireless positioning anchor point. After receiving the wireless signal returned by the wireless positioning tag, the wireless positioning anchor point can send a wireless signal to the wireless positioning tag for the second time. The wireless positioning tag can receive the wireless signal of the wireless positioning anchor point for the second time. The movement trajectory acquisition device can obtain the propagation time T based on the time consumed for the round trip of the wireless signal between the wireless positioning tag and the wireless positioning anchor point. prop, the formula is as follows:
[0048]
[0049] Among them, T round1 is the time interval between the first wireless signal transmission and the first wireless signal reception by the wireless positioning anchor, and T reply1 is the time interval between the first wireless signal reception and the first wireless signal transmission by the wireless positioning tag, and T round2 is the time interval between the first wireless signal transmission and the second wireless signal reception by the wireless positioning tag, and T reply2 is the time interval between the first wireless signal reception and the second wireless signal transmission by the wireless positioning anchor, and the propagation time T is obtained prop After that, the interval distance D can be calculated, and the formula is as follows:
[0050] D = C × T prop
[0051] Among them, c is the wireless signal propagation speed, which can be the speed of light.
[0052] S203. Based on the anchor coordinates and the interval distance, obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system.
[0053] Specifically, the moving trajectory acquisition device can obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system based on the anchor coordinates and the interval distance.
[0054] Optionally, please also refer to Figure 4 , which provides an example schematic diagram for obtaining tag coordinates in this embodiment. There can be three wireless tag anchors on the display device, located at the origin of the three-dimensional coordinate system, at the corner of the display device border, and on the side border of the display device respectively. The corresponding anchor coordinates of the three wireless tag anchors can be (0,0,0), (x 0 ,0,0) and (x 0 ,y 0 ,0) respectively. There can be at least two wireless positioning tags on the control device, one at the head and one at the tail, and the corresponding tag coordinates are (x 1 ,y 1 ,z 1 ) and (x 2 ,y 2 ,z 2 ) respectively. If the interval distances between the wireless positioning tag at the coordinate (x 1 ,y 1 ,z 1 ) and the three wireless positioning anchors are D 1 , D 2 and D 3 , coordinate (x2 , y 2 , z 2 ) The distance between the wireless positioning tag on it and the three wireless positioning anchors are D 4 , D 5 and D 6 , then the formula for calculating the tag coordinates is as follows:
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061] S204. Determine the display plane of the display screen in the three-dimensional rectangular coordinate system.
[0062] Specifically, the three-dimensional rectangular coordinate system is established based on the display screen. The moving trajectory acquisition device can determine the display plane of the display screen in the three-dimensional rectangular coordinate system. For example, if the display plane of the display screen is on the xoy plane of the three-dimensional rectangular coordinate system, then the display plane is the plane where z = 0.
[0063] S205. Calculate the indication coordinates indicated by the control device based on the display plane and the tag coordinates.
[0064] Specifically, the moving trajectory acquisition device can calculate the indication coordinates corresponding to the indication position of the control device for the display device based on the display plane and the tag coordinates. For example, the connection line of the two tag coordinates can represent the attitude and indication direction of the control device in the three-dimensional rectangular coordinate system, so that the indication position of the control device for the display screen can be obtained. Therefore, the moving trajectory acquisition device can calculate the connection line connecting all the tag coordinates in the three-dimensional rectangular coordinate system, and then calculate the intersection point of the connection line and the display plane, and obtain the indication coordinates indicated by the control device based on the intersection point.
[0065] Optionally, please also refer to Figure 5 , which provides an example schematic diagram for calculating the indication coordinates in the embodiments of the present application. The anchor coordinates of the three wireless positioning anchors on the display device can be (0, 0, 0), (x 0 , 0, 0) and (x 0 , y 0 , 0) respectively, and the tag coordinates of the wireless positioning tag on the control device are (x 1 , y1 , z 1 ), and (x 2 , y 2 , z 2 ), the connecting line can be a line passing through the coordinates of the two tags simultaneously. The intersection point of the connecting line and the real plane is the indicated coordinate indicated by the control device. If the display plane is z = 0, the indicated coordinate indicated by the control device can be (x′, y′, 0). The calculation formula for the indicated coordinate is as follows:
[0066]
[0067]
[0068] Optionally, the movement trajectory acquisition device can also calculate the indicated angle between the control device and the three-dimensional rectangular coordinate axes based on the tag coordinates when calculating the indicated position. For example Figure 5 as shown, the movement trajectory acquisition device can calculate the angle θ between the connecting line corresponding to the writing device and the positive x direction in the xoz plane 0 , and the angle between the connecting line corresponding to the writing device and the negative y direction in the yoz plane The formula is as follows:
[0069]
[0070]
[0071] S206. Confirm the position corresponding to the indicated coordinate as the indicated position of the control device for the display screen.
[0072] Specifically, the movement trajectory acquisition device can confirm the position corresponding to the indicated coordinate as the indicated position of the control device for the display screen, that is, the position that the user wants to indicate on the display screen. The movement trajectory acquisition device can display the indicated position on the display screen.
[0073] S207. Based on the indicated position and the inertial sensor in the control device, obtain the movement trajectory of the indicated position.
[0074] Specifically, the user can leave a movement trajectory indicating the position on the display screen by moving the control device and changing the posture of the control device. After the movement trajectory acquisition device obtains the accurate indicated position through the wireless positioning tag and the wireless positioning anchor, it can obtain the change in the posture of the control device in the three-dimensional rectangular coordinate system based on the inertial sensor in the control device, and then combine the indicated position to obtain the movement trajectory of the user's indicated position on the display screen based on the control device. The inertial sensor can detect and measure the acceleration, tilt, shock, vibration, rotation and multi-degree-of-freedom movement of the control device. For example, if the movement trajectory acquisition device detects that the control device moves horizontally to the left based on the inertial sensor, it can obtain that the movement trajectory of the user's indicated position on the display screen based on the control device is a straight line drawn to the left starting from the indicated position.
[0075] Optionally, the movement trajectory acquisition device can obtain at least one posture change information of the control device by using the inertial sensor in the control device according to the inertial sampling frequency. The inertial sampling frequency is the frequency at which the inertial sensor obtains the posture change information, which can be the initial setting of the movement trajectory acquisition device, or can be set by the user or relevant staff. It can be understood that the larger the inertial sampling frequency, the more posture change information is obtained, and the more accurate and smooth the final movement trajectory of the indicated position is. The inertial sensor can collect the posture change information of the control device at the inertial sampling time point based on the inertial sampling frequency. The posture change information can be the posture change of the control device at the current inertial sampling time point compared with the previous inertial sampling time point, and can include the acceleration, angular velocity, etc. of the control device. Then, based on at least one posture change information and the indicated position, at least one movement position of the control device relative to the display screen can be obtained. It can be understood that the movement position can be obtained based on the previous movement position and the posture change information, and the first movement position can be obtained based on the indicated position and the posture change information. Then, based on the indicated position and at least one movement position, the movement trajectory of the indicated position is generated, that is, the writing trace of the user on the display device based on the control device.
[0076] Please also refer to Figure 6 , which provides an example schematic diagram of obtaining a movement trajectory in an embodiment of the present application. After the movement trajectory acquisition device obtains the indicated position, it can obtain at least one movement position based on the posture change information obtained by the inertial sensor, such as Figure 6The points A, B, C, and D shown can all be the moved positions after the indicated position. Among them, point A can be the moved position obtained based on the attitude change information acquired when reaching the first inertial sampling time point after obtaining the indicated position. Subsequently, when reaching the next inertial sampling time point, the attitude change information is acquired again, and the moved position B is obtained. And so on, the moved positions C and D are obtained, and the indicated position and all the moved positions are connected to generate the movement trajectory of the indicated position.
[0077] Optionally, since the movement trajectory acquisition device acquires the indicated angle between the control device and the coordinate axes of the three-dimensional rectangular coordinate system based on the label coordinates when calculating the indicated position, the movement trajectory acquisition device can acquire at least one moved position of the control device with respect to the display screen based on the attitude change information, the indicated position, and the indicated angle. That is, on the basis of the indicated angle, combined with the changed angle in the attitude change information, the angle between the control device and the coordinate axes of the three-dimensional rectangular coordinate system at the moved position can be acquired, which increases the accuracy of the moved position acquisition.
[0078] It can be understood that the inertial sensor can obtain the moving distance and angle of the control device through the acceleration and angular velocity of the control device. For example Figure 6 as shown, when reaching the first inertial sampling time point, that is, the inertial sampling time point corresponding to A, the inertial sensor acquires the coordinates (x 3 , y 3 , z 3 ) of the control device corresponding to the control device based on the acceleration of the control device. It can be understood that (x 3 , y 3 , z 3 ) can be obtained by combining the label coordinates with the acceleration of the control device. Based on the inertial sensor, the changed angle Δθ of the control device on the basis of the indicated angle and then the coordinates of the indicated position A at this time can be expressed as:
[0079]
[0080] Optionally, in addition to obtaining the movement trajectory indicating the position through the inertial sensor, the movement trajectory obtaining device can also continue to obtain at least one continuous position indication based on the tag sampling frequency. The tag sampling frequency can be the frequency at which the movement trajectory obtaining device calculates the position indication through the wireless positioning anchor and the wireless positioning tag. If the position indication is outside the display screen or the user temporarily turns off the control device, the movement trajectory obtaining device can stop obtaining the position indication. Then, the movement trajectory obtaining device can perform a connection process on at least one continuous position indication to obtain the movement trajectory of the position indication, that is, obtain the writing trace of the user on the display screen based on the control device. It can be understood that directly obtaining the movement trajectory of the position indication through continuous position indications results in a high-accuracy movement trajectory of the position indication, but also requires a large amount of computation.
[0081] Optionally, the display device can display the movement trajectory of the position indication on the display screen, so as to achieve the purpose of the user writing with the control device. The user can also send an indication instruction to the display device through the movement trajectory of the position indication. The indication instruction is used to control the display device. The indication instruction can include instructions such as marking, clicking, swiping, and returning. It can be understood that different movement trajectories of the position indication can correspond to different indication instructions. The movement trajectory obtaining device can obtain the indication instruction corresponding to the movement trajectory of the position indication, and then control the display device based on the indication instruction.
[0082] For example, if the movement trajectory of the position indication is a swipe from left to right or from right to left, the indication instruction can be to swipe the screen display and content to the right or left. If the duration for which the movement trajectory of the position indication stays within the preset range reaches the preset duration, indicating that the position indicated by the user has not changed significantly for a certain period of time, the indication instruction can be a click instruction. The preset range and the preset duration can be the initial settings of the movement trajectory obtaining device, or can be set by the user or relevant staff.
[0083] It can be understood that if the movement trajectory of the position indication is obtained using an inertial sensor, as the usage time increases, due to the continuous accumulation of acceleration and angular velocity, the error between the obtained movement trajectory of the position indication and the actual writing trace of the user will become larger and larger. Therefore, the movement trajectory obtaining device can execute the steps of S201 once every preset time period to re-obtain the accurate position indication, and then continue to obtain the movement trajectory of the position indication based on the position indication using the inertial sensor. Among them, the preset time period can be the initial setting of the movement trajectory obtaining device, or can be set by the user or relevant staff. For example, the preset time period can be 10s, that is, the movement trajectory obtaining device executes the steps of S201 every 10s to re-obtain the position indication once.
[0084] In the embodiment of the present application, a three-dimensional rectangular coordinate system is established based on the display screen of the display device to facilitate the calculation and description of the indicated position, and the anchor coordinates of the wireless positioning anchor in the three-dimensional rectangular coordinate system are determined. Based on the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchor, the interval distance between the wireless positioning tag and the wireless positioning anchor is obtained. Among them, the bilateral double-sided ranging method can be used to calculate the interval distance, which improves the accuracy of obtaining the interval distance. Based on the anchor coordinates and the interval distance, the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system are obtained, and the display plane of the display screen in the three-dimensional rectangular coordinate system is determined. Based on the display plane and the tag coordinates, the indicated coordinates indicated by the control device are calculated, and the position corresponding to the indicated coordinates is confirmed as the indicated position of the control device for the display screen. Based on the indicated position and the inertial sensor in the control device, the movement trajectory of the indicated position is obtained. In order to avoid the deviation of the inertial sensor due to the accumulation of acceleration and angular velocity, the step of obtaining the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device can be executed again every preset time period. By using the wireless positioning tag and the wireless positioning anchor to obtain the indicated position of the control device, the accuracy of the indicated position is improved, and then the movement trajectory of the indicated position is obtained by using the inertial sensor based on the accurate indicated position, thereby improving the accuracy of the movement trajectory.
[0085] The following will combine the attached Figure 7 - attached Figure 8 , and introduce the movement trajectory acquisition device provided by the embodiment of the present application in detail. It should be noted that the movement trajectory acquisition device in the attached Figure 7 - attached Figure 8 is used to execute the method of the embodiment of the present application Figure 2 and Figure 3 shown. For the sake of easy explanation, only the parts related to the embodiment of the present application are shown. For the specific technical details not disclosed, please refer to the embodiments shown in the present application Figure 2 and Figure 3 shown.
[0086] Please refer to Figure 7 , which shows the structural schematic diagram of the movement trajectory acquisition device provided by an exemplary embodiment of the present application. The movement trajectory acquisition device can be implemented as all or part of the device through software, hardware, or a combination of both. The device 1 includes a tag positioning module 11, an indicated position acquisition module 12, and a movement trajectory acquisition module 13.
[0087] A tag positioning module 11, configured to obtain the tag coordinates of a wireless positioning tag in a three-dimensional rectangular coordinate system based on the distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device. There are at least two wireless positioning tags on the control device and at least three wireless positioning anchors on the display device;
[0088] An indication position obtaining module 12, configured to determine the indication position of the control device with respect to the display screen based on the tag coordinates;
[0089] A movement trajectory obtaining module 13, configured to obtain the movement trajectory of the indication position based on the indication position and the inertial sensor in the control device.
[0090] In this embodiment, based on the distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device, the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system are obtained. There are at least two wireless positioning tags on the control device and at least three wireless positioning anchors on the display device. The indication position of the control device with respect to the display screen is determined based on the tag coordinates, and the movement trajectory of the indication position is obtained based on the indication position and the inertial sensor in the control device. By using the wireless positioning tag and the wireless positioning anchor to obtain the indication position of the control device, the accuracy of the indication position is improved, and then the movement trajectory of the indication position is obtained by using the inertial sensor based on the accurate indication position, thereby improving the accuracy of the movement trajectory.
[0091] Please refer to Figure 8 , which shows a schematic structural diagram of a movement trajectory obtaining device provided by an exemplary embodiment of the present application. The movement trajectory obtaining device can be implemented as all or part of the device through software, hardware, or a combination of both. The device 1 includes a tag positioning module 11, an indication position obtaining module 12, an angle obtaining module 14, a movement trajectory obtaining module 13, a position correction module 15, a tag sampling module 16, and an instruction control module 17.
[0092] A tag positioning module 11, configured to obtain the tag coordinates of a wireless positioning tag in a three-dimensional rectangular coordinate system based on the distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device. There are at least two wireless positioning tags on the control device and at least three wireless positioning anchors on the display device;
[0093] Optionally, the wireless positioning tag and the wireless positioning anchor have a wireless signal communication function;
[0094] The tag positioning module 11 is specifically configured to determine the anchor coordinates of the wireless positioning anchor in the three-dimensional rectangular coordinate system;
[0095] Based on the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchor, obtain the interval distance between the wireless positioning tag and the wireless positioning anchor;
[0096] Based on the anchor coordinates and the interval distance, obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system.
[0097] The tag positioning module 11 is specifically configured to determine the target wireless positioning tag on the control device, and the target wireless positioning tag is any wireless positioning tag on the control device;
[0098] Respectively obtain the propagation time of the wireless signal between the target wireless positioning tag and each wireless positioning anchor;
[0099] Calculate the product of the propagation time and the propagation speed of the wireless signal, and respectively obtain the interval distance between the target wireless positioning tag and each wireless positioning anchor.
[0100] The indication position acquisition module 12 is used to determine the indication position of the control device with respect to the display screen based on the tag coordinates;
[0101] The indication position acquisition module 12 is specifically configured to determine the display plane of the display screen in the three-dimensional rectangular coordinate system;
[0102] Based on the display plane and the tag coordinates, calculate the indication coordinates indicated by the control device;
[0103] Confirm the position corresponding to the indication coordinates as the indication position of the control device with respect to the display screen.
[0104] The indication position acquisition module 12 is specifically configured to calculate the connection straight line connecting all the tag coordinates in the three-dimensional rectangular coordinate system;
[0105] Calculate the intersection point of the connection straight line and the display plane, and obtain the indication coordinates indicated by the control device based on the intersection point.
[0106] The angle acquisition module 14 is used to obtain the indication angle between the control device and the coordinate axes of the three-dimensional rectangular coordinate system based on the tag coordinates;
[0107] The movement trajectory acquisition module 13 is used to obtain the movement trajectory of the indication position based on the indication position and the inertial sensor in the control device.
[0108] The movement trajectory acquisition module 13 is specifically configured to obtain at least one attitude change information of the control device by using the inertial sensor in the control device based on the inertial sampling frequency;
[0109] Based on at least one attitude change information and the indication position, obtain at least one movement position of the control device with respect to the display screen;
[0110] Generate a movement trajectory of the indicated position based on the indicated position and at least one movement position.
[0111] The movement trajectory acquisition module 13 is specifically configured to obtain at least one movement position of the control device with respect to the display screen based on the attitude change information, the indicated position, and the indicated angle.
[0112] Optionally, the control device is a laser remote control device, and the indicated position is the position indicated by the laser ray of the laser remote control device on the display device.
[0113] The position correction module 15 is configured to, at every preset time period, execute the step of obtaining the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device;
[0114] The tag sampling module 16 is configured to continuously obtain at least one consecutive indicated position based on the tag sampling frequency;
[0115] Connect the at least one consecutive indicated position to obtain the movement trajectory of the indicated position.
[0116] The instruction control module 17 is configured to obtain an instruction corresponding to the movement trajectory of the indicated position and control the display device based on the instruction.
[0117] In this embodiment, a three-dimensional rectangular coordinate system is established based on the display screen of the display device to facilitate the calculation and description of the indicated position, determine the anchor coordinates of the wireless positioning anchor in the three-dimensional rectangular coordinate system, and obtain the interval distance between the wireless positioning tag and the wireless positioning anchor based on the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchor. Among them, the bilateral double-sided ranging method can be used to calculate the interval distance, which improves the accuracy of obtaining the interval distance. Based on the anchor coordinates and the interval distance, obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system, determine the display plane of the display screen in the three-dimensional rectangular coordinate system, calculate the indicated coordinates indicated by the control device based on the display plane and the tag coordinates, and confirm the position corresponding to the indicated coordinates as the indicated position of the control device with respect to the display screen. Based on the indicated position and the inertial sensor in the control device, obtain the movement trajectory of the indicated position. To avoid the deviation caused by the accumulation of acceleration and angular velocity of the inertial sensor, the step of obtaining the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device can be executed again at every preset time period. By using the wireless positioning tag and the wireless positioning anchor to obtain the indicated position of the control device, the accuracy of the indicated position is improved, and then the movement trajectory of the indicated position is obtained by using the inertial sensor based on the accurate indicated position, thereby improving the accuracy of the movement trajectory.
[0118] It should be noted that when the mobile trajectory acquisition device provided in the above embodiment executes the mobile trajectory acquisition method, only the division of the above function modules is used for illustration. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the mobile trajectory acquisition device provided in the above embodiment and the mobile trajectory acquisition method embodiment belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be elaborated here.
[0119] The serial numbers of the embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0120] The embodiments of the present application also provide a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded and executed by a processor to execute the mobile trajectory acquisition method as described in the above Figures 1-6 illustrated embodiment. For the specific execution process, please refer to Figures 1-6 the specific description of the illustrated embodiment, which will not be elaborated here.
[0121] The present application also provides a computer program product, which stores at least one instruction. The at least one instruction is loaded and executed by a processor to execute the mobile trajectory acquisition method as described in the above Figures 1-6 illustrated embodiment. For the specific execution process, please refer to Figures 1-6 the specific description of the illustrated embodiment, which will not be elaborated here.
[0122] Please refer to Figure 9 , which shows a block diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. The electronic device in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected through the bus 150.
[0123] The processor 110 may include one or more processing cores. The processor 110 connects various parts within the entire electronic device using various interfaces and circuits. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by invoking data stored in the memory 120, it performs various functions of the terminal 100 and processes data. Optionally, the processor 110 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 110 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interfaces, and application programs, etc.; the GPU is responsible for rendering and drawing display content; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110 and may be implemented separately through a communication chip.
[0124] The memory 120 may include random access memory (RAM) and may also include read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be the Android system, including a system developed based on the Android system in depth, the IOS system developed by Apple Inc., including a system developed based on the IOS system in depth, or other systems.
[0125] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party application programs run in the user space. To ensure that different third-party application programs can achieve good running effects, the operating system allocates corresponding system resources for different third-party application programs. However, there are also differences in the system resource requirements of different application scenarios in the same third-party application program. For example, in the local resource loading scenario, the third-party application program has a higher requirement for the disk reading speed; in the animation rendering scenario, the third-party application program has a higher requirement for the GPU performance. The operating system and the third-party application program are independent of each other, and the operating system often cannot timely perceive the current application scenario of the third-party application program, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application program.
[0126] To enable the operating system to distinguish the specific application scenarios of third-party application programs, it is necessary to establish data communication between the third-party application programs and the operating system, so that the operating system can obtain the current scenario information of the third-party application programs at any time, and then perform targeted system resource adaptation based on the current scenario.
[0127] Among them, the input device 130 is used to receive input instructions or data. The input device 130 includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output instructions or data. The output device 140 includes but is not limited to a display device and a speaker, etc. In one example, the input device 130 and the output device 140 can be integrated, and the input device 130 and the output device 140 are a touch display screen.
[0128] The touch display screen can be designed as a full-screen, a curved screen, or a special-shaped screen. The touch display screen can also be designed as a combination of a full-screen and a curved screen, or a combination of a special-shaped screen and a curved screen. The embodiments of the present application do not limit this.
[0129] In addition, those skilled in the art can understand that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the drawings, or combine some components, or have different component arrangements. For example, the electronic device also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a Wireless Fidelity (WiFi) module, a power supply, and a Bluetooth module, which will not be elaborated here.
[0130] In Figure 9 the electronic device shown, the processor 110 can be used to call the mobile trajectory acquisition application program stored in the memory 120 and specifically perform the following operations:
[0131] Based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device, obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system. There are at least two wireless positioning tags on the control device and at least three wireless positioning anchors on the display device;
[0132] Based on the tag coordinates, determine the indicated position of the control device with respect to the display screen;
[0133] Based on the indicated position and the inertial sensor in the control device, obtain the movement trajectory of the indicated position.
[0134] In one embodiment, the wireless positioning tag and the wireless positioning anchor have a wireless signal communication function;
[0135] When the processor 110 executes to obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device, the following operations are specifically performed:
[0136] Determine the anchor coordinates of the wireless positioning anchor in the three-dimensional rectangular coordinate system;
[0137] Based on the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchor, obtain the interval distance between the wireless positioning tag and the wireless positioning anchor;
[0138] Based on the anchor coordinates and the interval distance, obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system.
[0139] In one embodiment, when the processor 110 executes to obtain the interval distance between the wireless positioning tag and the wireless positioning anchor based on the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchor, the following operations are specifically performed:
[0140] Determine the target wireless positioning tag on the control device. The target wireless positioning tag is any wireless positioning tag on the control device;
[0141] Respectively obtain the propagation time of the wireless signal between the target wireless positioning tag and each wireless positioning anchor;
[0142] Calculate the product of the propagation time and the propagation speed of the wireless signal to respectively obtain the interval distance between the target wireless positioning tag and each wireless positioning anchor.
[0143] In one embodiment, when the processor 110 executes to determine the indicated position of the control device with respect to the display screen based on the tag coordinates, the following operations are specifically performed:
[0144] Determine the display plane of the display screen in the three-dimensional rectangular coordinate system;
[0145] Calculate the indicated coordinates indicated by the control device based on the display plane and the label coordinates;
[0146] Confirm the position corresponding to the indicated coordinates as the indicated position of the control device for the display screen.
[0147] In one embodiment, when the processor 110 executes calculating the indicated coordinates indicated by the control device based on the display plane and the label coordinates, it specifically performs the following operations:
[0148] Calculate the connecting line connecting all the label coordinates in the three-dimensional rectangular coordinate system;
[0149] Calculate the intersection point of the connecting line and the display plane, and obtain the indicated coordinates indicated by the control device based on the intersection point.
[0150] In one embodiment, when the processor 110 executes obtaining the movement trajectory of the indicated position based on the indicated position and the inertial sensor in the control device, it specifically performs the following operations:
[0151] Based on the inertial sampling frequency, use the inertial sensor in the control device to obtain at least one attitude change information of the control device;
[0152] Based on at least one attitude change information and the indicated position, obtain at least one movement position of the control device for the display screen;
[0153] Generate the movement trajectory of the indicated position based on the indicated position and at least one movement position.
[0154] In one embodiment, before the processor 110 executes obtaining the movement trajectory of the indicated position based on the indicated position and the inertial sensor in the control device, it also performs the following operations:
[0155] Based on the label coordinates, obtain the indicated angle between the control device and the coordinate axes of the three-dimensional rectangular coordinate system;
[0156] When the processor 110 executes obtaining at least one movement position of the control device for the display screen based on at least one attitude change information and the indicated position, it specifically performs the following operations:
[0157] Based on the attitude change information, the indicated position and the indicated angle, obtain at least one movement position of the control device for the display screen.
[0158] In one embodiment, the control device is a laser remote control device, and the indicated position is the position indicated by the laser ray of the laser remote control device on the display device.
[0159] In one embodiment, when the processor 110 executes the movement trajectory obtaining method, it specifically performs the following operations:
[0160] At every preset time period, execute the step of obtaining the tag coordinates of the wireless positioning tag in a three-dimensional rectangular coordinate system based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device.
[0161] In one embodiment, after the processor 110 executes to determine the indicated position of the control device with respect to the display screen based on the tag coordinates, the following operations are further performed:
[0162] Continuously obtain at least one consecutive indicated position based on the tag sampling frequency;
[0163] Perform a connection process on at least one consecutive indicated position to indicate the movement trajectory of the indicated position.
[0164] In one embodiment, when the processor 110 executes the movement trajectory acquisition method, the following operations are specifically performed:
[0165] Obtain the indication instruction corresponding to the movement trajectory of the indicated position, and control the display device based on the indication instruction.
[0166] In this embodiment, a three-dimensional rectangular coordinate system is established based on the display screen of the display device to facilitate the calculation and description of the indicated position. Determine the anchor coordinates of the wireless positioning anchor in the three-dimensional rectangular coordinate system. Based on the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchor, obtain the interval distance between the wireless positioning tag and the wireless positioning anchor. Among them, the bilateral double-sided ranging method can be used to calculate the interval distance, which improves the accuracy of obtaining the interval distance. Based on the anchor coordinates and the interval distance, obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system, determine the display plane of the display screen in the three-dimensional rectangular coordinate system, calculate the indicated coordinates indicated by the control device based on the display plane and the tag coordinates, and confirm the position corresponding to the indicated coordinates as the indicated position of the control device with respect to the display screen. Based on the indicated position and the inertial sensor in the control device, obtain the movement trajectory of the indicated position. In order to avoid the deviation caused by the accumulation of acceleration and angular velocity in the inertial sensor, the step of obtaining the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device can be executed again at every preset time period. By using the wireless positioning tag and the wireless positioning anchor to obtain the indicated position of the control device, the accuracy of the indicated position is improved, and then the movement trajectory of the indicated position is obtained by using the inertial sensor based on the accurate indicated position, thereby improving the accuracy of the movement trajectory.
[0167] It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of this specification are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the tag coordinates of the wireless positioning tag, the movement trajectory indicating the position, the indication instruction, etc. involved in this specification are all obtained under full authorization.
[0168] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above various methods. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory or a random access memory, etc.
[0169] The foregoing disclosure is only for the preferred embodiments of this application, and of course cannot be used to limit the scope of rights of this application. Therefore, equivalent changes made according to the claims of this application still fall within the scope covered by this application.
Claims
1. A method for obtaining a movement trajectory, characterized in that, applied to a display device, the method includes: Based on the interval distance between a wireless positioning tag on a control device and wireless positioning anchors on the display device, obtain the tag coordinates of the wireless positioning tag in a three-dimensional rectangular coordinate system. There are at least two wireless positioning tags on the control device, and at least three wireless positioning anchors on the display device; Based on the tag coordinates, determine the indicated position of the control device with respect to the display screen; Based on the indicated position and an inertial sensor in the control device, obtain the movement trajectory of the indicated position.
2. The method according to claim 1, characterized in that, There is a wireless signal communication function between the wireless positioning tag and the wireless positioning anchor; The step of obtaining the tag coordinates of the wireless positioning tag in a three-dimensional rectangular coordinate system based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchors on the display device includes: Determine the anchor coordinates of the wireless positioning anchors in a three-dimensional rectangular coordinate system; Based on the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchors, obtain the interval distance between the wireless positioning tag and the wireless positioning anchors; Based on the anchor coordinates and the interval distance, obtain the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system.
3. The method according to claim 2, characterized in that, The step of obtaining the interval distance between the wireless positioning tag and the wireless positioning anchors based on the propagation time of the wireless signal between the wireless positioning tag and the wireless positioning anchors includes: Determine a target wireless positioning tag on the control device, and the target wireless positioning tag is any wireless positioning tag on the control device; Respectively obtain the propagation time of the wireless signal between the target wireless positioning tag and each of the wireless positioning anchors; Calculate the product of the propagation time and the propagation speed of the wireless signal, and respectively obtain the interval distance between the target wireless positioning tag and each of the wireless positioning anchors.
4. The method according to claim 1, characterized in that, The step of determining the indicated position of the control device with respect to the display screen based on the tag coordinates includes: Determine the display plane of the display screen in the three-dimensional rectangular coordinate system; Based on the display plane and the tag coordinates, calculate the indicated coordinates indicated by the control device; Confirm the position corresponding to the indicated coordinates as the indicated position of the control device with respect to the display screen.
5. The method according to claim 4, characterized in that, The step of calculating the indicated coordinates indicated by the control device based on the display plane and the tag coordinates includes: Calculate the connecting line connecting all the tag coordinates in the three-dimensional rectangular coordinate system; Calculate the intersection point of the connecting line and the display plane, and obtain the indicated coordinates indicated by the control device based on the intersection point.
6. The method according to claim 1, characterized in that, Obtaining the movement trajectory of the indicated position based on the indicated position and the inertial sensor in the control device includes: Based on the inertial sampling frequency, using the inertial sensor in the control device to obtain at least one attitude change information of the control device; Based on the at least one attitude change information and the indicated position, obtaining at least one movement position of the control device with respect to the display screen; Generating the movement trajectory of the indicated position based on the indicated position and the at least one movement position.
7. The method according to claim 6, wherein, Before obtaining the movement trajectory of the indicated position based on the indicated position and the inertial sensor in the control device, it further includes: Based on the tag coordinates, obtaining the indicated angle between the control device and the coordinate axes of the three-dimensional rectangular coordinate system; The obtaining at least one movement position of the control device with respect to the display screen based on the at least one attitude change information and the indicated position includes: Based on the attitude change information, the indicated position, and the indicated angle, obtaining at least one movement position of the control device with respect to the display screen.
8. The method according to claim 1, wherein, The control device is a laser remote control device, and the indicated position is the position indicated by the laser ray of the laser remote control device on the display device.
9. The method according to claim 1, wherein, The method further includes: Performing at preset time intervals the step of obtaining the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device.
10. The method according to claim 1, wherein, After determining the indicated position of the control device with respect to the display screen based on the tag coordinates, it further includes: Continuing to obtain at least one continuous indicated position based on the tag sampling frequency; Performing a connection process on the at least one continuous indicated position to obtain the movement trajectory of the indicated position.
11. The method according to claim 1, wherein, The method further includes: Obtaining the indicated instruction corresponding to the movement trajectory and controlling the display device based on the indicated instruction.
12. A movement trajectory obtaining device, wherein, The device includes: A tag positioning module for obtaining the tag coordinates of the wireless positioning tag in the three-dimensional rectangular coordinate system based on the interval distance between the wireless positioning tag on the control device and the wireless positioning anchor on the display device, where there are at least two wireless positioning tags on the control device and at least three wireless positioning anchors on the display device; An indicated position obtaining module for determining the indicated position of the control device with respect to the display screen based on the tag coordinates; A movement trajectory obtaining module for obtaining the movement trajectory of the indicated position based on the indicated position and the inertial sensor in the control device.
13. A computer storage medium, wherein, The computer storage medium stores multiple instructions, and the instructions are adapted to be loaded and executed by a processor to perform the method steps of any one of claims 1 to 11.
14. An electronic device, characterized in that it includes: a processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded and executed by the processor to perform the method steps of any one of claims 1 to 11.
