Air gesture recognition method, electronic device, and storage medium

Through a staged gesture recognition method, using the switching of low-resolution and high-resolution images, combined with low-power memory and DDR memory, the problem of high power consumption in the gesture recognition function of electronic devices is solved, improving recognition accuracy and user experience.

WO2024179084A1PCT designated stage expired Publication Date: 2024-09-06HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/134794
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2023-11-28
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When existing electronic devices turn on the gesture recognition function, frequent detection results in a large amount of data processing, resulting in high power consumption.

Method used

By adopting a staged gesture recognition method in electronic devices, a low-resolution image is first output for preliminary detection. When the preset trigger conditions are met, a high-resolution image is output for specific recognition, using low-power memory and DDR. The memory caches data to reduce power consumption and memory usage.

Benefits of technology

It is possible to reduce the power consumption and memory space during the gesture recognition process while ensuring the accuracy of gesture recognition, and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023134794_06092024_PF_FP
    Figure CN2023134794_06092024_PF_FP
Patent Text Reader

Abstract

The present application relates to the technical field of image processing. Provided are an air gesture recognition method, an electronic device, and a storage medium. The method comprises: a camera of an electronic device enabling an AON function, and a front-facing camera collecting images in real time; firstly, outputting a plurality of consecutive image frames which have a relatively low resolution, and performing data caching by using a low-power TCM, so as to perform first-stage detection; when it is detected that a preset gesture trigger condition is met, then outputting a plurality of consecutive image frames which have a relatively high resolution, and performing second-stage specific-gesture recognition by using the low-power TCM and a normal-power DDR memory; and after a specific gesture is recognized, giving a response according to a preset policy corresponding to a gesture recognition result. In the present application, gesture detection is performed in stages, different image resolutions are used in different stages, and an operating memory is switched, such that the solution of the present application can ensure the accuracy of gesture recognition, and can also effectively reduce the power consumption and the memory space that are required during gesture recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Air gesture recognition method, electronic device, and storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on February 27, 2023, with application number 202310227031.X and application name “Air gesture recognition method, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of image technology, and in particular to a method for air gesture recognition, an electronic device, and a storage medium. Background Art

[0003] Currently, smart electronic devices such as mobile phones can use the always-on camera (AON) function, which enables functions such as controlling the screen through air gestures. Specifically, when the mobile phone uses the AON function, the front camera of the mobile phone is always in the on state, which can capture images in real time. The mobile phone uses image analysis to perform gesture recognition and can respond to user gestures to control the screen, without the user having to touch the phone.

[0004] For example, electronic devices can recognize various user gestures, such as changing from an outstretched palm to a clenched fist (a gripping gesture), which indicates a screenshot of the electronic device's display interface. Upon recognizing this gripping gesture, the electronic device automatically takes the screenshot, allowing users to complete human-computer interaction without touching the electronic device, greatly improving operational convenience.

[0005] Currently, when gesture recognition is enabled on electronic devices, they continuously capture multiple frames of images through their cameras and analyze them for gesture recognition, generating a significant amount of data. This frequent gesture recognition process generates a large amount of data to process, leading to high power consumption.

[0006] Summary of the Invention

[0007] The present application provides an air gesture recognition method, electronic device and storage medium, which solves the problem that frequent detection in the gesture recognition process brings about a large amount of data to be processed, resulting in high power consumption.

[0008] To achieve the above objectives, this application adopts the following technical solutions:

[0009] In the first aspect, the present application provides a method for air gesture recognition, which includes: an electronic device turns on the air gesture function, and after the air gesture function is turned on, the camera module of the electronic device is in a normally-on state; multiple frames of first images of a first size specification are output through the camera module, and the multiple frames of first images are stored in a first memory; when the analysis results of the multiple frames of first images meet the preset gesture trigger conditions, multiple frames of second images of a second size specification are output through the camera module, and the multiple frames of second images are stored in the first memory and the second memory; gesture recognition is performed according to the multiple frames of second images to obtain gesture recognition results; a response is made according to a preset strategy corresponding to the gesture recognition result; wherein, the resolution corresponding to the first size specification is lower than the resolution corresponding to the second size specification; when storing the same image, the power consumption caused by the first memory is less than the power consumption caused by the second memory, and the power consumption caused by the first memory and the second memory together is less than the power consumption caused by the second memory.

[0010] Through the air gesture recognition method provided by the embodiment of the present application, the electronic device camera turns on the air gesture function, and the front camera collects images in real time; first, continuous multi-frame images with lower resolution are output, and low-power memory (such as TCM) is used for data caching to perform the first stage of detection; when it is detected that the preset gesture trigger conditions are met, continuous multi-frame images with higher resolution are output again, and low-power memory and normal power memory (such as DDR) are used to perform the second stage of specific gesture recognition; after the specific gesture is recognized, a response is made according to the preset strategy corresponding to the gesture recognition result. The present application performs gesture detection in stages, applies different image resolutions in different stages, and switches the running memory. Therefore, the present application solution can not only ensure the accuracy of gesture recognition, but also effectively reduce the power consumption and memory space required during the gesture recognition process.

[0011] It should be noted that when the camera module of the electronic device is in a normally-on state, the camera module captures images of the user's gesture operations to generate an image frame stream. The camera module can output image frame streams of different resolutions as required. The preset gesture trigger condition includes the presence of hand features and an initial gesture in the multiple first image frames.

[0012] In some implementations, the method further includes: determining whether the analysis results of the multiple frames of first images meet a preset gesture trigger condition. Determining whether the analysis results of the multiple frames of first images meet the preset gesture trigger condition includes: acquiring N consecutive image frames from the multiple frames of first images according to a preset first sampling period to analyze whether there are hand features in the multiple frames of first images; after determining that there are hand features in the multiple frames of first images, acquiring M consecutive image frames from the multiple frames of first images according to a preset second sampling period to analyze whether there is a starting gesture in the multiple frames of first images; if it is determined S consecutive times that there is a starting gesture in the multiple frames of first images and the starting gesture state changes, then determining that the analysis results of the multiple frames of first images meet the preset gesture trigger condition.

[0013] Through the above scheme, by judging specific gesture trigger conditions, images with user gesture characteristics can be accurately screened out to further recognize specific gestures based on the images, thereby improving the accuracy of gesture recognition.

[0014] In some implementations, the above-mentioned gesture recognition based on multiple frames of second images to obtain a gesture recognition result includes: obtaining continuous T-frame images from the multiple frames of second images according to a preset third sampling period to identify the specific gesture in the multiple frames of first images; identifying the specific gesture within a preset time length; when the specific gesture is determined to be one of the preset multiple gestures, generating a gesture recognition result based on the specific gesture.

[0015] In some implementations, responding according to a preset strategy corresponding to the gesture recognition result includes:

[0016] When the gesture recognition result is the first gesture and the corresponding first preset strategy is air screenshot, taking a screenshot of the screen display content of the electronic device according to the first preset strategy;

[0017] When the gesture recognition result is the second gesture and the corresponding second preset strategy is air sliding the screen, turning the page of the screen display content of the electronic device according to the second preset strategy;

[0018] When the gesture recognition result is the third gesture and the corresponding third preset strategy is answering the call over the air, when the electronic device receives the incoming call signal, the call is automatically answered according to the third preset strategy;

[0019] When the gesture recognition result is the third gesture and the corresponding fourth preset strategy is air payment, when the screen of the electronic device displays the desktop, it automatically jumps from the desktop to the interface containing the payment code according to the fourth preset strategy.

[0020] With this solution, the gesture recognition result is one of multiple preset gestures, with different gestures corresponding to different preset strategies. After the electronic device accurately recognizes a specific gesture, it infers the user's control intention based on the gesture and performs the corresponding action, thereby improving the interactive experience.

[0021] In some implementations, the first memory is a tightly coupled memory (TCM), and the second memory is a double data rate synchronous dynamic random access memory (DDR).

[0022] In some implementations, the second size is QVGA, corresponding to a resolution of 320 × 240, and the first size is QQVGA, corresponding to a resolution of 160 × 120. Specific resolutions can be determined based on actual usage requirements and are not limited in this embodiment.

[0023] In some implementations, the camera module is a front-facing camera.

[0024] In some implementations, the above method is applied to a system framework of an electronic device, and the system framework includes a first algorithm platform and a second algorithm platform; wherein the second algorithm platform is a framework provided by the native chip that supports the camera's always-on AON algorithm, and the first algorithm platform is an AON algorithm integration framework that supports multiple services created based on the second algorithm platform; the services supported by the first algorithm platform include air gesture services; and the services supported by the second algorithm platform include face unlocking screen services.

[0025] In some implementations, the above method further includes: analyzing the multiple frames of first images through the first algorithm platform; and determining whether the analysis results of the multiple frames of first images meet a preset gesture trigger condition through the first algorithm platform.

[0026] In some implementations, performing gesture recognition based on the multiple frames of the second image to obtain the gesture recognition result includes: performing gesture recognition based on the multiple frames of the second image using a first algorithm platform to obtain the gesture recognition result.

[0027] In some implementations, the system framework also includes intelligent perception applications.

[0028] The above-mentioned electronic device enables the air gesture function, including: the smart perception application receives the first operation of the user to enable the air gesture service, and the air gesture service is a service supported by the smart perception application; in response to the first operation, the smart perception application sends a first message to the first algorithm platform, and the first message is used to indicate subscription to the air gesture service; the first algorithm platform responds to the first message and subscribes to the air gesture service.

[0029] In some implementations, after subscribing to the air gesture service, the above method also includes: the first algorithm platform sends a second message to the camera module, and the second message is used to request the camera module to output the image according to the first size specification.

[0030] In some implementations, the above method also includes: after the first algorithm platform determines that the analysis results of multiple frames of the first image meet the preset gesture trigger condition, the first algorithm platform sends a third message to the camera module, and the third message is used to request the camera module to output the image according to the second size specification.

[0031] In some implementations, the above method also includes: after the first algorithm platform determines that the analysis results of multiple frames of the first image meet the preset gesture trigger condition, the first algorithm platform reports a fourth message to the smart perception application, and the fourth message is used to indicate that the first service supported by the smart perception application is triggered; the smart perception application responds to the fourth message and triggers the electronic device to display prompt information of the first service in a preset area of ​​the screen.

[0032] In some implementations, the prompt information of the first service includes a gesture animation, and the gesture animation is composed of multiple frames of first images and multiple frames of second images.

[0033] In some implementations, before responding according to a preset strategy corresponding to the gesture recognition result, the method further includes: the first algorithm platform reporting the gesture recognition result to the smart perception application.

[0034] The above-mentioned responding according to the preset strategy corresponding to the gesture recognition result includes: the intelligent perception application responding according to the preset strategy corresponding to the gesture recognition result.

[0035] In some implementations, the system framework further includes an intelligent perception interface, through which data is exchanged between the intelligent perception application and the first algorithm platform.

[0036] In some implementations, the system framework further includes a service management module, a distributor, an intelligent perception client, and a native platform client;

[0037] The above method also includes: when the analysis results of multiple frames of the first image meet the preset gesture trigger conditions, the business management module determines the processing task of the air gesture business, and sends the processing task of the air gesture business to the smart perception client through the distributor, and the smart perception client forwards the processing task of the air gesture business to the first algorithm platform.

[0038] In some implementations, the system framework further includes an algorithm library, which includes a first image processing algorithm and a second image processing algorithm.

[0039] The above-mentioned analyzing the multiple frames of first images by using the first algorithm platform includes: the first algorithm platform calls the first image processing algorithm in the algorithm library to perform image analysis on the multiple frames of first images.

[0040] The above-mentioned gesture recognition based on the multiple frames of second images includes: the first algorithm platform calls the second image processing algorithm in the algorithm library to perform image analysis on the multiple frames of second images.

[0041] The first image processing algorithm has lower requirements on image resolution than the second image processing algorithm.

[0042] In a second aspect, the present application provides an image processing device, comprising a unit for executing the method of the first aspect. The device may be configured to execute the method described in the first aspect. For a description of the units in the device, please refer to the description of the first aspect above and will not be repeated here for the sake of brevity.

[0043] The method described in the first aspect above can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a processing module or unit, a display module or unit, etc.

[0044] In a third aspect, the present application provides an electronic device comprising a processor, a computer program or instructions stored in the processor and a memory, wherein the processor is configured to execute the computer program or instructions so that the method in the first aspect is executed.

[0045] In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program (also referred to as instructions or code) for implementing the method in the first aspect. For example, when the computer program is executed by a computer, the computer can perform the method in the first aspect.

[0046] In a fifth aspect, the present application provides a chip comprising a processor. The processor is configured to read and execute a computer program stored in a memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip further comprises a memory, the memory being connected to the processor via a circuit or wire.

[0047] In a sixth aspect, the present application provides a chip system comprising a processor. The processor is configured to read and execute a computer program stored in a memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip system further comprises a memory, the memory being connected to the processor via a circuit or wire.

[0048] In a seventh aspect, the present application provides a computer program product, which includes a computer program (also referred to as instructions or codes). When the computer program is executed by an electronic device, the electronic device implements the method in the first aspect.

[0049] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] FIG1 is a schematic diagram of an application scenario of an AON camera provided in an embodiment of the present application;

[0051] FIG2 is a schematic diagram of a method for air gesture recognition provided by related art;

[0052] FIG3 is a schematic diagram of a method for air gesture recognition provided by an embodiment of the present application;

[0053] FIG4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0054] FIG5 is a schematic diagram of a software architecture used in an embodiment of the present application;

[0055] FIG6 is a timing diagram of the interaction between modules in the software architecture provided in an embodiment of the present application;

[0056] FIG7 is a schematic diagram of a flow chart of a method for air gesture recognition provided in an embodiment of the present application;

[0057] FIG8 is a schematic diagram of a software architecture for an air gesture recognition method according to an embodiment of the present application;

[0058] FIG9 is a timing diagram of the interaction between modules in the air gesture recognition method provided by an embodiment of the present application;

[0059] FIG10 is a schematic diagram of the functional configuration of the air gesture recognition method provided by an embodiment of the present application;

[0060] FIG11 is a schematic diagram of an interface of an air gesture recognition method provided in an embodiment of the present application when in use;

[0061] FIG12 is a flowchart of a method for air gesture recognition according to an embodiment of the present application;

[0062] FIG13 is a second flow chart of the method for air gesture recognition provided by an embodiment of the present application;

[0063] FIG14 shows a schematic diagram of an interface for an air screenshot scenario applied in an embodiment of the present application;

[0064] FIG15 shows a schematic diagram of an interface for an air sliding screen scenario applied in an embodiment of the present application;

[0065] FIG16 shows a schematic diagram of an interface for an air press-answer call scenario according to an embodiment of the present application;

[0066] Figure 17 shows an interface diagram of the air press-smart payment scenario applied in an embodiment of the present application. DETAILED DESCRIPTION

[0067] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0068] The term "and / or" as used herein describes an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. The symbol " / " as used herein indicates that the related objects are in an "or" relationship, for example, A / B means either A or B.

[0069] In the specification and claims herein, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. In the description of the embodiments of this application, unless otherwise specified, the meaning of "plurality" refers to two or more. For example, "multiple processing units" refers to two or more processing units, etc.; "multiple components" refers to two or more components, etc.

[0070] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0071] At present, smart electronic devices such as mobile phones can apply the AON function. The AON function allows the camera device (front camera) of the electronic device to be always active, which can realize the camera being always on with low power consumption, and can enable functions such as scanning codes, controlling the screen with air gestures, and smart off-screen display (always on display, AOD) to be completed faster.

[0072] Figure 1 shows a schematic diagram of the application scenario of the AON function. As shown in (a) of Figure 1, the mobile phone is in the screen-on state, the front camera of the mobile phone is always on, and the image is collected in real time. As shown in (b) of Figure 1, the mobile phone is in the screen-off state, the front camera of the mobile phone is always on, and the image is collected in real time. It should be noted that the air gesture control of the screen is implemented in the screen-on scenario, and the smart AOD is implemented in the screen-off scenario.

[0073] When a mobile phone uses the AON function, the front camera is always on, capturing images in real time. The phone analyzes these images for gesture recognition, responding to user gestures to control the screen without the user touching the phone. When gesture recognition is enabled, an electronic device continuously captures multiple frames of images through the front camera, which require continuous image analysis and gesture recognition. This generates a very large amount of data. Consequently, the frequent gesture recognition process generates a large amount of data to process, leading to higher power consumption.

[0074] For example, Figure 2 shows a schematic diagram of the gesture recognition process in the related art. As shown in Figure 2, in the bright screen scene, the front camera dynamically captures images and continuously detects and recognizes gestures based on the captured continuous multiple frames of images. This gesture recognition process has the following characteristics:

[0075] (1) The gesture recognition process includes hand feature detection, dynamic gesture recognition, and feature point matching.

[0076] (2) During the gesture recognition process, both dynamic and static memory use DDR memory. DDR memory is a type of memory with a high data transfer rate and a very large storage space, which will be described in detail below.

[0077] (3) The pathways and processing devices involved in the gesture recognition process include the pathways that implement the AON function and the digital signal processor (DSP).

[0078] (4) Larger images, such as 320×240 pixels or 640×480 pixels, are used in the gesture recognition process.

[0079] As can be seen from this, when performing gesture recognition in related technologies, the camera system, after capturing an image, outputs the image to the intelligent perception algorithm platform at a relatively high resolution, regardless of whether the image contains gesture features. Because this method requires gesture recognition for a large number of images, both those containing and those without gesture features, and the image resolution is fixed and relatively high, a large amount of image processing resources is required for image analysis, and a large amount of memory is also occupied for image storage. Therefore, the gesture recognition process in related technologies consumes very high power and memory. In other words, during the gesture recognition process, the data volume is very large due to the frequent detection, resulting in high power consumption.

[0080] In view of this, the embodiments of the present application provide a method and electronic device for air gesture recognition. By improving the underlying system of the electronic device, a new Honor Intelligent Always On Camera (Intelligent Perception) algorithm platform (also known as the Intelligent Perception Algorithm Integration Framework) is built on the native chip platform, which can support perception detection algorithms in the low-power domain. Through this perception detection algorithm, power consumption can be greatly reduced while ensuring accurate gesture recognition, thereby improving the user experience.

[0081] In order to better understand the embodiments of the present application, the embodiments of the present application are briefly described below:

[0082] This application has newly built the Smart Perception 1.0 algorithm integration framework based on the native chip platform and established its own AON service. This supports the development of gesture recognition features for mobile products from the platform software infrastructure, and can support perception detection algorithms in the low-power domain. The specific content of the Smart Perception algorithm integration framework is described below.

[0083] In the application scenario of this application, the AON camera (front camera) of the electronic device can be used for image acquisition, and the electronic device performs gesture recognition on the image through the perception detection algorithm supported by the intelligent perception algorithm platform to realize intelligent perception. Specifically, after the electronic device perceives that the AON camera (front camera) has captured the image, the image is first output to the intelligent perception algorithm platform at a lower resolution for image analysis to determine whether there are gesture features in the image; if it is determined that there are gesture features in the image, the image is then output to the intelligent perception algorithm platform at a higher resolution for image analysis to identify the specific gesture in the image, and the recognition result is reported to the intelligent perception application, which responds according to the preset strategy corresponding to the specific gesture identified.

[0084] Referring to FIG3 , in an embodiment of the present application, the gesture recognition process includes the following two stages:

[0085] The first stage: gesture perception stage, first detect whether there are gesture features and the starting gesture in the image.

[0086] Since it is uncertain whether the captured images contain gesture features, a large number of images do not have gesture features, and only a small number of images contain gesture features. Therefore, in the first stage, it is necessary to preliminarily screen out images with gesture features. At this time, there is no need for the camera system to capture images at high resolution and output them to the intelligent perception algorithm platform. Accordingly, in the first stage, there is no need for the intelligent perception algorithm platform to perform image analysis on high-resolution images.

[0087] Therefore, the present embodiment proposes that, in the first stage, the image is first determined to contain gesture features. If gesture features are present, the starting gesture is then determined. To avoid unnecessary power consumption, the camera system can output the image at a low resolution to the intelligent perception algorithm platform. The intelligent perception algorithm platform can then perform image analysis on the low-resolution image, thereby reducing unnecessary power consumption.

[0088] If the first stage determines that the image contains gesture features and the starting gesture, then the second stage is executed. If the first stage determines that the image does not contain gesture features, the second stage is not executed and the image is discarded, which can greatly reduce power consumption and memory usage.

[0089] The second stage is the specific gesture recognition stage. After determining that there are gesture features and starting gestures in the image, the image is output to the intelligent perception algorithm platform at a higher resolution. The image is analyzed through the perception detection algorithm supported by the intelligent perception algorithm platform to identify the specific gestures in the image. The recognition results are reported to the intelligent perception application, and the intelligent perception application responds according to the preset strategy corresponding to the specific gesture identified.

[0090] For example, if the recognition result is an air sliding screen gesture, the electronic device controls the screen display content to turn the page up or down; for another example, if the recognition result is a grabbing gesture, the electronic device controls to take a screenshot of the current display interface.

[0091] It is understandable that when the first stage determines that an image contains gesture features, since the specific gesture in the image needs to be analyzed, for example, by matching image feature points for gesture recognition, the second stage requires outputting the image at a higher resolution to the intelligent perception algorithm platform so that the intelligent perception algorithm platform can accurately identify the specific gesture. Therefore, the present application solution not only ensures the accuracy of gesture recognition, but also effectively reduces the power consumption and memory space required during the gesture recognition process.

[0092] As shown in Figure 3, the first stage has the following characteristics:

[0093] (1) The first stage includes processes such as hand feature detection and initial gesture recognition.

[0094] (2) In the first phase, both dynamic and static memory use TCM memory, which is a low-power memory with a relatively small storage space. The details will be introduced below.

[0095] (3) In the first stage, the channels and processing equipment involved include the channels that implement the AON function and the DSP.

[0096] (4) In the first stage, relatively small-sized images, such as 160 × 120 pixels, are used.

[0097] In the first stage, if no starting gesture is detected N times in a row, the captured image is considered to be an invalid frame, the invalid frame is discarded, and the process returns to the first stage. If hand features and the starting gesture are detected in the image, the process proceeds to the second stage.

[0098] As shown in Figure 3, the second stage has the following characteristics:

[0099] (1) The second stage includes processes such as dynamic gesture recognition and feature point matching.

[0100] (2) In the second stage, dynamic memory and static memory are switched to: DDR memory + TCM memory.

[0101] (3) In the second stage, the pathways and processing equipment involved include pathways that implement AON functions and DSPs.

[0102] (4) In the second stage, relatively large-sized images, such as 320 × 240 pixels, are used.

[0103] In the second phase, after a specific gesture is recognized, the recognition result is reported to the intelligent perception application, which responds based on the preset strategy corresponding to the recognized gesture. If the gesture recognition timeout exceeds the specified time, the invalid frame is discarded and the process returns to the first phase.

[0104] As shown in FIG2 and FIG3 , compared with the related art, the present application solution has the following beneficial effects:

[0105] On the one hand, by performing gesture recognition in stages, we first determine whether there are gesture features and starting gestures in the image. If it is determined that there are gesture features and starting gestures in the image, we then identify the specific gestures in the image. For images that do not contain gesture features, there is no need to perform specific gesture recognition. In this way, effective gestures are screened out in stages, reducing unnecessary image analysis and memory usage.

[0106] On the other hand, at different stages, the camera system outputs the collected images with different resolutions to the intelligent perception algorithm platform. Accordingly, the intelligent perception algorithm platform performs gesture recognition on images with different resolutions. In the first stage, a lower-resolution image is used to determine whether there are gesture features in the image, and a higher-resolution image is used to identify specific gestures in the second stage. This can avoid continuous high-power consumption for gesture recognition, reduce power consumption, and reduce memory usage.

[0107] Through this application solution, the AON camera runs with extremely low power consumption, and the electronic device can accurately recognize the user's air interaction gestures, determine the user's intention to control the machine, and quickly complete the device control. For example, when the electronic device recognizes a gripping gesture, it will automatically perform a screenshot operation, or when the electronic device recognizes a sliding screen gesture, it will automatically perform an upward or downward sliding screen operation. In this way, the user can complete human-computer interaction without touching the electronic device, which greatly improves the convenience of operation.

[0108] The air gesture recognition method provided in the embodiment of the present application can be applied to electronic devices with a shooting function. Electronic devices include various terminal devices, which can also be called terminals, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. The terminal device can be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.

[0109] 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, etc.

[0110] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0111] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a DSP, a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. For example, the processor 110 is used to execute the air gesture recognition method in the embodiment of the present application.

[0112] In the embodiment of the present application, the implementation of the AON function depends on the ISP. The ISP can run various algorithm programs to process image signals in real time. The camera module is connected to the ISP via a camera serial interface (CSI), and the ISP is connected to the AP. After the ISP receives the image captured by the camera module, the ISP performs image signal processing on the image captured by the camera module. The AP can control the working mode of the ISP through an inter-integrated circuit (I2C) and obtain the working status of the ISP.

[0113] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0114] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0115] The external memory 120 generally refers to an external memory. In the embodiment of the present application, the external memory refers to a memory other than the memory of the electronic device and the cache of the processor, and the memory is generally a non-volatile memory.

[0116] Internal memory 121, also referred to as "memory," can be used to store computer-executable program code, including instructions. Internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system and at least one application required for a function (e.g., sound playback, image playback, etc.).

[0117] In the embodiment of the present application, the memory of the electronic device adopts tightly coupled memory (TCM) and DDR memory.

[0118] DDR memory is a type of double data rate synchronous dynamic random access memory (DDR SDRAM). SDRAM stands for synchronous dynamic random access memory (SDRAM). DDR memory has a very high data transfer rate.

[0119] The TCM is included in the memory address map and can be accessed as fast memory. It provides low-latency memory to the processor without the unpredictability inherent in cache memory. The TCM can be used to store critical routines, such as interrupt handlers or real-time tasks that require extreme avoidance of cache uncertainty. Furthermore, the TCM can be used to store temporary register data, data types with local properties that are not suitable for cache memory, and important data structures such as the interrupt stack.

[0120] It should be noted that from the perspective of storage capacity, TCM memory capacity is smaller, while DDR memory capacity is larger. From the perspective of data transmission rate, the data transmission rate of DDR memory is greater than that of TCM memory. From the perspective of power consumption, the power consumption of DDR memory is greater than that of TCM memory. Electronic devices generally use DDR memory, so the power consumption is relatively high; in some scenarios, the embodiments of the present application use TCM memory for data caching to reduce power consumption.

[0121] For example, in an embodiment of the present application, in some scenarios of early pre-perception services, both the dynamic memory and the static memory in the electronic device use TCM memory to store continuous multiple-frame images captured by the front AON camera (front camera). These images are images of QQVGA image specifications, where the QQVGA image specification is a smaller image size, such as 160×120, which can be expressed as QQVGA (160×120) image size. It can be understood that the image resolution of the QVGA image specification is lower and the image occupies less memory.

[0122] For example, in some scenarios where specific services are identified later, the dynamic memory and static memory of the electronic device are combined with DDR memory and TCM memory to jointly store multiple consecutive frames of images captured by the AON camera (front camera). These images are multiple consecutive frames of images with QVGA image specifications. Compared with the QQVGA image specification, the QVGA image specification has a larger image size, for example, 320×240, which can be expressed as QQVGA (320×240) image size. It can be understood that compared with the QQVGA image specification, the image resolution of the QVGA image specification is relatively high, and the image occupies a larger memory.

[0123] VGA (video graphics array) refers to video graphics array, with a resolution of 640×480 pixels. QVGA refers to 1 / 4 the size of VGA resolution, with a resolution of 320×240 pixels. QQVGA refers to 1 / 4 the size of VGA resolution, with a resolution of 160×120 pixels.

[0124] It is understandable that QQVGA images have the smallest resolution and occupy the smallest memory.

[0125] In an embodiment of the present application, in the first stage, on the one hand, the AON camera (front camera) captures smaller-sized images of QQVGA specifications and stores them in the TCM memory, thus occupying very little memory space; on the other hand, the processor analyzes multiple consecutive frames of images to determine whether the user has triggered a certain service. For example, if hand features are detected through image analysis and the starting gesture changes, the processor can determine that the user has triggered the air gesture service; for another example, if facial features are detected through image analysis and the screen direction of the electronic device is deflected, it can be determined that the user has triggered the smart horizontal and vertical screen service.

[0126] In the second stage, on the one hand, the AON camera (front camera) captures larger QVGA-sized images and stores them in the DDR memory and TCM memory; on the other hand, the processor analyzes multiple consecutive frames of images to identify the specific content of the triggered business. For example, if the image analysis detects that the palm has changed from an unfolded state to a grasping state, the processor can recognize the grasping gesture and use it to trigger a screenshot.

[0127] It can be seen that in the scenario where the AON camera (front camera) is in the normally-on state, although the AON camera (front camera) will continue to collect a large number of images, through the solution of this application, in the process of early pre-perception of the business, by obtaining smaller-sized continuous multi-frame images and storing them in low-power TCM memory, image analysis is performed on the smaller-sized continuous multi-frame images, which can greatly reduce power consumption.

[0128] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be an organic light-emitting diode (OLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0129] The electronic device 100 also includes various sensors that can convert various physical signals into electrical signals. The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The proximity sensor can turn off the display screen 194 and / or backlight when the electronic device 100 is moved to the ear. The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the perceived ambient light brightness.

[0130] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.

[0131] For example, in an embodiment of the present application, the touch sensor 180K can detect a user's click operation on an application icon, and pass the detected click operation to the application processor, determine that the click operation is used to start or run the application, and then execute the running operation of the application.

[0132] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0133] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0134] The above is a specific description of the embodiments of the present application using the electronic device 100 as an example. It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. The electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in the figure may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.

[0135] Furthermore, operating systems run on the above components, such as the iOS operating system developed by Apple, the Android open-source operating system developed by Google, and the Windows operating system developed by Microsoft. Application programs can be installed and run on these operating systems.

[0136] The operating system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0137] FIG5 is a software architecture diagram of the electronic device 100 according to an embodiment of the present application. The various embodiments of the present application will be discussed based on the following technical architecture. It should be noted that, in order to facilitate the explanation of logic, only the business logic relationship is illustrated with a schematic block diagram, without strictly expressing the specific location of the technical architecture of each business. In addition, the naming of each module in the software architecture diagram is for illustrative purposes only. The embodiment of the present application does not limit the naming of each module in the software architecture diagram. In actual implementation, the specific naming of the module can be determined according to actual needs.

[0138] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system includes four layers: applications, application framework, hardware abstraction layer (HAL), and kernel.

[0139] The application layer may include a series of application packages. For example, the application layer may include applications such as a camera and smart sensing (applications may be referred to as applications for short), and this embodiment of the application does not impose any restrictions on this.

[0140] The smart perception application provided in the embodiments of the present application supports various services. For example, the services supported by the smart perception application may include air gesture services, smart code recognition services, gaze-on screen-unlocking services, gaze-down volume services, smart horizontal and vertical screen services, assisted photo taking services, and smart AOD services. These services can be collectively referred to as smart perception services.

[0141] It should be noted that the implementation of these services supported by the Smart Perception Application relies on the electronic device's AON camera (front-facing camera) being always on, capturing images in real time and obtaining data related to the Smart Perception Service. When the Smart Perception Application monitors service-related data, it sends the service-related data to the Smart Perception Algorithm Platform. The Smart Perception Algorithm Platform analyzes the captured images and, based on the analysis results, determines whether to execute the Smart Perception Application's related services, or specifically which service to execute.

[0142] Among them, air gesture services refer to services where electronic devices recognize user gestures and respond according to preset strategies corresponding to the gestures to achieve human-computer interaction. When the electronic device is in the screen-on state, the electronic device can support the recognition of various preset air gestures. Different gestures can correspond to different preset strategies, such as: air grab gesture → screenshot, air up / down gesture → page turning, air press gesture → answering a call.

[0143] For example, taking the air-grabbing gesture as an example, the user changes from an extended palm state to a clenched fist state, and the control method corresponding to the gesture is preset to take a screenshot of the display interface of the electronic device. When the electronic device is in the screen-on state, the electronic device will automatically perform the screenshot operation when it detects the air-grabbing gesture through the AON camera (front camera). Among them, the air-grabbing gesture can also be called an air-screenshot gesture, and this scene can be called an air-screenshot scene.

[0144] For example, taking the air up / down gesture as an example, the fingers change from a close-together and spread-out state to a downwardly bent state (upward swipe gesture), and the control method corresponding to the gesture is preset to turning the page up or sliding the screen upward, and the fingers change from a close-together and bent state to an upwardly spread-out state (downward swipe gesture), and the control method corresponding to the gesture is preset to turning the page down or sliding the screen downward. When the electronic device is in the screen-on state, the electronic device will automatically perform the operation of turning the page up when detecting an upward swipe gesture through the AON camera (front camera), and will automatically perform the operation of turning the page down when detecting a downward swipe gesture, and human-computer interaction can be completed without the user touching the electronic device. Among them, the air up / down gesture can also be called an air sliding screen gesture, and this scene can be called an air sliding screen scene. Here, the air sliding screen gesture is explained by taking the upward or downward swipe gesture as an example. It can be understood that in actual implementation, the air sliding screen gesture can also be a left or right swipe gesture.

[0145] For another example, taking the air press gesture as an example, the user's palm approaches the screen of the electronic device from far to near. The control method corresponding to this gesture is preset to answer the call. When the electronic device receives the incoming call signal and displays the incoming call interface, the electronic device will automatically answer the call when it recognizes the air press gesture through the AON camera (front camera). This scenario can be called the air press scenario.

[0146] In addition, in an embodiment of the present application, the air gesture service also supports user-defined operations, such as the user cancels the "air press gesture → answer the call" and resets it to "air press gesture → jump to the payment code interface".

[0147] For example, when the electronic device is in the bright screen state and the electronic device displays the main desktop, the user can trigger a predefined quick service through an air press gesture, such as quickly jumping from the main desktop to the payment code interface. In this scenario, the payment interface can be quickly called up through an air press gesture, so this scenario can be called a smart payment scenario. It should be noted that the user can also reset it to "air press gesture → jump to the scan interface" or "air press gesture → jump to the ride code interface" and so on.

[0148] It should be noted that the various services supported by the above-mentioned smart perception application are illustrative examples. It can be understood that in actual implementation, the smart perception application in the embodiment of this application can also support other possible services, which can be determined based on actual usage requirements and are not limited by the embodiment of this application.

[0149] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a camera management module, an AON management module, etc., which is not limited in this embodiment of the present application. In this embodiment of the present application, the application framework layer may also be referred to as the system middle platform framework layer.

[0150] The Hardware Abstraction Layer (HAL) encapsulates the Linux kernel driver and provides an interface to the operating system. It hides the platform-specific hardware interface details and provides a virtual hardware platform for the operating system. In this embodiment, the HAL includes modules such as the intelligent perception interface and services, service management, service conflict management, service capability management, AON camera management, a distributor, an intelligent perception client, and a native platform client.

[0151] The Smart Perception Interface and Service Module provides upper-layer intelligent perception applications with access to the Smart Perception Algorithm Platform, and provides services related to the Smart Perception Algorithm Platform (also known as the Smart Perception Algorithm Integration Framework). This application adds a set of proprietary AON services to the camera HAL to support the development of gesture recognition features from the platform software infrastructure.

[0152] The service management module manages multiple services, including air gesture services, smart code recognition services, gaze-activated screen services, gaze-volume reduction services, smart landscape and portrait modes, assisted photo taking services, and smart AOD services. Furthermore, the service management module can call upon the service conflict management module for decision-making.

[0153] Among them, the service conflict management module is used to make decisions on the services in the screen-on scene and the screen-off scene. The service conflict management module can make service judgments based on the service-related data monitored by the upper-level intelligent perception application: whether the service-related data is an image collected when the screen is on or an image collected when the screen is off. In some embodiments, if the service-related data is an image collected when the electronic device is in the screen-on state, the service management module can send the service-related data to the intelligent perception client. If the service-related data is an image collected when the electronic device is in the screen-off state and there are facial features in the image, the service management module can determine that the intelligent AOD service is triggered and send the service-related data to the intelligent perception client. Among them, the intelligent perception client has the functions of proxy and forwarding data.

[0154] Among them, the business capability management module is used to manage the capability information of each business supported by the intelligent perception algorithm platform. In some embodiments, the capability information of the business can be represented by numbers. For example, the capability value of the air gesture business is preset to 1, wherein the capability value of the air screenshot is preset to 1-1, the capability value of the air sliding screen is preset to 1-2, and the capability value of the air pressing is preset to 1-3. It should be noted that the capability information here is an illustrative example and can be set according to actual usage requirements. The embodiments of this application are not limited thereto.

[0155] The AON camera management module is used to manage the relevant data of the AON camera. The AON camera management module can exchange data with the service conflict management module, and the AON camera management module can also exchange data with the service capability management module.

[0156] Specifically for this application, when a user triggers a service, the smart perception application can obtain the service's capability information. Then, based on the service's capability information, the smart perception application registers and subscribes to the corresponding service with the smart perception algorithm platform. After the service subscription is successful, the smart perception application monitors in real time whether the service has been triggered. If the smart perception application detects that the service has been triggered, it sends the service data to the smart perception algorithm platform, which performs algorithm analysis and then executes the service based on the analysis results.

[0157] The distributor is used to distribute business-related data according to the instructions of the business management module.

[0158] The kernel layer is the layer between hardware and software. For example, the kernel layer may include display drivers, camera drivers, and sensor drivers.

[0159] Specifically for the present application, the kernel layer may include API interface and sensor interface, intelligent perception algorithm integration framework (i.e., intelligent perception algorithm platform), and native AON algorithm platform.

[0160] The intelligent perception algorithm platform can include a decision-making unit, a control unit, and an execution unit. These units work together to complete low-power algorithm analysis of business-related data, obtain image analysis results, and report the image analysis results to the intelligent perception application. The intelligent perception algorithm platform and related functional modules can also be collectively referred to as the low-power subsystem.

[0161] This application makes improvements at the bottom layer of the mobile phone system and builds a new intelligent perception algorithm platform based on the original AON platform. Based on the support of the intelligent perception algorithm platform, the AON function can be applied to the gesture control screen scenario when the mobile phone is in the screen-on state. In the AON intelligent perception scenario, the AON camera (front camera) is always open and collects images to intelligently perceive user gestures and realize air-to-air screen operation, which greatly meets user needs and can improve user experience.

[0162] It should be noted that in the embodiments of the present application, in the early preliminary gesture perception stage (Phase 1), the intelligent perception client performs image analysis on the business-related data to monitor whether the business-related data meets the preset business trigger conditions, so the image quality requirements are relatively low. In the later specific gesture recognition stage (Phase 2), the intelligent perception algorithm platform performs image analysis on the business-related data that meets the preset business trigger conditions to identify the specific business content, so the image quality requirements are relatively high.

[0163] In the first phase, the service-related data includes multiple consecutive frames of images, all of which are small in size and low in resolution, and the low-power TCM memory described above is used for data caching. In the second phase, the service-related data includes multiple consecutive frames of images, all of which are large in size and high in resolution, and the normal-power DDR memory and low-power TCM memory described above are used for data caching. By performing image analysis in stages, the present application solution not only accurately monitors services but also effectively reduces power consumption.

[0164] It should be noted that in the embodiments of this application, based on the native AON algorithm platform, the main additions are intelligent perception services and an intelligent perception algorithm integration framework. This application combines the intelligent perception services and the intelligent perception algorithm integration framework with the native AON algorithm platform to complete low-power AON intelligent perception functions and services.

[0165] On the one hand, the intelligent perception service provides a unified service interface to the outside world, supporting intelligent perception-related businesses to use the AON capabilities of the native AON algorithm platform; at the same time, the interface of the native AON algorithm platform is blocked, and the native interface is no longer open to the outside world.

[0166] On the other hand, the intelligent perception service relies on the platform communication channel to establish a complete business interaction with the intelligent perception algorithm integration framework to use the low-power computing capabilities of the AON camera and the native AON algorithm platform.

[0167] On the other hand, the intelligent perception algorithm integration framework integrates AON camera resources, traditional sensor data, and integrated business algorithms to build a unified low-power computing platform to support AON services.

[0168] The hardware layer provides various hardware devices, such as the hardware devices involved in the embodiments of this application, including AON ISP, camera sensor, and camera head. The camera head and camera sensor are used to capture images in real time, and the AON ISP is used to process the image signals of the captured images. These hardware devices provide hardware support for the intelligent perception algorithm platform.

[0169] It should be noted that Figure 5 only shows the modules related to the embodiment of the present application. Each layer may also include any other possible modules, and each module may also include one or more sub-modules, which are not limited in this application.

[0170] It should also be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as iOS or Windows.

[0171] The following will use Figure 6 to describe the timing diagram of the interaction between the various modules in the above-mentioned technical architecture provided by the embodiment of the present application; among them, the smart perception application, the framework layer module, the smart perception interface and the smart perception service module (collectively referred to as the smart perception interface and service module), the smart perception client, the smart perception algorithm platform and the AON camera (front camera) interact with each other, and exemplify the process of electronic devices realizing AON smart perception through the AON camera (front camera).

[0172] S101: After the electronic device is powered on, the smart perception service module interacts with the smart perception client to start the camera provider process.

[0173] S102: The smart perception service module applies to register with the smart perception client.

[0174] S103: The smart sensing application receives an operation from the user to start the smart sensing service.

[0175] It should be noted that the smart perception service here can be any of the following: air gesture service, smart code recognition service, gaze without turning off the screen service, gaze to reduce the volume service, smart horizontal and vertical screen service, assisted photo service, smart AOD service. Users can turn on or off one or more of the above functions according to actual usage needs. For the sake of convenience, the following example uses the user triggering the opening of the air screenshot service as an example for exemplary explanation.

[0176] S104, the smart perception application responds to the user triggering the operation of starting the air screenshot service, and queries the smart perception client for capability information of the air screenshot service.

[0177] The Smart Perception application sends a message to the framework layer module to query service capabilities. The framework layer module then sends this message to the Smart Perception interface and service module, which then passes it on to the Smart Perception client. The Smart Perception client can call the capability management module to query the capabilities of the remote screenshot service.

[0178] The capability values ​​of different services are different. For example, the capability value of the air screenshot service is 1-1, the capability value of the air sliding service is 1-2, and the capability value of the air pressing service is 1-3.

[0179] S105: The smart perception client feeds back the queried business capability information to the smart perception application.

[0180] S106, the smart perception application registers the AON service event with the smart perception algorithm platform according to the business capability value.

[0181] Among them, the registered data flow starts from the smart perception application, passes through the framework layer module, smart perception interface and service module, smart perception client, and reaches the smart perception algorithm platform.

[0182] S107, the intelligent perception algorithm platform subscribes to the AON service event according to the business capability value.

[0183] For example, assuming that the service capability value is 1-1, as mentioned above, the capability value of the air screenshot service is 1-1, then the AON service event subscribed by the intelligent perception algorithm platform is the air screenshot service.

[0184] When subscribing to AON service events, the intelligent perception algorithm platform will use lower-resolution image specifications, such as QQVGA (160×120), in some cases, and higher-resolution image specifications, such as QVGA (320×240), in other cases. Furthermore, the intelligent perception algorithm platform will use TCM memory for data caching in some cases and a combination of DDR memory and TCM memory for data storage in other cases.

[0185] The following S108-S117 is the cyclic execution process of AON intelligent perception.

[0186] S108, the AON camera (front camera) collects multiple consecutive frames of images when the device screen is on and off, and transmits the collected multiple consecutive frames of images to the intelligent perception algorithm platform.

[0187] S109, the intelligent perception algorithm platform obtains multiple consecutive frames of images with lower resolution, stores the images in the TCM memory, and analyzes the multiple consecutive frames of images.

[0188] For example, the AON camera outputs a lower-resolution image in the QQVGA (160×120) format. Accordingly, the intelligent perception algorithm platform obtains the lower-resolution image in the QQVGA (160×120) format and performs image analysis.

[0189] S110, the intelligent perception algorithm platform determines whether the preset service triggering conditions are met based on the analysis results.

[0190] For example, the preset service trigger conditions may include: the image includes hand features, or the image includes QR code features, or the image includes eye features, or the image includes facial features. It should be noted that the preset service trigger conditions are for illustrative purposes only and can be set based on actual usage requirements. This embodiment of the present application does not limit these conditions.

[0191] For example, if the analysis results show that there are hand features in the image and the preset service trigger conditions are met, then it can be determined that the air gesture service is triggered.

[0192] For another example, assuming that the analysis result shows that there are human eye features in the image and the preset service triggering conditions are met, it can be determined that the smart gaze service is triggered.

[0193] S111: When it is determined according to the analysis result that the preset service triggering condition is not met, the smart perception client does not respond and releases an invalid frame.

[0194] After S110 determines that the preset service triggering condition is met, S112 - S113 are continued to be executed, and after S110 determines that the preset service triggering condition is met, S114 is continued to be executed.

[0195] S112: The smart perception client reports a service triggering message to the smart perception application.

[0196] S113, the smart perception application displays prompt information corresponding to the triggered service on the screen.

[0197] S114, the intelligent perception algorithm platform obtains continuous multi-frame images with higher resolution, stores the images in DDR memory and TCM memory, and analyzes the continuous multi-frame images to obtain image analysis results.

[0198] For example, the AON camera outputs high-resolution images in the QVGA (320×240) format. Accordingly, the intelligent perception algorithm platform obtains high-resolution images in the QVGA (320×240) format and performs image analysis.

[0199] It should be noted that DDR memory and TCM memory run in different hardware caches. DDR memory can access data in TCM memory, but TCM memory cannot access data in DDR memory.

[0200] S115, the intelligent perception algorithm platform reports the image analysis results to the intelligent perception application.

[0201] S116, the intelligent perception application responds according to the preset strategy corresponding to the image analysis result.

[0202] For example, after analyzing multiple consecutive frames of images, it is found that the user's gesture is specifically a grabbing gesture. That is, the image analysis result is a grabbing gesture, and the preset policy corresponding to the grabbing gesture is air screenshot. Therefore, the smart perception application responds according to the preset policy corresponding to the grabbing gesture, such as air screenshot.

[0203] The above describes the process of the user triggering the opening of the smart perception function and executing AON smart perception. In some embodiments, the user can trigger the closing of the smart perception service according to the use requirements. The specific process is shown in the following S117-S119.

[0204] S117: The smart perception application receives the user's operation to close the smart perception service.

[0205] The smart perception function here may include any of the following: air gesture service, smart code recognition service, gaze without turning off the screen service, gaze to reduce the volume service, smart horizontal and vertical screen service, assisted photo service, smart AOD service. Users can turn off one or more of the above functions according to actual usage needs. For the sake of convenience, the following example uses the user triggering the shutdown of the air screenshot service as an example.

[0206] S118, in response to the user operation, the smart perception application sends a message to the smart perception algorithm platform to cancel the AON service event.

[0207] S119, the intelligent perception algorithm platform stops subscribing to AON service events.

[0208] For example, the AON service event is the air screenshot service. After stopping subscription to the air screenshot service, the air screenshot service will not be triggered, that is, the mobile phone will no longer respond to the air screenshot gesture with a screenshot.

[0209] Based on the software architecture shown in FIG5 , combined with the timing diagram shown in FIG6 , the service perception and recognition in the image processing method provided by the embodiment of the present application is described from the local perspective of the newly added intelligent algorithm platform. Next, combined with the flow chart shown in FIG7 , the image processing method provided by the embodiment of the present application is described from the overall perspective of the native AON algorithm platform and the newly added intelligent algorithm platform.

[0210] First of all, it should be noted that the native AON algorithm platform supports services including face unlocking screen services, and the newly added smart algorithm platform supports services including air gesture services, intelligent code recognition services, staring at the screen to keep the screen from turning off services, staring at the screen to lower the volume services, smart horizontal and vertical screen services, assisted photography services, and smart screen-off display services.

[0211] S201, collecting continuous multiple-frame images in real time through the AON camera (front camera) of the electronic device.

[0212] S202 , acquiring a plurality of continuous image frames of relatively low resolution (eg, QQVGA specifications), using a low-power TCM memory for data buffering, and analyzing the plurality of continuous image frames.

[0213] The AON camera (front camera) outputs high-resolution images in QVGA (320×240) format. Accordingly, the intelligent perception algorithm platform acquires high-resolution images in QVGA (320×240) format and performs image analysis.

[0214] S203: Determine whether a first preset trigger condition is met based on the image analysis result.

[0215] It can be determined whether a service is triggered by determining whether the analysis result meets a first preset trigger condition.

[0216] For example, the first preset trigger condition may be any of the following: an image containing the first preset feature, and the image is captured when the screen is on and unlocked; or an image containing the first preset feature, and the image is captured when the screen is off. The first preset feature may include any of facial features, eye features, gesture features, and QR code features.

[0217] On the one hand, when S204 determines that the first preset trigger condition is met, the following S204-S207 are continued to be executed. That is, the service data is processed through the newly added intelligent perception algorithm platform. As mentioned above, the preset services supported by the newly added intelligent perception algorithm platform may include air gesture service, intelligent code recognition service, gaze without turning off the screen service, gaze to reduce volume service, intelligent horizontal and vertical screen service, auxiliary photo service, and intelligent AOD service.

[0218] S204 , acquiring continuous multi-frame images with a relatively high resolution (eg, QVGA specifications), and using DDR memory and TCM memory for data buffering.

[0219] S205, analyze multiple consecutive frames of images through the newly added intelligent perception algorithm platform to obtain image analysis result 1.

[0220] S206, the newly added intelligent perception algorithm platform reports the image analysis result 1 to the application layer.

[0221] S207 , responding according to the preset strategy corresponding to the image analysis result 1 .

[0222] For example, the multi-frame continuous images captured by the front camera are analyzed. At this time, the multi-frame continuous images use low-resolution images and are cached in low-power memory. If it is found that the multi-frame continuous images meet the first preset trigger condition, then it can be determined that a service is triggered. For example, the multi-frame continuous images include QR code features, so it can be determined that the triggered service is an intelligent code recognition service. Through judgment, it can be known that the intelligent code recognition service is a preset service in the newly added intelligent perception algorithm platform, so the service analysis task is assigned to the newly added intelligent perception algorithm platform, and the newly added intelligent perception algorithm platform performs image analysis on the multi-frame continuous images. At this time, the multi-frame continuous images use high-resolution images and are cached in normal power consumption memory and low power consumption memory.

[0223] On the other hand, when S204 determines that the first preset trigger condition is not met, the following S208-S212 are continued to be executed, that is, the business data is processed through the native AON algorithm platform.

[0224] S208: First, determine whether a second preset trigger condition is met based on the image analysis result.

[0225] Exemplarily, the second preset trigger condition is that the image contains facial features and the image is captured when the screen is on and locked.

[0226] S209: When it is determined that the second preset trigger condition is met, a plurality of continuous frames of images with a relatively high resolution (eg, VGA specification) are acquired, and a DDR memory is used for data buffering.

[0227] S210, analyzing the continuous multiple frames of images using the native AON algorithm platform to obtain image analysis result 2.

[0228] S211, the native AON algorithm platform reports the image analysis result 2 to the application layer.

[0229] S212 , responding according to the preset strategy corresponding to image analysis result 2 .

[0230] For example, the multi-frame continuous images captured by the front camera are analyzed. At this time, the multi-frame continuous images use low-resolution images and are cached in low-power memory. If it is found that the multi-frame continuous images meet the first preset trigger condition, it can be determined that a service is triggered. For example, the multi-frame continuous images captured when the electronic device is on and locked include facial features, so it can be determined that the triggered service is the face unlocking screen service. Through judgment, it can be known that the face unlocking screen service is a preset service in the native AON algorithm platform, so the service analysis task is assigned to the native AON algorithm platform, and the native AON algorithm platform performs image analysis on the multi-frame continuous images. At this time, the multi-frame continuous images use high-resolution images and are cached in normal power memory and low-power memory.

[0231] It should be noted that in the embodiment of the present application, when it is determined that neither the first preset trigger condition nor the second preset trigger condition is met, that is, when no business is triggered, the captured continuous multi-frame images are discarded, and then the above-mentioned S201 is returned to be executed.

[0232] The embodiment of the present application realizes AON intelligent perception through the newly added intelligent perception algorithm platform and the native AON algorithm platform. The image processing process completed by the intelligent perception algorithm platform can be divided into two stages:

[0233] Phase 1: As described in S201-S203 above, a coarse analysis is performed on the multiple consecutive frames of images captured by the front-facing camera to determine whether the multiple consecutive frames meet the first preset trigger condition and whether a service is triggered. In this first phase, the multiple consecutive frames are low-resolution images, and low-power memory is used for data caching.

[0234] Phase 2: As described in S204-S207 above, the multiple frames of continuous images captured by the front camera are analyzed to identify the specific content of the triggered service. In the second phase, the multiple frames of continuous images are high-resolution images, and data is cached using both normal power memory and low power memory.

[0235] Figures 5 to 7 above describe, from different perspectives, the software architecture for implementing the AON function using the newly added intelligent perception algorithm platform in the embodiments of this application, as well as the timing diagrams for the interactions between the various modules. Below, in conjunction with Figures 8 and 9 , we will describe, from the perspective of the air gesture service, the software architecture for implementing the air gesture recognition function using the newly added intelligent perception algorithm platform in the embodiments of this application, as well as the timing diagrams for the interactions between the various modules.

[0236] In the software framework shown in Figure 8, at the hardware abstraction layer, the smart perception application sends the air gesture service to the service management module, and then the service management module sends the air gesture service to the smart perception client, and then the smart perception client sends the air gesture service to the smart perception algorithm platform.

[0237] The difference between the modules embodied in the software framework shown in Figure 6 above and those embodied in the core layer of the software framework shown in Figure 8 is that the intelligent perception engine module and algorithm library are added. The intelligent perception engine module includes the intelligent perception decision module (gesture decision) and the gesture control module. The algorithm library provides gesture algorithm 1 and gesture algorithm 2. During implementation, after the intelligent perception algorithm platform receives the air gesture service sent by the upper layer, the intelligent perception algorithm platform instructs the intelligent perception engine module to make gesture decisions, and then the gesture control module performs gesture recognition: calling gesture algorithm 1 to perform image analysis on the continuous multiple frames of images cached in the TCM memory to determine whether there are hand features and starting gestures; if it is determined that there are hand features and starting gestures, then calling gesture algorithm 2 to perform image analysis on the continuous multiple frames of images cached in the DDR memory and TCM memory to identify specific gestures.

[0238] In addition, the difference from the module embodied in the software framework shown in Figure 6 above is that the hardware layer in the software framework shown in Figure 8 adds a data acquisition module, which includes an ambient light sensor and a proximity light sensor. The ambient light sensor can be used to sense the brightness of the ambient light and determine whether the screen of the electronic device is upside down on the desktop based on the sensed brightness of the ambient light. The proximity sensor is used to determine whether the screen of the electronic device is blocked. The data acquisition module can report the collected data of the ambient light sensor and the proximity sensor to the gesture control module, and the gesture control module determines whether to start the gesture recognition service based on the collected data. In some embodiments, the first phase of the detection process is started only when it is determined that the screen of the electronic device is not blocked and the screen of the electronic device is not upside down on the desktop. In other embodiments, the first phase of the detection process is started only when it is determined that the screen of the electronic device is not blocked.

[0239] It should be noted that Figure 8 only shows the modules related to the embodiment of the present application. Each layer may also include any other possible modules, and each module may also include one or more sub-modules, which are not limited in this application.

[0240] The following, combined with Figure 9, describes the timing diagram of the interaction between the modules in the technical architecture provided in Figure 8. The interactive modules include the intelligent perception application, the intelligent perception system, and the intelligent perception algorithm platform. The intelligent perception system includes the framework layer module, the intelligent perception interface, the intelligent perception service module, and the intelligent perception client. For ease of illustration, modules such as the AON camera (front camera) are omitted in Figure 9.

[0241] The process of enabling, applying, and disabling the air gesture service in the AON smart perception scenario is illustrated in Figure 9. As shown in Figure 9, the process of enabling the air gesture service includes S301-S310, the process of applying the air gesture service includes S311-S314, and the process of disabling the air gesture service includes S318-S323.

[0242] S301, after the electronic device is turned on, the intelligent sensing system is initialized.

[0243] Referring to the above S101, after the electronic device is turned on, the smart perception service module interacts with the smart perception client to start the camera provider process.

[0244] S302: The intelligent perception system and the intelligent perception algorithm platform perform initialization interaction to complete configuration loading.

[0245] S303: The smart perception application receives the user's operation to start the air gesture service.

[0246] Exemplarily, Figure 10 shows a schematic diagram of the interactive interface for a user to start an air gesture service. As shown in (a) and (b) of Figure 10, the electronic device displays the settings main interface in response to the user clicking the settings application icon on the desktop. Accessibility options are displayed in the settings main interface. As shown in (b) and (c) of Figure 10, the electronic device displays the accessibility interface in response to the user clicking the accessibility option. Smart perception options are displayed in the accessibility interface. As shown in (c) and (d) of Figure 10, the electronic device displays the smart perception settings interface in response to the user clicking the smart perception option.

[0247] As shown in (d) of Figure 10, the air gesture setting bar and other setting bars are displayed in the smart perception setting interface. The air gesture setting bar includes a switch for air sliding the screen, a switch for air screenshot, a switch for air pressing, and a switch for smart payment. In response to the user clicking the switch in the air gesture setting bar, the electronic device turns on or off some or all of the sub-services in the air gesture service.

[0248] S304: In response to the user triggering the operation of starting the air gesture service, the smart perception application queries the smart perception system for the capability value of the air gesture service.

[0249] The capability values ​​of different services are different. For example, the capability value of the air gesture service is 1, the capability value of the air screenshot service is 1-1, the capability value of the air sliding service is 1-2, and the capability value of the air pressing service is 1-3.

[0250] S305: The intelligent perception system feeds back the queried capability value to the intelligent perception application.

[0251] S306: The smart perception application applies to the smart perception system for registration of the air gesture service based on the capability value.

[0252] Accordingly, the intelligent perception system registers the air gesture service.

[0253] S307: The intelligent perception system applies to the intelligent perception algorithm platform for subscription to the air gesture service.

[0254] S308: The intelligent perception algorithm platform subscribes to the air gesture service based on the service capability value.

[0255] For example, the air gesture service includes sub-services such as the air screenshot service, the air sliding screen service, and the air pressing service. Optionally, you can subscribe to all sub-services in the air gesture service at once, or you can subscribe to one or more sub-services in the air gesture service.

[0256] For example, when the service capability value is 1-1, the intelligent perception algorithm platform subscribes to the remote screenshot service based on the service capability value.

[0257] For example, when the service capability value is 1-2, the intelligent perception algorithm platform subscribes to the air sliding screen service based on the service capability value.

[0258] For example, when the service capability value is 1-3, the intelligent perception algorithm platform subscribes to the air pressing service based on the service capability value.

[0259] For example, when the service capability value is 1, the intelligent perception algorithm platform subscribes to the air gesture service based on the service capability value. In this case, all air gesture services such as air screenshot service, air sliding screen service, and air pressing service will be subscribed.

[0260] Among them, when subscribing to the air gesture service or any sub-service, the intelligent perception algorithm platform will use different specifications of images and memory at different stages. On the one hand, in the first stage, a lower resolution image of QQVGA (160×120) is obtained; in the second stage, a higher resolution image of QVGA (320×240) is obtained. On the other hand, in the first stage, the intelligent perception algorithm platform uses TCM memory for data caching; in the second stage, DDR memory and TCM memory are used together for data storage.

[0261] S309: The intelligent perception algorithm platform returns a subscription success message to the intelligent perception system.

[0262] S310: The intelligent perception system feeds back a registration success message to the intelligent perception application.

[0263] The following S311-S317 is a cyclic detection process of the gesture recognition service.

[0264] S311, the intelligent perception algorithm platform obtains multiple consecutive frames of images captured by the front camera.

[0265] The AON camera (front camera) captures multiple consecutive frames of images when the device screen is on. According to the instructions of the intelligent perception algorithm platform, the captured multiple consecutive frames of images are output according to the QQVGA (160×120) specifications to obtain lower-resolution images, and the images are passed to the intelligent perception algorithm platform.

[0266] S312, the intelligent perception algorithm platform uses low-resolution images to detect whether there is a gesture and the starting gesture, and uses TCM memory for data cache.

[0267] In the implementation of this application, the intelligent perception algorithm platform stores the acquired low-resolution images in the TCM memory and analyzes the continuous multi-frame low-resolution images to detect whether there is a gesture and the starting gesture.

[0268] Then, the intelligent perception algorithm platform determines whether a preset service trigger condition is met based on the analysis result. For example, the preset service trigger condition may include: the image includes hand features.

[0269] In some embodiments, when it is determined based on the analysis results that the preset service triggering conditions are not met, the intelligent perception algorithm platform does not respond and releases an invalid frame.

[0270] In other embodiments, assuming that the analysis result shows that there are hand features in the image and the preset service triggering conditions are met, it can be determined that the air gesture service is triggered, and then S313 is executed.

[0271] S313: The intelligent perception algorithm platform reports the service triggering message to the intelligent perception application.

[0272] S314, the smart perception application displays prompt information corresponding to the air gesture service on the screen.

[0273] Exemplarily, FIG11 shows a schematic diagram of the interactive interface when the air gesture service is triggered. As shown in (a) of FIG11 , the front camera captures an image of the user's unfolded palm. After image analysis, it can be determined that the air gesture service is triggered. At this time, an image 11 of the unfolded palm can be displayed on the mobile phone screen. As shown in (b) of FIG11 , the front camera captures an image of the user's folded and unfolded palm. After image analysis, it can be determined that the air gesture service triggered by the user is specifically an air screenshot service. Accordingly, an image 12 of the folded palm can be displayed on the mobile phone screen at this time, and a prompt message of "screenshot in progress" can be displayed. Therefore, after seeing the prompt message displayed on the mobile phone, the user can know that the air gesture he made is being recognized by the mobile phone, which improves the user's interactive experience.

[0274] In addition, when S312 determines that the air gesture service is triggered, the following S315 will also be executed. Before executing S315, the intelligent perception algorithm platform sends a message to the AON camera, instructing the AON camera to output the collected continuous multi-frame images in accordance with the QVGA (210×240) specification. Correspondingly, the AON camera (front camera) outputs the collected continuous multi-frame images in accordance with the QVGA (210×240) specification according to the instructions of the intelligent perception algorithm platform, obtains a higher resolution image, and passes the image to the intelligent perception algorithm platform.

[0275] S315, the intelligent perception algorithm platform uses high-resolution images to recognize specific gestures and uses DDR memory and TCM memory for data caching.

[0276] Among them, the intelligent perception algorithm platform obtains continuous multi-frame images with higher resolution of QVGA (320×240) specifications, stores the images in DDR memory and TCM memory, and analyzes the continuous multi-frame images to obtain image analysis results.

[0277] S316, the intelligent perception algorithm platform reports the gesture recognition result to the intelligent perception application.

[0278] S317: The smart perception application responds according to a preset strategy corresponding to the gesture recognition result, such as taking a screenshot or turning a page.

[0279] For example, after analyzing multiple consecutive frames of images, it is found that the user's gesture is specifically a grab gesture, that is, the gesture recognition result is a grab gesture, and the preset policy corresponding to the grab gesture is air screenshot. Therefore, the smart perception application responds according to the preset policy corresponding to the grab gesture, that is, air screenshot.

[0280] The above describes the process of the user triggering the opening of the air gesture service and executing the air gesture service. In some embodiments, the user can trigger the closing of the air gesture service according to the use requirements. For the specific process, see S318-S323 below.

[0281] S318: The smart perception application receives the user's operation to close the air gesture service.

[0282] S319, in response to the user operation, the smart perception application sends a message to the smart perception system requesting to cancel the air gesture service.

[0283] Accordingly, the intelligent perception system cancels the air gesture service.

[0284] S320: The intelligent perception system sends a message to the intelligent perception algorithm platform to cancel the subscription to the air gesture service.

[0285] S321, the intelligent perception algorithm platform stops subscribing to the air gesture service.

[0286] For example, after stopping subscription to the air screenshot service, the air screenshot service will not be triggered, that is, the mobile phone will no longer respond to the air screenshot gesture with a screenshot.

[0287] For example, after stopping subscription to the air gesture service, all air gesture services will not be triggered, that is, the mobile phone will no longer respond to air gestures with screenshots.

[0288] S322, the intelligent perception algorithm platform reports a successful unsubscription message to the intelligent perception system.

[0289] S323, the smart perception system reports a successful deregistration message to the smart perception application.

[0290] The above is based on the software architecture shown in Figure 8, combined with the timing diagram shown in Figure 9, to illustrate the air gesture recognition method provided by the embodiment of the present application. The following is combined with the flow chart shown in Figure 12 to further illustrate the specific implementation process of the air gesture recognition method provided by the embodiment of the present application.

[0291] S401, the electronic device starts the air gesture service in response to the user's operation of the air gesture switch.

[0292] S402: The electronic device determines whether the screen is in a light-on and unlocked state.

[0293] Optionally, when it is determined that the screen is in the bright and unlocked state, continue to execute S403 below, or when it is determined that the screen is in the bright and unlocked state, continue to execute S404 below. When it is determined that the screen is not in the bright and unlocked state, return to execute S401.

[0294] S403: The electronic device determines whether the proximity light sensor is not blocked and whether the screen is not inverted.

[0295] The electronic device can determine whether the proximity light sensor is blocked based on the detection data of the proximity light sensor. The electronic device can also determine whether the screen is inverted based on the detection data of the ambient light sensor.

[0296] If the electronic device determines that the proximity light sensor is not blocked and the screen is not inverted, it continues to execute the following S404.

[0297] If the electronic device determines that the proximity light sensor is blocked or the screen is turned upside down (facing downward), it returns to execute the above S402.

[0298] S404, the electronic device starts hand presence detection, uses low-resolution images for analysis, and uses TCM memory for data buffering.

[0299] S405: The electronic device determines whether there are hand features in the image through hand detection.

[0300] If it is determined that there are hand features in the image, the process continues to execute S406 below. If it is determined that there are no hand features in the image, the process returns to execute S402 below.

[0301] S406: Whether the electronic device recognizes the starting gesture and whether the gesture changes.

[0302] If the starting gesture is recognized within a certain time period and the gesture changes, the process continues with S407. If the starting gesture is not recognized within a certain time period, or if the starting gesture is recognized within a certain time period but the gesture does not change, the process returns to S402.

[0303] S407 , the electronic device starts specific gesture recognition, uses high-resolution images for analysis, and uses DDR memory and TCM memory for data buffering.

[0304] Among them, electronic devices can use hand key point matching technology to perform specific gesture recognition.

[0305] S408: The electronic device determines whether a specific gesture is recognized within a preset time period.

[0306] If the specific gesture is recognized within the preset time, the process continues with step S409. If the specific gesture is not recognized within the preset time, the process returns to step S402.

[0307] S409: The electronic device reports the gesture recognition result to the smart perception application.

[0308] S410: The intelligent perception application responds according to a preset strategy corresponding to the gesture recognition result.

[0309] For example, when the gesture recognition result is an air sliding screen gesture, the electronic device responds by sliding the screen according to the prediction strategy corresponding to the air sliding screen gesture, for example, the electronic device controls the screen display content to turn the page up or down.

[0310] For another example, when the gesture recognition result is a grasping gesture, the electronic device responds with a screenshot according to the prediction strategy corresponding to the grasping gesture.

[0311] The following further illustrates the air gesture recognition method provided in the embodiment of the present application in conjunction with the flow chart shown in FIG13 .

[0312] S501, the system initializes and starts the air gesture service.

[0313] Among them, users can turn on the air gesture switch in the system application to trigger the air gesture function, that is, to start the air gesture service.

[0314] It should be noted that the air gesture service is applied to the screen-on unlocking scenario. When it is detected that the screen-on unlocking condition is met, it is determined whether the two conditions in S502 are met.

[0315] S502: Determine whether the proximity light sensor is not blocked and whether the screen is not inverted.

[0316] The judgment method of the above S502 can refer to the judgment method of the above S503, and will not be repeated here.

[0317] If it is determined that the proximity light sensor is not blocked and the screen is not inverted, the following S503-S505 are executed, that is, the hand detection is started, and the AON camera outputs the image at an extremely low frame rate (such as 2fps to 5fps).

[0318] S503, the AON camera continuously acquires images with a frame rate of 5 fps and an image size of QQVGA (160×120).

[0319] It should be noted that the frame rate of 5fps is an exemplary example. In actual implementation, other possible frame rates may also be used, such as a frame rate of 30fps.

[0320] S504: Perform hand detection.

[0321] For example, three consecutive image frames are acquired and analyzed each time. That is, hand detection is performed once every three frames. It should be noted that while this example uses three consecutive frames for hand detection, other possible values ​​may be used in actual implementations.

[0322] S505: Determine whether there is a hand feature in the image.

[0323] Here, hand detection is performed to determine whether there are hand features in the image.

[0324] S506: When it is determined that there is a hand feature in the image, the frame rate is adjusted to 10 fps.

[0325] It should be noted that the frame rate of 10fps is an exemplary example, and other possible frame rates may also be used in actual implementation.

[0326] S507: Execute start gesture detection.

[0327] If hand features are detected, the AON camera's frame rate is increased to 10fps, and a determination is made as to whether the hand features meet the starting gesture requirement. In some embodiments, if the starting gesture is not recognized for two consecutive seconds, detection is terminated. Exemplarily, the starting gesture is an open palm, or other possible gestures.

[0328] Exemplarily, three consecutive frames of images are analyzed to complete one start gesture detection.

[0329] S508: Determine whether the initial gesture state has changed.

[0330] For example, the initial gesture state changes from an open palm state to a grasping state, or other possible gesture state changes.

[0331] S509: When it is determined that the state of the initial gesture has changed, it is determined whether there are changes in the initial gesture detections for three consecutive times.

[0332] It should be noted that, while three consecutive initial gesture detections are used as an example for description, in actual implementation, the number of detections may also take other possible values.

[0333] S510: When it is determined that there are changes in the initial gesture detections for three consecutive times, a change in the initial gesture is reported.

[0334] Among them, after reporting the change of the starting gesture to the smart perception application, prompt information corresponding to the air gesture service can be displayed on the screen, such as an image of the user's dynamically changing gesture.

[0335] S511 , when it is determined that there are changes in the initial gesture detections for three consecutive times, specific gesture recognition is performed, with a frame rate of 10 fps and an image size of QVGA (320×240).

[0336] For example, 10 consecutive image frames are acquired and analyzed each time. That is, specific gesture recognition is performed once every 10 frames. It should be noted that while this example uses 10 consecutive frames for specific gesture recognition, in actual implementation, the number of frames can also take other possible values. It should also be noted that the frame rate of 10 fps is merely an example; in actual implementation, other possible frame rates can also be used.

[0337] S512: Whether a specific gesture is recognized.

[0338] In some embodiments, if a specific gesture is not recognized for 2 consecutive seconds, detection is stopped.

[0339] S513: When a specific gesture is recognized, feature point matching is performed.

[0340] S514: Verify the gesture recognition result.

[0341] S515: Determine whether the gesture recognition result is a valid gesture.

[0342] S516: When the gesture recognition result is determined to be a valid gesture, the gesture recognition result is reported to the smart perception application.

[0343] The smart perception application then responds based on the preset strategy corresponding to the gesture recognition result.

[0344] For example, if the gesture recognition result is a grasping gesture, the corresponding preset strategy is screenshot, that is, capturing the current interface. Figure 14 shows an interface diagram of the air screenshot scenario applied in an embodiment of the present application.

[0345] For example, if the gesture recognition result is an air sliding screen gesture, the corresponding preset strategy is sliding the screen or turning the page. Figure 15 shows an interface diagram of an air sliding screen scenario applied in an embodiment of the present application.

[0346] For example, if the gesture recognition result is an air press gesture, the corresponding preset strategy is: when an incoming call signal is received, confirm the answering of the call through an air press gesture. Figure 16 shows a schematic diagram of the interface of the air press-answering call scenario applied in an embodiment of the present application.

[0347] For example, if the gesture recognition result is an air press gesture, the corresponding preset policy is: when the electronic device displays the desktop, trigger a quick jump to the payment code interface through an air press gesture. Figure 17 shows a schematic diagram of the interface of the air press-smart payment scenario applied in an embodiment of the present application.

[0348] In an embodiment of the present application, a detection threshold is set to implement timeout detection. If no hand features are detected or no specific gesture is recognized within a continuous period of time, frame detection is stopped to save power consumption.

[0349] In this embodiment of the present application, triggered services in the screen-on scenario are assigned to the newly added intelligent perception algorithm platform, which performs image analysis to obtain gesture recognition results and then responds according to the preset policy corresponding to the gesture recognition results. Therefore, the air gesture recognition method provided in this embodiment of the application can more accurately recognize user gestures with lower power consumption, improving the user experience.

[0350] The following Table 1 shows the various power consumptions and total power consumption when the present application solution is applied to different services or features. As shown in Table 1, assuming that the output resolution is 320×240 and the frame rate is 10, the total power consumption of the air gesture scene is 19.03 milliamperes (mA). When the relevant technology is used, the total power consumption of the air gesture scene is about 100mA. It can be seen that the present application solution has low power consumption when applied to gesture recognition features, realizing low-power gesture recognition services.

[0351] Table 1

[0352] In an embodiment of the present application, after the air gesture function is turned on, in the bright screen scene, after the preset gesture trigger condition is recognized to be met, if the query platform gesture recognition business capability is turned on, then enter the smart perception service, load the configuration, enter the integrated framework of the AON camera, request the platform to output image frames of specific image specifications, and then perform gesture recognition through the preset gesture algorithm. It should be noted that the functions of AON camera continuous framing, gesture algorithm and detection result reporting are integrated in the sensor control center (SensorHub), and run in low power mode at the same time, so as to achieve low power consumption effect of the whole system. In the algorithm model training, while ensuring the accuracy, QQVGA (160*120) is first selected to detect whether there are hand features and starting gestures, and then when hand features and starting gestures are detected, QVGA (320*240) is used to identify specific gestures.

[0353] After the air gesture service is enabled, the SensorHub begins collecting sensor data. Using data collection modules such as the ambient light sensor and proximity light sensor, it determines whether the proximity light sensor is unobstructed and the screen is not inverted. Subscribe to the air gesture service at the minimum frame rate and image resolution required to meet current service requirements, obtain multiple consecutive image frames from the platform, and use the gesture recognition algorithm to detect the current frame detection result.

[0354] In the first stage, it runs in low-power mode on the SensorHub side and on the TCM memory. The image specification is QQVGA and the frame rate is 10fps. It is mainly used for hand detection and starting gesture detection.

[0355] In the second phase, the algorithm integration path continuously detects gestures for 500ms. If gestures are detected in N consecutive frames of data during this period, the sensor hub switches to normal power consumption mode, running on TCM+DDR memory with QVGA image format and a frame rate of 10fps, primarily for gesture detection. If the continuous frame detection time exceeds 500ms and gestures are not detected in three consecutive frames of data, frame generation stops and a gesture-not-detected result is reported.

[0356] It should be noted that, in the embodiments of the present application, "greater than" can be replaced by "greater than or equal to", "less than or equal to" can be replaced by "less than", or "greater than or equal to" can be replaced by "greater than", and "less than" can be replaced by "less than or equal to".

[0357] The various embodiments described herein may be independent solutions or may be combined according to internal logic, and all of these solutions fall within the scope of protection of this application.

[0358] The above mainly describes the solution provided by the embodiment of the present application from the perspective of method steps. It is understandable that, in order to achieve the above functions, the electronic device implementing the method includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should be aware that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of protection of this application.

[0359] The present application also provides a chip, which is coupled to a memory and is used to read and execute computer programs or instructions stored in the memory to perform the methods in the above embodiments.

[0360] The present application also provides an electronic device, which includes a chip, and the chip is used to read and execute computer programs or instructions stored in a memory, so that the methods in each embodiment are executed.

[0361] This embodiment also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the air gesture recognition method in the above-mentioned embodiment.

[0362] This embodiment also provides a computer program product, in which a computer-readable storage medium stores program code. When the computer program product runs on a computer, the computer executes the above-mentioned related steps to implement the air gesture recognition method in the above-mentioned embodiment.

[0363] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the air gesture recognition method in the above-mentioned method embodiments.

[0364] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0365] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, 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 interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0366] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for air gesture recognition, characterized in that: include: The electronic device turns on the air gesture function, and after the air gesture function is turned on, the camera module of the electronic device is in a normally-on state; Outputting a plurality of frames of first images of a first size through the camera module, and storing the plurality of frames of first images in a first memory; When the analysis results of the multiple frames of the first image meet the preset gesture trigger condition, output multiple frames of the second image of the second size through the camera module, and store the multiple frames of the second image in the first memory and the second memory; Performing gesture recognition according to the multiple frames of second images to obtain a gesture recognition result; Responding according to a preset strategy corresponding to the gesture recognition result; The resolution corresponding to the first size specification is lower than the resolution corresponding to the second size specification; In the case of storing the same image, the power consumption caused by the first memory is smaller than the power consumption caused by the second memory, and the power consumption caused by the first memory and the second memory together is smaller than the power consumption caused by the second memory.

2. The method according to claim 1, characterized in that The method further includes: determining whether the analysis results of the plurality of frames of first images meet a preset gesture trigger condition; The step of determining whether the analysis results of the plurality of frames of the first image meet a preset gesture trigger condition includes: Acquire N consecutive frames of images from the plurality of frames of first images according to a preset first sampling period to analyze whether there are hand features in the plurality of frames of first images; After determining that there are hand features in the multiple frames of first images, acquiring M consecutive frames of images from the multiple frames of first images according to a preset second sampling period to analyze whether there is a starting gesture in the multiple frames of first images; If it is determined for S consecutive times that there is a starting gesture in the multiple frames of first images and the state of the starting gesture changes, it is determined that the analysis results of the multiple frames of first images meet the preset gesture trigger condition.

3. The method according to claim 1 or 2, characterized in that: The performing gesture recognition according to the plurality of frames of second images to obtain a gesture recognition result includes: Acquire T consecutive frames of images from the plurality of frames of second images according to a preset third sampling period to identify specific gestures in the plurality of frames of first images; Recognize specific gestures within a preset time period; When it is determined that the specific gesture is one of the preset multiple gestures, the gesture recognition result is generated according to the specific gesture.

4. The method according to any one of claims 1 to 3, characterized in that The responding according to a preset strategy corresponding to the gesture recognition result includes: When the gesture recognition result is a first gesture and the corresponding first preset strategy is remote screenshot, taking a screenshot of the screen display content of the electronic device according to the first preset strategy; When the gesture recognition result is a second gesture and the corresponding second preset strategy is air sliding the screen, turning a page of the screen display content of the electronic device according to the second preset strategy; When the gesture recognition result is a third gesture and the corresponding third preset strategy is to answer the call remotely, when the electronic device receives an incoming call signal, the call is automatically answered according to the third preset strategy; When the gesture recognition result is the third gesture and the corresponding fourth preset strategy is wireless payment, when the screen of the electronic device displays the desktop, it automatically jumps from the desktop to the interface containing the payment code according to the fourth preset strategy.

5. The method according to any one of claims 1 to 4, characterized in that The first memory is a tightly coupled memory TCM, and the second memory is a double data rate synchronous dynamic random access memory DDR.

6. The method according to any one of claims 1 to 5, characterized in that The second size specification is QVGA, and the corresponding resolution is 320×240; The first size specification is QQVGA, and the corresponding resolution is 160×120.

7. The method according to any one of claims 1 to 6, characterized in that The camera module is a front-facing camera.

8. The method according to any one of claims 1 to 7, characterized in that The method is applied to a system framework of an electronic device, the system framework comprising a first algorithm platform and a second algorithm platform; Among them, the second algorithm platform is a framework provided by the native chip that supports the camera's always-on AON algorithm, and the first algorithm platform is an AON algorithm integration framework that supports multiple services and is created based on the second algorithm platform; the services supported by the first algorithm platform include air gesture services; and the services supported by the second algorithm platform include face unlocking screen services.

9. The method according to claim 8, characterized in that The method further comprises: Analyzing the multiple frames of first images by using the first algorithm platform; The first algorithm platform is used to determine whether the analysis results of the multiple frames of first images meet the preset gesture trigger condition.

10. The method according to claim 8 or 9, characterized in that: The performing gesture recognition according to the plurality of frames of second images to obtain a gesture recognition result includes: The gesture recognition result is obtained by performing gesture recognition based on the multiple frames of second images through the first algorithm platform.

11. The method according to any one of claims 8 to 10, characterized in that The system framework also includes intelligent perception applications; The electronic device enables the air gesture function, including: The smart perception application receives a first operation of a user to enable an air gesture service, where the air gesture service is a service supported by the smart perception application; In response to the first operation, the smart perception application sends a first message to the first algorithm platform, where the first message is used to indicate a subscription to the air gesture service; The first algorithm platform subscribes to the air gesture service in response to the first message.

12. The method according to claim 11, characterized in that After subscribing to the air gesture service, the method further includes: The first algorithm platform sends a second message to the camera module, where the second message is used to request the camera module to output an image according to the first size specification.

13. The method according to claim 11 or 12, characterized in that: The method further comprises: After the first algorithm platform determines that the analysis results of the multiple frames of the first image meet the preset gesture trigger condition, the first algorithm platform sends a third message to the camera module, and the third message is used to request The camera module outputs an image according to the second size specification.

14. The method according to any one of claims 11 to 13, characterized in that The method further comprises: After the first algorithm platform determines that the analysis results of the multiple frames of the first image meet the preset gesture trigger condition, the first algorithm platform reports a fourth message to the smart perception application, where the fourth message is used to indicate that the first service supported by the smart perception application is triggered; In response to the fourth message, the smart perception application triggers the electronic device to display prompt information of the first service in a preset area of ​​the screen.

15. The method according to claim 14, characterized in that The prompt information of the first service includes a gesture animation, and the gesture animation is composed of the multiple frames of the first image and the multiple frames of the second image.

16. The method according to any one of claims 11 to 15, characterized in that Before responding according to a preset strategy corresponding to the gesture recognition result, the method further includes: The first algorithm platform reports the gesture recognition result to the smart perception application; Wherein, responding according to a preset strategy corresponding to the gesture recognition result includes: The smart perception application responds according to a preset strategy corresponding to the gesture recognition result.

17. The method according to any one of claims 11 to 16, characterized in that The system framework also includes an intelligent perception interface; The smart perception application and the first algorithm platform exchange data via the smart perception interface.

18. The method according to any one of claims 8 to 17, characterized in that The system framework also includes a business management module, a distributor, an intelligent perception client and a native platform client; the method also includes: When the analysis results of the multiple frames of the first image meet the preset gesture trigger conditions, the service management module determines the processing task of the air gesture service, and sends the processing task of the air gesture service to the smart perception client through the distributor, and the smart perception client forwards the processing task of the air gesture service to the first algorithm platform.

19. The method according to any one of claims 8 to 18, characterized in that The system framework further includes an algorithm library, wherein the algorithm library includes a first image processing algorithm and a second image processing algorithm; Analyzing the multiple frames of first images by using the first algorithm platform includes: the first algorithm platform calls the first image processing algorithm in the algorithm library to perform image analysis on the multiple frames of first images; The performing gesture recognition according to the plurality of frames of second images comprises: the first algorithm platform calls the second image processing algorithm in the algorithm library to perform image analysis on the plurality of frames of second images; The requirement of the first image processing algorithm on image resolution is lower than the requirement of the second image processing algorithm on image resolution.

20. A method for air gesture recognition, characterized in that: include: The electronic device turns on the air gesture function, and after the air gesture function is turned on, the camera module of the electronic device is in a normally-on state; Outputting a plurality of frames of first images of a first size through the camera module, and storing the plurality of frames of first images in a first memory; When the analysis results of the multiple frames of the first image meet the preset dynamic gesture triggering conditions, the camera module outputs multiple frames of the second image of the second size, and stores the multiple frames of the second image in the first memory and the second memory; wherein the preset dynamic gesture triggering conditions include the presence of a hand gesture in the multiple frames of the first image; The device has a feature and a starting gesture and the state of the starting gesture changes; Performing dynamic gesture recognition according to the multiple frames of second images to obtain a dynamic gesture recognition result; Responding according to a preset strategy corresponding to the dynamic gesture recognition result; Among them, the resolution corresponding to the first size specification is lower than the resolution corresponding to the second size specification; the multiple frames of first images and the multiple frames of second images are same-frame images; when storing the same image, the power consumption caused by the first memory is less than the power consumption caused by the second memory, and the power consumption caused by the first memory and the second memory together is less than the power consumption caused by the second memory.

21. The method according to claim 20, characterized in that The method further includes: determining whether the analysis results of the plurality of frames of first images meet a preset gesture trigger condition; The step of determining whether the analysis results of the plurality of frames of the first image meet a preset gesture trigger condition includes: Acquire N consecutive frames of images from the plurality of frames of first images according to a preset first sampling period to analyze whether there are hand features in the plurality of frames of first images; After determining that there are hand features in the multiple frames of first images, acquiring M consecutive frames of images from the multiple frames of first images according to a preset second sampling period to analyze whether there is a starting gesture in the multiple frames of first images; If it is determined for S consecutive times that there is a starting gesture in the multiple frames of first images and the state of the starting gesture changes, it is determined that the analysis results of the multiple frames of first images meet the preset gesture trigger condition.

22. The method according to claim 20 or 21, characterized in that The performing dynamic gesture recognition according to the multiple frames of second images to obtain a dynamic gesture recognition result includes: Acquire T consecutive frames of images from the plurality of frames of second images according to a preset third sampling period to identify specific dynamic gestures in the plurality of frames of first images; Recognize specific dynamic gestures within a preset duration; When it is determined that the specific dynamic gesture is one of the preset multiple dynamic gestures, the dynamic gesture recognition result is generated according to the specific gesture.

23. The method according to claim 20, characterized in that The responding according to a preset strategy corresponding to the gesture recognition result includes: When the gesture recognition result is a first gesture and the corresponding first preset strategy is air screenshot, taking a screenshot of the screen display content of the electronic device according to the first preset strategy; When the gesture recognition result is a second gesture and the corresponding second preset strategy is air sliding the screen, turning a page of the screen display content of the electronic device according to the second preset strategy; When the gesture recognition result is a third gesture and the corresponding third preset strategy is to answer the call remotely, when the electronic device receives an incoming call signal, the call is automatically answered according to the third preset strategy; When the gesture recognition result is the third gesture and the corresponding fourth preset strategy is wireless payment, when the screen of the electronic device displays the desktop, it automatically jumps from the desktop to the interface containing the payment code according to the fourth preset strategy.

24. The method according to claim 20, characterized in that The first memory is a tightly coupled memory TCM, and the second memory is a double data rate synchronous dynamic random access memory DDR.

25. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory, wherein the processor is configured to execute the computer program so that the electronic device implements the method according to any one of claims 1 to 24.

26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 24.

27. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is executed by an electronic device, the electronic device executes the method according to any one of claims 1 to 24.

Citation Information

Patent Citations

  • Air gesture recognition method, electronic device and storage medium

    CN116301363B

  • Image display device and method for displaying background image with low power consumption

    CN110737321A

  • Gesture recognition method and related device

    CN111881862A

  • Gesture recognition method and device

    CN112364799A

  • Air gesture recognition method, electronic equipment and storage medium

    CN116301363A