Gesture control method, apparatus, electronic device, and storage medium

By collecting human features from image data, the system automatically identifies the sensor's installation status and adjusts the image data, solving the accuracy problem of gesture control technology under different installation methods and achieving efficient and stable gesture recognition and operation execution.

CN123137487APending Publication Date: 2026-11-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510654178.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing gesture control technologies cannot adapt to different camera installation methods, resulting in reduced gesture recognition accuracy. Furthermore, recognition accuracy and reliability are affected when the sensor installation status changes. In addition, existing methods may require additional calibration steps, increasing system complexity and cost.

Method used

By collecting human features from image data, the sensor's installation status is automatically determined, and the image data is adjusted according to the installation status. Gestures are recognized to execute corresponding commands. A large model is used to quickly identify target areas of the human body, and the installation status is judged by combining the positional relationship of the shoulders, head, eyes, and mouth, adapting to different installation environments.

Benefits of technology

It improves the accuracy and stability of gesture recognition, avoids misrecognition caused by installation status, enhances the versatility and practicality of the system, simplifies user operation, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137487A_ABST
    Figure CN123137487A_ABST
Patent Text Reader

Abstract

The application provides a gesture control method and device, electronic equipment and storage medium, wherein the method comprises: collecting image data, determining an installation state according to a feature of a human body in the image data, the installation state being an installation state of a sensor for shooting the image data; adjusting the image data according to the installation state; identifying a gesture action in the adjusted image data, and determining an instruction corresponding to the gesture action. The installation state of the sensor is determined according to the feature of the human body in the image data, and the video shot is adjusted according to the installation state, so as to realize the identification of the camera state, and the adjustment of the image data based on the camera state. The gesture of the human body can be accurately identified according to the image data, the gesture in the collected video is prevented from being incorrectly identified, the accuracy and stability of the gesture identification are improved, and the application can be applied to intelligent cockpit, smart home, virtual reality and other scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and more particularly to a gesture control method, device, electronic device, and storage medium. Background Technology

[0002] In today's field of intelligent interaction, gesture control technology, as an intuitive and convenient interaction method, has received widespread attention and application. Traditional gesture control methods typically rely on specific sensors or devices to capture the user's hand gestures and translate them into corresponding commands. However, existing gesture control technologies cannot adapt to different camera installation methods, leading to reduced accuracy in gesture recognition. Summary of the Invention

[0003] This application aims to at least partially address one of the technical problems in the related art.

[0004] Therefore, this application proposes a method, apparatus, electronic device, and storage medium.

[0005] One embodiment of this application proposes a gesture control method, including:

[0006] The sensor acquires image data and determines the installation status based on the characteristics of the human body in the image data. The installation status refers to the installation status of the sensor that acquires the image data, and the installation status includes the upright installation status and the reverse installation status.

[0007] The image data is adjusted according to the installation status;

[0008] Identify hand gestures in the adjusted image data and determine the corresponding instructions for those gestures.

[0009] Optionally, determining the installation status based on human features in the image data includes:

[0010] Determine whether there is a target region related to the human body in the image data;

[0011] The installation status is determined based on the positional relationship between the existing target areas.

[0012] Optionally, determining whether a target region related to the human body exists in the image data includes:

[0013] The video frames from the image data are input into a large model to determine at least one of the following regions: head region, eye region, mouth region, and shoulder region;

[0014] In response to the presence of the target region in the video frame, the video frame is determined as the target video frame.

[0015] Optionally, the method further includes:

[0016] In response to the absence of the target region in the video frame, existing installation status information is obtained;

[0017] If no existing installation status information exists, other video frames are input into the large model according to the time sequence to determine the target area; or, if existing installation status information exists, the installation status is determined based on the existing installation status information.

[0018] Optionally, determining the installation state based on the positional relationship between the existing target areas includes:

[0019] If the target video frame contains a shoulder region and a head region, the installation state is determined based on the positional relationship between the shoulder region and the head region.

[0020] If the target video frame does not contain a shoulder region but does contain a head region, the installation state is determined based on the positional relationship between the eye region and the mouth region in the head region. The installation state includes a forward installation state and a reverse installation state.

[0021] Optionally, determining the installation state based on the positional relationship between the shoulder region and the head region includes any one of the following:

[0022] If the longitudinal coordinates of the feature points in the shoulder region are lower than the longitudinal coordinates of the feature points in the head region, the installation state is determined to be the correct installation state.

[0023] If the longitudinal coordinates of the feature points in the shoulder region are higher than the longitudinal coordinates of the feature points in the head region, the installation state is determined to be the reverse installation state.

[0024] Optionally, determining the installation state based on the positional relationship between the eye region and the mouth region in the head region includes:

[0025] If the longitudinal coordinates of the feature points in the mouth region are lower than the longitudinal coordinates of the feature points in the eye region, the installation state is determined to be the correct installation state.

[0026] If the longitudinal coordinates of the feature points in the mouth region are higher than the longitudinal coordinates of the feature points in the eye region, the installation state is determined to be the reverse installation state.

[0027] Optionally, adjusting the image data according to the installation status includes:

[0028] When the installation state is reversed, the image data is rotated.

[0029] Another embodiment of this application proposes a gesture control device, including:

[0030] The installation status determination module is used to collect image data and determine the installation status based on the characteristics of the human body in the image data. The installation status is the installation status of the sensor that collects the image data, and the installation status includes the upright installation status and the reverse installation status.

[0031] A processing module is used to adjust the image data according to the installation status;

[0032] The control module is used to identify hand gestures in the adjusted image data and determine the corresponding instructions for the hand gestures.

[0033] Another embodiment of this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the method described in the foregoing aspect.

[0034] Another embodiment of this application proposes a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the foregoing aspect.

[0035] Another embodiment of this application proposes a chip including processing circuitry configured to perform the method described in one aspect above.

[0036] Another embodiment of this application proposes a computer program product that, when executed by a processor, implements the method described in the foregoing aspect.

[0037] The gesture control method, device, electronic device, chip, and storage medium proposed in this application determine the sensor's installation status by using human features in image data and adjust the captured video according to the installation status. This enables the recognition of the camera's status and the adjustment of image data based on the camera's status. It can accurately recognize human gestures based on image data, avoid misrecognizing gestures in the captured video, and improve the accuracy and stability of gesture recognition. It can be applied to scenarios such as smart cockpits, smart homes, and smart industries.

[0038] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0039] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0040] Figure 1 This is a flowchart illustrating a gesture control method provided in an embodiment of this application.

[0041] Figure 2 This is a flowchart illustrating a gesture control method provided in an embodiment of this application.

[0042] Figure 3 This is a schematic diagram of the structure of a gesture control device provided in an embodiment of this application;

[0043] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0044] Figure 5 This is a schematic diagram of the structure of a chip proposed in an embodiment of this application. Detailed Implementation

[0045] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0046] In today's field of intelligent interaction, gesture control technology, as an intuitive and convenient interaction method, has received widespread attention and application. Traditional gesture control methods typically rely on specific sensors or devices, such as depth cameras and inertial sensors, to capture the user's hand gestures and translate them into corresponding commands. However, existing gesture control technologies have some limitations in practical applications.

[0047] Current gesture recognition technologies often require sensors to have specific installation positions and orientations to ensure accurate capture of gestures. If the sensor's installation state changes, such as being installed upside down or at an angle, the accuracy and reliability of gesture recognition will be severely affected.

[0048] Furthermore, some existing gesture control methods may require additional calibration steps or equipment to determine the sensor installation status, which not only increases the complexity and cost of the system but also reduces user convenience. Therefore, how to automatically and accurately determine the sensor installation status without relying on additional calibration, and effectively adjust the image data accordingly to improve the accuracy and robustness of gesture recognition, has become a pressing problem in current gesture control technology. The gesture control method proposed in this application addresses the shortcomings of the existing technology by providing a method that can automatically determine the sensor installation status based on human features in image data and adjust the image data accordingly to achieve accurate gesture recognition.

[0049] The gesture control method, apparatus, electronic device, chip, and storage medium of this application are described below with reference to the accompanying drawings.

[0050] Figure 1 This is a schematic diagram of a gesture control process provided in an embodiment of this application.

[0051] As one implementation, the gesture control method of this application embodiment can be configured in a gesture control device, which can be applied to any electronic device so that the electronic device can perform gesture control functions.

[0052] Among them, electronic devices can be any device with computing capabilities, such as mobile terminals, which can be hardware devices with various operating systems, touch screens and / or displays, such as mobile phones, tablets, personal digital assistants, wearable devices, etc.

[0053] As another implementation, the gesture control method of this application embodiment can also be executed by a chip with processing capabilities. The chip includes an image signal processing chip (ISP), a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a field-programmable gate array (FPGA), a system on a chip (SOC), a reduced instruction set computer (RISC), etc., which will not be listed here.

[0054] It should be noted that all data collection operations related to users in this application are conducted with the user's authorization and in strict compliance with relevant laws and regulations such as privacy and security.

[0055] like Figure 1 As shown, the method may include the following steps:

[0056] Step 101: Acquire image data and determine the installation status based on the characteristics of the human body in the image data. The installation status is the installation status of the sensor that acquires the image data, and the installation status includes the upright installation status and the reverse installation status.

[0057] Step 102: Adjust the image data according to the installation status;

[0058] Step 103: Identify the hand gestures in the adjusted image data and determine the instructions corresponding to the hand gestures.

[0059] In this embodiment, to recognize user gestures and determine user intent based on those gestures for corresponding operations, visual sensors are placed around the area where the user appears to collect image data for analysis. Visual sensors, such as IPC cameras (network cameras), are a new type of camera device that combines traditional camera technology with network technology. They can transmit captured video images over a network to another part of the world, allowing remote users to monitor the video through a standard web browser. IPC cameras typically consist of a lens, image sensor, sound sensor, signal processor, A / D converter, encoding chip, main control chip, network and control interfaces, etc.

[0060] During camera installation, different application scenarios have different shooting requirements, leading to different installation methods. Cameras can be installed upright or inverted, the main differences being in shooting effect and applicable scenarios: 1. Shooting Effect: Generally, upright camera installation provides better image clarity and stability, making the video more realistic and natural. Inverted installation, however, can produce a shaky effect, potentially resulting in a blurry or distorted image. 2. Applicable Scenarios: Depending on the usage needs, cameras are available in upright and inverted configurations. For example, upright installation is more suitable for live streaming meetings or recording important video files; inverted installation is more suitable for recording moving or shaky footage. 3. Shooting Area: Different cameras have different rotation angles, resulting in different fields of view. Depending on the camera's installation location and the area the user wants to capture, combined with the camera's rotation angle, the installation method needs to be adjusted to ensure the camera can capture the desired area. For example, the camera can be adjusted to a tilt angle between 0° and 180°. If you want to capture the road surface as much as possible when installing the camera on a street lamp, you need to install it in reverse; if you want to capture aerial images, you need to install it in the correct orientation.

[0061] The installation status is determined by analyzing captured image data, specifically by analyzing human-related features. This allows for dynamic identification of the installation status, and corresponding adjustments are made to the image data to correct the video feed. Subsequent gesture analysis uses the adjusted image data to determine the gestures of the person in the frame. Based on these gestures, corresponding actions are executed, accurately understanding the user's intent and performing the correct actions. This improves the accuracy of user response and enhances the user experience.

[0062] In one possible embodiment, a camera is installed inside the vehicle, aimed at the area where the passenger is located, to capture the passenger's hand gestures, identify the corresponding operations, and execute the operations. The passenger can then control the vehicle's infotainment system to perform specific operations, such as adjusting the volume or changing the driving mode, without operating the in-vehicle touchscreen or buttons.

[0063] In one possible embodiment, a camera is installed in the home, pointed at the user's area, to capture the user's hand gestures, identify the corresponding operations, and execute them. Passengers can then control the home appliances to perform specific operations, such as turning the air conditioner on and off, adjusting the temperature, and changing the operating mode, without operating the touch screens or buttons on the appliances themselves.

[0064] By acquiring image data and determining the sensor's installation status based on human characteristics, the system adjusts the image data accordingly before recognizing hand gestures to determine commands. This allows the entire gesture control method to adapt to different sensor installation states without requiring manual intervention to adjust the sensor or perform complex preprocessing of the image data, greatly enhancing the system's versatility and practicality in various installation environments. By considering the impact of sensor installation status on image data and making targeted adjustments before gesture recognition, the accuracy of gesture recognition is effectively improved, avoiding misrecognition or recognition difficulties caused by installation status.

[0065] Optionally, determining the installation status based on human features in the image data includes:

[0066] Determine whether there is a target region related to the human body in the image data;

[0067] The installation status is determined based on the positional relationship between the existing target areas.

[0068] In this embodiment, the installation status is analyzed based on human-related characteristics. First, it is necessary to determine whether there is a human-related target area in the image data. The target area is a region in the human body. Since the relative positions of various organs in the human body are determined, if the relative positions of various organs are normal, then it can be determined that the image in the image data is upright, and the camera installation status is upright. If the relative positions between various organs are not normal, then it can be determined that the image in the image data is upside down, and the camera installation status is reversed.

[0069] In image data, an image coordinate system is established to accurately describe the position of each pixel in the image. The image coordinate system is a two-dimensional rectangular coordinate system. The origin is generally located at the center of the image. The x-axis direction is from the lower left corner to the lower right corner of the image, and the y-axis direction is from the lower left corner to the upper left corner of the image.

[0070] Generally, the relative positional relationships between human-related target regions in an image are definite. For example, in a normally captured image, the eye region is vertically higher than the mouth region. This is represented in the image coordinate system by the fact that the ordinates of the pixels in the eye region are all greater than the ordinates of the pixels in the mouth region; hence, the eye region is said to be higher than the mouth region. Conversely, the positional relationships between human-related target regions can be determined based on the ordinates of the pixels within the target regions in the image coordinate system. For instance, determining the relative height of target regions can be done by considering the magnitude of their ordinates. If the ordinates of all pixels in the first target region are greater than the ordinates of all pixels in the second target region, then the first target region is determined to be vertically higher than the second target region.

[0071] First, determine whether there is a target area related to the human body in the image data, and then determine the installation status based on the positional relationship between the target areas. This step-by-step judgment method is more accurate and reliable, and can accurately identify various installation statuses of the sensor, providing an accurate basis for subsequent image data adjustments, and further improving the accuracy and stability of the entire gesture control method.

[0072] Optionally, determining whether a target region related to the human body exists in the image data includes:

[0073] The video frames from the image data are input into a large model to determine at least one of the following regions: head region, eye region, mouth region, and shoulder region;

[0074] In response to the presence of the target region in the video frame, the video frame is determined as the target video frame.

[0075] In this embodiment, a pre-trained large model is used to identify target regions in image data. This large model contains multi-layered neural networks used to extract features from input video frames to obtain feature vectors, and then downsamples these feature vectors to output the target region. Optionally, the target region is a rectangular detection box labeled with a corresponding type, such as head, eyes, mouth, or shoulder.

[0076] However, the area captured by the camera may not contain any people; that is, the person is not within the camera's field of view. In this case, the camera's installation status cannot be determined based on the target area of ​​the person. The installation status can only be determined based on the video frames of the identified target area.

[0077] By processing video frames using large models, target regions related to the human body, such as the head, eyes, mouth, and shoulders, can be quickly and accurately identified. Compared to traditional target detection methods, large models have stronger feature extraction and generalization capabilities, enabling more efficient processing of complex image data and improving the speed and accuracy of target region detection. This provides strong support for subsequent determination of the sensor's installation status. By identifying video frames containing target regions as target video frames, key frames suitable for judging the sensor's installation status can be quickly selected, reducing data processing volume and improving the overall efficiency of the method.

[0078] Optionally, the method further includes:

[0079] In response to the absence of the target region in the video frame, existing installation status information is obtained;

[0080] If no existing installation status information exists, other video frames are input into the large model according to the time sequence to determine the target area; or, if existing installation status information exists, the installation status is determined based on the existing installation status information.

[0081] In this embodiment, if the target area of ​​a human body is not present in the video frame, the storage space can be retrieved to determine if previously identified installation status information exists. This installation status information includes the installation status and the time point at which the installation status was determined. If no human body has ever appeared in the previous image data, then there is no installation status information. In this case, the target area needs to be identified sequentially from video frames in the image data until a human-related target area appears, and the installation status is determined based on the target area. If the installation status has already been identified, then the camera's installation status can be determined based on the stored installation status information.

[0082] When the target region is not found in a video frame, the existing installation status information is retrieved first. Only if no existing information is found will other video frames be input for determination. This avoids the problem of the method failing to continue execution due to the inability to find the target region for an extended period, thus enhancing the robustness and stability of the system. Simultaneously, when existing installation status information exists, it can be directly used to determine the installation status, eliminating the need to process a large number of video frames each time, further improving the efficiency of the method.

[0083] Optionally, determining the installation state based on the positional relationship between the existing target areas includes:

[0084] If the target video frame contains a shoulder region and a head region, the installation state is determined based on the positional relationship between the shoulder region and the head region.

[0085] If the target video frame does not contain a shoulder region but does contain a head region, the installation state is determined based on the positional relationship between the eye region and the mouth region in the head region. The installation state includes a forward installation state and a reverse installation state.

[0086] In this embodiment, the installation status is determined by analyzing the head, eye, mouth, and shoulder regions of the human body. The head and shoulder regions are relatively large and easy to identify, and their vertical positions differ significantly. Therefore, the installation status is primarily determined based on the head and shoulder regions. However, if the human body is partially obscured, the shoulder region may be blocked by surrounding objects, resulting in the absence of the shoulder region in the image data. In such cases, the installation status can be determined based on the positional relationship between the eye and mouth regions within the head region.

[0087] In one possible embodiment, the installation state is determined based on the coordinates of the pixels in the shoulder and head regions within the image coordinate system. In a normally captured image, the shoulder region is lower than the head region, which is reflected in the image coordinate system as the ordinate of the shoulder region pixels being lower than the ordinate of the head region pixels. Therefore, the positional relationship between the shoulder and head regions can be determined based on the relationship between the ordinates of the pixels in the shoulder and head regions.

[0088] In one possible embodiment, the installation state is determined based on the coordinates of pixels in the shoulder and head regions within the image coordinate system. In a normally captured image, the mouth region is lower than the eye region, which is reflected in the image coordinate system as the ordinate of the mouth region pixels being lower than the ordinate of the eye region pixels. Therefore, the positional relationship between the eye and mouth regions can be determined based on the relationship between the ordinates of the pixels in the mouth and eye regions.

[0089] The method identifies the installation status of various common sensors by utilizing the positional relationship between different target regions, specifically for cases where the target video frame contains both shoulder and head regions, and cases where it contains the head region but not the shoulder region. This enables the method to adapt to a wider range of installation scenarios and meet the needs of different users.

[0090] Optionally, determining the installation state based on the positional relationship between the shoulder region and the head region includes any one of the following:

[0091] If the longitudinal coordinates of the feature points in the shoulder region are lower than the longitudinal coordinates of the feature points in the head region, the installation state is determined to be the correct installation state.

[0092] If the longitudinal coordinates of the feature points in the shoulder region are higher than the longitudinal coordinates of the feature points in the head region, the installation state is determined to be the reverse installation state.

[0093] In this embodiment, in a normally captured image, the head area is generally higher than the shoulder area. Feature points are extracted from the shoulder and head areas, and by comparing the magnitude of the vertical coordinate (y-coordinate) of the feature points in the image coordinate system, it can be determined whether the image is upright or inverted.

[0094] Optionally, the feature point is the center point of the shoulder region and the head region. If the shoulder region and the head region are rectangular regions, then the diagonals of the shoulder region and the head region are obtained, and the intersection of the diagonals of each region is the center point.

[0095] Optionally, the feature points are corner points in the shoulder and head regions. Corner points are extreme points, i.e., points with particularly prominent attributes in a certain aspect. They are isolated points or the endpoints of line segments where the intensity of certain attributes is the greatest or least. The point with the largest vertical coordinate in the shoulder and head regions is selected as the corner point.

[0096] In images captured by a properly installed camera, the vertical coordinates of feature points in the shoulder region are lower than those in the head region. Therefore, during the determination of the installation status, the vertical coordinates of feature points in the shoulder region and the head region are compared and analyzed. If the vertical coordinates of feature points in the shoulder region are lower than those in the head region, the image is considered upright, and the camera is installed correctly. If the vertical coordinates of feature points in the shoulder region are higher than those in the head region, the image is considered inverted, and the camera is installed backwards.

[0097] By comparing the longitudinal coordinates of the center points of the shoulder and head regions, the criteria for determining the correct and incorrect mounting states are clearly provided. This method is simple, intuitive, and easy to implement, and can quickly and accurately determine whether the sensor is installed in the correct orientation. This provides accurate judgment results for subsequent targeted rotation adjustments to the image data, thereby ensuring the accuracy of gesture recognition.

[0098] Optionally, determining the installation state based on the positional relationship between the eye region and the mouth region in the head region includes:

[0099] If the longitudinal coordinates of the feature points in the mouth region are lower than the longitudinal coordinates of the feature points in the eye region, the installation state is determined to be the correct installation state.

[0100] If the longitudinal coordinates of the feature points in the mouth region are higher than the longitudinal coordinates of the feature points in the eye region, the installation state is determined to be the reverse installation state.

[0101] In this embodiment, in a normally captured image, the position of the human eye area is generally higher than the position of the mouth area. Feature points are extracted from the mouth area and the eye area. By comparing the size of the vertical coordinate (y coordinate) of the feature points in the image coordinate system, it can be determined whether the image is upright or inverted.

[0102] Optionally, the feature point is the center point of the mouth region and the eye region. If the mouth region and the eye region are rectangular regions, then the diagonals of the mouth region and the eye region are obtained, and the intersection of the diagonals of each region is the center point.

[0103] Optionally, the feature points are the corner points of the mouth and eye regions. Corner points are extreme points, that is, points with particularly prominent attributes in a certain aspect. They are isolated points or the endpoints of line segments where the intensity of certain attributes is the greatest or least. The point with the largest vertical coordinate in the mouth and eye regions is selected as the corner point.

[0104] In images captured by a properly installed camera, the vertical coordinates of feature points in the mouth region are lower than those in the eye region. Therefore, during the determination of the installation status, the vertical coordinates of feature points in the mouth and eye regions are compared and analyzed. If the vertical coordinates of feature points in the mouth region are lower than those in the eye region, the image is considered upright, and the camera is installed correctly. If the vertical coordinates of feature points in the mouth region are higher than those in the eye region, the image is considered inverted, and the camera is installed backwards.

[0105] When the target video frame does not include the shoulder area, the positional relationship between the eye and mouth areas in the head area is used to determine the installation status as an auxiliary judgment method. This further improves the ability to identify the sensor installation status and ensures that the installation status can be accurately determined even in some special scenarios, thereby improving the reliability and comprehensiveness of the entire method.

[0106] Optionally, adjusting the image data according to the installation status includes:

[0107] When the installation state is reversed, the image data is rotated.

[0108] In this embodiment, when the camera is mounted upside down, the captured image data is reversed horizontally and vertically. If the image data is not processed to transform it into a properly captured video, the user's gestures will be incorrectly interpreted during gesture recognition, leading to incorrect operations. For example, if a user's gesture is captured as a rightward wave in a properly mounted camera, the same gesture captured by the upside-down camera will be recognized as a leftward wave, resulting in a mismatch between the user's perceived intention and their actual intent. Therefore, it is necessary to rotate each video frame in the image data to restore it to its normal state. Optionally, the rotation angle is 180°.

[0109] Based on the determined installation state as reversed, the image data is rotated to ensure that the adjusted image data meets the requirements of normal gesture recognition. This guarantees the effectiveness and consistency of the gesture recognition algorithm under different installation states, improves the accuracy and stability of gesture control, and provides a good data foundation for subsequent gesture recognition.

[0110] Based on the above embodiments, Figure 2 A flowchart illustrating another gesture control method provided in this application embodiment is shown below. Figure 2 As shown, this method is applied to gesture control of a vehicle, and includes the following steps:

[0111] Step 201: The camera is installed in the vehicle. If the camera has not yet been bound to the vehicle's central gateway, the binding process is performed to establish a connection with the vehicle's infotainment system so that the captured image data can be transmitted to the vehicle's infotainment system for processing.

[0112] Step 202: After binding is completed, the camera starts the data acquisition model to capture the image of the shooting area and obtain image data;

[0113] Step 203: Obtain the latest video frame from the image data;

[0114] Step 204: Detect whether there is a human figure in the video frame. If there is no human figure, proceed to step 205. If there is a human figure, proceed to step 206.

[0115] Step 205: Read the forward / reverse marker of the human figure obtained in the last identification. This marker indicates the installation status of the camera. If the forward / reverse marker of the human figure is stored in the memory, then proceed to step 207. If the forward / reverse marker of the human figure is not stored in the memory, then repeat step 203.

[0116] Step 206: If a human figure exists, determine whether the camera is installed upright or reversed based on the target area within the human figure, and save the upright / reverse flag.

[0117] Step 207: Input the forward / reverse flag into the reverse processing device to determine the processing of the image data. If it is reversed, proceed to step 208; if it is forward, proceed to step 209.

[0118] Step 208: Rotate the image in the image data by 180 degrees to make the image consistent with the normally captured image;

[0119] Step 209: Perform gesture recognition detection based on image data. If a gesture is detected, notify the application module and send the corresponding operation to the vehicle central gateway. The vehicle will then perform the corresponding operation. If no gesture is detected, return to step 203.

[0120] To implement the above embodiments, this application also proposes a gesture control device.

[0121] Figure 3This is a schematic diagram of the structure of a gesture control device provided in an embodiment of this application.

[0122] like Figure 3 As shown, the device may include:

[0123] Installation status determination module 310 is used to collect image data and determine the installation status based on the characteristics of the human body in the image data. The installation status is the installation status of the sensor that collects the image data, and the installation status includes upright installation status and reverse installation status.

[0124] Processing module 320 is used to adjust the image data according to the installation status;

[0125] The control module 330 is used to identify hand gestures in the adjusted image data and determine the instructions corresponding to the hand gestures.

[0126] It should be noted that the foregoing explanation of the method embodiments also applies to the apparatus of this embodiment, and will not be repeated here.

[0127] To implement the above embodiments, this application also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in the foregoing method embodiments.

[0128] To implement the above embodiments, this application also proposes a computer program product having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in the foregoing method embodiments.

[0129] To implement the above embodiments, this application also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the method described in the foregoing method embodiments.

[0130] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. For example, the electronic device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0131] Reference Figure 4 The electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input / output (I / O) interface 812, sensor component 814, and communication component 816.

[0132] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0133] Memory 804 is configured to store various types of data to support the operation of electronic device 800. Examples of this data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0134] Power component 806 provides power to various components of electronic device 800. Power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.

[0135] Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0136] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0137] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0138] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 can detect the on / off state of electronic device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or a component of electronic device 800, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0139] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as WiFi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0140] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0141] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0142] To implement the above embodiments, this application also proposes a chip, including: the chip includes a processing circuit configured to perform the methods provided in the foregoing embodiments.

[0143] Figure 5 This is a schematic diagram of the structure of a chip according to an embodiment of this application. See also... Figure 5 The diagram shown is a schematic representation of the structure of chip 1100, but it is not limited to this.

[0144] Chip 1100 includes processing circuitry 1101, which is configured to perform any of the above methods.

[0145] In some embodiments, chip 1100 further includes one or more interface circuits 1102. Optionally, the interface circuit 1102 is connected to memory 1103, and the interface circuit 1102 can be used to receive signals from memory 1103 or other devices, and the interface circuit 1102 can be used to send signals to memory 1103 or other devices. For example, the interface circuit 1102 can read instructions stored in memory 1103 and send the instructions to processing circuit 1101.

[0146] In some embodiments, the interface circuit 1102 performs at least one of the communication steps such as sending and / or receiving in the above method, while the processing circuit 1101 performs other steps.

[0147] In some embodiments, the terms interface circuit, interface, transceiver pin, transceiver, etc., can be used interchangeably.

[0148] In some embodiments, chip 1100 further includes one or more memories 1103 for storing instructions. Optionally, all or part of the memories 1103 may be located outside of chip 1100.

[0149] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0150] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0151] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0152] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0153] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0154] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0155] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0156] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. A gesture control method, characterized in that, include: The sensor acquires image data and determines the installation status based on the characteristics of the human body in the image data. The installation status refers to the installation status of the sensor that acquires the image data, and the installation status includes the upright installation status and the reverse installation status. The image data is adjusted according to the installation status; Identify hand gestures in the adjusted image data and determine the corresponding instructions for those gestures.

2. The method according to claim 1, characterized in that, Determining the installation status based on the human body features in the image data includes: Determine whether there is a target region related to the human body in the image data; The installation status is determined based on the positional relationship between the existing target areas.

3. The method according to claim 2, characterized in that, Determining whether a target region related to the human body exists in the image data includes: The video frames from the image data are input into a large model to determine at least one of the following regions: head region, eye region, mouth region, and shoulder region; In response to the presence of the target region in the video frame, the video frame is determined as the target video frame.

4. The method according to claim 3, characterized in that, The method further includes: In response to the absence of the target region in the video frame, existing installation status information is obtained; If no existing installation status information exists, other video frames are input into the large model according to the time sequence to determine the target area; or, if existing installation status information exists, the installation status is determined based on the existing installation status information.

5. The method according to claim 3, characterized in that, Determining the installation status based on the positional relationship between the existing target areas includes: If the target video frame contains a shoulder region and a head region, the installation state is determined based on the positional relationship between the shoulder region and the head region. If the target video frame does not contain a shoulder region but does contain a head region, the installation state is determined based on the positional relationship between the eye region and the mouth region within the head region.

6. The method according to claim 5, characterized in that, Determining the installation state based on the positional relationship between the shoulder region and the head region includes any one of the following: If the longitudinal coordinates of the feature points in the shoulder region are lower than the longitudinal coordinates of the feature points in the head region, the installation state is determined to be the correct installation state. If the longitudinal coordinates of the feature points in the shoulder region are higher than the longitudinal coordinates of the feature points in the head region, the installation state is determined to be an inverted installation state.

7. The method according to claim 5, characterized in that, Determining the installation state based on the positional relationship between the eye region and the mouth region in the head region includes: If the longitudinal coordinates of the feature points in the mouth region are lower than the longitudinal coordinates of the feature points in the eye region, the installation state is determined to be the correct installation state. If the longitudinal coordinates of the feature points in the mouth region are higher than the longitudinal coordinates of the feature points in the eye region, the installation state is determined to be the reverse installation state.

8. The method according to any one of claims 4, 6, and 7, characterized in that, The step of adjusting the image data according to the installation status includes: When the installation state is reversed, the image data is rotated.

9. A gesture control device, characterized in that, include: The installation status determination module is used to collect image data and determine the installation status based on the characteristics of the human body in the image data. The installation status is the installation status of the sensor that collects the image data, and the installation status includes the upright installation status and the reverse installation status. A processing module is used to adjust the image data according to the installation status; The control module is used to identify hand gestures in the adjusted image data and determine the corresponding instructions for the hand gestures.

10. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the method as described in any one of claims 1-8.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-8.

12. A chip, characterized in that, The chip includes processing circuitry configured to perform the method as described in any one of claims 1-8.

13. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, implements the method of any one of claims 1-8.