Application processing method and electronic equipment
By adopting a multi-camera working phase and result information exchange method in electronic equipment, the conflict problem when multiple applications use cameras at the same time is solved, resource utilization and image security are improved, and the normal operation of the application is ensured.
Patent Information
- Application Number
- CN202310209669.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
AI Technical Summary
In electronic devices, when multiple applications use the camera at the same time, conflicts may occur and other applications may not function properly.
By introducing application processing methods in electronic devices, using different working stages of the first camera and the second camera, the first application and the second application use different cameras respectively, and through the exchange of result information, it is determined whether there are human eyes, so as to reduce conflicts and improve resource utilization.
It reduces conflicts when multiple applications use cameras at the same time, improves resource utilization of electronic devices, ensures normal operation between applications, and improves image security through the image security processing module.
Smart Images

Figure CN118550680A
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an application processing method and an electronic device. Background Art
[0002] With the development of electronic technology, electronic devices can support more and more applications. When multiple applications are started on an electronic device, more than one application may use the camera. For example, an instant messaging application can use the camera for video calls, while a payment application can use the camera for face payment.
[0003] However, while one app is using the camera, other apps might not function properly. Summary of the invention
[0004] The embodiments of the present application provide an application processing method and an electronic device, which are applied in the field of terminal technology.
[0005] In the first aspect, an embodiment of the present application proposes an application processing method. The method includes: at a first moment, the first application is not running in the foreground of the electronic device, and the electronic device runs a second application, and the second application determines whether a human eye is looking at the electronic device based on the image captured by the first camera; at a second moment, the first application is running in the foreground of the electronic device, and the electronic device runs the second application, and the first application determines whether a human eye is looking at the electronic device based on the image captured by the first camera, and the first application indicates result information to the second application, and the result information includes: first result information for indicating that a human eye is looking at the electronic device, or second result information for indicating that no human eye is looking at the electronic device; the second application determines whether a human eye is looking at the electronic device based on the result information.
[0006] In the above technical solution provided in the embodiment of the present application, the first application can determine whether a human eye is looking at the electronic device based on the image captured by the first camera. When both the first application and the second application are running, the second application determines whether a human eye is looking at the electronic device based on the first camera, and indicates the result information to the second application. The second application does not need to occupy the same camera as the first application, but determines whether a human eye is looking at the electronic device through the result information, which can reduce the conflict of sharing the camera between applications.
[0007] In one possible implementation, the electronic device also includes a second camera, and the working stages of the second application include a first working stage and a second working stage; in the first working stage, the second application is configured to acquire images using the second camera; in the second working stage, the second application is configured to acquire images using the first camera; before the first application determines whether a human eye is looking at the electronic device based on the image captured by the first camera, it also includes: the electronic device determines that the second application is running in the second working stage.
[0008] The second application and the first application can use different cameras in the first working stage, which can reduce the occurrence of conflicts. In addition, when the second application uses the first camera, the electronic device can determine that the second application is working in the second working stage and uses the same camera as the first application, thereby reducing the number of cameras used.
[0009] In a possible implementation, the electronic device includes a perception module, the perception module records identification information for identifying the working stage in which the second application is running, and the electronic device determines that the second application is running in the second working stage, including: the electronic device determines that the second application is running in the second working stage based on the identification information. In this way, the electronic device can determine the working stage of the second application, thereby controlling the camera used by the second application in different working stages.
[0010] In one possible implementation, the first application determines whether a human eye is looking at the electronic device based on the image captured by the first camera, including: the first application determines whether the position of the human eye's gaze point can be obtained based on the image captured by the first camera; when the first application obtains the position of the human eye's gaze point, the first application determines that a human eye is looking at the electronic device; when the first application cannot obtain the position of the human eye's gaze point, the first application determines that no human eye is looking at the electronic device. In this way, the first application can provide the function of determining the position of the human eye's gaze point, and at the same time, it can further determine whether a human eye is looking at the electronic device based on the position of the human eye's gaze point, and provide result information to the second application. When both the first application and the second application are running, the second application can obtain the result information without using the camera, which can reduce conflicts.
[0011] In a possible implementation, after the first application indicates the result information to the second application, it also includes: when the result information is the first result information, the second application resets the screen-off period of the electronic device; or, when the result information is the second result information, the second application continues to obtain the result information from the first application, and if the second application does not obtain the first result information within a preset time, the second application controls the electronic device to turn off the screen. In this application, the second application can control the electronic device to turn off the screen when it is determined that no human eyes are looking at the electronic device for a period of time, thereby reducing the screen usage time.
[0012] In a possible implementation, after the first application determines whether the position of the human eye gaze point can be obtained based on the image captured by the first camera, it also includes: when the first application obtains the position of the human eye gaze point, the first application determines whether the position of the human eye gaze point is in the first area; the first area includes part of the notification message; when the duration of the human eye gaze point position in the first area exceeds the preset duration, the first application displays the second area, the second area includes part or all of the notification message, and the area of the second area is larger than the area of the first area. In this application, the first application can increase the area where the notification message is displayed when it is determined that the time when the human eye gazes on the notification message exceeds the preset duration, so that the user can view more information without manual operation, thereby improving the user experience.
[0013] In a possible implementation, it also includes: the electronic device also includes an image security processing module, the image security processing module is used to encrypt the image captured by the first camera; the first application determines whether human eyes are looking at the electronic device based on the image captured by the first camera, including: the first application obtains the encrypted image from the image security processing module; determines whether human eyes are looking at the electronic device based on the encrypted image.
[0014] Through the image security processing module, the images collected by the camera can be securely processed, such as secure storage, encrypted transmission, etc., which can improve the security of the image.
[0015] In a possible implementation, a first preset operation is received in a setting application; in response to the first preset operation, a calibration interface for human eye gaze is displayed, the calibration interface includes preset coordinate points; the user's eye movement information when gazing at the preset coordinate points is obtained, and an eye tracking algorithm is calibrated based on the eye movement information, the eye tracking algorithm is used to determine the position of the human eye gaze point; wherein, when the calibration interface is displayed, the setting application controls the electronic device to keep the screen on. In this way, when the setting application enters the eye movement information, the electronic device can keep the screen on, reducing the situation where the screen turns off accidentally during user use.
[0016] In a possible implementation, the security processing module includes a trusted application and a general application; the first application obtains the encrypted image from the image security processing module, including: the trusted application performs image encryption processing on the image captured by the first camera, and stores the encrypted image in a shared memory, and the shared memory is shared by the trusted application and the general application; the first application reads the encrypted image from the shared memory through the general application, and the general application is used to decrypt the encrypted image. By encrypting the image and transmitting the encrypted image, the security of image transmission between applications can be improved.
[0017] In a second aspect, an embodiment of the present application provides an application processing device, which may be an electronic device, or a chip or chip system in an electronic device. The application processing device may include a display unit and a processing unit. When the application processing device is an electronic device, the display unit may be a display screen. The display unit may be used to perform the display step so that the electronic device implements an application processing method described in the first aspect or any possible implementation of the first aspect. When the application processing device is an electronic device, the processing unit may be a processor. The application processing device may also include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit so that the electronic device implements an application processing method described in the first aspect or any possible implementation of the first aspect.
[0018] When the application processing device is a chip or chip system in an electronic device, the processing unit may be a processor. The processing unit executes instructions stored in the storage unit so that the electronic device implements an application processing method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit in the chip (e.g., a register, a cache, etc.), or a storage unit in the electronic device located outside the chip (e.g., a read-only memory, a random access memory, etc.).
[0019] Exemplarily, a processing unit is used for, at a first moment, a first application is not running in the foreground of an electronic device, and the electronic device is running a second application, the second application determines whether a human eye is looking at the electronic device based on an image captured by the first camera; at a second moment, the first application is running in the foreground of the electronic device, and the electronic device is running the second application, the first application determines whether a human eye is looking at the electronic device based on the image captured by the first camera, the first application indicates result information to the second application, the result information including: first result information indicating that a human eye is looking at the electronic device, or second result information indicating that no human eye is looking at the electronic device; the second application determines whether a human eye is looking at the electronic device based on the result information.
[0020] In one possible implementation, the working stage of the second application includes a first working stage and a second working stage; in the first working stage, the second application is configured to acquire images using the second camera; in the second working stage, the second application is configured to acquire images using the first camera; before the first application determines whether a human eye is looking at the electronic device based on the image captured by the first camera, the processing unit is also used to determine that the second application is running in the second working stage.
[0021] In a possible implementation, the processing unit is configured to determine, based on the identification information, that the second application is running in the second working phase.
[0022] In one possible implementation, a processing unit is used for a first application to determine whether the position of a human eye's gaze point can be obtained based on an image captured by a first camera; when the first application obtains the position of the human eye's gaze point, the first application determines that a human eye is gazing at the electronic device; when the first application cannot obtain the position of the human eye's gaze point, the first application determines that no human eye is gazing at the electronic device.
[0023] In one possible implementation, the processing unit is also used for, when the result information is the first result information, the second application to reset the screen off period of the electronic device; or, when the result information is the second result information, the second application to continue to obtain result information from the first application, if the second application does not obtain the first result information within a preset time period, the second application controls the electronic device to turn off the screen.
[0024] In one possible implementation, the processing unit is also used to, when the first application obtains the position of the human eye gaze point, determine whether the position of the human eye gaze point is in the first area; the first area includes part of the notification message; when the time duration of the human eye gaze point in the first area exceeds a preset time duration, the first application displays the second area, the second area includes part or all of the notification message, and the area of the second area is larger than that of the first area.
[0025] In one possible implementation, the processing unit includes an image security processing module, which is used to encrypt the image captured by the first camera. The processing unit is also used for the first application to obtain the encrypted image from the image security processing module; based on the encrypted image, it is determined whether human eyes are looking at the electronic device.
[0026] In one possible implementation, the processing unit is further used to receive a first preset operation in a setting application; in response to the first preset operation, display a calibration interface for human eye gaze, the calibration interface including preset coordinate points; obtain eye movement information of the user when gazing at the preset coordinate points, and calibrate an eye tracking algorithm based on the eye movement information, wherein the eye tracking algorithm is used to determine the position of the human eye gaze point; wherein, when the calibration interface is displayed, the setting application controls the electronic device to keep the screen on.
[0027] In a possible implementation, the security processing module includes a trusted application and a general application. The processing unit is further used for the trusted application to perform image encryption processing on the image captured by the first camera and store the encrypted image in a shared memory, which is shared by the trusted application and the general application; the first application reads the encrypted image from the shared memory through the general application, and the general application is used to decrypt the encrypted image.
[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the electronic device executes the application processing method as in the first aspect.
[0029] Electronic devices may also be called terminals, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. Electronic devices may be mobile phones, smart TVs, wearable devices, tablet computers, computers with wireless transceiver functions, virtual reality (VR) electronic devices, augmented reality (AR) electronic devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the application processing method according to the first aspect is implemented.
[0031] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when the computer program runs on a computer, enables the computer to execute the method described in the first aspect or any possible implementation manner of the first aspect.
[0032] In a sixth aspect, an embodiment of the present application provides a chip or a chip system, which includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute the method described in the first aspect or any possible implementation of the first aspect. Among them, the communication interface in the chip can be an input / output interface, a pin or a circuit, etc.
[0033] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).
[0034] It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0037] Figure 3 A flowchart of the software and hardware interaction of the application processing method provided in the embodiment of the present application;
[0038] Figure 4 An interactive flow chart of the application processing method provided in an embodiment of the present application;
[0039] Figure 5 Schematic diagram of the display effect of the application processing method provided in the embodiment of the present application Figure 1 ;
[0040] Figure 6 Schematic diagram of the display effect of the application processing method provided in the embodiment of the present application Figure 2 ;
[0041] Figure 7 Schematic diagram of the display effect of the application processing method provided in the embodiment of the present application Figure 3 ;
[0042] Figure 8 A schematic diagram of the hardware structure of the chip provided in the embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:
[0044] 1. Introduce the display status involved in the embodiments of this application:
[0045] Screen off: refers to the state where the display screen is dormant, not displaying anything, and the brightness is 0; it can also be called screen lock or screen off.
[0046] On: In contrast to off screen, it refers to the state where the brightness of the display screen is not 0; it can also be called bright screen.
[0047] 2. Other terms
[0048] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0049] It should be noted that in the embodiments of the present 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 present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0050] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.
[0051] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.
[0052] 3. Electronic equipment
[0053] The electronic device in the embodiments of the present application may include a handheld device, a vehicle-mounted device, etc. with an image processing function. For example, some electronic devices are: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, electronic devices in 5G networks or future evolved public land mobile communication networks (PLANs). The electronic devices in the network (PLMN) and the like are not limited to this in the embodiments of the present application.
[0054] As an example but not limitation, in the embodiments of the present application, the electronic device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.
[0055] In addition, in the embodiments of the present application, the electronic device may also be an electronic device in an Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network that interconnects people and machines and things.
[0056] The electronic device in the embodiments of the present application may also be referred to as: electronic device, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.
[0057] In an embodiment of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0058] In the application processing method of the embodiment of the present application, the first application and the second application are application programs running in the application layer. Moreover, both the first application and the second application are applications that can use the camera. When running separately, the first application and the second application can respectively capture images through the camera to achieve different functions. For example: the first application can obtain images through the camera, identify whether there is someone watching, and control the display screen of the electronic device to keep the screen on when someone is watching. The second application can obtain images through the camera, identify whether there is a face, and perform face unlocking when there is a face.
[0059] When the first application is running, it needs to use the first camera to obtain images, and when the second application is running, it also needs to use the camera. When the two applications are running in the same time period, a conflict will occur for occupying the same camera. It is understandable that there may be three, four or more applications that conflict due to sharing a camera, and this application does not limit this.
[0060] Based on this, an embodiment of the present application provides an application processing method that can be applied to the above-mentioned electronic device. When the electronic device implements the application processing method, if the first application is not running and the second application is running, the second application can use the first camera to capture images to determine whether there is human eye gaze. When both the first application and the second application are running, the first application can use the first camera and transmit result information to the second application. The second application can determine whether there is human eye gaze through the result information without using the first camera, which can reduce the conflict caused by both applications using the first camera.
[0061] In order to better understand the embodiments of the present application, the structure of the electronic device in the embodiments of the present application is introduced below:
[0062] Figure 1 1 shows a schematic diagram of the structure of the electronic device 100. 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 screen 194, and a subscriber identification module (SIM) card interface 195.
[0063] It is to be understood that the structure illustrated in the embodiment of the present application does 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0064] 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 processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0065] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0066] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0067] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0068] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
[0069] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0070] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0071] The mobile communication module 150 may provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
[0072] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0073] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0074] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0075] The display screen 194 is used to display images, display videos, and receive sliding operations, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or more N display screens 194.
[0076] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0077] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0078] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include one or more cameras 193.
[0079] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0080] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0081] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0082] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, etc. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0083] Figure 2 It is a software structure block diagram of the electronic device of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the hardware abstraction layer (HAL) and the kernel layer.
[0084] The application layer can include a series of application packages. Figure 2 As shown, the application package may include a settings application, a first application, a second application, a text message application, a camera application, and other applications.
[0085] Among them, the first application can be an application that implements an eye tracking function, that is, controlling an electronic device by tracking the movement of a user's eye gaze point, such as opening an application, closing an application, etc.
[0086] Eye tracking refers to the technology of controlling electronic devices by identifying the user's eye movement information. By implementing eye tracking technology, it can replace the user's manual operation to a certain extent.
[0087] The second application can control the electronic device display to keep the screen on depending on whether it is being looked at by human eyes.
[0088] The Settings app can provide a function to record the user's eye movement information. The recorded eye movement information is used to implement the eye tracking algorithm.
[0089] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. Developers can develop other applications while complying with the development principles of the application framework.
[0090] like Figure 2 As shown, some important components of the application framework layer include: intelligent perception service, camera service, window manager, notification manager, etc.
[0091] The intelligent perception service can provide an API interface for applications at the application layer, through which information, such as result information, can be transmitted.
[0092] In some embodiments, the intelligent perception service may also be referred to as intelligent service, intelligent module, perception service, or other names, which is not limited in this application.
[0093] The camera service is used to receive images sent by the camera hardware abstraction module in the hardware abstraction layer.
[0094] The window manager is used to manage window programs. The window manager can obtain the display screen size, lock the screen, capture the screen, etc. In the embodiment of the present application, the window manager can identify the status of the application, which includes startup, foreground running and background running status.
[0095] The notification manager is used to manage application notifications. When a notification message from an application is received, the notification message can be displayed in the form of status bar notification, lock screen notification, banner notification, etc.
[0096] The hardware abstraction layer (HAL) is a layer of encapsulation of the hardware driver of the kernel layer, providing a calling interface to the application framework layer. In the embodiment of the present application, the hardware abstraction layer may include an intelligent perception module and a camera hardware abstraction module.
[0097] Among them, various intelligent recognition algorithms can be integrated in the smart perception module, such as face recognition, gesture recognition, eye tracking, etc. The smart perception module can interact with the camera hardware abstract module in the HAL to obtain the image collected by the camera. Alternatively, the smart perception module can also interact with the camera hardware abstract module in the HAL layer by calling the camera service in the application framework layer.
[0098] The eye tracking algorithm can be implemented through a machine learning model, which recognizes the gaze point of the human eye based on the input image and outputs the location of the gaze point of the human eye. Understandably, the eye tracking algorithm can also be called an eye tracking model, an eye recognition algorithm / model, an eye recognition algorithm / model, etc.
[0099] The smart perception module can be a software framework of the smart perception service. Alternatively, the smart perception service can also be an application at the application layer. When the smart perception service works at the application layer, the smart perception service can interact with the smart perception module of the HAL layer through the HAL interface definition language (HIDL) interface. For example, the result information is transmitted through the HIDL interface.
[0100] The camera hardware abstraction module may interact with the camera driver to obtain the image captured by the first camera. Alternatively, the camera hardware abstraction module may also interact with the upper-layer camera service to transmit the acquired image to the camera service.
[0101] The camera hardware abstraction module also includes a camera algorithm library, which includes a variety of image processing algorithms, such as anti-shake processing algorithms, spatial alignment algorithms, distortion correction algorithms, etc.
[0102] The camera hardware abstraction module can call the algorithm in the camera algorithm library to process the image acquired by the camera, obtain the processed image, and then return the processed image to the camera service.
[0103] The kernel layer is the layer between hardware and software. The kernel layer can be used to drive the hardware to make it work. The kernel layer can include camera drivers, display drivers, and sensor drivers, etc.
[0104] The hardware may include hardware devices such as a first camera, a second camera, and a display screen.
[0105] In this embodiment, the first camera may be a TOF camera. The TOF camera can autonomously emit light signals for imaging, thereby reducing the influence of ambient light on the TOF image and having stable imaging quality.
[0106] TOF camera refers to a camera module that uses time-to-flight (TOF) imaging technology.
[0107] The second camera may be an RGB camera.
[0108] In some embodiments, the electronic device may further include other cameras, such as a Bayer camera, multiple cameras with different focal lengths, etc. The present application does not limit the number and type of cameras.
[0109] In the case where at least two applications occupy the same camera, the electronic device can avoid conflicts by using the application processing method in the embodiments of the present application.
[0110] It is understandable that when implementing the application processing method provided in the embodiment of the present application, software execution logic in the electronic device is required, and some hardware in the electronic device is also required. Figure 3 The software and hardware interaction process in the application processing method provided in the embodiment of the present application is described.
[0111] Among them, the first application can call the image captured by the first camera or the second camera through the interface of the intelligent perception service to identify the human eye gaze point, and realize the eye tracking function based on the position of the human eye gaze point.
[0112] The human eye gaze point refers to the intersection of the user's line of sight on the plane where the display screen is located, that is, the point where the user is looking. The human eye gaze point position refers to the coordinates of the human eye gaze point on the display screen.
[0113] The second application can also call the image captured by the first camera or the second camera through the interface of the intelligent perception service to determine whether there is human eye gaze, and implement the display status control function based on whether there is human eye gaze.
[0114] Exemplarily, the first application may be called an eye tracking application, an eye control application, an eye interaction application, etc. The second application may be called a "gaze-on-the-screen", "smart-on-the-screen" application, etc.
[0115] Different applications have different requirements for images. When the first application and the second application use the first camera respectively, the camera hardware abstraction module can be configured through the respective camera configuration parameters to obtain data that meets the requirements.
[0116] For example, when the electronic device has not yet run the first application but is running the second application, that is, at the first moment, the first application and the second application do not occupy the same camera. In this case, the second application can normally call the first camera to collect images, and determine whether a human eye is looking at the electronic device through the images collected by the first camera.
[0117] In some embodiments, at the first moment, the second application may also call the second camera to determine whether there is human eye gaze.
[0118] Compared with the image captured by the first camera, the image captured by the second camera contains more distance information, and the amount of calculation is larger during processing.
[0119] In order to reduce the amount of calculation, the working stage of the second application may include a first working stage and a second working stage. In the first working stage, the second application is configured to use the second camera to acquire images. In the second working stage, the second application may be configured to use the first camera to acquire images.
[0120] The first working stage may be a stage in which the second application recognizes a face, and the second working stage may be a stage in which the second application recognizes whether a person is looking at the face. The stage of recognizing a face has a lower requirement for image resolution. In order to save computational effort, the second application may first work in the first working stage after being started, and the second camera may be used in the first working stage. When it is determined that the image acquired by the second camera includes a face, the second working stage is switched to use an image acquired by the second camera with higher resolution and better image quality to recognize the person's eye gaze.
[0121] When the second application is working in the first working stage, if the first application is running, the first application uses the first camera and the second application uses the second camera. The first application and the second application use different cameras respectively, so that conflicts can be avoided.
[0122] The first application may start running in the foreground after the electronic device is started, or may start running under specific triggering conditions.
[0123] In some embodiments, the electronic device can run the first application in the foreground when receiving the notification message. In other words, the first application does not need to be triggered by manual operation of the user.
[0124] Notification messages are services provided by the notification manager for various applications at the application layer. When an application turns on notification reminders, the notification manager can display the application's notification messages. For example, SMS messages, video application messages, communication application messages, etc. are displayed in the status bar.
[0125] Notification messages can include status bar notifications, banner notifications, lock screen notifications, and other notification methods.
[0126] When the first application is running in the foreground of the electronic device and the second application is also running, that is, at the second moment, the first application can provide a function of determining whether the human eye is looking at the electronic device based on the image captured by the first camera. Therefore, at the second moment, the electronic device can determine that the working stage of the second application is the second working stage, and turn off the second camera to avoid additional power consumption.
[0127] The electronic device may include a perception module. The perception module refers to an application program running in the electronic device, and the perception module records identification information for identifying the working stage of the second application. The electronic device can determine the working stage of the second application by obtaining the identification information of the perception module. Exemplarily, when the second application is running in the first working stage, the identification information may be 0, and when the second application is running in the second working stage, the identification information may be 1.
[0128] In some embodiments, the identification information may be other numbers, letters, symbols, etc., such as "TRUE", "FALSE", etc., and these values are used to identify the first working stage, the second working stage, etc.
[0129] In some embodiments, the second application may not be divided into working stages. For example, the second application runs only based on the image captured by the first camera to determine whether there is human eye gaze.
[0130] Continue to refer Figure 3 , when the first application is running and the second application is running, the first application and the second application can interact with the smart perception service through different interfaces. For example, the first application can call interface 1 of the smart perception service, and determine whether the position of the human eye gaze point can be obtained through interface 1. The second application can call interface 2 of the smart perception service, and determine whether there is human eye gaze through interface 2.
[0131] When the first application calls the interface 1 provided by the smart perception service, the camera in the electronic device can be driven in sequence through the smart perception module, the camera hardware abstract module, and the camera driver, that is, the first camera is started to acquire images. After the smart perception module acquires the image acquired by the first camera, the smart perception module can call the eye tracking algorithm to recognize the acquired image. The recognition result of the eye tracking algorithm can include two situations: one is that the position of the human eye gaze point is successfully identified, and the position of the human eye gaze point is returned, such as (1,1); the other is that the position of the human eye gaze point is not identified, and the pre-agreed information used to indicate that the position of the human eye gaze point is not identified can be returned, such as "0", "error (false)", etc.
[0132] In some embodiments, the electronic device may further include an image security processing module. The first application may obtain an encrypted image from the image security processing module; and determine whether to obtain the position of the gaze point of the human eye based on the encrypted image.
[0133] Exemplarily, the image security processing module may include a general application running in a rich execution environment (REE) and a trusted application running in a trusted execution environment (TEE). The trusted application can perform image encryption processing on the image captured by the first camera and store the encrypted image in a shared memory. The shared memory is a storage area shared by a trusted application and a general application in an electronic device. The first application can use a general application to read the encrypted image from the shared memory, and the general application can also be used to decrypt the encrypted image.
[0134] REE, also known as Rich Execution Environment, Ordinary Execution Environment or Untrusted Execution Environment, is a system operating environment on electronic devices, where operating systems such as Android, IOS and Linux can run.
[0135] TEE can also be called a security zone or security side, which is an area that requires authorization to access.
[0136] TEE and REE coexist in electronic devices. Through hardware support, TEE is isolated from REE, has security capabilities and can resist software attacks that conventional REE is vulnerable to. TEE has its own operating space and defines strict protection measures. It has a higher security level than REE and can protect assets in TEE, such as data and software, from software attacks and resist specific types of security threats.
[0137] A trusted application (TA) is an application running in TEE that can provide security services to a CA running outside TEE.
[0138] CA refers to client application, also known as general application. CA is usually an application running in REE, which can instruct TA to perform corresponding security processing.
[0139] In the embodiment of the present application, the TA used to provide image encryption services is called a smart perception TA, that is, the smart perception TA is an application running in the TEE.
[0140] The CA corresponding to the smart perception TA is called the smart perception CA. The smart perception CA can call the smart perception TA to instruct the smart perception TA to perform image encryption processing.
[0141] Figure 4 A flow chart of obtaining the position of the human eye gaze point through the image safety processing module is shown.
[0142] refer to Figure 4 As shown, the first application (APP1) can register the human eye gaze point monitoring function with the smart perception service. The smart perception service detects the position of the human eye gaze point by interacting with the smart perception module. When the position of the human eye gaze point is obtained, the position of the human eye gaze point will be transmitted to the first application. The smart perception module can start the camera for image acquisition through the interaction of the camera service and the camera hardware abstraction module.
[0143] Under the REE and TEE architecture, the images captured by the camera will be stored in a specific buffer, which can be called a secure buffer. The images cached in the secure buffer can be read by the application running in the TEE. After starting the camera to capture images, the camera service can notify the smart perception CA, and the notification can be used to pass the image information to the smart perception CA. The transmitted image information can include the location of the image cache, the number of frames, the image size, etc. When the smart perception CA is notified, it transmits the image information to the smart perception TA.
[0144] Smart Perception TA can read the image from the secure buffer based on the image information and encrypt the image. In addition, the encrypted image is saved in the memory shared with Smart Perception CA. Shared memory refers to a storage area in an electronic device. This area can be shared by Smart Perception TA and Smart Perception CA.
[0145] By encrypting the image captured by the first camera through intelligent perception TA, the security of the image can be improved and the risk of the image being modified by other applications can be reduced.
[0146] After the smart perception TA completes the image encryption process, it can notify the smart perception CA. When the smart perception CA receives the notification from the smart perception TA, it reads the encrypted image from the shared memory, and then decrypts the encrypted image to obtain the decrypted image. After the smart perception TA outputs the decrypted image, the smart perception module can call the eye tracking algorithm to recognize the decrypted image and output the recognition result. After the smart perception module obtains the recognition result, it can transmit the recognition result to the first application through interaction with the smart perception service.
[0147] In this embodiment, a secure image processing path can be constructed through smart perception TA and smart perception CA to reduce the risk during the execution of the first application.
[0148] When the first application obtains the recognition result, it can determine whether the position of the human eye gaze point is obtained. When the first application obtains the position of the human eye gaze point, the first application can determine that a human eye is looking at the electronic device. In this case, the first application can indicate the first result information through the smart perception service. The smart perception service can transmit the first result information to the second application through an interface between the first application and the second application, such as interface 2.
[0149] When the first application does not obtain the position of the human eye gaze point, the first application can determine that no human eye is looking at the electronic device. In this case, the first application can indicate the second result information through the smart perception service. The smart perception service can transmit the second result information to the second application through interface 2.
[0150] The first result information is used to indicate that a person is looking at the electronic device. For example, the first result information may be "1", "yes", "true", etc. Correspondingly, the second result information may indicate that the user is not looking at the electronic device. For example, the second result information may be "0", "no", "false", etc.
[0151] In this way, the first application can determine the position of the human eye's gaze point through the image captured by the first camera, and the second application can also determine whether there is human eye gaze without occupying the first camera, thereby reducing the situation where two applications occupy the same camera.
[0152] In some embodiments, when the first application obtains the position of the gaze point of the human eye, some interactive functions can also be implemented.
[0153] Exemplarily, the first application can determine whether the position of the human eye gaze point is on the notification message based on the acquired position of the human eye gaze point. When the time when the human eye gaze point is on the notification message exceeds a preset time, the first application can expand the notification message.
[0154] Alternatively, the first application can increase the area for displaying notification messages. Specifically, the first application can determine whether the position of the human eye gaze point is in the first area of the display screen based on the acquired position of the human eye gaze point. Among them, the first area is the area where part of the notification message is displayed. When the duration of the human eye gaze point position in the first area exceeds a preset duration, the first application can display a second area, and the area of the second area is larger than that of the first area. All or part of the notification message can be displayed in the second area. The second area displays more message content than the first area.
[0155] When the content of a notification message is large, increasing the display area of the notification message can reduce the problem that the area occupied when expanded is large, affecting the user's browsing of other displayed content.
[0156] like Figure 5 As shown in (a), after the electronic device is started, the system interface can be displayed. The system interface displays multiple applications, such as camera, settings, text messages, etc. When the electronic device receives new notification messages from these applications, the notification manager can display the notification messages in the form of banner notifications. For example, when the electronic device receives a new text message, a banner notification 501, i.e., the first area, can be displayed. The banner notification 501 may include part of the content of the received text message.
[0157] When receiving the notification message and displaying the banner notification 501, the electronic device runs the first application in the foreground. When the first application is running, the intelligent perception service can be called to obtain the position of the human eye gaze point. When the first application obtains the position of the human eye gaze point, it can determine whether the human eye gaze point position is on the displayed banner notification 501. If it is determined that the duration of the human eye gaze point position on the banner notification 501 exceeds the preset duration, then the first application can expand the banner notification 501 to display the second area, such as Figure 5 As shown in (b) in the figure, the area of the second area 502 is larger than the area of the banner notification 501. The entire message content can be displayed in the second area 501.
[0158] In some embodiments, when the time duration of the first application human eye gaze point position on the banner notification 501 does not exceed a preset time duration, the first application can eliminate the banner notification 501. After the first application expands the notification message (i.e., the banner notification 501) or eliminates the notification message, the first application can complete the operation and stop running. When the electronic device receives the notification message again, the electronic device can restart the first application.
[0159] In some embodiments, the first application may also remain running in the foreground, but the present application is not limited to this.
[0160] Exemplarily, the second application can also implement corresponding interactive functions according to the result information of whether there is human eye gaze, such as keeping the display screen on when it is determined that there is human eye gaze.
[0161] During the running of the first application and the second application, the electronic device also includes some applications running in the foreground, such as system interface, instant messaging application, game application, etc. When the user operates these applications, the electronic device can count the time of receiving the user operation. If the user operation is not received within the preset screen-off period, the electronic device can control the display screen to turn off the screen to save power consumption.
[0162] The user's operation may include a touch operation of the user on the display screen, for example, the electronic device does not detect a touch point within a preset screen-off period. The user's operation may also include a keyboard operation, a mouse operation, and the like.
[0163] The screen-off period can be the default time of the electronic device or the time set by the user. When using an electronic device, the user can set 15 seconds, 1 minute, 10 minutes, 30 minutes, etc. as the preset screen-off period. When the electronic device receives an operation from the user after startup, it records the time when the operation is received and starts timing from that time. When the screen-off period reaches the preset screen-off period, the display screen is controlled to switch from the on screen to the off screen.
[0164] If the electronic device does not detect the user's operation within a period of time before the preset screen-off period arrives, the electronic device runs the second application. For example, 5 or 10 seconds before the preset screen-off period. It is understandable that the second application can be automatically triggered according to the preset screen-off period without the need for manual operation by the user.
[0165] If the second application determines that there is human eye watching when it is running, the screen off period of the electronic device is reset. For example, when the screen off period is 20 seconds, the second application determines that there is human eye watching, and resets the screen off period to 0, so that the display screen remains on, that is, the screen is not turned off. If the second application determines that there is no human eye watching, it can wait for a while to determine again whether there is human eye watching. If the second application does not receive the first result information of human eye watching, until the screen off period reaches the preset screen off period, the electronic device can control the display screen to turn off.
[0166] In an embodiment of the present application, the second application can keep the screen of the electronic device on according to whether the user is looking at the electronic device without manual operation by the user, thereby reducing the situation of accidental screen off and improving user experience.
[0167] In some embodiments, if the result information obtained by the second application is the second result information, the second application can continue to obtain the result information. When the first result information is not obtained within a preset time period, the second application can also control the electronic device to turn off the screen.
[0168] In some embodiments, the first application may continue to run after being started, or may end its running when the screen is not turned off or the display screen is switched to the off screen, thereby reducing power consumption generated by the running.
[0169] The user can configure the first application in the settings application. Exemplarily, if the electronic device receives the user's first preset operation in the settings application, a calibration interface can be displayed in response to the first preset operation. The calibration interface is an interface for obtaining the user's eye movement information. When the electronic device obtains the user's eye movement information through the calibration interface, the eye movement information can be transmitted to the first application. The first application can calibrate the eye tracking algorithm through the eye movement information. Exemplarily, Figure 6 As shown in (a) of FIG. 1 , when a user opens a setting application, the electronic device may display a setting interface 600. The setting interface 600 includes a control 601. The user may control the electronic device to open or close the first application by clicking the control 601. When the electronic device receives an operation of the user clicking the control 601, the electronic device may determine to open or close the first application.
[0170] When the user opens the first application, the electronic device may display a control 602, such as Figure 6 The control 602 is used to trigger the electronic device to display the calibration interface for human eye gaze. When the electronic device receives the operation of the user clicking the control 602, that is, the first preset operation, the electronic device can display the calibration interface 700 in response to the first preset operation, such as Figure 7 As shown in (a) in .
[0171] In some embodiments, the first preset operation may also include a touch operation, a sliding gesture, etc., which is not limited in this application.
[0172] Continue to refer Figure 7 As shown in (a) in the figure, preset coordinate points, such as coordinate point 701, can be displayed in the calibration interface 700. In addition, prompt information can also be displayed in the calibration interface 700 to prompt the user to look at coordinate point 701. When in the electronic device calibration interface 700, the setting application can obtain the eye movement information of the user when looking at coordinate point 701 through the smart perception service or the camera service. The eye movement information may include the characteristics of the human eye in the image. The eye tracking algorithm can be calibrated through the eye movement information, so that the eye tracking algorithm can determine the position of the human eye gaze point based on the user's human eye characteristics.
[0173] In some embodiments, the calibration interface 700 may sequentially display a plurality of preset coordinate points at different locations. Each preset coordinate point is displayed for a preset time, such as 3 seconds, 5 seconds, etc. After the coordinate point 701 is displayed for a set time, the calibration interface 700 may switch to display the next preset coordinate point. Figure 7 As shown in (b) of FIG. 7 , the calibration interface 700 may display coordinate points 702. The present application does not limit the number of preset coordinate points.
[0174] In the process of displaying multiple preset points, the intelligent perception service can obtain the eye movement information corresponding to each preset coordinate point respectively. After the intelligent perception service obtains the eye movement information of multiple preset coordinate points, it can calibrate the eye tracking algorithm. Calibrating the eye tracking algorithm through multiple preset coordinate points is conducive to improving the accuracy of the position of the human eye's gaze point.
[0175] In the process of displaying the calibration interface, the first application does not output result information. In order to prevent the second application from turning off the display screen, the electronic device can control the electronic device to keep the screen on through the settings application. Specifically, in the process of displaying the calibration interface, the settings application can obtain the screen lock. The screen lock can be used to control the electronic device to keep the screen on. When the screen lock is not occupied by the application, the electronic device can turn off the screen.
[0176] The application processing method of the embodiment of the present application has been described above, and the device for executing the above application processing method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided by the embodiment of the present application can execute the steps in the above application processing method.
[0177] In order to achieve the above functions, the device for implementing application processing includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the method 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 the form of hardware or computer software driving hardware 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 be beyond the scope of this application.
[0178] The embodiment of the present application can divide the functional modules of the device for implementing the application processing method according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0179] An embodiment of the present application provides an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the above-mentioned application processing method.
[0180] The present application also provides a chip. Figure 8 A schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip 800 includes one or more (including two) processors 801 , a communication line 802 , a communication interface 803 and a memory 804 .
[0181] In some implementations, the memory 804 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
[0182] The method described in the above embodiment of the present application can be applied to the processor 801, or implemented by the processor 801. The processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 801. The above processor 801 can be a general processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 801 can implement or execute the methods, steps and logic block diagrams related to each processing disclosed in the embodiment of the present application.
[0183] The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 804, and the processor 801 reads the information in the memory 804 and completes the steps of the above method in combination with its hardware.
[0184] The processor 801 , the memory 804 , and the communication interface 803 may communicate with each other via the communication line 802 .
[0185] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.
[0186] The embodiment of the present application also provides a computer program product including one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0187] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.
[0188] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.
[0189] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above-mentioned application processing method.
[0190] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0191] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.
Claims
1. An application processing method, It is characterized in that Applied to an electronic device, the electronic device includes a first camera, and the method includes: At a first moment, the first application is not running in the foreground of the electronic device, and the electronic device is running a second application, and the second application determines whether a human eye is looking at the electronic device based on an image captured by the first camera; At the second moment, the first application is running in the foreground of the electronic device, and the second application is running on the electronic device. The first application determines whether human eyes are looking at the electronic device based on the image captured by the first camera, and the first application indicates result information to the second application. The result information includes: first result information indicating that human eyes are looking at the electronic device, or second result information indicating that no human eyes are looking at the electronic device; the second application determines whether human eyes are looking at the electronic device based on the result information.
2. The application processing method according to claim 1, It is characterized in that The electronic device further includes a second camera, and the working phase of the second application includes a first working phase and a second working phase; in the first working phase, the second application is configured to acquire an image using the second camera; In the second working stage, the second application is configured to acquire images using the first camera; Before the first application determines whether human eyes are looking at the electronic device based on the image captured by the first camera, it also includes: the electronic device determines that the second application is running in the second working stage.
3. The application processing method according to claim 2, It is characterized in that The electronic device includes a perception module, which records identification information for identifying the working stage in which the second application is running. The electronic device determines that the second application is running in the second working stage, including: the electronic device determines that the second application is running in the second working stage based on the identification information.
4. The application processing method according to any one of claims 1 to 3, It is characterized in that The first application determines whether a human eye is looking at the electronic device based on the image captured by the first camera, including: The first application determines whether the position of the gaze point of the human eye can be obtained based on the image captured by the first camera; When the first application obtains the position of the gaze point of the human eye, the first application determines that a human eye is gazing at the electronic device; When the first application cannot obtain the position of the human eye gaze point, the first application determines that no human eye is gazing at the electronic device.
5. The application processing method according to any one of claims 1 to 4, It is characterized in that After the first application indicates result information to the second application, the method further includes: When the result information is the first result information, the second application resets the screen off period of the electronic device; Alternatively, when the result information is the second result information, the second application continues to obtain result information from the first application. If the second application does not obtain the first result information within a preset time period, the second application controls the electronic device to turn off the screen.
6. The application processing method according to any one of claims 1 to 5, It is characterized in that After the first application determines whether the position of the gaze point of the human eye can be obtained based on the image collected by the first camera, the first application further includes: When the first application obtains the position of the gaze point of the human eye, the first application determines whether the position of the gaze point of the human eye is in a first area; the first area includes part of the notification message; When the time duration that the human eye gaze point is in the first area exceeds a preset time duration, the first application displays a second area, where the second area includes part or all of the notification message, and the area of the second area is larger than that of the first area.
7. The application processing method according to any one of claims 1 to 6, It is characterized in that Also includes: receiving a first preset action in a settings application; In response to the first preset operation, displaying a calibration interface for human eye gaze, wherein the calibration interface includes preset coordinate points; Acquire eye movement information of the user when gazing at the preset coordinate point, and calibrate an eye tracking algorithm based on the eye movement information, wherein the eye tracking algorithm is used to determine the position of the gaze point of the human eye; Wherein, when the calibration interface is displayed, the setting application controls the electronic device to keep the screen on.
8. The application processing method according to any one of claims 1 to 7, It is characterized in that The electronic device further comprises an image security processing module, wherein the image security processing module is used to perform encryption processing on the image captured by the first camera; The first application determines whether a human eye is looking at the electronic device based on the image captured by the first camera, including: The first application obtains the encrypted image from the image security processing module; Determine whether human eyes are looking at the electronic device based on the encrypted image.
9. The application processing method according to claim 8, It is characterized in that The security processing module includes a trusted application and a general application; the first application obtains the encrypted image from the image security processing module, including: After the trusted application performs image encryption processing on the image captured by the first camera, the encrypted image is stored in a shared memory, and the shared memory is shared by the trusted application and the general application; The first application reads the encrypted image from the shared memory through the universal application, and the universal application is used to decrypt the encrypted image.
10. An electronic device, It is characterized in that include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 9.
11. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
12. A computer program product, It is characterized in that The method comprises a computer program, which, when being executed, enables a computer to execute the method according to any one of claims 1 to 9.
