Spatial cursor positioning method and system based on absolute coordinates

By using the image processing technology of the absolute coordinate system in the spatial positioning mouse, the problems of low positioning accuracy and poor real-time performance are solved, and high-precision, real-time cursor positioning is achieved, which is suitable for diverse scenarios.

CN118587273APending Publication Date: 2024-09-03SHENZHEN YIZHUO TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410580025.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-10
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing technology has the problems of low positioning accuracy, poor real-time performance and limited use scenarios in spatial positioning mice, especially in complex backgrounds where image processing delays lead to cursor positioning lag.

Method used

Using the spatial positioning cursor method based on absolute coordinates, through real-time image collection and processing, the world coordinate system, camera coordinate system, image coordinate system and pixel coordinate system are established, the absolute coordinates of the infrared point are calculated, and sent to the control device to achieve Precise positioning of the cursor.

Benefits of technology

It achieves high-precision, real-time cursor positioning, which is not affected by ambient light and mark visibility. It has flexible usage scenarios and meets the user's need to move the cursor quickly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587273A
    Figure CN118587273A
Patent Text Reader

Abstract

The invention relates to a spatial cursor positioning method and system based on absolute coordinates, and the method comprises the following steps: carrying out the image collection of infrared points in a scene in real time, and obtaining a real-time screen image; processing the real-time screen image to obtain absolute coordinates of infrared points; the absolute coordinates of the infrared points are sent to a control device; and the control equipment determines the target position of the cursor according to the absolute coordinates of the infrared points. Through an absolute coordinate positioning mode, high-precision pointing and positioning of the cursor are realized, the influence of ambient light and mark visibility is avoided, the use scene is flexible and diversified, the influence of the performance of an image recognition algorithm is also avoided, the real-time performance is good, and the requirement of a user for rapidly moving the cursor can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of space positioning, and more particularly to a method and system for spatial positioning of a cursor based on absolute coordinates. Background Art

[0002] With the rapid development of information technology, human-computer interaction methods are constantly innovating. Among them, the mouse, as a basic input device for computers, has always been a hot topic of research for its positioning technology. Traditional mice rely on the relative movement of the desktop to achieve cursor positioning, but this method limits the application of mice in scenarios such as handheld and aerial. In recent years, mice based on motion sensors such as gyroscopes have emerged. They achieve cursor positioning by detecting the spatial movement of the mouse, but due to the use of relative positioning, their pointing accuracy and user experience still need to be improved.

[0003] To solve the above problems, the existing solution is to spatially position the mouse through image recognition technology. This solution uses a camera to capture specific markers and uses an image processing algorithm to identify the position of the marker to achieve cursor positioning. However, this method still has certain defects, specifically: the positioning accuracy is affected by the performance of the image recognition algorithm, and it is difficult to achieve high-precision pointing positioning; it has high requirements for ambient light and marker visibility, and the usage scenarios are limited; it lacks real-time performance, especially in complex backgrounds, image processing delays may cause cursor positioning lags. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and system for spatially positioning a cursor based on absolute coordinates in view of the problems existing in the prior art.

[0005] The technical solution adopted by the present invention to solve the technical problem is: constructing a method for spatial positioning cursor based on absolute coordinates, comprising the following steps:

[0006] Capture images of infrared points in the scene in real time to obtain real-time screen images;

[0007] Processing the real-time screen image to obtain the absolute coordinates of the infrared point;

[0008] Sending the absolute coordinates of the infrared point to a control device;

[0009] The control device determines the target position of the cursor according to the absolute coordinates of the infrared point.

[0010] In the method for spatial positioning of a cursor based on absolute coordinates of the present invention, the processing of the real-time screen image to obtain the absolute coordinates of the infrared point includes:

[0011] Performing boundary processing on the real-time screen image to determine the boundary of the real-time screen image;

[0012] Establishing a coordinate system based on the determined boundaries;

[0013] The infrared point is positioned based on the established coordinate system to obtain the absolute coordinates of the infrared point.

[0014] In the method for spatial positioning of a cursor based on absolute coordinates of the present invention, the performing boundary processing on the real-time screen image to determine the boundary of the real-time screen image includes:

[0015] An edge detection algorithm is used to perform boundary processing on the real-time screen image to determine the boundary of the real-time screen image.

[0016] In the method for spatial positioning of a cursor based on absolute coordinates described in the present invention, the coordinate system includes: a world coordinate system, a camera coordinate system, an image coordinate system, and a pixel coordinate system.

[0017] In the method for spatial positioning of a cursor based on absolute coordinates of the present invention, positioning the infrared point based on the established coordinate system to obtain the absolute coordinates of the infrared point includes:

[0018] According to the world coordinate system, the camera coordinate system, the image coordinate system and the pixel coordinate system, a conversion formula between pixel coordinates and world coordinates is established;

[0019] The conversion formula is calculated to obtain the absolute coordinates of the infrared point.

[0020] In the method for spatial positioning of a cursor based on absolute coordinates of the present invention, sending the absolute coordinates of the infrared point to a control device comprises:

[0021] The absolute coordinates of the infrared point are sent to the control device in the form of absolute values.

[0022] The method for spatially positioning a cursor based on absolute coordinates of the present invention further includes:

[0023] The control device controls the cursor to move to the target position according to the target position.

[0024] The present invention also provides a system for spatially positioning a cursor based on absolute coordinates, comprising:

[0025] An image acquisition unit is used to acquire images of infrared points in the scene in real time to obtain a real-time screen image;

[0026] An image processing unit, used for processing the real-time screen image to obtain the absolute coordinates of the infrared point;

[0027] A wireless communication unit, used to send the absolute coordinates of the infrared point to a control device;

[0028] A control device is provided for determining a target position of the cursor according to the absolute coordinates of the infrared point.

[0029] In the system for spatial positioning cursor based on absolute coordinates of the present invention, the image processing unit comprises:

[0030] A boundary processing module, used for performing boundary processing on the real-time screen image to determine the boundary of the real-time screen image;

[0031] A coordinate system establishment module, used for establishing a coordinate system according to the determined boundary;

[0032] The absolute coordinate calculation module is used to locate the infrared point based on the established coordinate system to obtain the absolute coordinates of the infrared point.

[0033] In the system for spatial positioning of a cursor based on absolute coordinates of the present invention, the control device is further used for:

[0034] According to the target position, the cursor is controlled to move to the target position.

[0035] The method and system for spatially positioning a cursor based on absolute coordinates of the present invention have the following beneficial effects: including the following steps: real-time image acquisition of infrared points in a scene to obtain a real-time screen image; processing the real-time screen image to obtain the absolute coordinates of the infrared points; sending the absolute coordinates of the infrared points to a control device; the control device determines the target position of the cursor according to the absolute coordinates of the infrared points. The present invention realizes high-precision pointing and positioning of the cursor through an absolute coordinate positioning method, is not affected by ambient light and mark visibility, has flexible and diverse usage scenarios, is not affected by the performance of image recognition algorithms, has good real-time performance, and can meet the needs of users to quickly move the cursor. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0037] Figure 1 It is a schematic flow chart of a method for spatially positioning a cursor based on absolute coordinates provided by the present invention;

[0038] Figures 2 to 5 It is a schematic diagram of the use of real-time screen image acquisition provided by the present invention;

[0039] Figure 6 It is a coordinate relationship diagram provided by the present invention;

[0040] Figure 7 It is a logic block diagram of a system for spatially positioning a cursor based on absolute coordinates provided by the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] In order to solve the problems of low positioning accuracy, poor real-time performance and limited usage scenarios in the prior art, the present invention provides a method for positioning a cursor based on absolute coordinates. The method captures infrared points and obtains the absolute coordinates of the infrared points in combination with image processing, thereby achieving accurate and real-time positioning of the cursor on the screen.

[0043] Specifically, Figure 1 As shown, the method for spatially positioning a cursor based on absolute coordinates comprises the following steps:

[0044] Step S101: Capture images of infrared points in the scene in real time to obtain a real-time screen image.

[0045] Optionally, in this embodiment, the infrared points in the scene may be captured by an image acquisition device (such as a camera) to obtain a real-time screen image including the infrared points.

[0046] The infrared point in the image is connected in series by the camera through the algorithm to obtain the coordinates of the infrared point in this picture at this time (xxxx0, yyyy0), as shown below Figure 2 The specific process is that an infrared point will be captured in each frame of the image, and a square coordinate is obtained from the edge of the frame image. For example, in the image screen, the coordinate value is from (0, 0) → (ffff, ffff). Now in this screen, the coordinate of the infrared point can be obtained as (xxxx0, yyyy0). Figure 2 As shown. The next frame can get the coordinates (xxxx1, yyyy1), as shown Figure 3 As shown. By moving the camera, different position coordinates are obtained in the window. That is to say, during the image acquisition process, the camera needs to be moved in real time to obtain different position coordinates in the window, as shown in the following figure. Figure 4 and Figure 5 shown.

[0047] Step S102: Process the real-time screen image to obtain the absolute coordinates of the infrared point.

[0048] In this embodiment, processing the real-time screen image to obtain the absolute coordinates of the infrared point includes: performing boundary processing on the real-time screen image to determine the boundary of the real-time screen image; establishing a coordinate system based on the determined boundary; and locating the infrared point based on the established coordinate system to obtain the absolute coordinates of the infrared point.

[0049] The performing boundary processing on the real-time screen image to determine the boundary of the real-time screen image includes: performing boundary processing on the real-time screen image using an edge detection algorithm to determine the boundary of the real-time screen image.

[0050] In the embodiment of the present invention, the constructed coordinate system includes: a world coordinate system, a camera coordinate system, an image coordinate system and a pixel coordinate system. Among them, positioning the infrared point based on the established coordinate system to obtain the absolute coordinates of the infrared point includes: establishing a conversion formula between pixel coordinates and world coordinates according to the world coordinate system, the camera coordinate system, the image coordinate system and the pixel coordinate system; and calculating and processing the conversion formula to obtain the absolute coordinates of the infrared point.

[0051] Specifically, Figure 6 As shown in the figure, there are four coordinate systems, namely the world coordinate system (world), the camera coordinate system (camera), the image coordinate system (image), and the pixel coordinate system (pixel).

[0052] World coordinate system (world), you can specify x arbitrarily ω Axis and y ω Axis, for Figure 6 The coordinate system where point P is located.

[0053] The camera coordinate system (camera), with its origin at the pinhole, the z-axis coincides with the optical axis, and the axis and the axis are parallel to the projection plane, is Figure 6 The coordinate system X in c Y c Z c .

[0054] The image coordinate system (image), the origin is located at the intersection of the optical axis and the projection plane, the axis and the axis are parallel to the projection plane, which is the coordinate system xy in the figure above.

[0055] Pixel coordinate system (pixel), looking from the small hole to the projection surface, the upper left corner of the projection surface is the origin, the UV axis coincides with both sides of the projection surface, this coordinate system is in the same plane as the image coordinate system, but the origin is different.

[0056] The following formula (i.e., formula (1)) is the conversion formula between pixel coordinate pixel and world coordinate world. The first matrix on the right side of the equation is the camera intrinsic parameter matrix, and the second matrix is ​​the camera extrinsic parameter matrix. Assuming that the image coordinates are known and the camera intrinsic parameter matrix has been obtained through calibration, the pixel coordinates can be directly calculated based on the image coordinates and the camera intrinsic parameters. Then, the scale factor s and the camera extrinsic parameter matrix need to be calculated. Among them, in formula (1), is the pixel coordinate, is the image coordinate.

[0057]

[0058] Simplifying (1) we can get:

[0059]

[0060] (2) Where M is the camera intrinsic parameter matrix, R is the rotation matrix, T is the translation matrix, and Z const It is the height of the world coordinate system, which can usually be set to 0.

[0061] By performing matrix transformation on equation (2), we can obtain the following equation:

[0062]

[0063] remember

[0064] Solving it gives:

[0065]

[0066] Substituting (4) into (3) we can obtain:

[0067]

[0068] Step S103: Send the absolute coordinates of the infrared point to the control device.

[0069] In the embodiment of the present invention, sending the absolute coordinates of the infrared point to the control device includes: sending the absolute coordinates of the infrared point to the control device in the form of absolute values. The absolute coordinates of the infrared point are X in formula (5). ω , Y ω .

[0070] Step S104: The control device determines the target position of the cursor according to the absolute coordinates of the infrared point.

[0071] Furthermore, in an embodiment of the present invention, the method for spatially positioning a cursor based on absolute coordinates further includes: controlling the cursor to move to the target position according to the target position by the control device.

[0072] refer to Figure 7 , Figure 7 The schematic diagram of the system for spatially positioning a cursor based on absolute coordinates provided by the present invention is shown.

[0073] Specifically, Figure 7 As shown, the system for spatial positioning cursor based on absolute coordinates includes:

[0074] The image acquisition unit 701 is used to acquire images of infrared points in the scene in real time to obtain a real-time screen image. Optionally, the image acquisition unit may be a camera, which may rotate along with the movement of the infrared points so that the acquired image includes the infrared points.

[0075] The image processing unit 702 is used to process the real-time screen image to obtain the absolute coordinates of the infrared point.

[0076] Among them, the image processing unit 702 includes: a boundary processing module, which is used to perform boundary processing on the real-time screen image and determine the boundary of the real-time screen image; a coordinate system establishment module, which is used to establish a coordinate system according to the determined boundary; and an absolute coordinate calculation module, which is used to locate the infrared point based on the established coordinate system and obtain the absolute coordinates of the infrared point.

[0077] The wireless communication unit 703 is used to send the absolute coordinates of the infrared point to the control device. The wireless communication unit 703 may use Bluetooth or other wireless transmission methods for data transmission.

[0078] The image acquisition unit 701, the image processing unit 702 and the wireless communication unit 703 may be integrated into an independent module.

[0079] The control device 704 determines the target position of the cursor according to the absolute coordinates of the infrared point.

[0080] Furthermore, in an embodiment of the present invention, the control device is also used to: control the cursor to move to the target position according to the target position. Optionally, the control device may be a computer.

[0081] Specifically, the specific coordination operation process between the various units in the system of the space positioning cursor based on absolute coordinates can be specifically referred to the above-mentioned method of the space positioning cursor based on absolute coordinates, which will not be repeated here.

[0082] After the present invention captures the infrared point through the camera and calculates the absolute coordinates of the infrared point, the cursor (or mouse) is described in an absolute value mode through Bluetooth or other wireless methods, so as to obtain the positioning of the absolute coordinate value in the device. The present invention uses the spatial positioning cursor (or mouse) method to accurately position the cursor (or mouse), and can be applied to handheld wireless products, such as air mice, remote controllers, game guns, etc., so that traditional mice and remote controllers can achieve better experience effects.

[0083] It should be noted that the present invention uses the absolute coordinates of infrared points to achieve spatial positioning of the cursor. In other embodiments, a laser rangefinder sensor combined with three-dimensional scanning technology can also be used to achieve spatial positioning. For example, the distance information between the mouse and the screen is obtained by a laser rangefinder sensor, and a spatial model is constructed in combination with three-dimensional scanning technology to achieve accurate positioning of the cursor on the screen. Alternatively, in some other embodiments, ultrasonic positioning technology can also be used. For example, by emitting ultrasonic waves and receiving their reflected signals, the distance and direction between the mouse and the screen are calculated to determine the absolute position of the cursor.

[0084] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0085] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0086] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0087] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot limit the scope of protection of the present invention. All equivalent changes and modifications made to the scope of the claims of the present invention should fall within the scope of the claims of the present invention.

Claims

1. A method for spatial positioning of a cursor based on absolute coordinates, characterized in that: The following steps are involved: Capture images of infrared points in the scene in real time to obtain real-time screen images; Processing the real-time screen image to obtain the absolute coordinates of the infrared point; Sending the absolute coordinates of the infrared point to a control device; The control device determines the target position of the cursor according to the absolute coordinates of the infrared point.

2. The method for spatial positioning of a cursor based on absolute coordinates according to claim 1, characterized in that: The processing of the real-time screen image to obtain the absolute coordinates of the infrared point comprises: Performing boundary processing on the real-time screen image to determine the boundary of the real-time screen image; Establishing a coordinate system based on the determined boundaries; The infrared point is positioned based on the established coordinate system to obtain the absolute coordinates of the infrared point.

3. The method for spatial positioning of a cursor based on absolute coordinates according to claim 2, characterized in that: The performing boundary processing on the real-time screen image to determine the boundary of the real-time screen image comprises: An edge detection algorithm is used to perform boundary processing on the real-time screen image to determine the boundary of the real-time screen image.

4. The method for spatially positioning a cursor based on absolute coordinates according to claim 2, characterized in that: The coordinate system includes: a world coordinate system, a camera coordinate system, an image coordinate system and a pixel coordinate system.

5. The method for spatially positioning a cursor based on absolute coordinates according to claim 4, characterized in that: Positioning the infrared point based on the established coordinate system to obtain the absolute coordinates of the infrared point includes: According to the world coordinate system, the camera coordinate system, the image coordinate system and the pixel coordinate system, a conversion formula between pixel coordinates and world coordinates is established; The conversion formula is calculated to obtain the absolute coordinates of the infrared point.

6. The method for spatially positioning a cursor based on absolute coordinates according to claim 1, characterized in that: The sending the absolute coordinates of the infrared point to the control device comprises: The absolute coordinates of the infrared point are sent to the control device in the form of absolute values.

7. The method for spatial positioning of a cursor based on absolute coordinates according to any one of claims 1 to 6, characterized in that: Also includes: The control device controls the cursor to move to the target position according to the target position.

8. A system for spatially positioning a cursor based on absolute coordinates, characterized in that: include: An image acquisition unit is used to acquire images of infrared points in the scene in real time to obtain a real-time screen image; An image processing unit, used for processing the real-time screen image to obtain the absolute coordinates of the infrared point; A wireless communication unit, used to send the absolute coordinates of the infrared point to a control device; A control device is provided for determining a target position of the cursor according to the absolute coordinates of the infrared point.

9. The system for spatially positioning a cursor based on absolute coordinates according to claim 8, characterized in that: The image processing unit comprises: A boundary processing module, used for performing boundary processing on the real-time screen image to determine the boundary of the real-time screen image; A coordinate system establishment module, used for establishing a coordinate system according to the determined boundary; The absolute coordinate calculation module is used to locate the infrared point based on the established coordinate system to obtain the absolute coordinates of the infrared point.

10. The system for spatially positioning a cursor based on absolute coordinates according to claim 8, characterized in that: The control device is also used for: According to the target position, the cursor is controlled to move to the target position.