Positioning method and device for cursor of pointing device, equipment and storage medium
By obtaining and updating the attitude information of the air mouse remote control, combining IMU and UWB technology to calibrate the cursor position, the problem of air mouse remote control and poor chirality is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202510559367.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-08-15
AI Technical Summary
During use, the existing empty mouse remote control has a deviation from the actual display position of the cursor and the user's wrist movement pointing position, resulting in poor chirality and poor user experience.
By obtaining the attitude information of the pointing device and the cursor position information, calculating the target attitude change information, updating the display attitude information to calibrate the cursor position, combining IMU and UWB technologies to achieve real-time or periodic positioning, and reducing display position deviation.
It improves the chirality of the pointing device and improves the user experience, especially when used for short distances, reduces the jitter and deviation of the cursor.
Smart Images

Figure CN120491842A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of remote controllers, and in particular to a method, device, equipment, and storage medium for positioning a cursor of a pointing device. Background Art
[0002] The pointing device forms a cursor on the receiving device to control the receiving device. The pointing device can be an air mouse remote control, and the receiving device can be a smart TV or an industrial smart screen.
[0003] In the related art, when using the air mouse remote control, the actual display position of the cursor may deviate from the position on the receiving device pointed by the air mouse remote control when the user moves his wrist. This causes the air mouse remote control to not follow the hand, resulting in a poor user experience. Summary of the Invention
[0004] The embodiments of the present application provide a method, apparatus, device, and storage medium for positioning a cursor of a pointing device, so as to ensure the hand-tracking performance of the pointing device during use and improve the user experience.
[0005] In a first aspect, an embodiment of the present application provides a method for positioning a cursor of a pointing device, wherein the pointing device forms a cursor on a receiving device, comprising:
[0006] Acquire first posture information of the pointing device at a first moment and first display posture information representing a first position of a cursor formed by the pointing device on the receiving device; wherein the first moment is any one of a plurality of positioning moments of the pointing device;
[0007] Determining target posture change information at a second moment relative to the first moment based on the first posture information; wherein the second moment is any one of the multiple positioning moments that is later than the first moment;
[0008] The target posture change information is applied to update the first display posture information to obtain second display posture information; wherein the second display posture information indicates a second position of the cursor formed by the pointing device on the receiving device at a second moment.
[0009] In a second aspect, an embodiment of the present application provides a cursor positioning device, comprising:
[0010] A data acquisition unit is configured to acquire first posture information of the pointing device at a first moment and first display posture information representing a first position of a cursor formed by the pointing device on the receiving device; wherein the first moment is any one of a plurality of positioning moments of the pointing device;
[0011] A data processing unit is configured to determine, based on the first posture information, target posture change information at a second moment relative to the first moment; wherein the second moment is any one of the plurality of positioning moments that is located after the first moment;
[0012] The data processing unit is further configured to apply the target posture change information to update the first display posture information to obtain second display posture information; wherein the second display posture information indicates a second position of the cursor formed by the pointing device on the receiving device at a second moment.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the computer program.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, which implement the steps of any of the above methods when executed by a processor.
[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the steps of any of the above methods when executed by a processor.
[0016] In the embodiment of the present application, first, the first posture information and the first display posture information of the pointing device at the first moment are obtained. The first display posture information is the display posture information representing the first position of the cursor formed by the pointing device on the receiving device; secondly, the target posture change information at the second moment relative to the first moment can be determined based on the first posture information and the first display posture information; finally, the target posture change information is applied to update the first display posture information to obtain the second display posture information. In this way, the second position of the cursor formed by the pointing device on the receiving device at the second moment can be determined based on the second display posture information. Through the embodiment of the present application, the actual display position of the cursor at the next positioning moment is calculated in combination with the posture of the pointing device at the current positioning moment and the actual display position of the cursor of the pointing device on the receiving device, thereby reducing the deviation between the actual display position of the cursor and the position on the receiving device pointed to by the user's wrist movement of the air mouse remote control, ensuring the hand-tracking performance of the pointing device during use, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A schematic structural diagram of a pointing device provided in one embodiment of the present application;
[0019] Figure 2 A schematic structural diagram of a receiving device provided in one embodiment of the present application;
[0020] Figure 3 A schematic diagram of a coordinate system of a receiving device provided in one embodiment of the present application;
[0021] Figure 4 A schematic diagram of a coordinate system of a pointing device provided in one embodiment of the present application;
[0022] Figure 5 A flowchart of a method for positioning a cursor of a pointing device provided in one embodiment of the present application;
[0023] Figure 6 A schematic diagram of the position of a cursor of a pointing device on a receiving device provided in one embodiment of the present application;
[0024] Figure 7 A schematic diagram of an attitude angle provided in one embodiment of the present application;
[0025] Figure 8 A schematic diagram of the position relationship of a cursor provided in one embodiment of the present application;
[0026] Figure 9 A schematic diagram of a structure for determining the position of a cursor formed by a pointing device according to an embodiment of the present application;
[0027] Figure 10 A schematic structural diagram of a receiving device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0029] For ease of understanding, the terms involved in the embodiments of this application are explained below:
[0030] (1) Air Mouse Remote Control, a device that combines a wireless mouse and a smart TV remote control, has the characteristics of wireless connection, small size, easy to carry, and simple operation. It connects to smart devices wirelessly, and users can control the cursor movement on the device by waving gestures, thus achieving a precise operation experience.
[0031] (2) Ultra Wide Band (UWB) is a wireless carrier communication technology that uses nanosecond-level non-sinusoidal narrow pulses to transmit data instead of a sinusoidal carrier wave. Therefore, it occupies a very wide spectrum range. UWB technology has the advantages of low system complexity, low power spectrum density of transmitted signals, insensitivity to channel fading, low interception capability, and high positioning accuracy. It is particularly suitable for high-speed wireless access in dense multipath environments such as indoor locations.
[0032] (3) Inertial Measurement Unit (IMU): A device that measures the three-axis attitude angle (or angular rate) and acceleration of an object. Generally, an IMU contains three single-axis accelerometers and three single-axis gyroscopes. The accelerometers detect the acceleration signals of the object in the carrier coordinate system along three independent axes, while the gyroscopes detect the angular velocity signals of the carrier relative to the navigation coordinate system. The angular velocity and acceleration of the object in three-dimensional space are measured and used to calculate the object's attitude.
[0033] (4) Directionality: When the pointing device moves to the left following the wrist movement, the cursor formed by the pointing device on the receiving device also moves to the left. However, the position of the cursor is not the position projected by the air mouse remote control on the receiving device, but a relative position. This phenomenon is called non-directivity. In the embodiment of the present application, the receiving device can be an air mouse remote control, and the pointing device can be a home smart TV or an industrial smart large screen, etc.
[0034] (5) Chirality: The closer the position on the receiving device pointed to by the user's wrist movement and the actual display position of the cursor on the receiving device is, the better the chirality. Poor chirality will cause users to feel frustrated.
[0035] With the continuous advancement of technology, remote controls have also undergone various upgrades and iterations. Traditional remote controls require multiple clicks to select a specific screen location, an approach that no longer meets basic user needs. This led to the emergence of air-mouse remote controls, which allow users to directly select a desired location using a cursor. However, this generation of air-mouse remote controls is solely based on an IMU and lacks directionality. To address this poor directionality, a new generation of air-mouse remote controls has emerged, incorporating both an IMU and a UWB module. However, as user expectations continue to rise, poor chirality is increasingly impacting the user experience. For example, when a user uses a receiving device (such as an air-mouse remote control) approximately 3 meters from a receiving device (such as a smart screen), a 1° angular deviation can result in approximately 5cm of pointing deviation and jitter. For typical screens, this jitter is significant, significantly degrading the user experience. Therefore, overcoming the chirality issues of the new generation of air-mouse remote controls has become a pressing issue.
[0036] To this end, an embodiment of the present application provides a method for positioning the cursor of a pointing device. In this method, the actual display position of the cursor at the next moment is calculated in combination with the posture of the pointing device at the current moment and the actual display position of the cursor of the pointing device on the receiving device, thereby reducing the deviation between the actual display position of the cursor and the position on the receiving device pointed to by the user's wrist movement of the air mouse remote control, ensuring the hand-tracking performance of the pointing device during use, and improving the user experience.
[0037] After introducing the design concepts of the embodiments of this application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of this application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of this application and are not limiting. In specific implementations, the technical solutions provided by the embodiments of this application can be flexibly applied according to actual needs.
[0038] refer to Figure 1 , which is a structural diagram of a pointing device provided in an embodiment of the present application, and the pointing device includes a button module, a Bluetooth module, an IMU module and a UWB module. Among them, the button module reads the button information of the air mouse remote control and feeds it back to the Bluetooth module. The UWB module obtains the antenna information, calculates the antenna information, and obtains the attitude angle and distance of the receiving device relative to the pointing device or the pointing device relative to the receiving device. The antenna in this structure adopts a 1TX3RX design, in which two antennas serve as RX and one antenna realizes time division multiplexing of RX and TX. The IMU module can obtain the angular velocity information and angular acceleration information of the air mouse remote control along each coordinate axis through sensors. These sensor information is transmitted to the Bluetooth module of the receiving device in real time through the Bluetooth module to realize data interaction.
[0039] refer to Figure 2 , which is a structural diagram of a receiving device provided in an embodiment of the present application. The pointing device includes a Bluetooth module and a UWB module. Among them, the UWB module obtains antenna information, calculates the antenna information, and obtains the attitude angle and distance of the pointing device relative to the receiving device or the receiving device relative to the pointing device. The antenna in this structure adopts a 1TX3RX design, in which two antennas are used as RX and one antenna realizes time division multiplexing of RX and TX. The UWB data and IMU data from the air mouse remote control are received in real time through the Bluetooth module to realize data interaction, and then the air mouse remote control is positioned, and the cursor of the air mouse remote control is displayed on the receiving device (such as a display device). In the embodiment of the present application, the positioning of the air mouse remote control can be real-time or periodic, and the first moment is any one of a plurality of positioning moments, and the second moment is any one of a plurality of positioning moments that is located after the first moment.
[0040] In addition, the Bluetooth module in the receiving device can also integrate the processing function of the main chip to process the UWB data and IMU data from the air mouse remote control, which is not limited here.
[0041] In the embodiment of the present application, the method for positioning the cursor of the pointing device can be implemented by a cursor positioning device, which can be integrated into the pointing device or the receiving device. Here, the method is described as being implemented by a positioning device integrated into the receiving device.
[0042] Before introducing the technical solution of the embodiment of the present application, the posture information is first explained. Optionally, the posture information includes a posture angle and a distance, wherein the posture angle can represent the posture of the pointing device, and the distance can represent the vertical distance between the pointing device and the receiving device.
[0043] The attitude angles include pitch angle, yaw angle (also known as horizontal angle), and roll angle. In the embodiment of the present application, the roll angle of the air mouse remote controller does not affect the position of the cursor formed on the receiving device. Therefore, only the pitch angle and yaw angle are described here.
[0044] Figure 3 A schematic diagram of a coordinate system of a receiving device provided in an embodiment of the present application; Figure 4 A schematic diagram of a coordinate system of a pointing device provided in an embodiment of the present application.
[0045] The attitude information is the orientation of the pointing device relative to the receiving device. Figure 3 and Figure 4 It can be seen that the pitch angle is the angle between the Yc axis of the pointing device's coordinate system and the horizontal plane of the receiving device's coordinate system, and the yaw angle is the angle between the projection of the Yc axis of the pointing device's coordinate system on the horizontal plane of the receiving device's coordinate system and the Yj axis of the receiving device's coordinate system.
[0046] In addition, the IMU of the pointing device can record the angular velocity ωx, ωy, and ωz of the user's wrist around the three coordinate axes XYZ in real time. By accumulating the angular velocity, the rotation angle on the corresponding coordinate axis can be obtained. Therefore, the pointing angle obtained by the IMU has better hand tracking and a better user experience.
[0047] Of course, the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of the present application are not limited thereto. Figure 1 The functions that can be implemented by each device in the application scenario shown will be described in subsequent method embodiments and will not be described in detail here.
[0048] To further illustrate the technical solutions provided by the embodiments of the present application, the following is a detailed description of the technical solutions in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of the present application provide the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative work. In steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiments of the present application.
[0049] The following combination Figure 1 and Figure 2 The application scenario shown illustrates the technical solution provided by the embodiment of this application.
[0050] refer to Figure 5 The embodiment of the present application provides a method for positioning a cursor of a pointing device, which is applied to a receiving device and includes the following steps:
[0051] S501: Acquire first posture information of a pointing device at a first moment and first display posture information representing a first position of a cursor formed by the pointing device on a receiving device.
[0052] S502: Determine target posture change information at the second moment relative to the first moment based on the first posture information.
[0053] S503: Apply the target posture change information to update the first display posture information to obtain second display posture information.
[0054] In the embodiment of the present application, first, the first posture information and the first display posture information of the pointing device at the first moment are obtained. The first display posture information is the display posture information representing the first position of the cursor formed by the pointing device on the receiving device; secondly, the target posture change information at the second moment relative to the first moment can be determined based on the first posture information and the first display posture information; finally, the target posture change information is applied to update the first display posture information to obtain the second display posture information. In this way, the second position of the cursor formed by the pointing device on the receiving device at the second moment can be determined based on the second display posture information. Through the embodiment of the present application, the actual display position of the cursor at the next positioning moment is calculated in combination with the posture of the pointing device at the current positioning moment and the actual display position of the cursor of the pointing device on the receiving device, thereby reducing the deviation between the actual display position of the cursor and the position on the receiving device pointed to by the user's wrist movement of the air mouse remote control, ensuring the hand-tracking performance of the pointing device during use, and improving the user experience.
[0055] In the above example, the second display gesture information at the second moment is calculated based on the first gesture information and the first display gesture information of the pointing device at the first moment. The second moment is any moment after the first moment, and the first display gesture information is calculated based on the gesture information and the display gesture information at the moment immediately before the first moment. If the first moment is the initial moment, the first display gesture information may be pre-set.
[0056] This involves S501: acquiring first posture information of a pointing device at a first moment and first display posture information representing a first position of a cursor formed by the pointing device on a receiving device.
[0057] The first moment is any moment during the operation of the pointing device. The posture information at the first moment is referred to as the first posture information. The first posture information includes a first angle of a first pointing angle of the pointing device, where the first pointing angle is the horizontal angle or pitch angle of the pointing device relative to the receiving device. The first posture display information is a second angle of a second pointing angle of the pointing device, where the second pointing angle is the horizontal angle or pitch angle of the pointing device relative to the receiving device, as indicated by the first position of the cursor formed by the pointing device on the receiving device.
[0058] That is, the first pointing angle is calculated by the pointing device or the receiving device based on their respective antenna information, and the second pointing angle is calculated by the receiving device. In actual applications, the first pointing angle is calculated in the same manner, whether it is a horizontal angle or a pitch angle. In the embodiments of this application, the horizontal angle is used as an example for illustration.
[0059] Optional, Figure 6 A schematic diagram of the position of a cursor of a pointing device on a receiving device provided in an embodiment of the present application, Figure 7 A schematic diagram of an attitude angle provided in an embodiment of the present application. Figure 7 , D is the point where the pointing device's IMU module is located, M is the intersection of the plane where the pointing device's IMU module is located (the plane formed by points MNK) and the Zj axis. The plane formed by points MNK is parallel to the plane formed by the Xj and Yj axes. MN is parallel to the Yj axis, and MK is parallel to the Xj axis. Here, ∠BDC is the first horizontal angle, represented by θ, ∠BDP is the first pitch angle, represented by Ψ, and r is the vertical distance from the pointing device to the receiving device. To distinguish them, the second horizontal angle is represented by Yaw, and the second pitch angle is represented by Pitch.
[0060] In step S502, based on the first posture information, the posture change information at the second moment relative to the first moment is determined. This process can be implemented through steps A1-A2:
[0061] A1: Calculate an adjustment coefficient according to the first posture information and the first display posture information.
[0062] The pointing angle is described by taking the horizontal angle as an example. Figure 8 A schematic diagram of the cursor position relationship provided in an embodiment of the present application. P is the cursor position generated on the screen at a first moment, determined based on the first horizontal angle θ and the first pitch angle Ψ. Q1, Q2, and Q3 are the actual display positions of the cursor at the first moment, that is, the positions determined based on the second horizontal angle Yaw and the second pitch angle Pitch.
[0063] Optionally, the process of calculating the adjustment coefficient mainly includes the following two cases:
[0064] Case 1: If the absolute value of the angle difference between the first angle and the second angle is less than or equal to the set angle threshold, the adjustment coefficient is determined to be the first coefficient.
[0065] Optional, see Figure 8 , which is the case when the actual display position of the cursor at the first moment is Q1. For example, the angle threshold can be set to 1°. In this case, |θ-yaw| ≤ 1°. In this case, the second angle can be updated according to the actual angular velocity and the angle change calculated from the time interval between the first and second moments. In this case, the adjustment coefficient can be set to 1.
[0066] Second case: if the absolute value of the angle difference between the first angle and the second angle is greater than the set angle threshold, the adjustment coefficient is determined to be the second coefficient or the third coefficient, wherein the second coefficient is greater than the first coefficient and the third coefficient is less than the first coefficient.
[0067] Optional, see Figure 8 , which is the case where the actual display position of the cursor at the first moment is Q2 or Q3. In the second case, the adjustment coefficient can be determined to be the second coefficient or the third coefficient according to the first direction relationship and the first angle relationship.
[0068] In this case, |θ-yaw|>1, which means that the actual display position of the cursor calculated at the first moment lags behind or leads the cursor position measured and output by the receiving device. At this time, it can be determined based on the first direction relationship and the first angle relationship whether the adjustment coefficient is the second coefficient (greater than the first coefficient, for example, 1.1) or the third coefficient (less than the first coefficient, for example, 0.9).
[0069] The first direction relationship is the relationship between the rotation direction of the pointing device at the second moment relative to the first moment and the set forward rotation direction. The first angle relationship is the magnitude relationship between the first angle and the second angle.
[0070] Optionally, if the first direction relationship indicates that the rotation direction of the pointing device at the second moment relative to the first moment is the same as the set positive rotation direction, when the first angle relationship indicates that the first angle is less than the second angle, determine the adjustment coefficient as the second coefficient; when the first angle relationship indicates that the second angle is greater than the second angle, determine the adjustment coefficient as the third coefficient.
[0071] For example, set the positive rotation direction to clockwise, and the rotation direction of the pointing device at the second moment relative to the first moment is also clockwise, that is, ωz>0. At this time, if θ < Yaw, it means that the actual position of the cursor calculated at the first moment lags behind the cursor position measured and output by the receiving device. At this time, the direction to catch up is the same as the angular velocity direction, so determine the adjustment coefficient as a coefficient greater than 1, such as 1.1; at this time, if θ > Yaw, it means that the actual position of the cursor calculated at the first moment is ahead of the cursor position measured and output by the receiving device. At this time, the direction to catch up is inconsistent with the angular velocity direction, so determine the adjustment coefficient as a coefficient less than 1, such as 0.9.
[0072] A2: Adjust the attitude change information according to the adjustment coefficient to obtain the target attitude change information.
[0073] Optionally, the attitude change information may include the change value of the horizontal angle and the change value of the pitch angle, which are ω z *△t and ω x *△t respectively. In this way, the target change value of the horizontal angle in the target attitude change information can be obtained as ω z *△t*rate, and the target change value of the pitch angle is ω x *△t*rate. △t is the time interval, which is the time interval between the second moment and the first moment, and rate is the adjustment coefficient.
[0074] Related to S503: Apply the target attitude change information to update the first display attitude information to obtain the second display attitude information.
[0075] The implementation method of this step is to adjust the second angle based on the target adjustment angle to obtain the target angle. Among them, the target adjustment angle is the angle represented by the target attitude change information, and the target adjustment angle is determined based on the adjustment angle and the adjustment coefficient; the target angle is the angle of the pointing angle of the pointing device represented by the second position.
[0076] Optionally, the formulas for calculating the target horizontal angle and the target pitch angle are as follows:
[0077] Yaw1 = Yaw + ω z *△t*rate;
[0078] Pitch1 = Pitch + ωx *△t*rate.
[0079] Here, Yaw1 is the target horizontal angle, and Pitch1 is the target pitch angle. In this way, the second position of the cursor formed by the pointing device on the receiving device at the second moment can be determined based on the target horizontal angle Yaw1 and the target pitch angle Pitch1.
[0080] This embodiment of the application primarily uses angular velocity information measured by the IMU, and uses UWB to assist in determining whether the current pointing angle requires catching up or slowing down. This way, even if the ratio of the adjustment coefficients 1.1 and 0.9 is not very large and is essentially imperceptible to the user, the deviation angle can be calibrated back during movement, providing a significant advantage in the user experience of chirality.
[0081] Compared with existing technologies, it has higher accuracy. For example, the speed of slow rotation of a human hand is 1-2 dps, which can be controlled within a displacement time of 0.1s-0.2s, so the angular accuracy of slow movement can be controlled within 0.1°-0.4°. In this solution, IMU is used as the main method and UWB is used as the auxiliary method. It has both accurate directionality and ensures the hand tracking during use, which greatly improves the user experience.
[0082] like Figure 9 As shown, based on the same inventive concept as the above-mentioned method for positioning a cursor of a pointing device, an embodiment of the present application further provides a cursor positioning device, including a data acquisition unit 91 and a data processing unit 92 .
[0083] The data acquisition unit 91 is configured to acquire first posture information of the pointing device at a first moment and first display posture information representing a first position of a cursor formed by the pointing device on the receiving device; wherein the first moment is any one of a plurality of positioning moments of the pointing device;
[0084] The data processing unit 92 is configured to determine, based on the first posture information, target posture change information at a second moment relative to the first moment; wherein the second moment is any one of the plurality of positioning moments that is located after the first moment;
[0085] The data processing unit 92 is further configured to apply the target posture change information to update the first display posture information to obtain second display posture information; wherein the second display posture information indicates a second position of the cursor formed by the pointing device on the receiving device at a second moment.
[0086] In an optional embodiment, the data processing unit 92 is specifically configured to:
[0087] Calculating an adjustment coefficient according to the first posture information and the first display posture information;
[0088] The attitude change information is adjusted according to the adjustment coefficient to obtain the target attitude change information; wherein the attitude change information is determined according to the attitude change speed and time interval of the pointing device; the time interval is the time interval between the second moment and the first moment.
[0089] In an optional embodiment, the first posture information includes a first angle of a first pointing angle of the pointing device, and the first display posture information is a second angle of a second pointing angle of the pointing device represented by a first position of a cursor formed by the pointing device on the receiving device; the first pointing angle and the second pointing angle are of the same type; the type of the first pointing angle is a horizontal angle or a pitch angle.
[0090] In an optional embodiment, the data processing unit 92 is specifically configured to:
[0091] If the absolute value of the angle difference between the first angle and the second angle is less than or equal to the set angle threshold, the adjustment coefficient is determined to be the first coefficient;
[0092] If the absolute value of the angle difference between the first angle and the second angle is greater than the set angle threshold, the adjustment coefficient is determined to be the second coefficient or the third coefficient; wherein the second coefficient is greater than the first coefficient, and the third coefficient is less than the first coefficient.
[0093] In an optional embodiment, the data processing unit 92 is specifically configured to:
[0094] Determining the adjustment coefficient to be the second coefficient or the third coefficient according to the first direction relationship and the first angle relationship;
[0095] Among them, the first direction relationship is the relationship between the rotation direction of the pointing device at the second moment relative to the first moment and the set forward rotation direction; the first angle relationship is the size relationship between the first angle and the second angle.
[0096] In an optional embodiment, the data processing unit 92 is specifically configured to:
[0097] If the first direction relationship indicates that the rotation direction of the pointing device at the second moment relative to the first moment is the same as the set forward rotation direction, then when the first angle relationship indicates that the first angle is smaller than the second angle, the adjustment coefficient is determined to be the second coefficient; when the first angle relationship indicates that the second angle is greater than the second angle, the adjustment coefficient is determined to be the third coefficient.
[0098] In an optional embodiment, the attitude change speed of the pointing device is the angular velocity of the pointing device along a set forward rotation direction, and the attitude change information is an adjustment angle determined based on the angular velocity and the time interval;
[0099] The data processing unit 92 is specifically used for:
[0100] The second angle is adjusted based on the target adjustment angle to obtain the target angle; wherein the target adjustment angle is the angle represented by the target posture change information, and the target adjustment angle is determined based on the adjustment angle and the adjustment coefficient; the target angle is the angle of the pointing angle of the pointing device represented by the second position.
[0101] The device for positioning a cursor formed by a pointing device proposed in the embodiment of the present application and the method for positioning a cursor formed by a pointing device mentioned above adopt the same inventive concept and can achieve the same beneficial effects, which will not be repeated here.
[0102] Based on the same inventive concept as the method for positioning a cursor formed by a pointing device, an embodiment of the present application further provides an electronic device, which may specifically be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), a server, etc. In the embodiment of the present application, the electronic device may be a receiving device, such as Figure 10 As shown, the electronic device may include a processor 101 and a memory 102 .
[0103] The processor 101 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0104] Memory 102 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Memory can include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. Memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 102 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0105] Those skilled in the art will appreciate that all or part of the steps of the above-mentioned method embodiments may be implemented by hardware associated with program instructions, and the aforementioned program may be stored in a computer-readable storage medium. When the program is executed, the program executes the steps of the above-mentioned method embodiments. The above-mentioned computer storage medium may be any available medium or data storage device that can be accessed by a computer, including but not limited to: mobile storage devices, random access memory (RAM), magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROMs, EPROMs, EEPROMs, non-volatile memories (NAND FLASH), solid-state drives (SSDs)), and other media that can store program codes.
[0106] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: a mobile storage device, a random access memory (RAM), a magnetic storage device (such as a floppy disk, a hard disk, a magnetic tape, a magneto-optical disk (MO), etc.), an optical storage device (such as a CD, DVD, BD, HVD, etc.), and a semiconductor memory (such as a ROM, EPROM, EEPROM, a non-volatile memory (NAND FLASH), a solid-state drive (SSD)) and other various media that can store program code.
[0107] Based on the same inventive concept, embodiments of the present application further provide a computer program product, comprising computer program code. When executed on a computer, the computer program code causes the computer to execute any of the hard disk data reading methods discussed above. Because the principles underlying the problems solved by the computer program product are similar to those of the hard disk data reading method, the implementation of the computer program product can be referenced to the implementation of the method, and any repetitions will not be repeated.
[0108] The above embodiments are only used to provide a detailed introduction to the technical solutions of the present application. However, the description of the above embodiments is only used to help understand the methods of the embodiments of the present application and should not be understood as limiting the embodiments of the present application. Any changes or substitutions that can be easily conceived by those skilled in the art should be included in the scope of protection of the embodiments of the present application.
Claims
1. A method for positioning a cursor of a pointing device, characterized in that: The pointing device forms a cursor on the receiving device, comprising: Acquire first posture information of the pointing device and first display posture information representing a first position of a cursor formed by the pointing device on the receiving device at a first moment; wherein the first moment is any one of multiple positioning moments of the pointing device; Determining target posture change information at a second moment relative to the first moment based on the first posture information and the first display posture information; wherein the second moment is any one of the multiple positioning moments that is later than the first moment; The target posture change information is applied to update the first display posture information to obtain second display posture information; wherein the second display posture information indicates a second position of a cursor formed by the pointing device on the receiving device at the second moment.
2. The method according to claim 1, characterized in that The determining, based on the first posture information, target posture change information at a second moment relative to the first moment includes: Calculating an adjustment coefficient according to the first posture information and the first display posture information; The posture change information is adjusted according to the adjustment coefficient to obtain the target posture change information; wherein, the posture change information is determined according to the posture change speed and time interval of the pointing device; the time interval is the time interval between the second moment and the first moment.
3. The method according to claim 2, characterized in that The first posture information includes a first angle of a first pointing angle of the pointing device, and the first display posture information is a second angle of a second pointing angle of the pointing device represented by a first position of a cursor formed by the pointing device on the receiving device; the first pointing angle and the second pointing angle are of the same type; the type of the first pointing angle is a horizontal angle or a pitch angle.
4. The method according to claim 3, characterized in that The calculating the adjustment coefficient according to the first posture information and the first display posture information includes: If the absolute value of the angle difference between the first angle and the second angle is less than or equal to a set angle threshold, determining the adjustment coefficient to be the first coefficient; If the absolute value of the angle difference between the first angle and the second angle is greater than the set angle threshold, the adjustment coefficient is determined to be the second coefficient or the third coefficient; wherein the second coefficient is greater than the first coefficient, and the third coefficient is less than the first coefficient.
5. The method according to claim 4, characterized in that Determining the adjustment coefficient as the second coefficient or the third coefficient includes: Determining the adjustment coefficient to be the second coefficient or the third coefficient according to the first direction relationship and the first angle relationship; The first direction relationship is the relationship between the rotation direction of the pointing device at the second moment relative to the first moment and the set forward rotation direction; the first angle relationship is the size relationship between the first angle and the second angle.
6. The method according to claim 5, characterized in that According to the first direction relationship and the first angle relationship, the adjustment coefficient is determined to be the second coefficient or the third coefficient: If the first direction relationship indicates that the rotation direction of the pointing device at the second moment relative to the first moment is the same as the set forward rotation direction, then when the first angle relationship indicates that the first angle is smaller than the second angle, the adjustment coefficient is determined to be the second coefficient; when the first angle relationship indicates that the second angle is greater than the second angle, the adjustment coefficient is determined to be the third coefficient.
7. The method according to claim 6, characterized in that The attitude change speed of the pointing device is the angular speed of the pointing device along the set positive rotation direction, and the attitude change information is the adjustment angle determined based on the angular speed and the time interval; The applying the target posture change information to update the first display posture information to obtain the second display posture information includes: The second angle is adjusted based on the target adjustment angle to obtain a target angle; wherein, the target adjustment angle is the angle represented by the target posture change information, and the target adjustment angle is determined based on the adjustment angle and the adjustment coefficient; the target angle is the angle of the pointing angle of the pointing device represented by the second position.
8. A cursor positioning device, characterized in that: include: A data acquisition unit is configured to acquire first posture information of the pointing device at a first moment and first display posture information representing a first position of a cursor formed by the pointing device on the receiving device; wherein the first moment is any one of a plurality of positioning moments of the pointing device; a data processing unit, configured to determine, based on the first posture information, posture change information at a second moment relative to the first moment; wherein the second moment is any one of the multiple positioning moments that is later than the first moment; The data processing unit is further used to: apply the posture change information to update the first display posture information to obtain second display posture information; wherein the second display posture information indicates the second position of the cursor formed by the pointing device on the receiving device at the second moment.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Interface scrolling control method and device, electronic equipment and storage medium
CN121657874A
Vehicle-mounted screen pointing control system and method based on UWB and IMU
CN121691780A