Large screen window control method, device, storage medium and equipment

Two-finger gestures are recognized through camera equipment and classification models, and a transparent mask is generated to capture user operations, which solves the problem of inconvenient control of large-screen windows and enables convenient window interaction without affecting the original window display.

CN113448485BActive Publication Date: 2024-09-13TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110785561.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-12
Publication Date
2024-09-13
Estimated Expiration
2041-07-12

AI Technical Summary

Technical Problem

In large-screen operating systems, it is difficult for users who are short in height to touch the menu or buttons at the top of the window, making window control inconvenient.

Method used

Collect image frames through camera equipment for human hand gesture recognition, use a classification model to identify gesture types, and generate a transparent mask layer to capture user operations when a two-finger gesture is detected, and parse touch information to control window interaction events.

Benefits of technology

There is no need for the user to interact with the menu or button at the top of the window. Window control can be achieved with only two-finger gestures, which improves the convenience of human-computer interaction in large-screen windows and does not affect the display of the original window.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113448485B
    Figure CN113448485B
Patent Text Reader

Abstract

The present application discloses a large-screen window control method, device, storage medium and equipment, which obtain image frames collected by a camera device preset on a large screen. Perform gesture recognition on human hands to obtain the plane coordinates of the key points of the hand. Use the plane coordinates of the key points of the hand as the feature variables of the image frame and input them into the classification model to obtain the classification results output by the classification model. Use the gesture type with the highest probability as the gesture type of the image frame. When it is detected that the distance between the key points of the hand and the large screen is less than the first preset threshold value, and the gesture type of the image frame is a preset two-finger gesture, control the operating system to generate a transparent mask. Analyze the trigger operation to obtain touch information. Based on the touch information, determine the interaction event between the user and the window. Control the operating system to perform control operations on the window corresponding to the interaction event. It can be seen that the scheme described in the present application can effectively improve the convenience of human-computer interaction in large-screen windows.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of human-computer interaction, and in particular to a large-screen window control method, device, storage medium and equipment. Background Art

[0002] In a large screen (usually a touch screen) running an operating system, in order to control a window (e.g., close, maximize, minimize, move), the user needs to interact with the menu or button at the top of the window, which is not conducive to user operation, especially for users of short height who cannot touch the top of the large screen.

[0003] Therefore, how to improve the convenience of human-computer interaction in large-screen windows has become an urgent problem to be solved in this field. Summary of the invention

[0004] The present application provides a large-screen window control method, device, storage medium and equipment, aiming to improve the convenience of large-screen window human-computer interaction.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A large screen window control method, comprising:

[0007] Acquire an image frame captured by a camera device preset on a large screen; the image frame is used to indicate a human hand;

[0008] Performing gesture recognition on the human hand to obtain the plane coordinates of key points of the hand;

[0009] The plane coordinates of the key points of the hand are used as feature variables of the image frame and input into a classification model to obtain a classification result output by the classification model; the classification model is trained based on the feature variables of the sample image frame as input and the gesture types of the sample image frame marked in advance as training targets; the classification result includes the probability of each gesture type;

[0010] Using the gesture type with the highest probability as the gesture type of the image frame;

[0011] When it is detected that the distance between the key point of the hand and the large screen is less than a first preset threshold value and the gesture type of the image frame is a preset two-finger gesture, the operating system is controlled to generate a transparent mask layer; the mask layer is used to capture the user's triggering operation on the large screen;

[0012] Analyze the trigger operation to obtain touch information;

[0013] Determining an interaction event between the user and the window based on the touch information;

[0014] The operating system is controlled to perform a control operation on the window corresponding to the interaction event.

[0015] Optionally, when it is detected that the distance between the key point of the hand and the large screen is less than a first preset threshold and the gesture type of the image frame is a preset two-finger gesture, controlling the operating system to generate a transparent mask includes:

[0016] Calculating the distance between each of the hand key points and a preset rectangle in the image frame to obtain respective first values; the preset rectangle is an imaging area of ​​the large screen in the image frame;

[0017] Taking the first minimum value as the target value;

[0018] When the target value is less than a first preset threshold value and the gesture type of the image frame is a preset two-finger gesture, the operating system is controlled to generate a mask layer that is transparent in color and globally set to the top.

[0019] Optionally, the controlling the operating system to generate a transparent mask that is globally set to the top includes:

[0020] Control the operating system to create a window for representing the mask, and set the window style of the window to be empty;

[0021] Controlling the operating system to adjust the size of the window so that the window covers a preset area;

[0022] Controlling the operating system to set the background color of the window to be transparent;

[0023] Control the operating system to set the Topmost property of the window to true;

[0024] The operating system is controlled to bind a touch callback event on the window; wherein the touch callback event is used to intercept a user's triggering operation on the large screen.

[0025] Optionally, the touch information includes touch positions, movement trajectories, and touch duration of the two fingers;

[0026] The determining, based on the touch information, an interaction event between the user and the window includes:

[0027] Determining whether the touch duration is greater than a second preset threshold;

[0028] When the touch duration is greater than the second preset threshold, calculating a change value of the relative distance between the two fingers based on the touch position and the motion trajectory;

[0029] Determining whether the change value is greater than a third preset threshold;

[0030] When the change value is greater than the third preset threshold, it is determined that the interaction event between the user and the target window is a zoom event; wherein the target window is the original window closest to the touch position among the original windows; and the zoom event is used to characterize the zooming of the target window.

[0031] Optionally, also include:

[0032] When the change value is not greater than the third preset threshold, it is determined that the interaction event between the user and the target window is a drag event; wherein the drag event is used to represent the movement of the target window.

[0033] Optionally, also include:

[0034] When the touch duration is not greater than the second preset threshold, calculating the sliding direction of the two fingers based on the touch position and the motion trajectory;

[0035] In the case where the sliding direction indicates sliding upward, determining that the interaction event between the user and the target window is an upward sliding event; the upward sliding event is used to represent maximizing the target window;

[0036] In the case where the sliding direction indicates sliding downward, determining that the interaction event between the user and the target window is a sliding down event; the sliding down event is used to represent minimizing the target window;

[0037] In the case where the sliding direction indicates sliding to the left, determining that the interaction event between the user and the target window is a left sliding event; the left sliding event is used to represent closing the target window;

[0038] When the sliding direction indicates sliding to the right, it is determined that the interaction event between the user and the target window is a right sliding event; and the right sliding event is used to represent the restoration of the target window.

[0039] Optionally, after controlling the operating system to perform a control operation on the window corresponding to the interaction event, the method further includes:

[0040] Control the operating system to close the mask.

[0041] A large screen window control device, comprising:

[0042] An acquisition unit, used to acquire image frames collected by a camera device preset on the large screen; the image frames are used to indicate a human hand;

[0043] A recognition unit, used to perform gesture recognition on the human hand to obtain the plane coordinates of the key points of the hand;

[0044] A classification unit, used for taking the plane coordinates of the key points of the hand as feature variables of the image frame and inputting them into a classification model to obtain a classification result output by the classification model; the classification model is trained based on taking the feature variables of the sample image frame as input and taking the gesture types of the sample image frame marked in advance as training targets; the classification result includes the probability of each gesture type;

[0045] A first determining unit, configured to use the gesture type with the highest probability as the gesture type of the image frame;

[0046] a first control unit, configured to control the operating system to generate a transparent mask layer when detecting that the distance between the key point of the hand and the large screen is less than a first preset threshold and the gesture type of the image frame is a preset two-finger gesture; the mask layer is used to capture the user's triggering operation on the large screen;

[0047] An analysis unit, used for analyzing the trigger operation to obtain touch information;

[0048] A second determining unit, configured to determine an interaction event between the user and the window based on the touch information;

[0049] The second control unit is used to control the operating system to perform a control operation on the window corresponding to the interaction event.

[0050] A computer-readable storage medium includes a stored program, wherein the program executes the large-screen window control method.

[0051] A large screen window control device comprises: a processor, a memory and a bus; the processor and the memory are connected via the bus;

[0052] The memory is used to store programs, and the processor is used to run programs, wherein the large screen window control method is executed when the program is run.

[0053] The technical solution provided by the present application obtains an image frame collected by a camera device preset on a large screen, and the image frame is used to indicate a human hand. Gesture recognition is performed on the human hand to obtain the plane coordinates of the key points of the hand. The plane coordinates of the key points of the hand are used as feature variables of the image frame and input into the classification model to obtain the classification result output by the classification model. The classification model is trained based on taking the feature variables of the sample image frame as input and the gesture types of the pre-labeled sample image frames as training targets. The classification result includes the probability of each gesture type. The gesture type with the highest probability is used as the gesture type of the image frame. When it is detected that the distance between the key points of the hand and the large screen is less than the first preset threshold value, and the gesture type of the image frame is a preset two-finger gesture, the operating system is controlled to generate a transparent mask layer, and the mask layer is used to capture the user's trigger operation on the large screen. The trigger operation is parsed to obtain touch information. Based on the touch information, the interaction event between the user and the window is determined. The operating system is controlled to perform a control operation on the window corresponding to the interaction event. Compared with the prior art, the user does not need to interact with the menu or button at the top of the window. The user only needs to make a corresponding gesture (i.e., a preset two-finger gesture) to trigger the large screen to control the window. In addition, because the color of the mask is transparent, it will not affect the display of the original window. It can be seen that the solution described in this application can effectively improve the convenience of human-computer interaction in large-screen windows. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] 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, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0055] Figure 1a A schematic diagram of a large screen window control method provided in an embodiment of the present application;

[0056] Figure 1b A schematic diagram of a large screen provided in an embodiment of the present application;

[0057] Figure 1c A schematic diagram of another large screen provided in an embodiment of the present application;

[0058] Figure 1d A schematic diagram of a sample image frame provided in an embodiment of the present application;

[0059] Figure 1e A schematic diagram of another sample image frame provided in an embodiment of the present application;

[0060] Figure 1fA schematic diagram of an image frame provided in an embodiment of the present application;

[0061] Figure 1g A schematic diagram of a two-finger gesture provided in an embodiment of the present application;

[0062] Figure 1h A schematic diagram of an interactive event provided in an embodiment of the present application;

[0063] Figure 2 A schematic diagram of another large screen window control method provided by an embodiment of the present application;

[0064] Figure 3 A schematic structural diagram of a large-screen window control device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0066] like Figure 1a , which is a schematic diagram of a large screen window control method provided by an embodiment of the present application, comprising the following steps:

[0067] S101: Acquire sample image frames captured by a camera device preset on a large screen.

[0068] The camera device includes but is not limited to being placed directly above the large screen, and the camera device can capture environmental information in front of the large screen. For details, the installation location of the camera device and the environmental information that can be captured can be found in Figure 1b and Figure 1c As shown (in Figure 1b and Figure 1c In the example, “fisheye lens camera” represents the camera device, “large screen” represents the large screen, and “Interactive space” represents the environment. For example, when a user clicks the large screen, from raising the hand to touching it, the camera device has a field of view of 180 degrees and captures images at a frame rate of 30 frames per second.

[0069] It should be noted that the camera device includes but is not limited to an RGB fisheye camera. In the embodiment of the present application, the sample image frame is used to indicate a human hand.

[0070] S102: Label the sample image frame with a type identifier.

[0071] The type identifier is used to indicate the gesture type of the sample image frame.

[0072] S103: Inputting the sample image frame into a preset gesture recognition model to obtain feature variables output by the gesture recognition model.

[0073] Among them, the preset gesture recognition model includes but is not limited to the gesture recognition neural network model in the Mediapipe framework (the model has been pre-trained on a wide range of hand image data sets, so the model parameters provided by the official can be used directly without retraining the model). The gesture recognition neural network model is used to perform gesture recognition on human hands in sample image frames and mark each hand key point in the sample image frame, that is, output the plane coordinates (including horizontal and vertical coordinates) of each hand key point.

[0074] In the embodiment of the present application, the number of feature variables may be 42, that is, representing the plane coordinates of 21 hand key points. In other words, the plane coordinates of the hand key points shown in the sample image frame may be regarded as the feature variables of the sample image frame.

[0075] For details, the sample image frames can be found in Figure 1d As shown, accordingly, the gesture recognition of the human hand in the sample image frame is performed, and the recognition result is as follows Figure 1e shown.

[0076] It should be noted that the above specific implementation process is only used for illustration.

[0077] S104: Taking the feature variables of the sample image frame as input and the gesture type of the sample image frame as a training target, training to obtain a classification model.

[0078] The network structure of the classification model includes but is not limited to: VGG19 (usually used as a skeleton structure), 16 convolutional layers, and 3 fully connected layers. Specifically, when training the classification model, the Adam optimizer can be used to reduce the cross entropy of the loss function to improve the training efficiency of the classification model.

[0079] S105: When it is detected that the operating system is turned on, image frames captured by the camera device are acquired according to a preset time interval.

[0080] When the operating system is turned on, it is determined that the large screen has entered the human-computer interaction state. The preset time interval can also be understood as a preset frame rate. In the field of videography, the frame rate is usually used to represent the time interval.

[0081] In the embodiment of the present application, the image frame is used to indicate a human hand.

[0082] S106: Input the image frame into the gesture recognition model to obtain feature variables output by the gesture recognition model.

[0083] S107: Input the feature variables of the image frame into the classification model to obtain the classification result output by the classification model.

[0084] The classification result includes the probability of each gesture type.

[0085] In an embodiment of the present application, the classification result output by the classification model can be specifically represented by a set of vectors. The number of elements contained in the vector represents the total number of gesture types, and each element represents the probability of a gesture type appearing in an image frame.

[0086] S108: Taking the gesture type with the highest probability as the gesture type of the image frame.

[0087] The gesture type of each image frame may also be stored in a preset queue in the order of the timestamps of the image frames from early to late.

[0088] S109: Calculate the distance between each hand key point in the image frame and the preset rectangle to obtain each first value.

[0089] The preset rectangle is the imaging area of ​​the large screen in the image frame. Since the camera device is placed directly above the large screen, the large screen can be regarded as a fixed rectangle (i.e., the preset rectangle) in the image frame. In the embodiment of the present application, the width of the preset rectangle can be the width of the entire image frame, the height can be 8% of the height of the entire image frame, and the preset rectangle can be located in the middle of the image frame. For specific preset rectangles, please refer to Figure 1f shown.

[0090] It should be noted that the process of calculating the distance between the hand key point and the preset rectangle, that is, the process of calculating the first value, is as shown in formula (1).

[0091]

[0092] In formula (1), dx=max(rect_min_x-x, 0, x-rect_max_x), dy=max(rect_min_y-y, 0, y-rect_max_y), rect_min_x, rect_max_x, rect_min_y, and rect_max_y are the coordinates of the four vertices of the preset rectangle, x is the horizontal coordinate of the hand key point, and y is the vertical coordinate of the hand key point.

[0093] S110: Taking the first value with the smallest value as the target value.

[0094] S111: When the target value is less than a first preset threshold value and the gesture type of the image frame is a preset two-finger gesture, control the operating system to generate a transparent mask that is globally set to the top.

[0095] The mask is used to capture the user's triggering operation on the large screen. If the color of the mask is transparent, it will not affect the display of the content in the original window. The so-called global top mask is that the mask can cover the original window to prevent the user from controlling the original window.

[0096] In addition, the image frames captured by the camera device can indicate the person (i.e., user) in front of the large screen in addition to indicating the person's hand. When it is detected that the total number of users indicated in the image frame is multiple, and the original windows triggered by multiple users are all the same window, the control operating system allows the user who first triggered the operation of the window to perform the trigger operation (i.e., the mask only captures the trigger operation of the window by the user who first triggered the operation of the window), and the trigger operations of other users on the window will be blocked until the user who first triggered the operation of the window ends the trigger operation, and then the blocking of other users is released.

[0097] It should be noted that the specific implementation steps of setting the color of the mask to be transparent and globally set to the top using an operating system (such as a Windows system and an Android system, etc.) include:

[0098] 1. Control the operating system to create a window for representing the mask and set the window style of the window to empty.

[0099] 2. Control the operating system to adjust the size of the window so that the window covers the preset area.

[0100] In the embodiment of the present application, the preset area includes but is not limited to the full screen, and a rectangular area centered on the average of the plane coordinates of all the key points of the user's hands and having an area greater than the preset value range.

[0101] 3. Control the operating system to set the background color of the window to transparent.

[0102] 4. Control the operating system to set the Topmost property of the window to true (i.e., to globally place the window on top).

[0103] 5. Control the operating system to bind touch callback events on the window.

[0104] Among them, the touch callback event is used to intercept the user's trigger operation on the large screen.

[0105] It should be emphasized that the two-finger gesture has multiple expressions, such as Figure 1gTaking the two-finger gesture shown as an example, the index finger and middle finger of one hand, or the index fingers of two hands, etc. can be used. In the embodiment of the present application, one of the two-finger gesture expressions can be used as the preset two-finger gesture.

[0106] S112: Analyze the user's triggering operation on the large screen to obtain touch information.

[0107] The touch information includes but is not limited to: the touch position, movement trajectory, and touch duration of the two fingers.

[0108] S113: Determine whether the touch duration of the two fingers is greater than a second preset threshold.

[0109] If the touch duration of the two fingers is greater than the second preset threshold, execute S114, otherwise execute S117.

[0110] S114: Calculate a change value of the relative distance between the two fingers based on the touch positions and movement trajectories of the two fingers, and determine whether the change value is greater than a third preset threshold.

[0111] If the change value is greater than the third preset threshold, it is determined that the interaction event between the user and the target window is a zoom event, and S115 is executed; otherwise, it is determined that the interaction event between the user and the target window is a drag event, and S116 is executed.

[0112] The specific implementation method of calculating the change value of the relative distance between the two fingers based on the touch positions and movement trajectories of the two fingers is common knowledge familiar to those skilled in the art and will not be described in detail here.

[0113] It should be noted that the zoom event is used to represent the zoom target window, and the drag event is used to represent the moving target window. In the embodiment of the present application, the target window includes but is not limited to: the original window closest to the touch position of the two fingers in each original window, the original window with the highest current activity in the operating system, and the original window in use.

[0114] S115: Calculate the product of the change value and the preset coefficient, and control the operating system to scale the target window according to the product.

[0115] After executing S115 , continue to execute S122 .

[0116] The specific method for calculating the distance between the original window and the touch position of the two fingers is the same as the principle shown in the above formula (1), that is, the two-dimensional plane coordinates of the touch position of the two fingers, the center coordinates, length and width of the original window are known (that is, the original window is regarded as a rectangular area, and the four vertices of the rectangular area are known), then the distance between the original window and the touch position of the two fingers can be calculated using formula (1).

[0117] S116: Calculate the moving distance and moving direction of the two fingers based on the touch positions and movement trajectories of the two fingers, and control the operating system to move the target window according to the moving distance and moving direction of the two fingers.

[0118] After executing S116 , continue to execute S122 .

[0119] The specific implementation method of calculating the moving distance and moving direction of the two fingers based on the touch positions and movement trajectories of the two fingers is common knowledge familiar to those skilled in the art and will not be described in detail here.

[0120] S117: Calculate the sliding direction of the two fingers based on the touch positions and movement trajectories of the two fingers.

[0121] The specific implementation method of calculating the sliding direction of the two fingers based on the touch positions and movement trajectories of the two fingers is common knowledge familiar to those skilled in the art and will not be described in detail here.

[0122] S118: When the sliding direction indicates sliding upward, determining that the interaction event between the user and the target window is an upward sliding event, and controlling the operating system to maximize the target window.

[0123] After executing S118 , continue to execute S122 .

[0124] The slide-up event is used to represent the maximization of the target window.

[0125] S119: When the sliding direction indicates sliding downward, determining that the interaction event between the user and the target window is a sliding down event, and controlling the operating system to minimize the target window.

[0126] After executing S119, continue to execute S122.

[0127] The sliding down event is used to represent minimizing the target window.

[0128] S120: When the sliding direction indicates sliding to the left, determining that the interaction event between the user and the target window is a left sliding event, and controlling the operating system to close the target window.

[0129] After executing S120 , continue to execute S122 .

[0130] The left slide event is used to indicate closing the target window.

[0131] S121: When the sliding direction indicates sliding to the right, determining that the interaction event between the user and the target window is a right sliding event, and controlling the operating system to restore the target window.

[0132] After executing S121, continue to execute S122.

[0133] Among them, the right slide event is used to represent the restoration of the target window.

[0134] It should be noted that zoom events, drag events, swipe up events, swipe down events, swipe left events, and swipe right events are collectively referred to as interactive events. The correspondence between interactive events and control instructions (i.e., the control operations performed by the operating system on the window) is shown in Table 1.

[0135] Table 1

[0136] Interaction Events Control instructions Swipe up event Maximize Window Slippage Event Minimize Window Left swipe event Close Window Right swipe event Restore Window Zoom Events Zoom Window Drag events Moving Window

[0137] Specifically, the actual operations of the slide up event, slide down event, left slide event, and drag event are as follows in order: Figure 1h shown.

[0138] It should be noted that the above Table 1 and Figure 1h The content shown is only used for illustration, and the correspondence between interaction events and control instructions can be set by technical personnel according to actual conditions.

[0139] S122: Control the operating system to close the mask.

[0140] Among them, after controlling the operating system to close the mask, the user can restore normal interaction with the original window.

[0141] In summary, the image frames are collected by using the camera device preset on the large screen, gesture recognition is performed on the image frames, the gesture type of the image frames is identified by using the classification model, and the user's trigger operation on the large screen is captured by using a transparent mask. The touch information is obtained according to the analysis of the trigger operation, the interaction event between the user and the window is determined, and the operating system is controlled to perform the control operation on the window corresponding to the interaction event. Compared with the prior art, the user does not need to interact with the menu or button at the top of the window. The user only needs to make a corresponding gesture (i.e., a preset two-finger gesture) to trigger the large screen to achieve the control operation on the window. In addition, because the color of the mask is transparent, it will not affect the display of the original window. It can be seen that the use of the scheme described in this embodiment can effectively improve the convenience of human-computer interaction on the large screen window.

[0142] It should be noted that S101 mentioned in the above embodiment is an optional specific implementation of the large screen window control method described in this application. In addition, S102 mentioned in the above embodiment is also an optional specific implementation of the large screen window control method described in this application. To this end, the process mentioned in the above embodiment can be summarized as follows: Figure 2 The method shown.

[0143] like Figure 2The above is a schematic diagram of another large screen window control method provided by an embodiment of the present application, comprising the following steps:

[0144] S201: Acquire image frames captured by a camera device preset on a large screen.

[0145] The image frame is used to indicate a human hand.

[0146] S202: Performing hand gesture recognition on a human hand to obtain plane coordinates of key points of the hand.

[0147] The process of performing gesture recognition on image frames using a preset gesture recognition model mentioned in the above embodiment is an optional specific implementation method of gesture recognition.

[0148] S203: The plane coordinates of the key points of the hand are used as feature variables of the image frame and input into the classification model to obtain the classification result output by the classification model.

[0149] The classification model is trained based on taking the feature variables of the sample image frames as input and taking the gesture types of the pre-labeled sample image frames as training targets. The classification results include the probabilities of each gesture type.

[0150] S204: Taking the gesture type with the highest probability as the gesture type of the image frame.

[0151] S205: When it is detected that the distance between the key point of the hand and the large screen is less than a first preset threshold and the gesture type of the image frame is a preset two-finger gesture, control the operating system to generate a transparent mask.

[0152] The mask is used to capture the user's triggering operation on the large screen.

[0153] S206: Analyze the trigger operation and obtain touch information.

[0154] S207: Determine an interaction event between the user and the window based on the touch information.

[0155] S208: Control the operating system to perform a control operation on the window corresponding to the interaction event.

[0156] In summary, compared with the prior art, the user does not need to interact with the menu or button at the top of the window. The user only needs to make a corresponding gesture (i.e., a preset two-finger gesture) to trigger the large screen to control the window. In addition, because the color of the mask is transparent, it will not affect the display of the original window. It can be seen that the solution described in this embodiment can effectively improve the convenience of human-computer interaction in large-screen windows.

[0157] Corresponding to the large-screen window control method provided in the above-mentioned embodiment of the present application, the embodiment of the present application also provides a large-screen window control device.

[0158] like Figure 3 FIG. 1 is a schematic diagram of a large screen window control device provided in an embodiment of the present application, comprising:

[0159] The acquisition unit 100 is used to acquire image frames collected by a camera device preset on the large screen; the image frames are used to indicate human hands.

[0160] The recognition unit 200 is used to perform gesture recognition on a human hand to obtain the plane coordinates of key points of the hand.

[0161] The classification unit 300 is used to input the plane coordinates of the key points of the hand as the feature variables of the image frame into the classification model to obtain the classification result output by the classification model; the classification model is based on the feature variables of the sample image frame as input and the gesture types of the pre-labeled sample image frames as training targets, and the classification result includes the probability of each gesture type.

[0162] The first determining unit 400 is configured to use the gesture type with the highest probability as the gesture type of the image frame.

[0163] The first control unit 500 is used to control the operating system to generate a transparent mask when it is detected that the distance between the hand key point and the large screen is less than a first preset threshold and the gesture type of the image frame is a preset two-finger gesture; the mask is used to capture the user's trigger operation on the large screen.

[0164] Among them, the first control unit 500 is specifically used to: calculate the distance between each hand key point in the image frame and the preset rectangle to obtain each first value; the preset rectangle is the imaging area of ​​the large screen in the image frame; the first value with the smallest value is used as the target value; when the target value is less than the first preset threshold and the gesture type of the image frame is a preset two-finger gesture, control the operating system to generate a mask with a transparent color and a global top layer.

[0165] The first control unit 500 is used to control the operating system to generate a specific process of a transparent mask that is globally placed on top, including: controlling the operating system to create a window for representing the mask, and setting the window style of the window to empty; controlling the operating system to adjust the size of the window so that the window covers a preset area; controlling the operating system to set the background color of the window to transparent; controlling the operating system to set the Topmost property of the window to true; controlling the operating system to bind a touch callback event to the window; wherein the touch callback event is used to intercept the user's triggering operation on the large screen.

[0166] The analysis unit 600 is used to analyze the trigger operation and obtain touch information, wherein the touch information includes the touch position, movement trajectory, and touch duration of the two fingers.

[0167] The second determining unit 700 is used to determine an interaction event between the user and the window based on the touch information.

[0168] Among them, the second determination unit 700 is specifically used to: determine whether the touch duration is greater than the second preset threshold; when the touch duration is greater than the second preset threshold, calculate the change value of the relative distance between the two fingers based on the touch position and the motion trajectory; determine whether the change value is greater than the third preset threshold; when the change value is greater than the third preset threshold, determine that the interaction event between the user and the target window is a zoom event; wherein the target window is the original window in each original window that is closest to the touch position; the zoom event is used to characterize the zoom target window.

[0169] The second determination unit 700 is further used to: when the change value is not greater than a third preset threshold, determine that the interaction event between the user and the target window is a drag event; wherein the drag event is used to characterize the moving target window.

[0170] The second determination unit 700 is also used for: when the touch duration is not greater than the second preset threshold, calculating the sliding direction of the two fingers based on the touch position and the motion trajectory; when the sliding direction indicates an upward slide, determining the interaction event between the user and the target window as an upward slide event; the upward slide event is used to characterize the maximization of the target window; when the sliding direction indicates a downward slide, determining the interaction event between the user and the target window as a downward slide event; the downward slide event is used to characterize the minimization of the target window; when the sliding direction indicates a left slide, determining the interaction event between the user and the target window as a left slide event; the left slide event is used to characterize the closing of the target window; when the sliding direction indicates a right slide, determining the interaction event between the user and the target window as a right slide event; the right slide event is used to characterize the restoration of the target window.

[0171] The second control unit 800 is used to control the operating system to perform control operations on the window corresponding to the interaction event.

[0172] The third control unit 900 is used to control the operating system to close the mask.

[0173] In summary, compared with the prior art, the user does not need to interact with the menu or button at the top of the window. The user only needs to make a corresponding gesture (i.e., a preset two-finger gesture) to trigger the large screen to control the window. In addition, because the color of the mask is transparent, it will not affect the display of the original window. It can be seen that the solution described in this embodiment can effectively improve the convenience of human-computer interaction in large-screen windows.

[0174] The present application also provides a computer-readable storage medium, which includes a stored program, wherein the program executes the large-screen window control method provided by the present application.

[0175] The present application also provides a large screen window control device, including: a processor, a memory and a bus. The processor and the memory are connected via a bus, the memory is used to store programs, and the processor is used to run programs, wherein when the program is run, the large screen window control method provided by the present application is executed, including the following steps:

[0176] Acquire an image frame captured by a camera device preset on a large screen; the image frame is used to indicate a human hand;

[0177] Performing gesture recognition on the human hand to obtain the plane coordinates of key points of the hand;

[0178] The plane coordinates of the key points of the hand are used as feature variables of the image frame and input into a classification model to obtain a classification result output by the classification model; the classification model is trained based on the feature variables of the sample image frame as input and the gesture types of the sample image frame marked in advance as training targets; the classification result includes the probability of each gesture type;

[0179] Using the gesture type with the highest probability as the gesture type of the image frame;

[0180] When it is detected that the distance between the key point of the hand and the large screen is less than a first preset threshold value and the gesture type of the image frame is a preset two-finger gesture, the operating system is controlled to generate a transparent mask layer; the mask layer is used to capture the user's triggering operation on the large screen;

[0181] Analyze the trigger operation to obtain touch information;

[0182] Determining an interaction event between the user and the window based on the touch information;

[0183] The operating system is controlled to perform a control operation on the window corresponding to the interaction event.

[0184] Optionally, when it is detected that the distance between the key point of the hand and the large screen is less than a first preset threshold and the gesture type of the image frame is a preset two-finger gesture, controlling the operating system to generate a transparent mask includes:

[0185] Calculating the distance between each of the hand key points and a preset rectangle in the image frame to obtain respective first values; the preset rectangle is an imaging area of ​​the large screen in the image frame;

[0186] Taking the first minimum value as the target value;

[0187] When the target value is less than a first preset threshold value and the gesture type of the image frame is a preset two-finger gesture, the operating system is controlled to generate a mask layer that is transparent in color and globally set to the top.

[0188] Optionally, the controlling the operating system to generate a transparent mask that is globally set to the top includes:

[0189] Control the operating system to create a window for representing the mask, and set the window style of the window to be empty;

[0190] Controlling the operating system to adjust the size of the window so that the window covers a preset area;

[0191] Controlling the operating system to set the background color of the window to be transparent;

[0192] Control the operating system to set the Topmost property of the window to true;

[0193] The operating system is controlled to bind a touch callback event on the window; wherein the touch callback event is used to intercept a user's triggering operation on the large screen.

[0194] Optionally, the touch information includes touch positions, movement trajectories, and touch duration of the two fingers;

[0195] The determining, based on the touch information, an interaction event between the user and the window includes:

[0196] Determining whether the touch duration is greater than a second preset threshold;

[0197] When the touch duration is greater than the second preset threshold, calculating a change value of the relative distance between the two fingers based on the touch position and the motion trajectory;

[0198] Determining whether the change value is greater than a third preset threshold;

[0199] When the change value is greater than the third preset threshold, it is determined that the interaction event between the user and the target window is a zoom event; wherein the target window is the original window closest to the touch position among the original windows; and the zoom event is used to characterize the zooming of the target window.

[0200] Optionally, also include:

[0201] When the change value is not greater than the third preset threshold, it is determined that the interaction event between the user and the target window is a drag event; wherein the drag event is used to represent the movement of the target window.

[0202] Optionally, also include:

[0203] When the touch duration is not greater than the second preset threshold, calculating the sliding direction of the two fingers based on the touch position and the motion trajectory;

[0204] In the case where the sliding direction indicates sliding upward, determining that the interaction event between the user and the target window is an upward sliding event; the upward sliding event is used to represent maximizing the target window;

[0205] In the case where the sliding direction indicates sliding downward, determining that the interaction event between the user and the target window is a sliding down event; the sliding down event is used to represent minimizing the target window;

[0206] In the case where the sliding direction indicates sliding to the left, determining that the interaction event between the user and the target window is a left sliding event; the left sliding event is used to represent closing the target window;

[0207] When the sliding direction indicates sliding to the right, it is determined that the interaction event between the user and the target window is a right sliding event; and the right sliding event is used to represent the restoration of the target window.

[0208] Optionally, after controlling the operating system to perform a control operation on the window corresponding to the interaction event, the method further includes:

[0209] Control the operating system to close the mask.

[0210] If the functions described in the method of the embodiment of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium readable by a computing device. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0211] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0212] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A large screen window control method, characterized in that: include: Obtain image frames captured by a camera device preset on a large screen; The image frame is used to indicate a human hand; Performing gesture recognition on the human hand to obtain the plane coordinates of key points of the hand; The plane coordinates of the key points of the hand are used as feature variables of the image frame and input into a classification model to obtain a classification result output by the classification model; the classification model is trained based on the feature variables of the sample image frame as input and the gesture types of the sample image frame marked in advance as training targets; the classification result includes the probability of each gesture type; Using the gesture type with the highest probability as the gesture type of the image frame; When it is detected that the distance between the key point of the hand and the large screen is less than a first preset threshold value and the gesture type of the image frame is a preset two-finger gesture, control the operating system to generate a transparent mask layer; the mask layer is used to capture the user's triggering operation on the large screen; Analyze the trigger operation to obtain touch information; Determining an interaction event between the user and the window based on the touch information; Controlling the operating system to perform a control operation on the window corresponding to the interaction event; Wherein, when it is detected that the distance between the key point of the hand and the large screen is less than a first preset threshold value and the gesture type of the image frame is a preset two-finger gesture, controlling the operating system to generate a transparent mask includes: Calculating the distance between each of the hand key points and a preset rectangle in the image frame to obtain respective first values; the preset rectangle is an imaging area of ​​the large screen in the image frame; Taking the first minimum value as the target value; When the target value is less than a first preset threshold value and the gesture type of the image frame is a preset two-finger gesture, the operating system is controlled to generate a mask layer that is transparent in color and globally set to the top.

2. The method according to claim 1, characterized in that The step of controlling the operating system to generate a transparent mask that is globally placed on top includes: Control the operating system to create a window for representing the mask, and set the window style of the window to be empty; Controlling the operating system to adjust the size of the window so that the window covers a preset area; Controlling the operating system to set the background color of the window to be transparent; Control the operating system to set the Topmost property of the window to true; The operating system is controlled to bind a touch callback event on the window; wherein the touch callback event is used to intercept a user's triggering operation on the large screen.

3. The method according to claim 1, characterized in that The touch information includes the touch position, movement trajectory, and touch duration of the two fingers; The determining, based on the touch information, an interaction event between the user and the window includes: Determining whether the touch duration is greater than a second preset threshold; When the touch duration is greater than the second preset threshold, calculating a change value of the relative distance between the two fingers based on the touch position and the motion trajectory; Determining whether the change value is greater than a third preset threshold; When the change value is greater than the third preset threshold, it is determined that the interaction event between the user and the target window is a zoom event; wherein the target window is the original window closest to the touch position among the original windows; and the zoom event is used to characterize the zooming of the target window.

4. The method according to claim 3, characterized in that Also includes: When the change value is not greater than the third preset threshold, it is determined that the interaction event between the user and the target window is a drag event; wherein the drag event is used to represent the movement of the target window.

5. The method according to claim 3, characterized in that: Also includes: When the touch duration is not greater than the second preset threshold, calculating the sliding direction of the two fingers based on the touch position and the motion trajectory; When the sliding direction indicates sliding upward, determining that the interaction event between the user and the target window is an upward sliding event; The sliding up event is used to represent maximizing the target window; When the sliding direction indicates sliding downward, determining that the interaction event between the user and the target window is a sliding down event; The sliding down event is used to represent minimizing the target window; When the sliding direction indicates sliding to the left, determining that the interaction event between the user and the target window is a left sliding event; The left slide event is used to indicate closing the target window; When the sliding direction indicates sliding to the right, determining that the interaction event between the user and the target window is a right sliding event; The right sliding event is used to indicate restoring the target window.

6. The method according to claim 3, characterized in that After controlling the operating system to perform a control operation on the window corresponding to the interaction event, the method further includes: Control the operating system to close the mask.

7. A large screen window control device, characterized in that: include: An acquisition unit, used for acquiring image frames collected by a camera device preset on the large screen; The image frame is used to indicate a human hand; A recognition unit, used to perform gesture recognition on the human hand to obtain the plane coordinates of the key points of the hand; A classification unit, used for inputting the plane coordinates of the key points of the hand as feature variables of the image frame into a classification model to obtain a classification result output by the classification model; The classification model is trained based on taking the characteristic variables of the sample image frames as input and taking the gesture types of the sample image frames marked in advance as training targets; the classification result includes the probability of each gesture type; A first determining unit, configured to use the gesture type with the highest probability as the gesture type of the image frame; a first control unit, configured to control an operating system to generate a transparent mask layer when detecting that the distance between the key point of the hand and the large screen is less than a first preset threshold value and the gesture type of the image frame is a preset two-finger gesture; the mask layer is used to capture a trigger operation of the user on the large screen; An analysis unit, used for analyzing the trigger operation to obtain touch information; A second determining unit, configured to determine an interaction event between the user and the window based on the touch information; A second control unit, configured to control the operating system to perform a control operation on the window corresponding to the interaction event; Among them, the first control unit is specifically used to: calculate the distance between each of the hand key points in the image frame and the preset rectangle to obtain each first value; the preset rectangle is the imaging area of ​​the large screen in the image frame; take the first value with the smallest value as the target value; when the target value is less than a first preset threshold and the gesture type of the image frame is a preset two-finger gesture, control the operating system to generate a mask with a transparent color and a global top layer.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the large-screen window control method according to any one of claims 1-6.

9. A large screen window control device, characterized in that: include: processor, memory, and bus; The processor is connected to the memory via the bus; The memory is used to store programs, and the processor is used to run programs, wherein the program executes the large screen window control method described in any one of claims 1-6 when running.