A gesture control method, system, device and storage medium
Through gesture detection technology, in the audio sharing demonstration scene, gesture movements are used to control the screen display device, which solves the problem of traditional input devices being unable to free hands and low control efficiency, and achieving more efficient large-screen interactive intelligence.
Patent Information
- Application Number
- CN202111633178.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-29
AI Technical Summary
In audio sharing demonstration scenarios, traditional input devices such as mice, keyboards or touch tablets cannot allow operators to fully focus on the large-screen content, resulting in low control efficiency and the inability to free their hands, which limits the intelligence of large-screen interaction. develop.
Gesture detection technology is used to identify the operator's gestures through image acquisition devices and pre-trained gesture detection models, and map them into control instructions to directly control the screen display device, achieving data display control without holding an input device.
It improves the operator's control efficiency of the screen display device, enhances the intelligence of large-screen interaction, allows the operator to control data display with gestures, and improves the convenience and efficiency of the demonstration process.
Smart Images

Figure CN114333056B
Abstract
Description
Technical Field
[0001] The present application relates to the field of gesture control technology, and in particular to a gesture control method, system, device and storage medium. Background Art
[0002] With the rapid development of audio and video sharing technology, large-screen display devices that can display and share data to multiple people at the same time are widely used in audio sharing demonstration scenarios in different industries due to their intuitive and convenient advantages.
[0003] In the current audio sharing demonstration scenario, usually, the data displayed on the shared large screen is controlled by sitting in a seated position using traditional peripheral input devices such as mouse, keyboard, etc. / handheld input devices such as touch tablets. Here, for the above-mentioned traditional peripheral input devices, since the mouse, keyboard, etc. need to be fixed in position and then connected to the supporting proprietary equipment, the operator who performs the data demonstration can neither move around at will nor focus all his attention on the data content displayed on the large screen; for handheld input devices such as touch tablets, although such handheld input devices can facilitate the movement of operators to a certain extent, the operator still needs to pay attention and switch back and forth between the handheld input device and the large screen during the demonstration.
[0004] Based on this, in the current audio sharing demonstration scenario, neither traditional peripheral input devices nor handheld input devices can completely free the operator's hands during the demonstration, making it impossible for the operator to focus entirely on the display content on the large screen. The operator needs to spend time operating and controlling the input device, as well as paying attention to whether the display content on the large screen needs to be adjusted, resulting in low control efficiency of the large-screen display device. The intelligence of large-screen interaction still has room for optimization. Summary of the invention
[0005] In view of this, the purpose of this application is to provide a gesture control method, system, device and storage medium, so that the data display on the screen display device can be controlled completely based on the operator's gestures during the data demonstration process without the operator holding any input control device, thereby effectively improving the operator's control efficiency over the screen display device and helping to enhance the intelligent development of large-screen interaction.
[0006] In a first aspect, an embodiment of the present application provides a gesture control method, the method is applied to an image processor, the image processor is located in a gesture control system, wherein the gesture control system at least includes: an image acquisition device, the image processor, and a screen display device; the method includes:
[0007] In response to receiving the image data sent by the image acquisition device, the image to be identified in the image data is input frame by frame into a pre-trained gesture detection model to obtain a gesture detection result for each frame of the image to be identified; wherein the gesture detection model is used to predict the image area boundary box where the target object in each frame of the image to be identified is located and the category to which the target object in each of the image area boundary boxes belongs; the target object includes: a human object and / or a gesture object; the gesture detection result is used to characterize the prediction result of the gesture detection model for each frame of the image to be identified;
[0008] When it is detected that a target human object appears in the gesture detection result, a target gesture area boundary box where the target gesture object is located is determined from the target gesture detection result according to the human feature data of the target human object; wherein the target human object is used to characterize a human object having control authority over the screen display device; the human feature data at least includes a standard arm length distance between a hand center point and a body center point of the target human object; the target gesture detection result is used to characterize a gesture detection result in which the target human object is detected; the target gesture object is used to characterize a gesture object in the target human object used to control the screen display device;
[0009] According to the target gesture action displayed by the target gesture object in the target gesture area boundary box, a target control instruction having a mapping relationship with the target gesture action is determined from a mapping relationship library between gesture actions and control instructions; wherein the target gesture action is determined according to the category to which the target gesture object belongs detected in the target gesture detection result;
[0010] The target control instruction is sent to the screen display device to control the screen display device to display the execution process and execution result of the target control instruction.
[0011] In an optional implementation, when the working state of the gesture detection model is an online working state, inputting the image to be recognized in the image data into a pre-trained gesture detection model frame by frame to obtain a gesture detection result of each frame of the image to be recognized includes:
[0012] For each frame of the image to be recognized, the frame of the image to be recognized is input into the gesture detection model, and the image region where the target object is located in the frame of the image to be recognized is classified and predicted by the gesture detection model to obtain a first classification prediction result; wherein the first classification prediction result at least includes: a boundary box of the image region where the human body object and / or the gesture object are located in the frame of the image to be recognized;
[0013] When it is detected that the first classification prediction result includes a first image area boundary box, the first gesture action displayed by the gesture object in the first image area boundary box is classified and predicted by the gesture detection model to obtain a second classification prediction result; wherein the first image area boundary box is used to characterize the image area boundary box where the gesture object is located; the second classification prediction result at least includes: the gesture category to which the first gesture action belongs in the gesture category list; the number of gesture categories in the gesture category list is determined according to the types of gesture actions included in the sample images used by the gesture detection model in the training process;
[0014] The first classification prediction result and the second classification prediction result are used as the gesture detection result of the frame of image to be recognized.
[0015] In an optional implementation, when the working state of the gesture detection model is an offline working state, inputting the image to be recognized in the image data into a pre-trained gesture detection model frame by frame to obtain a gesture detection result of each frame of the image to be recognized includes:
[0016] For each frame of the image to be recognized, the frame of the image to be recognized is input into the gesture detection model, and the image similarity between the frame of the image to be recognized and each of the offline template images pre-stored in the gesture detection model is determined; wherein the offline template image is used to represent the sample image used by the gesture detection model in the training process;
[0017] For each of the offline template images, the image similarity is used as a weight parameter to perform weighted sum processing on the standard detection result of the offline template image to obtain a confidence result for characterizing the degree of matching between the gesture detection result of the frame to be recognized and the standard detection result; wherein the standard detection result is used to characterize the model output result of the trained gesture detection model for the offline template image;
[0018] From the standard detection results of the multiple offline template images, the standard detection result corresponding to the target confidence result is extracted as the gesture detection result of the frame of the image to be recognized; wherein the target confidence result is the maximum value among the multiple confidence results.
[0019] In an optional implementation, after obtaining the gesture detection result of each frame of the image to be recognized, detecting whether the target human object appears in the gesture detection result is performed by the following method:
[0020] For each of the gesture detection results, detecting whether a second image area boundary box appears in the gesture detection result to obtain a first area detection result; wherein the second image area boundary box is used to represent an image area boundary box where the human body object is located;
[0021] When it is detected that the first region detection result includes the second image region boundary frame, acquiring image region features in the second image region boundary frame;
[0022] When it is detected that the degree of similarity between the image region feature and the image feature data of the target human object is greater than or equal to a first similarity threshold, it is determined that the target human object appears in the gesture detection result.
[0023] In an optional implementation, determining a target gesture region bounding box where the target gesture object is located from a target gesture detection result according to the human feature data of the target human object includes:
[0024] Determine, from the target gesture detection result, a pixel distance between each pixel point and a center point of a third image region bounding box; wherein the third image region bounding box is used to represent an image region bounding box where the target human object is located;
[0025] According to the distance difference between each pixel distance and the standard arm length distance, determine the target image area where the target pixel point is located from the target gesture detection result; wherein the target pixel point is used to represent the pixel point whose distance difference is less than or equal to the distance deviation threshold;
[0026] In the target image area, a secondary prediction is performed on the image area boundary box where the gesture object is located to determine a plurality of gesture area boundary boxes located in the target image area;
[0027] Performing multiple tracking predictions on the hand region position of the target human object within the third image region boundary frame to obtain multiple tracking prediction results of the hand region position;
[0028] The average similarity between each of the gesture region bounding boxes and the multiple tracking prediction results is calculated, so as to determine the gesture region bounding box with the highest average similarity as the target gesture region bounding box.
[0029] In an optional implementation, determining, from a mapping relationship library of gesture actions and control instructions, a target control instruction having a mapping relationship with the target gesture action includes:
[0030] When it is detected that the target gesture action belongs to a takeover gesture action, acquiring a gesture control on instruction and a gesture control off instruction having a mapping relationship with the takeover gesture action from the mapping relationship library;
[0031] In response to obtaining the gesture control on instruction and the gesture control off instruction, sending a working status obtaining instruction to the screen display device;
[0032] In response to receiving a feedback result of the screen display device for the working state acquisition instruction, when it is detected in the feedback result that the working state of the screen display device is an untaken-over state, determining the gesture control start instruction as the target control instruction; wherein the untaken-over state is used to characterize the working state of the screen display device under the control of a peripheral input device; the peripheral input device is located outside the gesture control system;
[0033] When it is detected in the feedback result that the working state of the screen display device is a taken-over state, the gesture control closing instruction is determined as the target control instruction; wherein, the taken-over state is used to characterize the working state of the screen display device under the control of the gesture control system.
[0034] In an optional implementation, the determining, from a mapping relationship library of gesture actions and control instructions, a target control instruction having a mapping relationship with the target gesture action further includes:
[0035] When it is detected that the target gesture action belongs to a menu bar gesture action, according to the gesture action detection period corresponding to the menu bar gesture action, within the gesture action detection period, the moving direction and moving distance of the menu bar gesture action in adjacent image frames are recorded to obtain a recording result; wherein the adjacent image frames are determined according to the image data sent by the image acquisition device within the gesture action detection period;
[0036] When it is detected that the moving distance in the recording result is greater than or equal to the effective moving distance threshold, a menu list control instruction having a mapping relationship with the menu bar gesture action in the target moving direction is obtained from the mapping relationship library as the target control instruction; wherein the target moving direction is the moving direction in the recording result; the menu list control instructions mapped to the menu bar gesture action in different target moving directions are different; and different menu list control instructions are used to control different types of menu lists on the screen display device.
[0037] In an optional implementation, the determining, from a mapping relationship library of gesture actions and control instructions, a target control instruction having a mapping relationship with the target gesture action further includes:
[0038] When it is detected that the target gesture action belongs to a drag gesture action, the center point coordinates of the target gesture area boundary box are obtained from the target gesture detection result as the drag tracking point of the drag gesture action; wherein the drag tracking point is used to characterize the spatial point coordinates of tracking the target gesture object moving in the form of the drag gesture action under the target drag cycle; the target drag cycle is determined according to the start occurrence time and the end occurrence time of the drag gesture action;
[0039] During the target drag cycle, a first coordinate value of the drag tracking point in a first spatial coordinate system is obtained, and a second coordinate value of the drag tracking point in the second spatial coordinate system is determined according to a point conversion relationship between the first spatial coordinate system and the second spatial coordinate system; wherein the first spatial coordinate system is used to represent a spatial coordinate system corresponding to the image acquisition device; and the second spatial coordinate system is used to represent a spatial coordinate system corresponding to the screen display device;
[0040] At the current moment, obtaining the first coordinate movement difference and the first coordinate movement direction of the second coordinate value at the current moment and the previous moment, using the obtained first coordinate movement difference as the target dragging distance, and using the obtained first coordinate movement direction as the target dragging direction;
[0041] From the mapping relationship library, a drag control instruction that has a mapping relationship with the drag gesture action under the target drag distance and the target drag direction is obtained as the target control instruction; wherein the drag control instruction is used to control the screen display device to perform a drag operation on the target display object previously selected by the target human body object according to the target drag distance and the target drag direction.
[0042] In an optional implementation, the determining, from a mapping relationship library of gesture actions and control instructions, a target control instruction having a mapping relationship with the target gesture action further includes:
[0043] When it is detected that the target gesture action belongs to a zoom gesture action, the edge coordinates of the target gesture area boundary box are obtained from the target gesture detection result as the zoom tracking point of the zoom gesture action; wherein the zoom tracking point is used to characterize the spatial point coordinates of the target gesture object moving in the form of the zoom gesture action under the target zoom period; the target zoom period is determined according to the start occurrence time and the end occurrence time of the zoom gesture action;
[0044] In the target zooming cycle, obtaining a third coordinate value of the zooming tracking point in the space coordinate system corresponding to the image acquisition device;
[0045] At the current moment, obtaining the second coordinate movement difference between the current moment and the previous moment and the second coordinate movement direction of the third coordinate value;
[0046] According to the second coordinate moving direction, acquiring, from the mapping relationship library, a zoom-in control instruction / zoom-in control instruction having a mapping relationship with the zoom gesture action in the second coordinate moving direction as a first control instruction;
[0047] Determining a target zoom ratio indicated by the zoom gesture action at the second coordinate movement difference according to a fitting conversion relationship between the second coordinate movement difference and the zoom ratio of the screen display device;
[0048] The combined instruction of the first control instruction and the target zoom ratio is used as the target control instruction.
[0049] In a second aspect, an embodiment of the present application provides a gesture control system, the gesture control system comprising at least: an image acquisition device, the image processor and a screen display device; wherein the image processor is used to:
[0050] In response to receiving the image data sent by the image acquisition device, the image to be identified in the image data is input frame by frame into a pre-trained gesture detection model to obtain a gesture detection result for each frame of the image to be identified; wherein the gesture detection model is used to predict the image area boundary box where the target object in each frame of the image to be identified is located and the category to which the target object in each of the image area boundary boxes belongs; the target object includes: a human object and / or a gesture object; the gesture detection result is used to characterize the prediction result of the gesture detection model for each frame of the image to be identified;
[0051] When it is detected that a target human object appears in the gesture detection result, a target gesture area boundary box where the target gesture object is located is determined from the target gesture detection result according to the human feature data of the target human object; wherein the target human object is used to characterize a human object having control authority over the screen display device; the human feature data at least includes a standard arm length distance between a hand center point and a body center point of the target human object; the target gesture detection result is used to characterize a gesture detection result in which the target human object is detected; the target gesture object is used to characterize a gesture object in the target human object used to control the screen display device;
[0052] According to the target gesture action displayed by the target gesture object in the target gesture area boundary box, a target control instruction having a mapping relationship with the target gesture action is determined from a mapping relationship library between gesture actions and control instructions; wherein the target gesture action is determined according to the category to which the target gesture object belongs detected in the target gesture detection result;
[0053] The target control instruction is sent to the screen display device to control the screen display device to display the execution process and execution result of the target control instruction.
[0054] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned gesture control method when executing the computer program.
[0055] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned gesture control method are executed.
[0056] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0057] The embodiments of the present application provide a gesture control method, system, device and storage medium. In response to receiving image data sent by an image acquisition device, the image to be identified in the image data is input frame by frame into a pre-trained gesture detection model to obtain a gesture detection result of each frame of the image to be identified; when a target human object is detected in the gesture detection result, a target gesture area boundary box where the target gesture object is located is determined from the target gesture detection result according to the human feature data of the target human object; according to the target gesture action displayed by the target gesture object in the target gesture area boundary box, a target control instruction having a mapping relationship with the target gesture action is determined from a mapping relationship library between gesture actions and control instructions; and the target control instruction is sent to a screen display device to control the screen display device to display the execution process and execution result of the target control instruction.
[0058] In this way, the present application can control the data display on the screen display device completely based on the operator's gestures during the data demonstration process without the operator having to hold any input control device, thereby effectively improving the operator's control efficiency over the screen display device and is conducive to enhancing the intelligent development of large-screen interaction.
[0059] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0061] Figure 1 A schematic diagram showing a flow chart of a gesture control method provided in an embodiment of the present application is shown;
[0062] Figure 2 A schematic diagram of the structure of a gesture control system provided by an embodiment of the present application is shown;
[0063] Figure 3a A schematic diagram of the working structure of a gesture detection model provided in an embodiment of the present application is shown;
[0064] Figure 3b A schematic diagram of a specific working structure of a module A provided in an embodiment of the present application is shown;
[0065] Figure 3c A schematic diagram of a specific working structure of a module B provided in an embodiment of the present application is shown;
[0066] Figure 3d A schematic diagram of a specific working structure of a module C provided in an embodiment of the present application is shown;
[0067] Figure 3e A schematic diagram of a specific working structure of a module D provided in an embodiment of the present application is shown;
[0068] Figure 3f A schematic diagram of a specific working structure of a module E provided in an embodiment of the present application is shown;
[0069] Figure 3g A schematic diagram of a specific working structure of a Res residual component involved in a module B provided in an embodiment of the present application is shown;
[0070] Figure 4 A schematic flow chart of a first method for determining a gesture detection result of each frame of an image to be recognized provided by an embodiment of the present application is shown;
[0071] Figure 5 A schematic flow chart of a second method for determining a gesture detection result of each frame of an image to be recognized provided by an embodiment of the present application is shown;
[0072] Figure 6A schematic diagram of a process for detecting a target human object provided by an embodiment of the present application is shown;
[0073] Figure 7 A schematic diagram of a process for determining a target gesture area boundary box provided in an embodiment of the present application is shown;
[0074] Figure 8 A flow chart showing a method for determining a target control instruction when a takeover gesture action is detected provided by an embodiment of the present application;
[0075] Fig. 9 A flow chart showing a method for determining a target control instruction when a menu bar gesture action is detected according to an embodiment of the present application is shown;
[0076] Fig.10 A flow chart showing a method for determining a target control instruction when a drag gesture action is detected according to an embodiment of the present application is shown;
[0077] Fig.11 A flow chart showing a method for determining a target control instruction when a zoom gesture action is detected provided by an embodiment of the present application;
[0078] Fig.12 A schematic diagram of the structure of a computer device 1200 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0079] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0080] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0081] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0082] In current audio sharing demonstration scenarios, usually, the operator uses traditional peripheral input devices such as mouse, keyboard, etc. / handheld input devices such as touch tablets to control the data content displayed on the shared large screen. However, neither traditional peripheral input devices nor handheld input devices can completely free the operator's hands during the demonstration, so that the operator's attention cannot be fully focused on the display content on the large screen. The operator needs to spend time operating the control input device and also needs to spend time paying attention to whether the display content on the large screen needs to be adjusted, resulting in low control efficiency of the large-screen display device. The intelligentization of large-screen interaction still has room for optimization.
[0083] Based on this, the embodiments of the present application provide a gesture control method, system, device and storage medium. In response to receiving image data sent by an image acquisition device, the image to be identified in the image data is input frame by frame into a pre-trained gesture detection model to obtain a gesture detection result for each frame of the image to be identified; when a target human object is detected in the gesture detection result, a target gesture area boundary box where the target gesture object is located is determined from the target gesture detection result according to the human feature data of the target human object; according to the target gesture action displayed by the target gesture object in the target gesture area boundary box, a target control instruction having a mapping relationship with the target gesture action is determined from a mapping relationship library between gesture actions and control instructions; the target control instruction is sent to a screen display device to control the screen display device to display the execution process and execution result of the target control instruction.
[0084] In this way, the present application can control the data display on the screen display device completely based on the operator's gestures during the data demonstration process without the operator having to hold any input control device, thereby effectively improving the operator's control efficiency over the screen display device and is conducive to enhancing the intelligent development of large-screen interaction.
[0085] The following is a detailed introduction to a gesture control method, system, device and storage medium provided in an embodiment of the present application.
[0086] Reference Figure 1 As shown, Figure 1 A flow chart of a gesture control method provided in an embodiment of the present application is shown, wherein the method includes steps S101-S104; specifically:
[0087] S101, in response to receiving image data sent by the image acquisition device, inputting the image to be recognized in the image data into a pre-trained gesture detection model frame by frame to obtain a gesture detection result of each frame of the image to be recognized.
[0088] S102, when it is detected that a target human object appears in the gesture detection result, a target gesture region boundary box where the target gesture object is located is determined from the target gesture detection result according to human feature data of the target human object.
[0089] S103: According to the target gesture action displayed by the target gesture object in the target gesture area boundary frame, determine a target control instruction having a mapping relationship with the target gesture action from a mapping relationship library between gesture actions and control instructions.
[0090] S104: Send the target control instruction to the screen display device to control the screen display device to display the execution process and execution result of the target control instruction.
[0091] The above-mentioned gesture control method provided by the embodiment of the present application, in response to receiving image data sent by an image acquisition device, inputs the image to be identified in the image data into a pre-trained gesture detection model frame by frame to obtain a gesture detection result of each frame of the image to be identified; when a target human object is detected in the gesture detection result, a target gesture area boundary box where the target gesture object is located is determined from the target gesture detection result according to the human feature data of the target human object; according to the target gesture action displayed by the target gesture object in the target gesture area boundary box, a target control instruction having a mapping relationship with the target gesture action is determined from a mapping relationship library between gesture actions and control instructions; and the target control instruction is sent to a screen display device to control the screen display device to display the execution process and execution result of the target control instruction.
[0092] In this way, the present application can control the data display on the screen display device completely based on the operator's gestures during the data demonstration process without the operator having to hold any input control device, thereby effectively improving the operator's control efficiency over the screen display device and is conducive to enhancing the intelligent development of large-screen interaction.
[0093] In an optional implementation manner, the above gesture control method can be applied to, but is not limited to, Figure 2 In the gesture control system shown, the gesture control system includes but is not limited to: an image acquisition device 200 , an image processor 201 and a screen display device 202 .
[0094] Specifically, the image acquisition device 200 is mainly composed of a camera for acquiring image data, wherein the camera in the image acquisition device 200 can be a CCD (Charge-coupled Device) or CMOS (Complementary Metal Oxide Semiconductor) chip device, which is mainly used to convert light into electronic signals.
[0095] Here, the camera in the image acquisition device 200 can be combined with a fixed focus or zoom lens according to different usage scenarios. It should be noted that if the camera in the image acquisition device 200 uses a zoom lens, it can realize the acquisition of target gesture images within different distances without the restriction of distance factors.
[0096] exist Figure 2 In the gesture control system shown, the image acquisition device 200 is in a real-time image acquisition state after startup (i.e., converting the light in the field of view into an electronic signal in real time), and based on the size of the photosensitive chip inside the camera, obtains image data of a set resolution (for example, an image of 1920*1080 size can be output through camera parameter settings), and transmits the image data to the image processor 201 for analysis through USB3.0 (a universal serial bus communication protocol). Usually, the image acquisition device 200 uses a color camera for image acquisition, and a grayscale camera (single-channel gray image) can also be used in special scenarios.
[0097] Specifically, the image processor 201 may be an independent PC (Personal Computer) host or an embedded board, and various independent operating systems may be run on the image processor 201, such as the common Windows operating system, Linux operating system, Android operating system, etc. The specific device type of the image processor 201 may be adjusted according to different application environments, and the embodiments of the present application do not impose any limitation on this.
[0098] Here, the image processor 201 is the main operating unit of the entire gesture control system, wherein the connection method between the image processor 201 and the image acquisition device 200 includes but is not limited to: USB3.0, HDMI (High Definition Multimedia Interface), MIPI (Mobile Industry Processor Interface) and other video transmission interfaces.
[0099] exist Figure 2 In the gesture control system shown, the image processor 201 can control the image acquisition device 200 to acquire image data based on the standard UVC (USB Video Class, a protocol standard defined for USB video capture devices) control protocol, and transmit the acquired image data to the image processor 201. The image processor 201 can parse the image data acquired by the image acquisition device 200.
[0100] Specifically, the screen display device 202 includes but is not limited to: a large display screen (such as an integrated screen and a spliced screen) and a large screen controller (a control electronic device used to control a large display screen); in the screen display device 202, the large screen controller is mainly used to display and control the content and data interaction of each sub-module, and the sub-module includes a display window, a plan, a signal source, etc.; this is not specifically limited in the embodiments of the present application.
[0101] exist Figure 2 In the gesture control system shown, data can be exchanged between the screen display device 202 and the image processor 201 via Ethernet. For example, the image processor 201 sends the analysis result of the image data (i.e., the target gesture action / target control instruction in the above step S103) to the screen display device 202, and controls the screen display device 202 to execute the control instruction matching the analysis result (i.e., the target control instruction in the above step S103).
[0102] In the embodiment of the present application, for the data interaction between the screen display device 202 and the image processor 201, it should be noted that when the data sent by the image processor 201 to the screen display device 202 is a target gesture action rather than a determined target control instruction, in the specific implementation plan of the embodiment of the present application, it is necessary to pre-define the communication instructions corresponding to a single action type according to the target gesture actions of different action types, that is, it is necessary to pre-design a set of action instruction communication protocols for the data interaction between the screen display device 202 and the image processor 201.
[0103] Here, the above Figure 1The gesture control method shown is specifically applied to the image processor 201 of the gesture control system. The following takes the application in the above-mentioned image processor 201 as an example to exemplarily illustrate each step in the above-mentioned gesture control method provided in the embodiment of the present application:
[0104] S101, in response to receiving image data sent by the image acquisition device, inputting the image to be recognized in the image data into a pre-trained gesture detection model frame by frame to obtain a gesture detection result of each frame of the image to be recognized.
[0105] Here, the gesture detection model is used to predict the image area boundary box where the target object is located in each frame of the image to be identified and the category to which the target object in each of the image area boundary boxes belongs; wherein the target object includes: a human object and / or a gesture object.
[0106] Here, the gesture detection result is used to characterize the prediction result of the gesture detection model for each frame of the image to be recognized, that is, it is equivalent to the model output result of the gesture detection model for each frame of the input image to be recognized.
[0107] In the embodiments of the present application, Figure 3a As shown, Figure 3a A schematic diagram of the working structure of a gesture detection model provided in an embodiment of the present application is shown, wherein module A in the gesture detection model is used to characterize the basic convolution component, and the specific working structure of module A is as follows: Figure 3b As shown; Module B in the gesture detection model is used to characterize the neural network module based on the residual component. The specific working structure of module B is as follows Figure 3c As shown in Figure 2, module C in the gesture detection model is used to represent the fusion module of the basic convolution operation. The specific working structure of module C is as follows: Figure 3d As shown in Figure 2, module D in the gesture detection model is used to characterize the multi-scale fusion neural network module. The specific working structure of module D is as follows: Figure 3e As shown; the module E in the gesture detection model is used to characterize the slice neural network module. The specific working structure of module E is as follows Figure 3f As shown; the specific working structure of the Res residual component involved in the specific workflow of module B is as follows Figure 3g shown.
[0108] Here, for Figure 3a-3g The following are the explanations of the multiple English abbreviations that appear in the text:
[0109] Figure 3a-3g The Images that appear in the text are an image dataset in this field;
[0110] Figure 3a-3gConv (Convolution) and Conv1, Conv2, and Conv3 that appear in the text are all English abbreviations commonly used in the field for "convolution operation";
[0111] Figure 3a-3g BatchNormalization is an abbreviation commonly used in the field for "batch normalization operation". Batch normalization operation is equivalent to the process of performing batch normalization on all sample images according to a preset batch value (i.e., the number of sample images processed each time).
[0112] Figure 3a-3g LeakyRelu, which appears in , is an activation function commonly used in deep learning. Figure 3a-3g The LeakyRelu activation operation that appears in is equivalent to the process of using the LeakyRelu activation function to perform activation operations on the upper layer input data;
[0113] Figure 3a-3g The Res in the text is the abbreviation commonly used in the field for ResNet (Residual Network).
[0114] Figure 3a-3g Concat is an abbreviation commonly used in the art for "concatenation operation". The concatenation operation is equivalent to the operation process of concatenating and merging the upper layer input data.
[0115] Figure 3a-3g The Slice that appears in the text is an English abbreviation commonly used in the art for “slicing operation”; wherein the slicing operation is equivalent to the operation process of extracting part of the target value from the upper-level input data.
[0116] It should be noted that the specific implementation methods of the above operations are all underlying technical processing methods well known to those skilled in the art, and are not described in detail in the embodiments of this application.
[0117] based on Figure 3a In an optional implementation of the gesture detection model shown, before step S101 is executed, the original neural network model can be trained as follows with the functional role of the gesture detection model as the model training purpose to obtain the trained gesture detection model, specifically:
[0118] Step 1: Collect sample images needed for training, and use the collected sample images as training sample data for the gesture detection model.
[0119] Here, as an optional embodiment, for each pre-set gesture action, multiple sample images of different human subjects making the gesture action under different shooting backgrounds, different shooting devices, and different shooting angles can be collected to obtain sufficient quantity and rich types of training sample data.
[0120] Step 2: When the number / richness of the sample images collected in step 1 is insufficient (eg, less than a set threshold), data enhancement processing may be performed on the collected sample images, and the results of the data enhancement processing may be used as training sample data.
[0121] It should be noted that the specific implementation methods of data enhancement processing include but are not limited to: Mosaic (a data enhancement algorithm) enhancement processing, horizontal flip processing, vertical flip processing, random angle rotation processing, and modifying the image parameters of the sample image (such as modifying contrast parameters, image brightness parameters, etc.). The specific implementation methods of data enhancement processing are not limited in any way in the embodiments of this application.
[0122] Step 3: For each sample image in the training sample data, the gesture area and the human body area in the sample image are marked with rectangular frames respectively, and the specific gesture type to which the gesture action in the gesture area belongs is marked, and the marked sample image is used as the standard sample data.
[0123] It should be noted that the specific gesture type marked above usually refers to the gesture control instruction represented by the gesture action, rather than the specific action name of the gesture action. For example, if the image content of the sample image a is: the human subject P1 makes a gesture action of "extending the palm forward"; then when the gesture control instruction represented by the gesture action of "extending the palm forward" is "taking over the gesture instruction", the standard sample data A of the sample image a is: a bounding box k1 for encircling the image area belonging to the human subject P1, a bounding box k2 for encircling the gesture area belonging to the human subject P1, a type mark P1 corresponding to the bounding box k1 (indicating that the human subject in the bounding box k1 is P1) and a type mark G1 corresponding to the bounding box k2 (indicating that the gesture control instruction represented by the gesture action in the bounding box k2 is "taking over the gesture instruction"), wherein the "taking over the gesture instruction" indicates that the operator is ready to take over / disconnect the control authority for the screen display device 202.
[0124] Step 4: Input the sample images in the training sample data into the gesture detection model, and use the difference between the prediction results of the gesture detection model for the sample images (i.e., the model output results) and the above-mentioned standard sample data to calculate the model loss of the gesture detection model during the training process; use the calculated model loss to iteratively train the gesture detection model until the model converges.
[0125] It should be noted that the embodiment of the present application does not impose any limitation on the specific loss function and the specific number of iterations used in step 4.
[0126] S102, when it is detected that a target human object appears in the gesture detection result, a target gesture region boundary box where the target gesture object is located is determined from the target gesture detection result according to human feature data of the target human object.
[0127] Here, the target human object is used to represent the human object that has the control authority of the screen display device, that is, the specific operator who performs the demonstration in the audio sharing demonstration scenario.
[0128] Here, the human body feature data is used to characterize the external physical feature data (such as body proportions, facial features, etc.) that can be used to distinguish the target human body object from other human body objects. Based on the detection purpose of gesture area detection, in an embodiment of the present application, the above-mentioned human body feature data at least includes the standard arm length distance between the hand center point and the body center point of the target human body object; so as to improve the recognition accuracy of the gesture area and the human body area in the image to be identified.
[0129] Here, the target gesture object is used to represent the gesture object in the target human object for controlling the screen display device; for example, if the target human object is the operator P1, the target gesture object is used to represent both hands of the operator P1.
[0130] As an exemplary explanation, taking the target human object as operator P1, when the gesture detection result of sample image a detects that an image area bounding box K1-P1 belonging to operator P1 appears (where K1 represents the image area bounding box belonging to the human object, and P1 represents that the human object in the bounding box k1 is operator P1), the hands of operator P1 are determined to be the target gesture objects; if multiple image area bounding boxes K2 detected as belonging to gesture objects appear in sample image a, then based on the standard arm length distance between the center point of the hand and the center point of the body of operator P1, the target bounding box whose distance from the center of the image area bounding box K1-P1 is most consistent with the above-mentioned standard arm length distance can be extracted from the multiple image area bounding boxes K2, and the target bounding box is used as the target gesture area bounding box where the gesture of operator P1 is located.
[0131] S103: According to the target gesture action displayed by the target gesture object in the target gesture area boundary frame, determine a target control instruction having a mapping relationship with the target gesture action from a mapping relationship library between gesture actions and control instructions.
[0132] Here, the target gesture action is determined according to the category to which the target gesture object belongs detected in the target gesture detection result.
[0133] It should be noted that, based on the content of step 3 in the gesture detection model training process of step S101 above, it can be seen that the category to which the target gesture action belongs refers to the gesture control instruction represented by the target gesture action, rather than the specific action name of the target gesture action.
[0134] For example, taking the target gesture action whose specific action name is "extending your palm forward" as an example, when the gesture control instruction represented by the gesture action of "extending your palm forward" is "taking over gesture instruction", the detected target gesture action can be determined as "taking over gesture" and it will not be determined as "extending your palm forward".
[0135] Specifically, in the embodiment of the present application, as an optional embodiment, the mapping relationship library between gesture actions and control instructions can be shown in the following Table 1:
[0136] Table 1:
[0137]
[0138]
[0139] It should be noted that the above Table 1 is only used to exemplify the mapping relationship between gesture actions and control instructions in the embodiment of the present application. The embodiment of the present application does not impose any limitation on the specific mapping relationship between gesture actions and control instructions.
[0140] S104: Send the target control instruction to the screen display device to control the screen display device to display the execution process and execution result of the target control instruction.
[0141] For example, taking the mapping relationship library shown in Table 1 as an example, if the target control instruction is a page-up instruction, then Figure 2 In the gesture control system shown, the image processor 201 sends the determined page-up instruction as the target control instruction to the screen display device 202, and controls the screen display device 202 to execute the page-up instruction for the currently displayed presentation. If the current presentation display page is page 12, after receiving the page-up instruction, the screen display device 202 will turn the current presentation up and display the 11th page content of the current presentation.
[0142] The specific implementation process of each of the above steps in the embodiment of the present application is described in detail below:
[0143] With respect to the specific implementation process of the above-mentioned step S101, in the embodiment of the present application, the working state of the trained gesture detection model in step S101 can be an online working state (equivalent to predicting the gesture detection result of the input image data and outputting the corresponding prediction result), or an offline working state (equivalent to using a pre-stored offline template image, by comparing the similarity between the input image data and the offline template image, and assigning the gesture detection result of the offline template image with the highest similarity to the input image data). The specific implementation process of step S101 in two different working states is exemplarily described below:
[0144] When the gesture detection model is in an online working state, in a feasible implementation scheme, Figure 4 FIG. 1 is a flow chart showing a first method for determining a gesture detection result of each frame of an image to be recognized provided by an embodiment of the present application. Figure 4 As shown, when executing step S101, the method further includes S401-S403; specifically:
[0145] S401, for each frame of the image to be recognized, input the frame of the image to be recognized into the gesture detection model, and through the gesture detection model, classify and predict the image area where the target object in the frame of the image to be recognized is located to obtain a first classification prediction result.
[0146] Here, the first classification prediction result includes at least: an image region boundary box where the human body object and / or the gesture object in the frame of the image to be identified are located.
[0147] As an exemplary explanation, the image b to be identified is input into a trained gesture detection model, and the gesture detection model is used to perform classification prediction on the image area belonging to a human object and / or a gesture object in the image b to be identified, and a first classification prediction result is obtained: the image b to be identified includes an image area boundary box K1-P1 where a human object P1 is located, and an image area boundary box K2 where a gesture object is located.
[0148] S402, when it is detected that the first classification prediction result includes a first image area boundary box, classify and predict the first gesture action displayed by the gesture object in the first image area boundary box through the gesture detection model to obtain a second classification prediction result.
[0149] Here, the first image region boundary box is used to represent the image region boundary box where the gesture object is located.
[0150] Here, the second classification prediction result includes at least: the gesture category to which the first gesture action belongs in the gesture category list.
[0151] Here, the number of gesture categories in the gesture category list is determined based on the types of gesture actions included in the sample images used by the gesture detection model during the training process. As an optional embodiment, the gesture categories in the gesture category list can refer to the contents shown in Table 1.
[0152] As an exemplary explanation, still taking the image b to be identified in the above example, since an image area boundary box K2 (i.e., the first image area boundary box) containing a gesture object appears in the first classification prediction result of the image b to be identified, the gesture action displayed in the image area boundary box K2 that appears in the first classification prediction result is classified and predicted through the gesture detection model. If it is predicted that the gesture action belongs to the "takeover gesture action" shown in Table 1, the second classification prediction result is obtained: the category to which the gesture action of the gesture object in the image area boundary box K2 belongs is "takeover gesture action G1".
[0153] S403: Use the first classification prediction result and the second classification prediction result as the gesture detection result of the frame of the image to be recognized.
[0154] For example, taking the example in steps S401-S402, the gesture detection result of the image b to be identified is: the image b to be identified includes an image area boundary box K1-P1 where a human object P1 is located, and an image area boundary box K2-G1 where a takeover gesture action is located.
[0155] When the gesture detection model is in an offline working state, in a feasible implementation scheme, Figure 5 FIG. 1 is a flow chart showing a second method for determining a gesture detection result of each frame of an image to be recognized provided by an embodiment of the present application. Figure 5 As shown, when executing step S101, the method further includes S501-S503; specifically:
[0156] S501, for each frame of image to be recognized, input the frame of image to be recognized into the gesture detection model, and determine the image similarity between the frame of image to be recognized and each of the offline template images pre-stored in the gesture detection model.
[0157] Here, the offline template image is used to represent the sample images used by the gesture detection model during the training process.
[0158] Specifically, the specific calculation methods of image similarity include but are not limited to: histogram matching method, matrix decomposition method, perceptual hash algorithm and other mature image similarity calculation methods in the field, and the embodiments of the present application do not impose any limitation on this.
[0159] S502, for each of the offline template images, using the image similarity as a weight parameter, performing weighted sum processing on the standard detection result of the offline template image to obtain a confidence result for characterizing the degree of matching between the gesture detection result of the frame of the image to be recognized and the standard detection result.
[0160] Here, the standard detection result is used to characterize the model output result of the trained gesture detection model for the offline template image.
[0161] For example, take the offline template image c as an example. If the standard detection result of the offline template image c is: the probability of the image area boundary box K1-P1 where the human object P1 is located in the offline template image c is 0.7, the probability of the image area boundary box K1-P2 where the human object P2 is located is 0.3, the probability of the image area boundary box K2-G1 where a takeover gesture action G1 is located is 0.8, and the probability of the image area boundary box K2-G2 where a confirmation gesture action G2 is located is 0.2; then when the image similarity between the image b to be identified and the offline template image c is 0.6, the confidence result of the matching degree between the gesture detection result of the image b to be identified and the standard detection result can be calculated by the following weighted summation processing formula:
[0162] The probability that the image area bounding box K1-P1 where the human body object P1 is located in the image b to be identified is 0.42 (i.e. 0.7×0.6=0.42), the probability that the image area bounding box K1-P2 where the human body object P2 is located is 0.18 (i.e. 0.3×0.6=0.18), the probability that the image area bounding box K2-G1 where a takeover gesture action G1 is located is 0.48 (i.e. 0.8×0.6=0.48), and the probability that the image area bounding box K2-G2 where a confirmation gesture action G2 is located is 0.12 (i.e. 0.2×0.6=0.12).
[0163] S503: extracting the standard detection result corresponding to the target confidence result from the standard detection results of the plurality of offline template images as the gesture detection result of the frame of the image to be recognized.
[0164] Here, the target confidence result is the maximum value among the multiple confidence results.
[0165] For example, taking the confidence results of the image b to be identified and the offline template image c in the above example as the target confidence results, the gesture detection result of the image b to be identified can be determined as follows: the image b to be identified includes the image area boundary box K1-P1 where the human object P1 is located and the image area boundary box K2-G1 where a takeover gesture action G1 is located.
[0166] With respect to the specific implementation process of the above step S102, in the embodiment of the present application, whether the target human object appears in the gesture detection result is detected by the following method, specifically:
[0167] like Figure 6 As shown, Figure 6 A schematic flow chart of a method for detecting a target human object provided by an embodiment of the present application is shown, wherein after executing step S101 / before executing step S102, the method further includes S601-S603; specifically:
[0168] S601 , for each of the gesture detection results, detecting whether a second image region boundary box appears in the gesture detection result to obtain a first region detection result.
[0169] Here, the second image region bounding box is used to represent the image region bounding box where the human object is located.
[0170] As an exemplary explanation, if the gesture detection result of the image b to be identified is: the image b to be identified includes the image area boundary box K1-P1 where the human body object P1 is located and the image area boundary box K2-G1 where a takeover gesture action G1 is located; then the first area detection result is: the image area boundary box K1-P1 where the human body object P1 appears.
[0171] S602: When it is detected that the first region detection result includes the second image region boundary box, obtain image region features in the second image region boundary box.
[0172] Here, the acquired image area features include but are not limited to: pixel distribution features in the second image area boundary box (such as the image area boundary box K1-P1 in the above example), image texture features, local area feature points, and other image data used to characterize the characteristics of the image area. The embodiments of the present application do not impose any limitations on this.
[0173] It should be noted that the specific method for obtaining image region features includes but is not limited to LC algorithm, HC algorithm, AC algorithm, FT algorithm and other salient region feature extraction algorithms commonly used in the art, and the embodiments of the present application do not impose any limitation on this.
[0174] S603: When it is detected that the similarity between the image region feature and the image feature data of the target human object is greater than or equal to a first similarity threshold, it is determined that the target human object appears in the gesture detection result.
[0175] Here, similar to step S501, the specific calculation method of the similarity between the image area features and the image feature data of the target human object includes but is not limited to: histogram matching method, matrix decomposition method, perceptual hash algorithm and other mature image similarity calculation methods in the field, and the embodiments of the present application do not impose any limitations on this.
[0176] It should be noted that, in the embodiment of the present application, the target human object appearing in the gesture detection result is used to characterize: the image area boundary box K1 where the human object is located appears in the gesture detection result, and the human object in the image area boundary box K1 is the target human object P1; that is, if the image area boundary box K1 where the human object is located appears in the gesture detection result, but the human object in the image area boundary box K1 is another human object P2, then it is also determined that the target human object does not appear in the gesture detection result.
[0177] Based on this, in the embodiment of the present application, considering that the display area of the human body object in the image is too small / the target human body is not pre-set, it is also possible that the above-mentioned target human body object is not detected. Therefore, in another optional implementation, the human body object with the greatest possibility of belonging to the operator can be selected from the gesture detection results according to the following formula as the target human body object for subsequent gesture detection. Specifically:
[0178] T score =W area ×V area +W score ×V score ;
[0179] Among them, T score Indicates the probability value that the current bounding box belongs to the bounding box of the image area where the target human object is located;
[0180] W area Indicates V area The weight coefficient, W score Indicates V score The weight coefficient of area and W score The specific value can be adjusted according to the actual situation;
[0181] V area Indicates the actual image area value of the current bounding box in the gesture detection result;
[0182] V score Indicates the probability value of the current bounding box belonging to a human object / target human object. If a target human object is preset, then V score Indicates the probability value of the current bounding box belonging to the target human object; if the target human object is not set in advance, Vscore Indicates the probability value that the current bounding box belongs to a human object.
[0183] Regarding the specific implementation process of the above step S102, in a feasible implementation scheme, Figure 7 A schematic diagram of a process for determining a target gesture area boundary box provided in an embodiment of the present application is shown. Figure 7 As shown, when executing step S102, the method further includes S701-S705; specifically:
[0184] S701: Determine, from the target gesture detection result, a pixel distance between each pixel point and a center point of a third image region boundary box.
[0185] Here, the third image region bounding box is used to represent the image region bounding box where the target human object is located.
[0186] Specifically, as an optional embodiment, the Kalman filter algorithm can also be used to perform a secondary prediction on the image area boundary box where the target human object is located in the target gesture detection result, and obtain the position update result of the third image area boundary box, so as to determine the above-mentioned pixel distance according to the position of the updated third image area boundary box.
[0187] S702: Determine a target image region where a target pixel point is located from the target gesture detection result according to a distance difference between each pixel distance and the standard arm length distance.
[0188] Here, the target pixel point is used to represent the pixel point whose distance difference is less than or equal to the distance deviation threshold.
[0189] Specifically, in combination with the contents of steps S701-S702 above, if the distance deviation threshold pre-set in the embodiment of the present application is J and the standard arm length distance is M, then the target pixel point is essentially equivalent to the pixel point whose pixel distance in the target gesture detection result is within the range of [MJ, M+J].
[0190] S703: Perform secondary prediction on the image region boundary box where the gesture object is located in the target image region, and determine a plurality of gesture region boundary boxes located in the target image region.
[0191] Specifically, as an optional embodiment, the Hungarian algorithm may be used to perform target matching processing on the target area in the target image area that may belong to the hand image area, and obtain multiple gesture area boundary boxes in the target image area.
[0192] S704, performing multiple tracking predictions on the hand region position of the target human object within the third image region boundary frame to obtain multiple tracking prediction results of the hand region position.
[0193] Specifically, as an optional embodiment, n point prediction trackers can be used to perform n tracking predictions on the hand area position of the target human object within the third image area boundary box to obtain n tracking prediction results of the hand area position.
[0194] S705 , calculating the average similarity between each of the gesture region bounding boxes and the multiple tracking prediction results, so as to determine the gesture region bounding box with the highest average similarity as the target gesture region bounding box.
[0195] Here, as an optional embodiment, the average Mahalanobis distance between the j-th gesture area bounding box and the n-times tracking prediction results can be calculated using the following Mahalanobis distance calculation formula: Specific:
[0196] d(i,j)=(d j -y i ) T ×s i -1 ×(d j -y i );
[0197]
[0198]
[0199] Among them, d j is the position of the jth gesture area bounding box;
[0200] y i is the hand area position of the target human object in the i-th tracking prediction result;
[0201] s i Yes j The average tracking prediction results The covariance matrix between ;
[0202] d(i,j) is d j With y i The Mahalanobis distance between j With y i The degree of similarity between them.
[0203] Specifically, when calculating the average Mahalanobis , since the smaller the Mahalanobis distance is, the higher the similarity between the two data is, the average Mahalanobis The smaller the value of is, the higher the average similarity between the j-th gesture area bounding box and the n-times tracking prediction results is.
[0204] The specific implementation process of the above step S103 is described in detail below in combination with the different types of gesture actions and control instructions shown in Table 1:
[0205] In one possible embodiment, Figure 8 A flow chart of a method for determining a target control instruction when a takeover gesture action is detected provided by an embodiment of the present application is shown. Figure 8 As shown, when executing step S103, the method further includes S801-S804; specifically:
[0206] S801, when it is detected that the target gesture action belongs to a takeover gesture action, obtaining a gesture control on instruction and a gesture control off instruction having a mapping relationship with the takeover gesture action from the mapping relationship library.
[0207] As an exemplary explanation, taking the mapping relationship library shown in Table 1 as an example, as shown in Table 1, when it is detected that the target gesture action belongs to the takeover gesture action G1, a gesture control on instruction (used to indicate the preparation to take over the control authority for the screen display device) and a gesture control off instruction (used to indicate the preparation to disconnect the control authority for the screen display device) that have a mapping relationship with the takeover gesture action G1 can be obtained from the mapping relationship library.
[0208] S802: In response to obtaining the gesture control on instruction and the gesture control off instruction, sending a working status obtaining instruction to the screen display device.
[0209] Here, the working status specified in the working status acquisition instruction is used to represent the working status corresponding to the current control authority of the screen display device.
[0210] Specifically, the above working states may include: an untaken-over state and a taken-over state; wherein, the untaken-over state is used to characterize the working state of the screen display device under the control of the peripheral input device; the taken-over state is used to characterize the working state of the screen display device under the control of the gesture control system.
[0211] It should be noted that the above-mentioned peripheral input devices are located outside the gesture control system, and the peripheral input devices include but are not limited to: handheld input control devices such as touch tablets and traditional input control devices such as keyboards and mice; the embodiments of this application do not impose any restrictions on the specific device types of peripheral input devices.
[0212] S803, in response to receiving a feedback result of the screen display device acquiring the working state instruction, when it is detected in the feedback result that the working state of the screen display device is an untaken state, determining the gesture control start instruction as the target control instruction.
[0213] For example, taking the mapping relationship library shown in Table 1 as an example, if it is detected that the working state of the screen display device 202 in the feedback result is an untaken state, the gesture control start instruction is determined as the target control instruction, and the image processor 201 sends the gesture control start instruction to the screen display device 202 to control the screen display device 202 to disconnect the control connection relationship between the screen display device 202 and the current peripheral input device, and control the screen display device 202 to transfer the control authority from the current peripheral input device to the image processor 201.
[0214] S804: When it is detected in the feedback result that the working state of the screen display device is a taken-over state, determine the gesture control closing instruction as the target control instruction.
[0215] For example, taking the mapping relationship library shown in Table 1 as an example, if it is detected that the working state of the screen display device 202 in the feedback result is the taken-over state, the gesture control off instruction is determined as the target control instruction, and the image processor 201 sends the gesture control off instruction to the screen display device 202 to control the screen display device 202 to disconnect the control connection relationship between the screen display device 202 and the image processor 201.
[0216] In one possible embodiment, Fig. 9 A flow chart of a method for determining a target control instruction when a menu bar gesture action is detected provided by an embodiment of the present application is shown. Fig. 9 As shown, when executing step S103, the method further includes S901-S902; specifically:
[0217] S901, when it is detected that the target gesture action belongs to a menu bar gesture action, according to the gesture action detection cycle corresponding to the menu bar gesture action, within the gesture action detection cycle, the moving direction and moving distance of the menu bar gesture action in adjacent image frames are recorded to obtain a recording result.
[0218] Here, the adjacent image frames are determined based on the image data sent by the image acquisition device within the gesture action detection period.
[0219] Specifically, taking the gesture action detection cycle of 10 seconds as an example, the starting moment when the menu bar gesture action is detected is used as the timing starting point of the gesture action detection cycle, and the image to be identified obtained after 10 seconds is used as the last frame of the image to be identified in the gesture action detection cycle, so that each frame of the image to be identified is sorted according to the timing order to obtain each group of the above-mentioned adjacent image frames.
[0220] S902, when it is detected that the moving distance in the recording result is greater than or equal to the effective moving distance threshold, obtaining a menu list control instruction having a mapping relationship with the menu bar gesture action in the target moving direction from the mapping relationship library as the target control instruction.
[0221] Here, the target moving direction is the moving direction in the recording result; the menu list control instructions mapped to the menu bar gesture action under different target moving directions are different; and different menu list control instructions are used to control different types of menu lists on the screen display device.
[0222] As an exemplary explanation, still taking the mapping relationship library shown in Table 1 as an example, if it is detected that the target gesture action belongs to the menu bar gesture action G4, then according to the gesture action detection cycle of 10 seconds corresponding to the menu bar gesture action G4, within the gesture action detection cycle of 10 seconds, the moving direction and moving distance of the menu bar gesture action G4 in adjacent image frames are recorded, and the recording result is: the moving direction is "upward direction" and the moving distance is "20 centimeters"; at this time, based on the recorded moving distance, if the preset effective moving distance threshold is 15 centimeters, the menu list control instruction (such as the control instruction of the window list) with a mapping relationship for the menu bar gesture action G4 in the upward direction (that is, the y value in G4-y is upward direction) can be obtained from the mapping relationship library shown in Table 1 as the target control instruction, and the control instruction of the window list is sent to the screen display device 202 to control the screen display device 202 to open the window list, so as to support the target human object to perform corresponding control on multiple windows in the opened window list through other gesture actions at subsequent moments.
[0223] In one possible embodiment, Fig.10 A flow chart of a method for determining a target control instruction when a drag gesture action is detected provided by an embodiment of the present application is shown. Fig.10 As shown, when executing step S103, the method further includes S1001-S1004; specifically:
[0224] S1001, when it is detected that the target gesture action belongs to a drag gesture action, obtaining the coordinates of the center point of the target gesture area boundary box from the target gesture detection result as the drag tracking point of the drag gesture action.
[0225] Here, the drag tracking point is used to represent the spatial point coordinates of tracking the target gesture object moving in the form of the drag gesture action during the target drag cycle.
[0226] Here, the target drag cycle is determined according to the start time and the end time of the drag gesture action.
[0227] For example, taking the mapping relationship library shown in Table 1 as an example, if it is detected that the target gesture action belongs to the drag gesture action G6, the center point coordinates of the target gesture area boundary box K are obtained from the target gesture detection result as the drag tracking point of the drag gesture action G6, and the starting time when the drag gesture action G6 is detected is used as the timing starting point of the target drag cycle, until other gesture actions (such as confirmation gesture action G2) are detected, then the timing is stopped.
[0228] S1002, within the target drag cycle, obtain the first coordinate value of the drag tracking point in the first spatial coordinate system, and determine the second coordinate value of the drag tracking point in the second spatial coordinate system based on the point conversion relationship between the first spatial coordinate system and the second spatial coordinate system.
[0229] Here, the first space coordinate system is used to characterize the space coordinate system corresponding to the image acquisition device.
[0230] Here, the second space coordinate system is used to represent the space coordinate system corresponding to the screen display device.
[0231] It should be noted that, considering that the target gesture action is a gesture action made by the target human object in space, it is necessary to convert between the above-mentioned first space coordinate system and the above-mentioned second space coordinate system in order to effectively determine the target dragging distance specified by the target gesture action on the screen display device.
[0232] Specifically, the point conversion relationship between the first spatial coordinate system and the second spatial coordinate system can be referred to the following formula:
[0233]
[0234]
[0235] Among them, X screen and Y screen Indicates the second coordinate value of the drag tracking point (X, Y) in the second space coordinate system;
[0236] X cam and Y camRepresents the first coordinate value of the drag tracking point (X, Y) in the first spatial coordinate system;
[0237] W screen Indicates the pixel width of the large screen in the screen display device;
[0238] W cam Represents the pixel width of the camera in the image acquisition device;
[0239] H screen Indicates the pixel height of the large screen in the screen display device;
[0240] H cam Indicates the pixel height of the camera in the image acquisition device.
[0241] S1003, at the current moment, obtain the first coordinate movement difference and the first coordinate movement direction of the second coordinate value between the current moment and the previous moment, use the obtained first coordinate movement difference as the target dragging distance, and use the obtained first coordinate movement direction as the target dragging direction.
[0242] Specifically, still taking the mapping relationship library shown in Table 1 as an example, the target dragging distance is the specific value of v in the dragging gesture action G6-uv in Table 1, and the target dragging direction is the specific value of u in the dragging gesture action G6-uv in Table 1.
[0243] S1004: Acquire, from the mapping relationship library, a drag control instruction having a mapping relationship with the drag gesture action under the target drag distance and the target drag direction as the target control instruction.
[0244] Here, the drag control instruction is used to control the screen display device to perform a drag operation on the target display object previously selected by the target human object according to the target drag distance and the target drag direction.
[0245] As an exemplary explanation, still taking the mapping relationship library shown in Table 1 as an example, if the target dragging distance is 20 centimeters and the target dragging direction is to the left, then from the mapping relationship library shown in Table 1, obtain the drag control instruction G6-Left-20 centimeters that has a mapping relationship with the drag gesture action G6-uv under the above target dragging distance and target dragging direction as the target control instruction, and send the target control instruction to the screen display device 202 to control the screen display device 202 to drag the target display object confirmed to be dragged at the last moment along the left direction on the large screen of the screen display device 202 for a distance of 20 centimeters.
[0246] In one possible embodiment, Fig.11A flow chart of a method for determining a target control instruction when a zoom gesture action is detected provided by an embodiment of the present application is shown. Fig.11 As shown, when executing step S103, the method further includes S1101-S1106; specifically:
[0247] S1101, when it is detected that the target gesture action belongs to a zoom gesture action, obtaining edge coordinates of a target gesture area boundary box from the target gesture detection result as zoom tracking points of the zoom gesture action.
[0248] Here, the zoom tracking point is used to represent the spatial point coordinates of the target gesture object moving in the form of the zoom gesture action in the target zoom period.
[0249] Here, the target zooming period is determined according to the start time and the end time of the zooming gesture action.
[0250] For example, taking the mapping relationship library shown in Table 1 as an example, if it is detected that the target gesture action belongs to the zoom gesture action G7, the edge coordinates of the target gesture area boundary box K are obtained from the target gesture detection result as the zoom tracking point of the zoom gesture action G7, and the starting time when the zoom gesture action G7 is detected is used as the timing starting point of the target zoom cycle until other gesture actions (such as confirmation gesture action G2) are detected, and the timing is stopped.
[0251] S1102: within the target zoom period, obtaining a third coordinate value of the zoom tracking point in the space coordinate system corresponding to the image acquisition device.
[0252] Here, the space coordinate system corresponding to the image acquisition device is the first space coordinate system in step S1002, and the repeated parts are not repeated here.
[0253] S1103, at the current moment, obtaining the second coordinate movement difference and the second coordinate movement direction of the third coordinate value between the current moment and the previous moment.
[0254] Here, the second coordinate movement difference is equivalent to the movement distance of the target gesture area boundary box K that is offset along the second coordinate movement direction between the current moment and the previous moment.
[0255] S1104: According to the second coordinate moving direction, obtain from the mapping relationship library a zoom-in control instruction / zoom-in control instruction that has a mapping relationship with the zoom gesture action in the second coordinate moving direction as a first control instruction.
[0256] For example, taking the mapping relationship library shown in Table 1 as an example, if it is detected that the second coordinate movement direction of the zoom gesture action G7 is to the left (that is, the value of z in G7-z is the left direction), then from the mapping relationship library shown in Table 1, the zoom-out control instruction that has a mapping relationship with G7-left is obtained as the first control instruction.
[0257] S1105: Determine a target zoom ratio indicated by the zoom gesture action at the second coordinate movement difference according to a fitting conversion relationship between the second coordinate movement difference and the zoom ratio of the screen display device.
[0258] Specifically, the fitting conversion relationship between the second coordinate movement difference and the zoom ratio can be referred to the following formula:
[0259]
[0260] Among them, Z ratio Indicates the above zoom ratio;
[0261] D offset represents the above second coordinate movement difference;
[0262] Zoom in indicates that the first control instruction is a zoom control instruction;
[0263] Zoom out means that the first control instruction is a zoom out control instruction;
[0264] K in Indicates the fitting conversion factor when zooming in;
[0265] K out Indicates the fitting conversion factor when shrinking;
[0266] W box represents the pixel width of the target gesture area bounding box K;
[0267] N step Indicates the threshold number of bounding boxes in the image area.
[0268] S1106: Use a combined instruction of the first control instruction and the target zoom ratio as the target control instruction.
[0269] As an exemplary explanation, still taking the mapping relationship library shown in Table 1 as an example, if a zoom-out control instruction having a mapping relationship with G7-left is obtained as the first control instruction from the mapping relationship library shown in Table 1, and after conversion through the fitting conversion relationship in S1105, the zoom ratio corresponding to the second coordinate movement difference of 5 cm is obtained to be 75%, then the target control instruction is determined to be: G7-zoom-out-75%, and the target control instruction is sent to the screen display device 202 to control the screen display device 202 to zoom out the target display object confirmed to be zoomed at the last moment on the large screen of the screen display device 202 according to a zoom ratio of 75%.
[0270] Based on the same inventive concept, an embodiment of the present application also provides a gesture control system corresponding to the gesture control method in the above embodiment. Since the principle of solving the problem by the gesture control system in the embodiment of the present application is similar to the gesture control method in the above embodiment of the present application, the implementation of the gesture control system can refer to the implementation of the above method, and the repeated parts will not be repeated.
[0271] Reference Figure 2 The gesture control system shown in the figure; the gesture control system at least comprises: an image acquisition device 200, an image processor 201 and a screen display device 202; wherein the image processor 201 is used to:
[0272] In response to receiving the image data sent by the image acquisition device, the image to be identified in the image data is input frame by frame into a pre-trained gesture detection model to obtain a gesture detection result for each frame of the image to be identified; wherein the gesture detection model is used to predict the image area boundary box where the target object in each frame of the image to be identified is located and the category to which the target object in each of the image area boundary boxes belongs; the target object includes: a human object and / or a gesture object; the gesture detection result is used to characterize the prediction result of the gesture detection model for each frame of the image to be identified;
[0273] When it is detected that a target human object appears in the gesture detection result, a target gesture area boundary box where the target gesture object is located is determined from the target gesture detection result according to the human feature data of the target human object; wherein the target human object is used to characterize a human object having control authority over the screen display device; the human feature data at least includes a standard arm length distance between a hand center point and a body center point of the target human object; the target gesture detection result is used to characterize a gesture detection result in which the target human object is detected; the target gesture object is used to characterize a gesture object in the target human object used to control the screen display device;
[0274] According to the target gesture action displayed by the target gesture object in the target gesture area boundary box, a target control instruction having a mapping relationship with the target gesture action is determined from a mapping relationship library between gesture actions and control instructions; wherein the target gesture action is determined according to the category to which the target gesture object belongs detected in the target gesture detection result;
[0275] The target control instruction is sent to the screen display device to control the screen display device to display the execution process and execution result of the target control instruction.
[0276] In an optional implementation, when the working state of the gesture detection model is an online working state, when the image to be recognized in the image data is input frame by frame into the pre-trained gesture detection model to obtain the gesture detection result of each frame of the image to be recognized, the image processor 201 is specifically used to:
[0277] For each frame of the image to be recognized, the frame of the image to be recognized is input into the gesture detection model, and the image region where the target object is located in the frame of the image to be recognized is classified and predicted by the gesture detection model to obtain a first classification prediction result; wherein the first classification prediction result at least includes: a boundary box of the image region where the human body object and / or the gesture object are located in the frame of the image to be recognized;
[0278] When it is detected that the first classification prediction result includes a first image area boundary box, the first gesture action displayed by the gesture object in the first image area boundary box is classified and predicted by the gesture detection model to obtain a second classification prediction result; wherein the first image area boundary box is used to characterize the image area boundary box where the gesture object is located; the second classification prediction result at least includes: the gesture category to which the first gesture action belongs in the gesture category list; the number of gesture categories in the gesture category list is determined according to the types of gesture actions included in the sample images used by the gesture detection model in the training process;
[0279] The first classification prediction result and the second classification prediction result are used as the gesture detection result of the frame of image to be recognized.
[0280] In an optional implementation, when the working state of the gesture detection model is an offline working state, when the image to be recognized in the image data is input frame by frame into the pre-trained gesture detection model to obtain the gesture detection result of each frame of the image to be recognized, the image processor 201 is specifically used to:
[0281] For each frame of the image to be recognized, the frame of the image to be recognized is input into the gesture detection model, and the image similarity between the frame of the image to be recognized and each of the offline template images pre-stored in the gesture detection model is determined; wherein the offline template image is used to represent the sample image used by the gesture detection model in the training process;
[0282] For each of the offline template images, the image similarity is used as a weight parameter to perform weighted sum processing on the standard detection result of the offline template image to obtain a confidence result for characterizing the degree of matching between the gesture detection result of the frame to be recognized and the standard detection result; wherein the standard detection result is used to characterize the model output result of the trained gesture detection model for the offline template image;
[0283] From the standard detection results of the multiple offline template images, the standard detection result corresponding to the target confidence result is extracted as the gesture detection result of the frame of the image to be recognized; wherein the target confidence result is the maximum value among the multiple confidence results.
[0284] In an optional implementation, after obtaining the gesture detection result of each frame of the image to be recognized, the image processor 201 is specifically configured to detect whether the target human object appears in the gesture detection result by the following method:
[0285] For each of the gesture detection results, detecting whether a second image area boundary box appears in the gesture detection result to obtain a first area detection result; wherein the second image area boundary box is used to represent an image area boundary box where the human body object is located;
[0286] When it is detected that the first region detection result includes the second image region boundary frame, acquiring image region features in the second image region boundary frame;
[0287] When it is detected that the degree of similarity between the image region feature and the image feature data of the target human object is greater than or equal to a first similarity threshold, it is determined that the target human object appears in the gesture detection result.
[0288] In an optional implementation, when determining the target gesture area bounding box where the target gesture object is located from the target gesture detection result according to the human feature data of the target human object, the image processor 201 is specifically configured to:
[0289] Determine, from the target gesture detection result, a pixel distance between each pixel point and a center point of a third image region bounding box; wherein the third image region bounding box is used to represent an image region bounding box where the target human object is located;
[0290] According to the distance difference between each pixel distance and the standard arm length distance, determine the target image area where the target pixel point is located from the target gesture detection result; wherein the target pixel point is used to represent the pixel point whose distance difference is less than or equal to the distance deviation threshold;
[0291] In the target image area, a secondary prediction is performed on the image area boundary box where the gesture object is located to determine a plurality of gesture area boundary boxes located in the target image area;
[0292] Performing multiple tracking predictions on the hand region position of the target human object within the third image region boundary frame to obtain multiple tracking prediction results of the hand region position;
[0293] The average similarity between each of the gesture region bounding boxes and the multiple tracking prediction results is calculated, so as to determine the gesture region bounding box with the highest average similarity as the target gesture region bounding box.
[0294] In an optional implementation, when determining a target control instruction having a mapping relationship with the target gesture action in the mapping relationship library between the slave gesture action and the control instruction, the image processor 201 is specifically configured to:
[0295] When it is detected that the target gesture action belongs to a takeover gesture action, acquiring a gesture control on instruction and a gesture control off instruction having a mapping relationship with the takeover gesture action from the mapping relationship library;
[0296] In response to obtaining the gesture control on instruction and the gesture control off instruction, sending a working status obtaining instruction to the screen display device;
[0297] In response to receiving a feedback result of the screen display device for the working state acquisition instruction, when it is detected in the feedback result that the working state of the screen display device is an untaken-over state, determining the gesture control start instruction as the target control instruction; wherein the untaken-over state is used to characterize the working state of the screen display device under the control of a peripheral input device; the peripheral input device is located outside the gesture control system;
[0298] When it is detected in the feedback result that the working state of the screen display device is a taken-over state, the gesture control closing instruction is determined as the target control instruction; wherein, the taken-over state is used to characterize the working state of the screen display device under the control of the gesture control system.
[0299] In an optional implementation, when determining a target control instruction having a mapping relationship with the target gesture action in the mapping relationship library between the slave gesture action and the control instruction, the image processor 201 is specifically configured to:
[0300] When it is detected that the target gesture action belongs to a menu bar gesture action, according to the gesture action detection period corresponding to the menu bar gesture action, within the gesture action detection period, the moving direction and moving distance of the menu bar gesture action in adjacent image frames are recorded to obtain a recording result; wherein the adjacent image frames are determined according to the image data sent by the image acquisition device within the gesture action detection period;
[0301] When it is detected that the moving distance in the recording result is greater than or equal to the effective moving distance threshold, a menu list control instruction having a mapping relationship with the menu bar gesture action in the target moving direction is obtained from the mapping relationship library as the target control instruction; wherein the target moving direction is the moving direction in the recording result; the menu list control instructions mapped to the menu bar gesture action in different target moving directions are different; and different menu list control instructions are used to control different types of menu lists on the screen display device.
[0302] In an optional implementation, when determining a target control instruction having a mapping relationship with the target gesture action in the mapping relationship library between the slave gesture action and the control instruction, the image processor 201 is specifically configured to:
[0303] When it is detected that the target gesture action belongs to a drag gesture action, the center point coordinates of the target gesture area boundary box are obtained from the target gesture detection result as the drag tracking point of the drag gesture action; wherein the drag tracking point is used to characterize the spatial point coordinates of tracking the target gesture object moving in the form of the drag gesture action under the target drag cycle; the target drag cycle is determined according to the start occurrence time and the end occurrence time of the drag gesture action;
[0304] During the target drag cycle, a first coordinate value of the drag tracking point in a first spatial coordinate system is obtained, and a second coordinate value of the drag tracking point in the second spatial coordinate system is determined according to a point conversion relationship between the first spatial coordinate system and the second spatial coordinate system; wherein the first spatial coordinate system is used to represent a spatial coordinate system corresponding to the image acquisition device; and the second spatial coordinate system is used to represent a spatial coordinate system corresponding to the screen display device;
[0305] At the current moment, obtaining the first coordinate movement difference and the first coordinate movement direction of the second coordinate value at the current moment and the previous moment, using the obtained first coordinate movement difference as the target dragging distance, and using the obtained first coordinate movement direction as the target dragging direction;
[0306] From the mapping relationship library, a drag control instruction that has a mapping relationship with the drag gesture action under the target drag distance and the target drag direction is obtained as the target control instruction; wherein the drag control instruction is used to control the screen display device to perform a drag operation on the target display object previously selected by the target human body object according to the target drag distance and the target drag direction.
[0307] In an optional implementation, when determining a target control instruction having a mapping relationship with the target gesture action in the mapping relationship library between the slave gesture action and the control instruction, the image processor 201 is specifically configured to:
[0308] When it is detected that the target gesture action belongs to a zoom gesture action, the edge coordinates of the target gesture area boundary box are obtained from the target gesture detection result as the zoom tracking point of the zoom gesture action; wherein the zoom tracking point is used to characterize the spatial point coordinates of the target gesture object moving in the form of the zoom gesture action under the target zoom period; the target zoom period is determined according to the start occurrence time and the end occurrence time of the zoom gesture action;
[0309] In the target zooming cycle, obtaining a third coordinate value of the zooming tracking point in the space coordinate system corresponding to the image acquisition device;
[0310] At the current moment, obtaining the second coordinate movement difference between the current moment and the previous moment and the second coordinate movement direction of the third coordinate value;
[0311] According to the second coordinate moving direction, acquiring, from the mapping relationship library, a zoom-in control instruction / zoom-in control instruction having a mapping relationship with the zoom gesture action in the second coordinate moving direction as a first control instruction;
[0312] Determining a target zoom ratio indicated by the zoom gesture action at the second coordinate movement difference according to a fitting conversion relationship between the second coordinate movement difference and the zoom ratio of the screen display device;
[0313] The combined instruction of the first control instruction and the target zoom ratio is used as the target control instruction.
[0314] The above-mentioned gesture control system provided by the embodiment of the present application, in response to receiving image data sent by an image acquisition device, inputs the image to be identified in the image data into a pre-trained gesture detection model frame by frame to obtain a gesture detection result of each frame of the image to be identified; when a target human object is detected in the gesture detection result, a target gesture area boundary box where the target gesture object is located is determined from the target gesture detection result according to the human feature data of the target human object; according to the target gesture action displayed by the target gesture object in the target gesture area boundary box, a target control instruction having a mapping relationship with the target gesture action is determined from a mapping relationship library between gesture actions and control instructions; and the target control instruction is sent to a screen display device to control the screen display device to display the execution process and execution result of the target control instruction.
[0315] In this way, the present application can control the data display on the screen display device completely based on the operator's gestures during the data demonstration process without the operator having to hold any input control device, thereby effectively improving the operator's control efficiency over the screen display device and is conducive to enhancing the intelligent development of large-screen interaction.
[0316] like Fig.12 As shown, an embodiment of the present application provides a computer device 1200 for executing the gesture control method in the present application, and the device includes a memory 1201, a processor 1202, and a computer program stored in the memory 1201 and executable on the processor 1202, wherein the memory 1201 and the processor 1202 can communicate with each other via a bus, and the steps of the gesture control method are implemented when the processor 1202 executes the computer program.
[0317] Specifically, the memory 1201 and the processor 1202 may be general-purpose memories and processors, which are not specifically limited here. When the processor 1202 runs the computer program stored in the memory 1201, the gesture control method described above can be executed.
[0318] Corresponding to the gesture control method in the present application, an embodiment of the present application further provides 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 above-mentioned gesture control method are executed.
[0319] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is executed, the above-mentioned gesture control method can be executed.
[0320] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0321] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0322] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0323] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0324] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0325] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A gesture control method, characterized in that: The method is applied to an image processor, and the image processor is located in a gesture control system, wherein the gesture control system at least includes: an image acquisition device, the image processor, and a screen display device; the method includes: In response to receiving the image data sent by the image acquisition device, the image to be identified in the image data is input frame by frame into a pre-trained gesture detection model to obtain a gesture detection result for each frame of the image to be identified; wherein the gesture detection model is used to predict the image area boundary box where the target object in each frame of the image to be identified is located and the category to which the target object in each of the image area boundary boxes belongs; the target object includes: a human object and / or a gesture object; the gesture detection result is used to characterize the prediction result of the gesture detection model for each frame of the image to be identified; When it is detected that a target human object appears in the gesture detection result, a target gesture area boundary box where the target gesture object is located is determined from the target gesture detection result according to the human feature data of the target human object; wherein the target human object is used to characterize a human object having control authority over the screen display device; the human feature data at least includes a standard arm length distance between a hand center point and a body center point of the target human object; the target gesture detection result is used to characterize a gesture detection result in which the target human object is detected; the target gesture object is used to characterize a gesture object in the target human object used to control the screen display device; According to the target gesture action displayed by the target gesture object in the target gesture area boundary box, a target control instruction having a mapping relationship with the target gesture action is determined from a mapping relationship library between gesture actions and control instructions; wherein the target gesture action is determined according to the category to which the target gesture object belongs detected in the target gesture detection result; Sending the target control instruction to the screen display device to control the screen display device to display the execution process and execution result of the target control instruction; Wherein, determining the target gesture area boundary box where the target gesture object is located from the target gesture detection result according to the human feature data of the target human object includes: Determine, from the target gesture detection result, a pixel distance between each pixel point and a center point of a third image region bounding box; wherein the third image region bounding box is used to represent an image region bounding box where the target human object is located; According to the distance difference between each pixel distance and the standard arm length distance, determine the target image area where the target pixel point is located from the target gesture detection result; wherein the target pixel point is used to represent the pixel point whose distance difference is less than or equal to the distance deviation threshold; In the target image area, a secondary prediction is performed on the image area boundary box where the gesture object is located to determine a plurality of gesture area boundary boxes located in the target image area; Performing multiple tracking predictions on the hand region position of the target human object within the third image region boundary frame to obtain multiple tracking prediction results of the hand region position; The average similarity between each of the gesture region bounding boxes and the multiple tracking prediction results is calculated, so as to determine the gesture region bounding box with the highest average similarity as the target gesture region bounding box.
2. The method according to claim 1, characterized in that When the working state of the gesture detection model is an online working state, the image to be recognized in the image data is input frame by frame into the pre-trained gesture detection model to obtain the gesture detection result of each frame of the image to be recognized, including: For each frame of the image to be recognized, the frame of the image to be recognized is input into the gesture detection model, and the image region where the target object is located in the frame of the image to be recognized is classified and predicted by the gesture detection model to obtain a first classification prediction result; wherein the first classification prediction result at least includes: a boundary box of the image region where the human body object and / or the gesture object are located in the frame of the image to be recognized; When it is detected that the first classification prediction result includes a first image area boundary box, the first gesture action displayed by the gesture object in the first image area boundary box is classified and predicted by the gesture detection model to obtain a second classification prediction result; wherein the first image area boundary box is used to characterize the image area boundary box where the gesture object is located; the second classification prediction result at least includes: the gesture category to which the first gesture action belongs in the gesture category list; the number of gesture categories in the gesture category list is determined according to the types of gesture actions included in the sample images used by the gesture detection model in the training process; The first classification prediction result and the second classification prediction result are used as the gesture detection result of the frame of image to be recognized.
3. The method according to claim 1, characterized in that: When the working state of the gesture detection model is an offline working state, the image to be recognized in the image data is input frame by frame into the pre-trained gesture detection model to obtain the gesture detection result of each frame of the image to be recognized, including: For each frame of the image to be recognized, the frame of the image to be recognized is input into the gesture detection model, and the image similarity between the frame of the image to be recognized and each of the offline template images pre-stored in the gesture detection model is determined; wherein the offline template image is used to represent the sample image used by the gesture detection model in the training process; For each of the offline template images, the image similarity is used as a weight parameter to perform weighted sum processing on the standard detection result of the offline template image to obtain a confidence result for characterizing the degree of matching between the gesture detection result of the frame to be recognized and the standard detection result; wherein the standard detection result is used to characterize the model output result of the trained gesture detection model for the offline template image; From the standard detection results of the multiple offline template images, the standard detection result corresponding to the target confidence result is extracted as the gesture detection result of the frame of the image to be recognized; wherein the target confidence result is the maximum value among the multiple confidence results.
4. The method according to claim 1, characterized in that: After obtaining the gesture detection result of each frame of the image to be recognized, whether the target human object appears in the gesture detection result is detected by the following method: For each of the gesture detection results, detecting whether a second image area boundary box appears in the gesture detection result to obtain a first area detection result; wherein the second image area boundary box is used to represent an image area boundary box where the human body object is located; When it is detected that the first region detection result includes the second image region boundary frame, acquiring image region features in the second image region boundary frame; When it is detected that the degree of similarity between the image region feature and the image feature data of the target human object is greater than or equal to a first similarity threshold, it is determined that the target human object appears in the gesture detection result.
5. The method according to claim 1, characterized in that The step of determining, from a mapping relationship library between gesture actions and control instructions, a target control instruction having a mapping relationship with the target gesture action comprises: When it is detected that the target gesture action belongs to a takeover gesture action, acquiring a gesture control on instruction and a gesture control off instruction having a mapping relationship with the takeover gesture action from the mapping relationship library; In response to obtaining the gesture control on instruction and the gesture control off instruction, sending a working status obtaining instruction to the screen display device; In response to receiving a feedback result of the screen display device for the working state acquisition instruction, when it is detected in the feedback result that the working state of the screen display device is an untaken-over state, determining the gesture control start instruction as the target control instruction; wherein the untaken-over state is used to characterize the working state of the screen display device under the control of a peripheral input device; the peripheral input device is located outside the gesture control system; When it is detected in the feedback result that the working state of the screen display device is a taken-over state, the gesture control closing instruction is determined as the target control instruction; wherein, the taken-over state is used to characterize the working state of the screen display device under the control of the gesture control system.
6. The method according to claim 1, characterized in that The step of determining, from a mapping relationship library between gesture actions and control instructions, a target control instruction having a mapping relationship with the target gesture action, further includes: When it is detected that the target gesture action belongs to a menu bar gesture action, according to the gesture action detection period corresponding to the menu bar gesture action, within the gesture action detection period, the moving direction and moving distance of the menu bar gesture action in adjacent image frames are recorded to obtain a recording result; wherein the adjacent image frames are determined according to the image data sent by the image acquisition device within the gesture action detection period; When it is detected that the moving distance in the recording result is greater than or equal to the effective moving distance threshold, a menu list control instruction having a mapping relationship with the menu bar gesture action in the target moving direction is obtained from the mapping relationship library as the target control instruction; wherein the target moving direction is the moving direction in the recording result; the menu list control instructions mapped to the menu bar gesture action in different target moving directions are different; and different menu list control instructions are used to control different types of menu lists on the screen display device.
7. The method according to claim 1, characterized in that The step of determining, from a mapping relationship library between gesture actions and control instructions, a target control instruction having a mapping relationship with the target gesture action, further includes: When it is detected that the target gesture action belongs to a drag gesture action, the center point coordinates of the target gesture area boundary box are obtained from the target gesture detection result as the drag tracking point of the drag gesture action; wherein the drag tracking point is used to characterize the spatial point coordinates of tracking the target gesture object moving in the form of the drag gesture action under the target drag cycle; the target drag cycle is determined according to the start occurrence time and the end occurrence time of the drag gesture action; During the target drag cycle, a first coordinate value of the drag tracking point in a first spatial coordinate system is obtained, and a second coordinate value of the drag tracking point in the second spatial coordinate system is determined according to a point conversion relationship between the first spatial coordinate system and the second spatial coordinate system; wherein the first spatial coordinate system is used to represent a spatial coordinate system corresponding to the image acquisition device; and the second spatial coordinate system is used to represent a spatial coordinate system corresponding to the screen display device; At the current moment, obtaining the first coordinate movement difference and the first coordinate movement direction of the second coordinate value at the current moment and the previous moment, using the obtained first coordinate movement difference as the target dragging distance, and using the obtained first coordinate movement direction as the target dragging direction; From the mapping relationship library, a drag control instruction that has a mapping relationship with the drag gesture action under the target drag distance and the target drag direction is obtained as the target control instruction; wherein the drag control instruction is used to control the screen display device to perform a drag operation on the target display object previously selected by the target human body object according to the target drag distance and the target drag direction.
8. The method according to claim 1, characterized in that The step of determining, from a mapping relationship library between gesture actions and control instructions, a target control instruction having a mapping relationship with the target gesture action, further includes: When it is detected that the target gesture action belongs to a zoom gesture action, the edge coordinates of the target gesture area boundary box are obtained from the target gesture detection result as the zoom tracking point of the zoom gesture action; wherein the zoom tracking point is used to characterize the spatial point coordinates of the target gesture object moving in the form of the zoom gesture action under the target zoom period; the target zoom period is determined according to the start occurrence time and the end occurrence time of the zoom gesture action; In the target zooming cycle, obtaining a third coordinate value of the zooming tracking point in the space coordinate system corresponding to the image acquisition device; At the current moment, obtaining the second coordinate movement difference between the current moment and the previous moment and the second coordinate movement direction of the third coordinate value; According to the second coordinate moving direction, acquiring, from the mapping relationship library, a zoom-in control instruction / zoom-in control instruction having a mapping relationship with the zoom gesture action in the second coordinate moving direction as a first control instruction; Determining a target zoom ratio indicated by the zoom gesture action at the second coordinate movement difference according to a fitting conversion relationship between the second coordinate movement difference and the zoom ratio of the screen display device; The combined instruction of the first control instruction and the target zoom ratio is used as the target control instruction.
9. A gesture control system, characterized in that: The gesture control system at least includes: an image acquisition device, an image processor and a screen display device; wherein the image processor is used to: In response to receiving the image data sent by the image acquisition device, the image to be identified in the image data is input frame by frame into a pre-trained gesture detection model to obtain a gesture detection result for each frame of the image to be identified; wherein the gesture detection model is used to predict the image area boundary box where the target object in each frame of the image to be identified is located and the category to which the target object in each of the image area boundary boxes belongs; the target object includes: a human object and / or a gesture object; the gesture detection result is used to characterize the prediction result of the gesture detection model for each frame of the image to be identified; When it is detected that a target human object appears in the gesture detection result, a target gesture area boundary box where the target gesture object is located is determined from the target gesture detection result according to the human feature data of the target human object; wherein the target human object is used to characterize a human object having control authority over the screen display device; the human feature data at least includes a standard arm length distance between a hand center point and a body center point of the target human object; the target gesture detection result is used to characterize a gesture detection result in which the target human object is detected; the target gesture object is used to characterize a gesture object in the target human object used to control the screen display device; According to the target gesture action displayed by the target gesture object in the target gesture area boundary box, a target control instruction having a mapping relationship with the target gesture action is determined from a mapping relationship library between gesture actions and control instructions; wherein the target gesture action is determined according to the category to which the target gesture object belongs detected in the target gesture detection result; Sending the target control instruction to the screen display device to control the screen display device to display the execution process and execution result of the target control instruction; Wherein, when determining the target gesture area boundary box where the target gesture object is located from the target gesture detection result according to the human feature data of the target human object, the image processor is used to: Determine, from the target gesture detection result, a pixel distance between each pixel point and a center point of a third image region bounding box; wherein the third image region bounding box is used to represent an image region bounding box where the target human object is located; According to the distance difference between each pixel distance and the standard arm length distance, determine the target image area where the target pixel point is located from the target gesture detection result; wherein the target pixel point is used to represent the pixel point whose distance difference is less than or equal to the distance deviation threshold; In the target image area, a secondary prediction is performed on the image area boundary box where the gesture object is located to determine a plurality of gesture area boundary boxes located in the target image area; Performing multiple tracking predictions on the hand region position of the target human object within the third image region boundary frame to obtain multiple tracking prediction results of the hand region position; The average similarity between each of the gesture region bounding boxes and the multiple tracking prediction results is calculated, so as to determine the gesture region bounding box with the highest average similarity as the target gesture region bounding box.
10. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the gesture control method as described in any one of claims 1 to 8 are performed.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the gesture control method according to any one of claims 1 to 8 are executed.
