CN-122018713-A - Control system and method for cross-system visual positioning input
Abstract
The invention discloses a control system and a control method for cross-system visual positioning input, and relates to the technical field of computer input equipment. The control system comprises a light emitting module, a key module, a communication module, an image acquisition module and an information processing module. The control method is applied to the device, and the cross-system compatibility and the pure vision accurate positioning are realized by establishing a communication link, transmitting infrared light points, capturing transmission images, processing images, mapping coordinates, delivering events and switching control rights. The invention realizes the multi-form adaptation of single hardware, the compatibility of cross-mainstream desktop systems and the seamless control right switching, has simple structure and low cost, gives consideration to office and game multi-scenes and improves the use experience of users. The invention realizes the multi-form adaptation of single hardware, the compatibility of cross-mainstream desktop systems and the seamless control right switching, has simple structure and low cost, gives consideration to office and game multi-scenes and improves the use experience of users.
Inventors
- WANG QIFENG
Assignees
- 王麒沣
Dates
- Publication Date
- 20260512
- Application Date
- 20260212
Claims (10)
- 1. A control system for cross-system visual positioning input is characterized by comprising a light emitting module, a key module, a communication module, an image acquisition module, an information processing module, a mouse moving event forming module and a control module, wherein the light emitting module emits light to a display screen to form a light spot on the display screen, the key module outputs a corresponding control signal after being pressed and transmits the control signal to the operation system, the communication module acquires the control signal output by the key module and transmits the control signal to the operation system to communicate with the light emitting module, the image acquisition module acquires image information on the display screen, the information processing module processes the image information acquired by the image acquisition module, acquires coordinate information of the light spot on the display screen in real time and transmits the coordinate information to the operation system in real time to form the mouse moving event, acquires the control signal output by the key module and transmits the control signal to the operation system, and the communication module controls the light emitting module.
- 2. The control system for the cross-system visual positioning input according to claim 1 is characterized by further comprising a hardware body, wherein the light emitting module, the key module and the communication module are arranged on the hardware body, the light emitting module comprises an infrared emitting head which is arranged at the front end of the hardware body and detachably connected with a buckle of the hardware body and used for emitting infrared light to a screen to form infrared light spots on the screen, an anti-loosening structure and/or filler are arranged at the buckle connection, the emitting head of the light emitting module is detachable, the wavelength of the infrared light is 700 nm-1100 nm, the communication module comprises a wireless communication module and/or a wired communication module, the key module comprises standard physical keys and/or touch keys, a double-layer printed circuit board is arranged in the hardware body, the light emitting module and a circuit branch of the key module are independently arranged on the double-layer printed circuit board, and a filter capacitor and anti-interference magnetic beads are arranged on the double-layer printed circuit board.
- 3. The control system for cross-system visual positioning input according to claim 2, wherein the external contour of the hardware body is gun-shaped, the gun stock of the hardware body is of a telescopic structure, the grip of the hardware body is provided with anti-skid lines, and the key module positioned on the hardware body can be triggered when the hardware body is held by hands.
- 4. The control system for cross-system visual positioning input according to claim 2, wherein the outer contour of the hardware body is in a mouse shape, the surface of the hardware body is provided with an arc-shaped groove which is adaptive to human engineering, the surface is provided with anti-skid lines, and the bottom is provided with an anti-skid foot pad.
- 5. The system of claim 2, wherein the image acquisition module comprises a high frame rate infrared identification camera for acquiring image information with light on the display screen in real time and transmitting the image information to the information processing module in real time, and further comprises an adjustable fixed bracket for adjusting and fixing the high frame rate infrared identification camera to acquire the complete image of the display screen.
- 6. The control system for cross-system visual positioning input according to any one of claims 1 to 5, wherein the information processing module comprises a communication unit, an operating system identification unit, an image processing unit, a coordinate mapping unit, an event delivery unit and a control right switching unit, wherein the communication unit is in communication connection with the light emission module through the communication module and is in communication connection with the image acquisition module, the operating system identification unit is used for automatically identifying the type of a current PC end operating system and matching and calling a corresponding original input event interface, the image processing unit is used for preprocessing image information acquired by the image acquisition module, effective light spot detection and anti-shake processing to acquire light spot coordinates, the coordinate mapping unit is used for mapping and clamping the light spot coordinates to a display screen to acquire coordinate information of the light spot relative to the display screen, the event delivery unit is used for calling the original input event interface of the corresponding operating system and delivering a mouse moving event to an operating system message queue based on real-time coordinate information change, and the control right switching unit is used for stopping event delivery when the light spot coordinates are not acquired by the image processing unit within a preset duration.
- 7. A control method for cross-system visual positioning input is characterized by comprising the following steps of enabling an information processing module to be in communication connection with an image acquisition module and a light emission module, enabling the information processing module to control the light emission module to emit light, enabling the light emission module to be controlled to emit light to form a light spot on a display screen, enabling the information processing module to control the image acquisition module to acquire display screen image information containing the light spot and send the acquired image information to the information processing module in real time, enabling the information processing module to process the image information acquired by the image acquisition module to acquire coordinate information of the light spot on the display screen in real time, enabling the information processing module to automatically identify a current PC end operating system type to call a primary input event interface corresponding to a current operating system, enabling the coordinate information to be sent to the operating system in real time to form a mouse moving event, enabling an infrared light spot to be positioned to drive a mouse cursor to move, enabling the information processing module to continuously monitor the effective light spot, enabling the system to stop delivering the mouse moving event to a system message queue if the effective light spot is not detected continuously for a preset time, enabling the system input control right to return to the operating system to primary control, enabling the operating system to receive key module to press and then outputting corresponding control signals.
- 8. The method for controlling cross-system visual positioning input according to claim 7, wherein the step of processing the image information acquired by the image acquisition module by the information processing module and acquiring the coordinate information of the light spot on the display screen in real time includes the steps of S41, preprocessing each frame of the received image information by the information processing module, extracting a light spot area in each frame of the image through preprocessing operation, filtering interference signals such as ambient light and clutter, S42, detecting the light spot area extracted after preprocessing, judging whether the light spot area is an effective light spot, if the light spot area is the effective light spot, recording the original coordinate of the effective light spot in each frame of the image, S43, conducting anti-shake processing on the original coordinate of the acquired effective light spot, eliminating positioning deviation caused by coordinate shake, and S44, mapping and clamping the light spot coordinate subjected to the anti-shake processing to a pixel coordinate system of the display screen to obtain the coordinate information correspondingly matched with the screen.
- 9. The method according to claim 8, wherein the preprocessing in step S41 includes converting each frame of image received from RGB color space to HSV color space, extracting light spot candidate regions in the image frame according to HSV threshold range matched with emission light wavelength, performing morphological dilation processing and closed operation processing on the extracted candidate regions, performing gaussian blur processing, and filtering clutter interference to obtain clear light spot regions.
- 10. The method according to claim 8, wherein the anti-shake processing in step S43 is implemented by calculating the euclidean distance between the effective spot coordinates of the current frame image and the effective spot coordinates of the previous frame, presetting an anti-shake threshold, determining that the coordinates shake if the calculated euclidean distance is less than or equal to the anti-shake threshold, using the effective spot coordinates of the previous frame as final coordinates of the current frame, and using the effective spot coordinates detected by the current frame as final coordinates if the euclidean distance is greater than the anti-shake threshold.
Description
Control system and method for cross-system visual positioning input Technical Field The invention relates to the field of external input equipment of computers, in particular to a control system and a control method for cross-system visual positioning input. Background Currently, the infrared positioning technology is widely applied to computer input equipment such as an air mouse, an electronic pointer, a game light gun and the like, a non-contact input control mode is provided for a user, and the application scene of the input equipment is enriched. However, the existing input scheme (including the device and the control method) based on infrared positioning still has a plurality of obvious defects, and is difficult to meet the use requirements of multiple scenes, high compatibility and smoothness of users, and the specific defects are as follows: 1. The control program of the existing infrared positioning input equipment is limited to Windows operating systems, the adaptability to mainstream desktop operating systems such as Linux, macOS and the like is poor, and the compatibility can be realized only by developing exclusive drive or modifying program codes, so that the development cost is increased, and the application range of the equipment is limited; 2. the hardware form is fixed, the structure is complex, most infrared positioning input equipment is only designed in a single form, multiple functions of one machine cannot be realized, and the use cost of a user is increased; 3. the control right switching is unsmooth, namely an effective automatic switching mechanism is lacking between an infrared positioning control program and the original input control right of the system, the operation is complicated, the control right conflict is easy to occur, and the cursor is blocked and the operation is out of order; 4. the operation compatibility is poor, namely, physical keys of equipment with special forms are not connected with the original mouse drive of an operating system, the compatibility is poor, and the problems of no response of the keys, wrong mapping and the like are easy to occur; 5. The parameter adaptability is poor, namely the parameters such as the anti-shake threshold value, the light spot detection duration and the like of the existing control method are fixed values, and cannot be adjusted according to the habit of a user and the scene requirement; 6. The device and the method are disjointed, namely in the existing scheme, the input device and the control method are not deeply bound, so that the control logic and hardware structure are not enough in adaptability, and the positioning accuracy and the operation fluency are affected; 7. the existing game light gun scheme has the defects that four or more infrared emitters are required to be placed around a display screen and directly face the eye direction of a user, infrared light is invisible light (the wavelength is in the range of 700-1100 nm), when the game light gun scheme is used for a long time, the infrared light continuously irradiates the eyes of a human body, eye fatigue and dryness are easily caused, potential damage to retina is possibly caused, and obvious potential safety hazards of the human body exist. In summary, the existing infrared positioning input device and control method cannot realize cross-system compatibility, polymorphic adaptation, accurate positioning, seamless control right switching, flexible adaptation and human body safety protection, and part of light gun schemes lack convenient wireless control design, so that the research and development of the cross-system infrared visual positioning dual-mode input device and control method capable of solving the problems has important practical significance and application value. Disclosure of Invention In view of the above-mentioned drawbacks of the prior art, the present invention aims to provide a control system and method for cross-system visual positioning input, which realizes single hardware multi-form, cross-system compatibility, pure visual accurate positioning, control right seamless switching and primary key compatibility, deeply binds a device and a method, and has the advantages of multi-scene application of office and game, cost reduction, user use experience improvement, obvious improvement of human use safety, and elimination of potential safety hazards of direct infrared light irradiation to human eyes. The aim of the invention is realized by the following technical scheme: a control system for cross-system visual positioning input, comprising: the light emission module emits light to the display screen to form light spots on the display screen; The key module outputs a corresponding control signal after being pressed and transmits the control signal to the operating system; The communication module is used for acquiring control signals output by the key module and transmitting the control signals to the operating system to communicate with the lig