Remote input method and device, equipment, storage medium and product
By identifying the user's face rotation and gesture data, determining the cursor movement range on the virtual operation interface and mapping the gesture trajectory, the problem of inaccurate cursor position and delay in large-size screen devices is solved, and the precise control and efficient input of the cursor is achieved. .
Patent Information
- Application Number
- CN202411106834.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-12-27
AI Technical Summary
When using large-size screens or conference tablet devices, the cursor is only positioned by identifying the position of the hand, resulting in a large difference between the cursor position and the actual cursor position you want to position, and the cursor movement process is delayed and cannot meet the user's needs. .
By acquiring the image to be detected, identifying the user's face rotation data and gesture data, determining the cursor movement range on the virtual operation interface, and mapping the movement trajectory of the gesture data on the virtual operation interface, and controlling the cursor through the face rotation angle and gesture data together movement and input.
It realizes precise control of the cursor, avoids inaccurate cursor positioning and delay in movement, and meets users' needs for cursor input.
Smart Images

Figure CN119200910A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of interface interaction technology, and in particular to a remote input method, device, equipment, storage medium and computer program product. Background Art
[0002] Currently, when a large-size screen or conference tablet device is in use, the cursor can be created and moved by identifying the position of a person's hand. However, positioning the cursor only by identifying the position of the hand cannot follow the position of the person actually controlling it. Often, the position of the cursor mapped on the operation interface is significantly different from the actual position of the cursor to be positioned. This also causes a delay in the movement of the cursor, which cannot meet user needs.
[0003] Therefore, how to achieve precise control of cursor movement input is a problem that urgently needs to be solved.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present application is to provide a remote input method, device, equipment, storage medium and computer program product, aiming to solve the technical problem in the related art that the cursor is positioned only by identifying the position of the hand, the position of the cursor mapped on the operation interface is quite different from the actual cursor position to be positioned, and it will also cause the cursor movement process to have a delay, which cannot meet the user's needs.
[0006] To achieve the above objectives, the present application proposes a remote input method, which includes:
[0007] Acquire the image to be detected;
[0008] Identifying facial rotation data and gesture data of a user in the image to be detected;
[0009] Based on the facial rotation data, determining a movement range of a cursor on a virtual operation interface, and mapping a movement trajectory corresponding to the gesture data on the virtual operation interface;
[0010] The cursor is controlled by the movement track to input content within the movement range.
[0011] In one embodiment, the facial rotation data includes pupil rotation data and head rotation data, and the step of determining the movement range of the cursor on the virtual operation interface based on the facial rotation data includes:
[0012] Based on the head rotation data, determining the head rotation range of the user, and locating the cursor position on the virtual operation interface through the pupil rotation data;
[0013] The cursor position and the head rotation range are mapped on a virtual operation interface to determine the movement range of the cursor on the virtual operation interface.
[0014] In one embodiment, the step of determining the movement range of the cursor on the virtual operation interface based on the facial rotation data further includes:
[0015] Inputting the facial rotation data into a preset prediction model, performing prediction processing on the facial rotation data based on the preset prediction model, and outputting a prediction result, wherein the preset prediction model is obtained after iterative training based on historical facial rotation data;
[0016] Based on the prediction result, a moving range of the cursor on the virtual operation interface is determined.
[0017] In one embodiment, the step of mapping the movement trajectory corresponding to the gesture data onto the virtual operation interface includes:
[0018] When a change in the user's hand posture is detected in the gesture data, extracting the user's initial gesture position and target gesture position;
[0019] Based on the initial gesture position and the target gesture position, generating a movement trajectory of the user's hand;
[0020] Based on the mapping relationship between the movement trajectory and the cursor, the movement trajectory is mapped on a virtual operation interface or within the movement range.
[0021] In one embodiment, the step of identifying the facial rotation data and gesture data of the user in the image to be detected includes:
[0022] Performing action recognition on the image to be detected to obtain the initial position of the user's face and the initial position of the hand;
[0023] When detecting that the user's face rotates to the target position, the trajectory between the initial face position and the target position is calculated to generate face rotation data, and gesture data is generated based on the initial hand position.
[0024] In one embodiment, the step of controlling the cursor to input content within the moving range through the moving track includes:
[0025] Controlling the cursor to slide to an input position within the moving range through the moving track;
[0026] When it is detected that the cursor stays at the input position for a preset period of time and the pupil angle of the pupil rotation data is focused on the input position, determining that the key corresponding to the input position is the target key selected by the user;
[0027] Content input is performed through the target key.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a remote input device, the remote input device comprising:
[0029] An acquisition module, used for acquiring an image to be detected;
[0030] A recognition module, used to recognize the facial rotation data and gesture data of the user in the image to be detected;
[0031] A determination module, configured to determine a movement range of a cursor on a virtual operation interface based on the facial rotation data, and map a movement track corresponding to the gesture data on the virtual operation interface;
[0032] The input module is used to control the cursor to input content within the moving range through the moving track.
[0033] In addition, to achieve the above objectives, the present application also proposes a remote input device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the remote input method described above.
[0034] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the remote input method described above are implemented.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the remote input method described above are implemented.
[0036] The present application proposes a remote input method, apparatus, device, storage medium and computer program product. The present application obtains an image to be detected, identifies the facial rotation data and gesture data of the user in the image to be detected, determines the moving range on the virtual operation interface through the facial rotation data of the user, maps the corresponding moving trajectory to the moving range of the virtual operation interface according to the gesture data, and then controls the cursor to input content within the moving range through the moving trajectory of the user's gesture. The movement and input of the cursor are jointly controlled through the facial rotation angle and gesture data to avoid inaccurate cursor positioning and delay in the movement process of the cursor, thereby achieving the technical effect of accurately controlling the cursor input. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 A flowchart of the first embodiment of the remote input method of the present application is provided;
[0040] Figure 2 A flowchart of the second embodiment of the remote input method of the present application is provided;
[0041] Figure 3 This is a schematic diagram of the module structure of the remote input device according to an embodiment of the present application;
[0042] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the remote input method in the embodiment of the present application.
[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0045] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0046] The main solutions of the embodiments of this application are:
[0047] Acquire the image to be detected;
[0048] Identifying facial rotation data and gesture data of a user in the image to be detected;
[0049] Based on the facial rotation data, determining a movement range of a cursor on a virtual operation interface, and mapping a movement trajectory corresponding to the gesture data on the virtual operation interface;
[0050] The cursor is controlled by the movement track to input content within the movement range.
[0051] Because the prior art only uses hand gestures to perform remote input, it is impossible to follow the position of the person actually controlling the cursor. Often, the position of the cursor mapped on the operation interface is significantly different from the actual desired cursor position. This also causes a delay in the movement of the cursor, which cannot meet user needs.
[0052] The present application proposes a remote input method, apparatus, device, storage medium and computer program product. The present application obtains an image to be detected, identifies the facial rotation data and gesture data of the user in the image to be detected, determines the moving range on the virtual operation interface through the facial rotation data of the user, maps the corresponding moving trajectory to the moving range of the virtual operation interface according to the gesture data, and then controls the cursor to input content within the moving range through the moving trajectory of the user's gesture. The movement and input of the cursor are jointly controlled through the facial rotation angle and gesture data to avoid inaccurate cursor positioning and delay in the movement process of the cursor, thereby achieving the technical effect of accurately controlling the cursor input.
[0053] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a remote input device, etc. The following takes a remote input device as an example to illustrate this embodiment and the following embodiments.
[0054] Based on this, the present application embodiment provides a remote input method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the remote input method of the present application.
[0055] In this embodiment, the remote input method includes steps S10 to S40:
[0056] Step S10, obtaining an image to be detected;
[0057] It should be noted that the remote input device may be a device for controlling a display device, or may be the display device itself. For example, the remote input device may be: a conference tablet, a virtual VR device, or a large screen that can be used for interface interaction.
[0058] Among them, the display device is provided with a display screen, and the display screen can be a large-size screen or a small-size screen (for example, a screen smaller than 27 inches), etc. It can be understood that the remote input method provided in this embodiment can be applied to any type of screen and is not limited here.
[0059] It should be noted that the image to be detected can be human-related data collected by a camera set on a remote input device. The human body is photographed by the camera to determine the user's standing position, body activity data, head activity data and gesture movement data. It can also be a video frame extracted from the video taken by the camera.
[0060] Step S20, identifying facial rotation data and gesture data of the user in the image to be detected;
[0061] It should be noted that the user's facial position, standing position, gestures made, etc. can be determined through the data to be detected. In the actual interaction process, the user's standing position will be determined first, and an approximate mapping range will be selected on the operation interface. Then the recognized facial data and gesture data will be used to determine the cursor's movement range and how to move the cursor.
[0062] It should be noted that the facial rotation data can be the user's pupil rotation angle, head rotation angle, etc. By determining the user's pupil rotation angle or the direction of head rotation, it can be determined within which range the screen position that the user is concerned about is located, which can be used to preliminarily determine the cursor movement range.
[0063] It should be noted that gesture data can be the movement trajectory of the user's gesture, the specific position coordinates of the hand, etc., without specific limitation. The purpose of identifying the user's gesture data is to control the movement of the cursor through the user's gesture. There is a technology on the market that controls the movement of the cursor through the pupil, but in actual use, the pupil rotates too fast, and the clicking speed or movement speed on the screen may be too fast. On this basis, the movement of the cursor is controlled by identifying the movement trajectory of the user's gesture.
[0064] It should be noted that different hand gestures correspond to different control instructions. Specifically, when the gesture input device is started or before the user uses gesture input, the user can be prompted with the control instructions corresponding to different hand gestures so that the user can make corresponding hand gestures based on different intentions.
[0065] In a feasible implementation manner, the step S20 of identifying the facial rotation data and gesture data of the user in the image to be detected includes:
[0066] Performing action recognition on the image to be detected to obtain the initial position of the user's face and the initial position of the hand;
[0067] It should be noted that after the camera takes a picture of the user, an image to be detected is obtained, and the initial position of the user's face and the initial position of the hand are determined by recognizing the image to be detected.
[0068] When detecting that the user's face rotates to the target position, the trajectory between the initial face position and the target position is calculated to generate face rotation data, and gesture data is generated based on the initial hand position.
[0069] It should be noted that when the user's facial rotation is detected, the range of the user's facial movement is determined based on the initial position of the user's face and the rotation angle of the target position reached after the head rotates, and each video frame of the user's rotation is integrated to obtain the facial rotation data.
[0070] It should be noted that during the recognition process, when the hand does not move, the user's hand position and hand posture can be determined by the initial hand position to generate gesture data.
[0071] When hand movement is detected, gesture data is generated by determining the movement trajectory of the user's hand, and the cursor can be controlled to move or content can be input according to the user's gesture.
[0072] Step S30, determining a moving range of a cursor on a virtual operation interface based on the facial rotation data, and mapping a moving track corresponding to the gesture data on the virtual operation interface;
[0073] It should be noted that after determining the facial rotation data, the facial rotation data is used to determine the movement range of the cursor on the virtual operation interface, wherein the method for determining the movement range can be to determine the range data of the user's face rotation through the collected user facial data, and then map the range data to the virtual operation interface of the display screen to obtain the movement range of the cursor.
[0074] It should be noted that the moving range can be 1m 2 , 2m 2 Etc., no specific limitation.
[0075] It should be noted that, in the actual control process, the method of collecting the movement trajectory of the user's hand can be: setting a hand posture as the starting control posture (such as a clenched fist), the closing posture can be five fingers open, or extending other fingers to form other hand postures, which can be changed according to user habits, and there is no specific limitation.
[0076] It should be noted that when the cursor movement range is small, in order to facilitate user operation, gesture data can also be collected for the movement trajectory of any finger, the cursor is controlled by the finger, and the corresponding movement trajectory is mapped on the virtual operation interface.
[0077] In a feasible implementation manner, the facial rotation data includes pupil rotation data and head rotation data, and the step S30 of determining the movement range of the cursor on the virtual operation interface based on the facial rotation data includes:
[0078] Based on the head rotation data, determining the head rotation range of the user, and locating the cursor position on the virtual operation interface through the pupil rotation data;
[0079] It should be noted that after the camera collects the head rotation data, the user's head rotation range can be determined by integrating the head rotation angle in each frame. For example, the head rotation range can be an arc with a radius of 2m, the rotation angle can be 60 degrees, etc., without specific limitation.
[0080] It should be noted that pupil rotation data is similar to head rotation data, and is mainly used to determine the direction in which the pupil is focused and the positioning point on the screen. Based on the detected positioning point in which the pupil is focused, the cursor position is formed, and then instructions are sent to the device to form a corresponding cursor at that position.
[0081] The cursor position and the head rotation range are mapped on a virtual operation interface to determine the movement range of the cursor on the virtual operation interface.
[0082] It should be noted that the cursor's specific position is also included in the cursor's moving range. The user can control the cursor's movement by the degree of facial rotation and the movement trajectory of the pupil. When controlling the cursor's movement under the influence of the two, if the movement is inaccurate, the cursor can also be controlled through gestures for secondary input to ensure accurate control of the cursor.
[0083] It should be noted that by collecting the user's facial rotation data through the camera to determine the range of cursor movement, and then locating the cursor position through the pupil, it can be ensured that the cursor remains synchronized with the user's position when moving, so as to accurately control the movement or input of the cursor.
[0084] In another feasible implementation manner, the step S30 of determining the movement range of the cursor on the virtual operation interface based on the facial rotation data further includes:
[0085] Inputting the facial rotation data into a preset prediction model, performing prediction processing on the facial rotation data based on the preset prediction model, and outputting a prediction result, wherein the preset prediction model is obtained after iterative training based on historical facial rotation data;
[0086] It should be noted that the preset prediction model is a neural network model based on deep reinforcement learning. When in use, the preset prediction model has been trained with historical facial rotation data. After the facial rotation data is input into the preset prediction model, the facial rotation data is predicted and processed through the preset prediction model, and the prediction results are output. The prediction results output by the model can be used to determine the movement range corresponding to the facial rotation data.
[0087] For example, when the face rotation angle is 60 degrees, the corresponding movement range is range A, when the face rotation angle is 80 degrees, the corresponding movement range is range B, and so on.
[0088] Based on the prediction result, a moving range of the cursor on the virtual operation interface is determined.
[0089] It should be noted that when determining the cursor movement range on the virtual operation interface, the cursor movement range is simultaneously mapped on the virtual operation interface, and the facial rotation data is predicted by the model, which can improve the calculation efficiency.
[0090] In a feasible implementation manner, the step S30 of mapping the movement trajectory corresponding to the gesture data on the virtual operation interface includes:
[0091] When a change in the user's hand posture is detected in the gesture data, extracting the user's initial gesture position and target gesture position;
[0092] It should be noted that when a change in the user's hand posture is detected, that is, the user's gesture begins to change, or the hand position begins to move, the user's hand movement trajectory is determined by collecting the initial position of the gesture during the movement and the position reached after the movement.
[0093] It should be noted that the initial gesture position is the position of the user's hand before the movement, and the target gesture position is the final position of the user's hand after the movement.
[0094] Based on the initial gesture position and the target gesture position, generating a movement trajectory of the user's hand;
[0095] It should be noted that, when the hand posture is a start gesture, a cursor can be displayed on the display screen. The cursor can be on the virtual keyboard, or on the screen outside the virtual keyboard, etc., and the initial position is mapped to the position of the cursor, that is, the starting point of the selection trajectory is the position of the cursor. It can also be that when the hand posture is a start gesture, any key in the virtual keyboard is highlighted, and the initial position is mapped to the position of the highlighted key, that is, the starting point of the selection trajectory is the position of the highlighted key.
[0096] In a feasible embodiment, when the hand posture is a start gesture, any key in the virtual keyboard can be highlighted, and a cursor can be displayed at the highlighted key at the same time, and the movement trajectory of the user's hand can be generated when the initial position and final position of the gesture are displayed.
[0097] Based on the mapping relationship between the movement trajectory and the cursor, the movement trajectory is mapped on a virtual operation interface or within the movement range.
[0098] It should be noted that there is a mapping relationship between the user's hand and the cursor, which is pre-set. When the user's hand has a moving track, the cursor will also have a corresponding moving track, and the moving track can be mapped on the virtual operation interface or within the moving range. Among them, the range of the virtual operation interface includes the moving range.
[0099] Step S40: Controlling the cursor to input content within the moving range through the moving track.
[0100] It should be noted that after determining the movement trajectory of the gesture, the user can control the cursor on the virtual operation interface to move within the movement range or input content by controlling the movement of the hand, wherein the content input may be text input.
[0101] Specifically, in the actual control process, pupil control and facial rotation of the cursor are used as the primary control methods, and gesture control is used as the secondary control method. When precise control cannot be achieved through pupil control and facial rotation, gesture control is used for auxiliary control to avoid delays in cursor movement during the control process.
[0102] The present application proposes a remote input method, apparatus, device, storage medium and computer program product. The present application obtains an image to be detected, identifies the facial rotation data and gesture data of the user in the image to be detected, determines the moving range on the virtual operation interface through the facial rotation data of the user, maps the corresponding moving trajectory to the moving range of the virtual operation interface according to the gesture data, and then controls the cursor to input content within the moving range through the moving trajectory of the user's gesture. The movement and input of the cursor are jointly controlled through the facial rotation angle and gesture data to avoid inaccurate cursor positioning and delay in the movement process of the cursor, thereby achieving the technical effect of accurately controlling the cursor input.
[0103] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 The step of controlling the cursor to input content within the moving range through the moving track includes steps S41 to S43:
[0104] Step S41, controlling the cursor to slide to an input position within the moving range through the moving track;
[0105] It should be noted that when inputting text, the cursor is controlled by the movement trajectory of the user's gesture to slide within the moving range to the key position where the text needs to be entered, where the input position can be the position corresponding to the key to be clicked, and the key is located on the virtual keyboard on the operation interface. The keyboard can be called up by voice or manually, and then the cursor is slid to the position of the corresponding key.
[0106] Step S42, when it is detected that the cursor stays at the input position for a preset period of time and the pupil angle of the pupil rotation data is focused on the input position, determining that the key corresponding to the input position is the target key selected by the user;
[0107] It should be noted that the preset time period can be 1S, 2S, etc., and there is no specific limitation. When it is detected that the cursor stays on a key for a long time, it can be determined that the user wants to operate the key through the cursor. This judgment method is also mentioned in the relevant technology and will not be repeated here.
[0108] It should be noted that after collecting pupil rotation data, the user's pupil angle direction can be determined, and then the actual positioning point where the user's pupil is concentrated can be calculated to determine whether the user's pupil is focused on the position. The pupil angle and the cursor dwell time are used to determine whether the current key is the target key selected by the user. When both conditions are met, the current key is selected as the target key.
[0109] Step S43: input content through the target key.
[0110] It should be noted that there can be multiple target keys. After determining the target key, content can be input by clicking the target key. When there are multiple target keys, for example, 10 letters in a 26-key keyboard, the order in which they are clicked can be adjusted to achieve text input.
[0111] In this embodiment, the target key selected by the user is determined by the pupil angle and the time the cursor stays on the key, and content is input through the target key, so that the input content is more accurate and meets the user's needs.
[0112] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the remote input method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0113] This application also provides a remote input device, please refer to Figure 3 , the remote input device comprises:
[0114] An acquisition module 10 is used to acquire an image to be detected;
[0115] The recognition module 20 is used to recognize the facial rotation data and gesture data of the user in the image to be detected;
[0116] A determination module 30, configured to determine a moving range of a cursor on a virtual operation interface based on the facial rotation data, and map a moving track corresponding to the gesture data on the virtual operation interface;
[0117] The input module 40 is used to control the cursor to input content within the moving range through the moving track.
[0118] Optionally, the determining module includes:
[0119] a positioning unit, configured to determine a head rotation range of the user based on the head rotation data, and to locate a cursor position on the virtual operation interface through the pupil rotation data;
[0120] The first determining unit is used to map the cursor position and the head rotation range on the virtual operation interface to determine the movement range of the cursor on the virtual operation interface.
[0121] Optionally, the determining module further includes:
[0122] A processing unit, configured to input the facial rotation data into a preset prediction model, perform prediction processing on the facial rotation data based on the preset prediction model, and output a prediction result, wherein the preset prediction model is obtained after iterative training based on historical facial rotation data;
[0123] The second determining unit is used to determine a moving range of a cursor on the virtual operation interface based on the prediction result.
[0124] Optionally, the determining module further includes:
[0125] an extraction unit, configured to extract an initial gesture position and a target gesture position of the user when a change in the hand posture of the user in the gesture data is detected;
[0126] A generating unit, configured to generate a movement trajectory of the user's hand based on the initial gesture position and the target gesture position;
[0127] A mapping unit is used to map the movement trajectory onto a virtual operation interface or within the movement range based on a mapping relationship between the movement trajectory and the cursor.
[0128] Optionally, the identification module includes:
[0129] A recognition unit, used for performing action recognition on the image to be detected to obtain the initial position of the user's face and the initial position of the hand;
[0130] The calculation unit is used to calculate the trajectory between the initial face position and the target position when detecting that the user's face is rotated to the target position, generate face rotation data, and generate gesture data based on the initial hand position.
[0131] Optionally, the input module includes:
[0132] A control unit, configured to control the cursor to slide to an input position within the moving range through the moving track;
[0133] a third determining unit, configured to determine that a key corresponding to the input position is a target key selected by the user when it is detected that the cursor stays at the input position for a preset period of time and the pupil angle of the pupil rotation data is focused on the input position;
[0134] An input unit is used to input content through the target key.
[0135] The remote input device provided by the present application adopts the remote input method in the above embodiment, which can solve the technical problem of remote input. Compared with the prior art, the beneficial effects of the remote input device provided by the present application are the same as the beneficial effects of the remote input method provided by the above embodiment, and other technical features in the remote input device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0136] The present application provides a remote input device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the remote input method in the above-mentioned embodiment 1.
[0137] Reference below Figure 4 , which shows a schematic diagram of the structure of a remote input device suitable for implementing the embodiment of the present application. The remote input device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The remote input device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0138] like Figure 4As shown, the remote input device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the remote input device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the remote input device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a remote input device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0139] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0140] The remote input device provided by the present application adopts the remote input method in the above embodiment, which can solve the technical problem of remote input. Compared with the prior art, the beneficial effects of the remote input device provided by the present application are the same as the beneficial effects of the remote input method provided by the above embodiment, and other technical features in the remote input device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0141] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0142] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0143] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the remote input method in the above-mentioned embodiment.
[0144] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0145] The computer-readable storage medium may be included in the remote input device; or may exist independently without being assembled into the remote input device.
[0146] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the remote input device, the remote input device:
[0147] Acquire the image to be detected;
[0148] Identifying facial rotation data and gesture data of a user in the image to be detected;
[0149] Based on the facial rotation data, determining a movement range of a cursor on a virtual operation interface, and mapping a movement trajectory corresponding to the gesture data on the virtual operation interface;
[0150] The cursor is controlled by the movement track to input content within the movement range.
[0151] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0152] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0153] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0154] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned remote input method, and can solve the technical problems of remote input. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the remote input method provided by the above-mentioned embodiment, and will not be repeated here.
[0155] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the remote input method as described above are implemented.
[0156] The computer program product provided by the present application can solve the technical problem of remote input. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the remote input method provided by the above embodiment, which will not be repeated here.
[0157] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A remote input method, characterized in that: The method comprises: Acquire the image to be detected; Identifying facial rotation data and gesture data of a user in the image to be detected; Based on the facial rotation data, determining a movement range of a cursor on a virtual operation interface, and mapping a movement trajectory corresponding to the gesture data on the virtual operation interface; The cursor is controlled by the movement track to input content within the movement range.
2. The method according to claim 1, characterized in that The facial rotation data includes pupil rotation data and head rotation data. The step of determining the movement range of the cursor on the virtual operation interface based on the facial rotation data includes: Based on the head rotation data, determining the head rotation range of the user, and locating the cursor position on the virtual operation interface through the pupil rotation data; The cursor position and the head rotation range are mapped on a virtual operation interface to determine the movement range of the cursor on the virtual operation interface.
3. The method according to claim 1, characterized in that The step of determining the movement range of the cursor on the virtual operation interface based on the facial rotation data further includes: Inputting the facial rotation data into a preset prediction model, performing prediction processing on the facial rotation data based on the preset prediction model, and outputting a prediction result, wherein the preset prediction model is obtained after iterative training based on historical facial rotation data; Based on the prediction result, a moving range of the cursor on the virtual operation interface is determined.
4. The method according to any one of claims 1 to 3, characterized in that The step of mapping the movement trajectory corresponding to the gesture data onto the virtual operation interface includes: When a change in the user's hand posture is detected in the gesture data, extracting the user's initial gesture position and target gesture position; Based on the initial gesture position and the target gesture position, generating a movement trajectory of the user's hand; Based on the mapping relationship between the movement trajectory and the cursor, the movement trajectory is mapped on a virtual operation interface or within the movement range.
5. The method according to claim 1, characterized in that The step of identifying the facial rotation data and gesture data of the user in the image to be detected comprises: Performing action recognition on the image to be detected to obtain the initial position of the user's face and the initial position of the hand; When detecting that the user's face rotates to the target position, the trajectory between the initial face position and the target position is calculated to generate face rotation data, and gesture data is generated based on the initial hand position.
6. The method according to claim 2, characterized in that The step of controlling the cursor to input content within the moving range through the moving track includes: Controlling the cursor to slide to an input position within the moving range through the moving track; When it is detected that the cursor stays at the input position for a preset period of time and the pupil angle of the pupil rotation data is focused on the input position, determining that the key corresponding to the input position is the target key selected by the user; Content input is performed through the target key.
7. A remote input device, characterized in that: The remote input device comprises: An acquisition module, used for acquiring an image to be detected; A recognition module, used to recognize the facial rotation data and gesture data of the user in the image to be detected; A determination module, configured to determine a movement range of a cursor on a virtual operation interface based on the facial rotation data, and map a movement track corresponding to the gesture data on the virtual operation interface; The input module is used to control the cursor to input content within the moving range through the moving track.
8. A remote input device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the remote input method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the remote input method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the remote input method according to any one of claims 1 to 6 are implemented.
