Electronic equipment control method and related equipment

By determining the calling status and image characteristics of the camera in the electronic device, the resource conflict between the intelligent control interactive functions is solved, and the optimal allocation and efficient use of resources are achieved.

CN118555328APending Publication Date: 2024-08-27HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310222709.5
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

Technical Problem

In application scenarios with multiple intelligent control interactive functions, camera resources in electronic devices are prone to preemption conflicts, leading to resource contention between services.

Method used

By determining the calling status of the camera and whether the currently collected image contains facial features, switching execution between conflicting services is implemented to ensure effective allocation and use of resources.

Benefits of technology

It effectively solves the problem of camera resource preemption conflicts between different intelligent control interaction functions, and improves the efficiency and quality of service execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555328A
    Figure CN118555328A
Patent Text Reader

Abstract

The invention provides an electronic equipment control method and related equipment, and the method comprises the steps: responding to an execution instruction of a first service, and determining a calling state of a camera in the electronic equipment; and suspending the second service and executing the first service when the camera is in a second service calling state and the first image currently collected by the camera contains the face features. In the scheme, in an application scene that a multi-man-machine intelligent control interaction function preempts camera resources, the electronic equipment can implement switching execution among services with conflicts by determining the current calling state of the camera by other services and determining the specific face features contained in the currently acquired image of the camera, so that the user experience is improved, and the user experience is improved. Therefore, the conflict problem when different services preempt camera resources is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to an electronic device control method and related equipment. Background Art

[0002] With the development of terminal technology, terminal control methods have more possibilities. For example, the image acquisition device of electronic devices such as mobile phones can be used to realize human-machine intelligent control interaction and complete people's functional control of electronic devices. The realization of relevant human-machine intelligent control interaction requires the use of hardware devices in electronic devices to perform image acquisition in order to parse the corresponding information in the acquired images, such as gestures, human eye parameters, etc., to realize terminal control. In this case, during the execution of multiple intelligent control interaction functions, conflicts may arise due to the occupation of camera resources. Summary of the invention

[0003] The present application provides an electronic device control method and related equipment, which can solve the conflict problem of multiple intelligent control interaction functions occupying camera resources.

[0004] In a first aspect, a method for controlling an electronic device is provided, the method comprising: responding to an execution instruction of a first service, determining a calling state of a camera in the electronic device; when the camera is in a state of calling a second service and a first image currently captured by the camera contains facial features, suspending the second service and executing the first service.

[0005] In the technical solution of the present application, in an application scenario where multiple human-machine intelligent control interaction functions occupy camera resources, the electronic device can determine the current call status of the camera by other services and determine the specific facial features contained in the current captured image of the camera, and implement switching between conflicting services, thereby effectively solving the conflict problem when different services occupy camera resources.

[0006] The perception service may include services corresponding to various perception fences in the perception application.

[0007] According to the parts of the human body involved in human-machine intelligent control interaction, perception services can include gaze control services, face perception services, gesture control services, etc.

[0008] Among them, the gaze control service may include a service by recording human eye parameters, a gaze-unextinguishing screen service, and a gaze-controlled ringtone volume service.

[0009] Taking the conflict between the above-mentioned gesture control service and the gaze on-screen service as an example, after receiving the execution instruction of the gaze on-screen service, the calling state of the camera in the electronic device is determined in response to the execution instruction. When the camera is in the state of calling the gesture control service and the image currently captured by the camera contains facial features, the gesture control service is suspended and the gaze on-screen service is executed. The switching execution between the conflicting services is implemented to resolve the service conflict.

[0010] In combination with the first aspect, in certain implementations of the first aspect, executing the first service includes: calling a camera to capture a second image; extracting human eye parameters from the second image, the human eye parameters representing control information of the electronic device by a user of the electronic device.

[0011] Implement switching between conflicting eye control services and other services to effectively resolve the conflict problem of different intelligent control interaction functions occupying camera resources.

[0012] In combination with the first aspect, in some implementations of the first aspect, after extracting the human eye parameter from the second image, the method further includes:

[0013] If the first service outputs the human eye parameter after being executed, the volume of the electronic device is adjusted based on the human eye parameter.

[0014] This process specifically implements the service of controlling the volume by looking at it.

[0015] In combination with the first aspect, in some implementations of the first aspect, after extracting the human eye parameter from the second image, the method further includes:

[0016] If the first service outputs the human eye parameters after execution, the screen display state of the electronic device is adjusted based on the human eye parameters.

[0017] This process specifically implements the service of regulating the screen display by looking at it.

[0018] In combination with the first aspect, in some implementations of the first aspect, after extracting the human eye parameter from the second image, the method further includes:

[0019] If the human eye parameter is output after the first service is executed, the first service is suspended or canceled, and the execution of the second service is resumed.

[0020] When the human eye parameters output after the execution of the first service are obtained, it is determined that the algorithm corresponding to the first service temporarily inserted for execution has been completed, and the suspended second service is resumed, and the corresponding second service is suspended or canceled, and switching execution between conflicting services is implemented, effectively solving the conflict problem of different intelligent control interaction functions occupying camera resources.

[0021] In combination with the first aspect, in some implementations of the first aspect, after extracting the human eye parameter from the second image, the method further includes:

[0022] If the human eye parameters are not output after the first service is executed, the first service is repeatedly executed until the set time is reached.

[0023] When the human eye parameters are not output after the first service is executed, a processing method of repeatedly executing the first service within a set time period is set here to ensure the processing effectiveness of the service execution.

[0024] In conjunction with the first aspect, in some implementations of the first aspect, after repeatedly executing the first service, the method further includes:

[0025] When the set time is reached and the human eye parameters are not output after the first service is executed, the first service is suspended or canceled, and the execution of the second service is resumed.

[0026] When the set time is reached and the first service does not output the human eye parameters after execution, it is considered that the image does not contain the required human eye parameters or the extraction of human eye parameters fails. At this time, it can be determined that the algorithm corresponding to the temporarily inserted first service has been executed, and the suspended second service will be resumed, and the corresponding second service will be suspended or cancelled, and the switching execution between conflicting services will be implemented, effectively solving the conflict problem of different intelligent control interaction functions occupying camera resources.

[0027] In combination with the first aspect, in certain implementations of the first aspect, executing the second service includes: calling a camera to capture a third image; extracting gesture parameters from the third image, the gesture parameters representing control information of the electronic device by a user of the electronic device.

[0028] Implement switching between conflicting gesture control services and other services to effectively solve the conflict problem of different intelligent control interaction functions occupying camera resources.

[0029] In combination with the first aspect, in some implementations of the first aspect, after determining the calling state of the camera in the electronic device, the method further includes:

[0030] When the camera is in an uncalled state and a first image currently captured by the camera contains facial features, the first service is executed.

[0031] When the camera is not called and the first image currently captured by the camera contains facial features, it can be considered that the prerequisite for executing the first service is met and the first service can be directly executed to ensure service execution efficiency and quality.

[0032] In conjunction with the first aspect, in some implementations of the first aspect, before responding to the execution instruction of the first service and determining the calling state of the camera in the electronic device, the method further includes:

[0033] determining a screen status of an electronic device;

[0034] If the screen status indicates that the electronic device is in a bright screen unlocked state, the second service is triggered.

[0035] The second service is triggered after the electronic device is unlocked and the electronic device enters the gesture control service mode. If the first service is subsequently instructed to execute, the subsequent processing steps S301 and S302 are executed to switch between conflicting services and resolve the service conflict problem.

[0036] In conjunction with the first aspect, in certain implementations of the first aspect, the sensing application includes: a gesture fence and whether or not there is human eye watching the fence;

[0037] Among them, the gesture fence is associated with the second service, and the fence with or without human eyes is associated with the first service.

[0038] After receiving the execution instruction of the "Gaze without turning off the screen" service, this process responds to the execution instruction to determine the calling state of the camera in the electronic device. When the camera is in the state of calling the gesture control service and the image currently collected by the camera contains facial features, the gesture control service is suspended and the "Gaze without turning off the screen" service is executed. Switching between conflicting services is implemented, effectively solving the conflict problem of different intelligent control interaction functions occupying camera resources.

[0039] Alternatively, after receiving an execution instruction for the gaze to reduce the volume of the incoming call ringtone service, the process determines the calling state of the camera in the electronic device in response to the execution instruction. When the camera is in the state of calling the gesture control service and the image currently captured by the camera contains facial features, the gesture control service is suspended and the gaze to reduce the volume of the incoming call ringtone service is executed, and switching execution between conflicting services is implemented, thereby effectively resolving the conflict problem of different intelligent control interaction functions occupying camera resources.

[0040] In combination with the first aspect, in some implementations of the first aspect, the first service corresponds to a first algorithm execution path, the second service corresponds to a second algorithm execution path, and the first algorithm execution path is different from the second algorithm execution path.

[0041] In this process, services with conflicting camera calls are associated with different algorithm execution paths, so that the algorithms corresponding to the two services are executed through their respective algorithm execution paths, ensuring the orderly execution of the algorithms corresponding to the services with resource preemption conflicts.

[0042] In a second aspect, the present application provides an electronic device control device, which includes a unit composed of software and / or hardware for executing any one of the methods of the first aspect.

[0043] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any one of the methods of the first aspect can be implemented.

[0044] In a fourth aspect, the present application provides a chip, comprising a processor, wherein the processor is used to read and execute a computer program stored in a memory, and when the computer program is executed by the processor, any one of the methods of the first aspect can be implemented.

[0045] Optionally, the chip also includes a memory, and the memory is electrically connected to the processor.

[0046] Optionally, the chip may also include a communication interface.

[0047] In a fifth aspect, the present application provides a computer-readable storage medium storing a computer program, which can implement any one of the methods of the first aspect when the computer program is executed by a processor.

[0048] In a sixth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it can implement any one of the methods of the first aspect.

[0049] It can be understood that the electronic device control device provided in the second aspect, the electronic device provided in the third aspect, the chip provided in the fourth aspect, the computer-readable storage medium provided in the fifth aspect, and the computer program product provided in the sixth aspect are all used to execute any one of the methods provided in the first aspect of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 This is a schematic diagram of a scenario applicable to human-machine intelligent control interaction in an embodiment of the present application;

[0051] Figure 2 This is a schematic diagram of a scenario applicable to human-machine intelligent control interaction in an embodiment of the present application;

[0052] Figure 3 is a flow chart of a method for controlling an electronic device according to an embodiment of the present application;

[0053] Figure 4 is a schematic architecture diagram of the perception service of an embodiment of the present application;

[0054] Figure 5 is a flow chart of an electronic device control method according to an embodiment of the present application;

[0055] Figure 6 is a schematic diagram of an interaction process of watching without turning off the screen in an embodiment of the present application;

[0056] Figure 7 is a schematic diagram of an interactive process of reducing the volume of an incoming call ring tone by looking at an embodiment of the present application;

[0057] Figure 8 is a schematic diagram of an electronic device control device according to an embodiment of the present application;

[0058] Fig. 9 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0060] It should be understood that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0061] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0062] The present application provides an electronic device control method. According to the electronic device control method, in an application scenario where multiple human-machine intelligent control interaction functions occupy camera resources, the electronic device can implement switching execution between conflicting services by determining the current call status of the camera by other services and determining the specific facial features contained in the current captured image of the camera.

[0063] See also Figure 1 , Figure 2 , Figure 1 and Figure 2 It is a schematic diagram of a scenario of human-machine intelligent control interaction applicable to an embodiment of the present application.

[0064] like Figure 1 As shown, when user A is using electronic device B, the camera C on electronic device B can capture the image of user A, and then the perception service (for simplicity, referred to as perception service below) of the corresponding intelligent control interaction function can be executed based on the captured image.

[0065] Figure 1 The scenario of human-machine intelligent control interaction shown in the figure is to control the electronic device by recognizing the characteristic parameters of the human face or certain facial organs in the human face through the picture captured by the camera.

[0066] like Figure 2 As shown, when a user is using electronic device B, the camera C on electronic device B can capture an image of the user's gesture D, and then the corresponding perception service of the intelligent control interaction function can be executed based on the captured image.

[0067] Figure 2 The scenario of human-machine intelligent control interaction shown in the figure is to control the electronic device by recognizing the characteristic parameters of the user's gesture through the picture collected by the camera.

[0068] for Figure 1 and Figure 2 , wherein the electronic device B can specifically be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA) or a dedicated camera (for example, a SLR camera, a card camera) and other devices capable of intelligent interaction. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0069] The camera C is used as a sensing element to obtain image input data for human-computer interaction. The camera C can be a front camera. The camera is specifically a front RGB camera, and the image is specifically a visible light image (RGB image) obtained by a visible light camera.

[0070] According to the involved human body parts, perception services can include gaze control services, face perception services, gesture control services, etc.

[0071] The gaze control service may include services for recording eye parameters, services for keeping the screen on when watching, services for reducing the volume of incoming call ringtones when watching, etc. The service for keeping the screen on when watching can be understood as controlling the screen to remain on based on eye gaze parameters, such as whether or not the screen is being watched, eye gaze point parameters, eye gaze duration, and other parameters.

[0072] Face perception services may include services for entering face parameters, face presence detection services, face orientation control services, etc.

[0073] The face presence detection service can be called the face AOD (Always on Display) service. Common face presence detection services can realize the service of waking up the screen with a face when the screen is off.

[0074] The face orientation control service can be understood as a service that triggers related operations by detecting the orientation of the face relative to the electronic device as a trigger signal. Common face orientation detection services include intelligent switching between landscape and portrait screens, because the so-called landscape and portrait screens refer to the difference in relative angles between the electronic device and the face. For example, assuming that the longitudinal direction of the face corresponds to the portrait screen direction, when it is detected that the longitudinal direction of the face is vertical or nearly vertical relative to the vertical screen direction of the electronic device, the screen display direction can be automatically switched, that is, switched to landscape, to meet the landscape and portrait switching service in various user postures.

[0075] Gesture control service can also be understood as air gesture service, which is to detect the user's gestures through the electronic device to achieve corresponding control without touching the electronic device. For example, it can be taking photos and screenshots through gestures, etc., which will not be listed one by one.

[0076] Each service needs to have a perception fence in the perception application to process the interaction process, including the process of collecting data and outputting results, the data processing process, and the process of calling the perception element to collect data. Therefore, the perception services can also be divided according to the perception fence.

[0077] Perception applications may include gesture fences and eye gaze fences. In some cases, they may also include face direction fences, face presence fences, and other perception fences.

[0078] The perception service may include services corresponding to various perception fences. For example, the service corresponding to the gesture fence may include an air gesture service; the service corresponding to the presence or absence of eye gaze fence may include at least one of an eye gaze non-extinguishing service and an eye gaze ring tone reduction service.

[0079] The services corresponding to the face facing the fence may include the smart screen rotation service; the services corresponding to whether the face is in the fence or not may include the face detection service.

[0080] In an example, suppose that Figure 1 and Figure 2 In the scenario shown, after the electronic device is unlocked with the screen on, the gesture control service is started. The gesture control service will call camera C to capture images. After a series of processing, the gesture of user A is determined from the image, for example, the gesture D made by the user is determined to be a screenshot gesture to implement the screenshot operation. However, assuming that the user also triggers a gaze-on-screen service at this time, camera C needs to be called to capture images, and a series of processing is required to determine the eye parameters of user A from the image, specifically, whether there is eye gaze, eye gaze point parameters, and eye gaze duration parameters, so as to control the screen from turning off after determining that there is eye gaze and the eye gaze point remains unchanged for more than a set time. In the specific implementation process, the resolution of the face image required by the gaze-on-screen service is different from the resolution of the image required by the gesture control service. The two services cannot call the camera at the same time to obtain images that meet the required resolutions of the algorithms corresponding to the two services. Therefore, there is a conflict in calling the camera between the two services.

[0081] The above example mainly introduces the possible conflict between the gesture control service and the gaze on screen service. The possible conflict between the gesture control service and the gaze on ringtone reduction service is the same. Other conflict situations are not listed here one by one.

[0082] In response to the conflict problem between the above-mentioned multiple perception services, the embodiment of the present application mainly implements switching between conflicting services based on the calling status of the camera in the electronic device and the presence of facial features in the image currently captured by the camera, thereby solving the conflict problem of calling the camera between multiple services.

[0083] Taking the conflict between the above-mentioned gesture control service and the gaze-on-screen service as an example, after receiving the execution instruction of the gaze-on-screen service, the calling status of the camera in the electronic device is determined in response to the execution instruction. When the camera is in the state of calling the gesture control service and the image currently captured by the camera contains facial features, the gesture control service is suspended and the gaze-on-screen service is executed. The switching execution between the conflicting services is implemented, which effectively solves the conflict problem of different intelligent control interaction functions occupying camera resources.

[0084] Figure 3 1 is a flow chart of a method for controlling an electronic device according to an embodiment of the present application. The method can be applied to any electronic device described in the embodiment of the present application. Figure 3 Each step is introduced.

[0085] S301. Respond to an execution instruction of a first service and determine a calling state of a camera in an electronic device.

[0086] The calling state of the camera in the electronic device includes the state of being called by other services and the state of not being called.

[0087] In the specific implementation process, the same camera has one image output channel, and the calling status of the camera in the electronic device can be determined by judging whether the image output channel of the camera is occupied by other services. When the image output channel of the camera is occupied by other services, it is determined that the camera in the electronic device is in a state called by other services; otherwise, it is determined that the camera is in a non-called state.

[0088] The execution instruction of the service is specifically a demand or request for executing the perception service. After obtaining the execution instruction, it is necessary to respond to it to determine the calling status of the camera that the service currently needs to call.

[0089] For example, in response to an execution instruction of the "gaze without turning off the screen" service, the calling state of the camera in the electronic device is determined, and in this case, the "gaze without turning off the screen" service is the first service. Or, for example, in response to an execution instruction of the "gaze without turning off the screen" service, the calling state of the camera in the electronic device is determined, and in this case, the "gaze without turning off the screen" service is the first service.

[0090] In one example, the first service may be a service for implementing function control of an electronic device based on characteristic parameters of certain facial organs in a human face.

[0091] For example, a service that implements electronic device function control based on the characteristic parameters of the human eye in the face may specifically implement electronic device function control based on human eye gaze parameters, implement electronic device function control based on human eye blinking, etc. Or, for example, an electronic device function control based on the characteristic parameters of the mouth in the face may be implemented based on the opening and closing of the mouth. The function control of the electronic device may specifically control the electronic device to not turn off the screen, control the reduction of the ringtone volume of incoming calls, etc.

[0092] S302: When the camera is in a state of calling the second service and the first image currently captured by the camera contains facial features, suspend the second service and execute the first service.

[0093] When determining that the calling state of the camera in the electronic device is characterized as the camera being in a second service calling state, it is necessary to determine whether the image currently captured by the camera contains facial features.

[0094] On the one hand, whether the image currently captured by the camera contains facial features can be realized based on a third service. The third service is, for example, the face perception service mentioned in the above description, such as the smart screen rotation service and the face AOD service, which implements facial feature detection on the image currently captured by the camera through the corresponding face orientation algorithm and face presence algorithm.

[0095] It is understandable that the third service and the second service require the same image resolution, so there is no camera call conflict between the third service and the second service, and the algorithms of the third service and the second service can be executed based on the captured images of the camera at the same time. At the same time, it can be known that the camera can be called by multiple services without call conflicts at the same time.

[0096] In the process of determining whether the image currently captured by the camera contains facial features based on the third service, the third service may be triggered to perform facial feature recognition on the image currently captured by the camera. If facial features are recognized, it is determined that the image currently captured by the camera contains facial features; otherwise, it is determined that the image does not contain facial features.

[0097] Alternatively, the third service may be a service that has been triggered for execution. The third service may perform facial feature recognition on the image currently captured by the camera in real time. In the process of determining whether the image currently captured by the camera contains facial features based on the third service, the facial feature recognition result of the third service may be obtained. If the facial feature recognition result indicates that the third service recognizes facial features from the image currently captured by the camera, then it is determined that the image currently captured by the camera contains facial features; otherwise, it is determined that the image currently captured by the camera contains facial features.

[0098] On the other hand, whether the image currently captured by the camera contains facial features can be implemented based on the second service when the algorithm corresponding to the second service can implement face detection on the image captured by the camera (for example, the second service is a face perception service, including an intelligent screen rotation service and a face AOD service, and the corresponding algorithms are a face orientation algorithm and a face presence algorithm). Specifically, based on the execution result of the algorithm corresponding to the second service (for example, a face orientation algorithm and a face presence algorithm), it is determined whether the image currently captured by the camera contains facial features.

[0099] In this step, the second service is suspended, and the triggering condition for switching to the first service is that the camera is in the state of calling the second service, and the first image currently captured by the camera contains facial features, ensuring that the service is switched when the user wants to control the electronic device function with the face or facial organ features in the face. Correspondingly, when the camera is in the state of calling the second service, but the first image currently captured by the camera does not contain facial features, the second service is still executed, and the first service is not switched to execute.

[0100] It is understandable that the first service is a service associated with facial features. Specifically, the first service may be a service for implementing electronic device function control based on characteristic parameters of certain facial organs in a human face. The first service may be set to have a higher priority. Even if it is determined that the camera is occupied by the second service, if it is detected that the image captured by the current camera contains facial features, the second service will be directly terminated and switched to the first service.

[0101] In an application scenario where multiple human-machine intelligent control interaction functions compete for camera resources, the electronic device can implement switching between conflicting services by determining the current call status of the camera by other services and determining the specific facial features contained in the current captured image of the camera.

[0102] In the technical solution of the present application, in an application scenario where multiple human-machine intelligent control interaction functions occupy camera resources, the electronic device can determine the current call status of the camera by other services and determine the specific facial features contained in the current captured image of the camera, and implement switching between conflicting services, thereby effectively solving the conflict problem when different services occupy camera resources.

[0103] In one implementation, before responding to the execution instruction of the first service and determining the calling state of the camera in the electronic device in S301, the method further includes:

[0104] determining a screen status of an electronic device;

[0105] If the screen status indicates that the electronic device is in a bright screen unlocked state, the second service is triggered.

[0106] Combination Figure 1 and Figure 2 In the scenario shown, taking the gesture control service as the second service as an example, after the electronic device is unlocked, the gesture control service is triggered to start and is in a state of continuous monitoring of camera events to implement calls to the camera.

[0107] That is, the second service is triggered after the electronic device is unlocked and the screen is turned on, and the electronic device enters the gesture control service mode. If the first service is subsequently instructed to execute, the above-mentioned processing flow of S301 and S302 is executed to implement switching between conflicting services and resolve the service conflict problem.

[0108] In one implementation, the first service and the second service are both services corresponding to the perception application.

[0109] It should be noted that, unless otherwise specified, the services described in this application refer to perception services. Figure 1 and Figure 2 The relevant introduction will not be repeated here.

[0110] Correspondingly, the sensing applications include: gesture fence and presence / absence eye-gazing fence;

[0111] Among them, the gesture fence is associated with the second service, and the fence with or without human eyes is associated with the first service.

[0112] In one implementation, the perception application includes a gesture fence and a presence or absence eye gaze fence. The service corresponding to the gesture fence includes an air gesture service; the service corresponding to the presence or absence eye gaze fence includes at least one of a gaze without turning off the screen service and a gaze to reduce the volume of incoming call ringtone service.

[0113] In this case, the second service may be an air gesture service, and the first service may be at least one of a gaze-unlocking screen service and a gaze-unlocking ringtone volume reduction service.

[0114] After receiving the execution instruction of the "Gaze without turning off the screen" service, this process responds to the execution instruction to determine the calling state of the camera in the electronic device. When the camera is in the state of calling the gesture control service and the image currently collected by the camera contains facial features, the gesture control service is suspended and the "Gaze without turning off the screen" service is executed. Switching between conflicting services is implemented, effectively solving the conflict problem of different intelligent control interaction functions occupying camera resources.

[0115] Alternatively, after receiving an execution instruction for the gaze to reduce the volume of the incoming call ringtone service, the process determines the calling state of the camera in the electronic device in response to the execution instruction. When the camera is in the state of calling the gesture control service and the image currently captured by the camera contains facial features, the gesture control service is suspended and the gaze to reduce the volume of the incoming call ringtone service is executed, and switching execution between conflicting services is implemented, thereby effectively resolving the conflict problem of different intelligent control interaction functions occupying camera resources.

[0116] Each perception service requires a corresponding algorithm to execute, and needs to be executed in the algorithm execution path where the algorithm is located. With the development of technology, multiple algorithm execution paths have emerged.

[0117] In one implementation, the first service corresponds to a first algorithm execution path, the second service corresponds to a second algorithm execution path, and the first algorithm execution path is different from the second algorithm execution path.

[0118] In an embodiment of the present application, the algorithm execution path may include an application processor (AP) path and a sensor hub path. The AP path can be understood as a path that uses the main central processing unit (CPU) of an electronic device to perform operations. The sensor hub path can be understood as a path that executes perception-related algorithms. The sensor hub path can support at least one of the gesture algorithm, the face orientation algorithm, and the face presence algorithm. For these algorithms, the same image accuracy and resolution can be used for processing, and they can be processed in parallel. The AP path can support the human eye gaze algorithm. For algorithms related to the human eye, higher image accuracy and resolution are required than algorithms related to the face or gesture algorithms, so there is an execution conflict between the first service and the second service. The first service and the second service need to use different algorithm execution paths to implement the corresponding algorithms. Only one of the sensor hub path and the AP path can work at the same time.

[0119] The above-mentioned AP path is an example of the first algorithm execution path, and the above-mentioned sensorhub path is an example of the second algorithm execution path.

[0120] In the specific processing process, the first service is set to have a higher execution priority. Similarly, the AP channel has a higher priority for calling the camera than the sensorhub channel. Therefore, the algorithm of the first service in the AP channel has priority execution authority over the algorithm of the second service in the sensorhub channel.

[0121] In this process, services with conflicting camera calls are associated with different algorithm execution paths, so that the algorithms corresponding to the two services are executed through their respective algorithm execution paths, ensuring the orderly execution of the algorithms corresponding to the services with resource preemption conflicts.

[0122] Below, refer to Figure 4 , combined with a schematic architecture diagram of the perception service of an embodiment of the present application, the aforementioned perception application, perception service and algorithm execution path are architecturally described.

[0123] like Figure 4As shown, the application layer includes perception applications. Perception applications can be understood as background applications that are used to process interaction data related to perception services. For example, in the air gesture service, the perception application can display gesture images on the screen. Others are not listed one by one. Figure 4 The perception application includes multiple perception fences, and the specific perception application includes gesture fence, face orientation fence, face presence fence, and eye gaze fence. Each perception fence corresponds to one or more perception services. Here, the service corresponding to the gesture fence is the air gesture service, the service corresponding to the face orientation fence is the smart screen rotation service, the service corresponding to the face presence fence is the face AOD service, and the service corresponding to the eye gaze fence is the eye gaze without turning off the screen service and the eye gaze to reduce the ringtone volume service.

[0124] The framework layer includes two algorithm execution paths, the sensorhub path and the AP path. Each path can support at least one algorithm. Here, the sensorhub path supports gesture algorithms, face orientation algorithms, and face presence algorithms, and the AP path includes eye gaze algorithms as an example. Among them, the gesture algorithm is used for air gesture services (that is, gesture control services), the face orientation algorithm is used for intelligent screen rotation services, the face presence algorithm is used for face AOD services, and the eye gaze algorithm is used for services such as gaze without turning off the screen and gaze to reduce the volume of incoming ringtones. Other situations are not listed one by one.

[0125] The framework layer here does not refer to the FWK layer (Framework). The framework layer here refers to the layer between the application layer and the hardware layer, and may also include the FWK layer, the hardware abstraction layer (HAL) and the layer where the algorithm execution path is located, and may also include other layers. In one example, the layer where the sensorhub path and the AP path are located is located between the HAL layer and the hardware layer.

[0126] In the hardware layer, the sensing element includes the image sensor of the front RGB camera as an example.

[0127] Each perception service requires a perception element to collect data, an algorithm execution path to perform the corresponding algorithm operation, and a fence to respond to the operation results.

[0128] It should be understood that Figure 4 It only gives an example of a possible inter-layer structure, and only involves the layers that are most relevant to the execution process of the entire perception service and may conflict. In practice, there may be other layers, and there is no limitation.

[0129] It is assumed that the corresponding relationship among the perception service, perception fence, and algorithm execution path is shown in Table 1.

[0130] Table 1

[0131]

[0132] In one example, when the first service is a gaze-on-screen service and the second service is an air gesture service, in response to an execution instruction of the gaze-on-screen service, it is determined that the camera in the electronic device is in a state of calling the air gesture service, and that the image currently captured by the camera contains facial features, the air gesture service is suspended, the gaze-on-screen service is executed, the sensorhub channel executes the gesture algorithm, and the AP channel is triggered to execute the eye gaze algorithm.

[0133] In another example, when the first service is a gaze control ringtone volume service and the second service is an air gesture service, in response to an execution instruction of the gaze control ringtone volume service, it is determined that the camera in the electronic device is in a state of calling the air gesture service, and the image currently captured by the camera contains facial features, the air gesture service is suspended, the gaze control ringtone volume service is executed, the sensorhub channel executes the gesture algorithm, and the AP channel is triggered to execute the eye gaze algorithm.

[0134] For the above two examples, when determining whether the image currently captured by the camera contains facial features, it can be implemented based on the third service (i.e., the smart screen rotation service or the face AOD service). Specifically, based on the execution result of the algorithm corresponding to the third service (here, corresponding to the face orientation algorithm and the face presence algorithm, respectively), it is determined whether the image currently captured by the camera contains facial features.

[0135] It is understandable that the third service and the second service require the same image resolution, so there is no camera call conflict between the third service and the second service, and the algorithms of the third service and the second service can be executed in the sensorhub channel based on the captured images of the camera at the same time.

[0136] In one more example, when the first service is the staring screen-on service and the second service is the smart screen rotation service, in response to the execution instruction of the staring screen-on service, it is determined that the camera in the electronic device is in a state of calling the smart screen rotation service, and the image currently captured by the camera contains facial features, the smart screen rotation service is suspended, the staring screen-on service is executed, the sensorhub channel is terminated to execute the face orientation algorithm, and the AP channel is triggered to execute the eye gaze algorithm.

[0137] In one more example, when the first service is a gaze-controlled ringtone volume service and the second service is a smart screen rotation service, in response to an execution instruction of the gaze-controlled ringtone volume service, it is determined that the camera in the electronic device is in a state of calling the smart screen rotation service, and that the image currently captured by the camera contains facial features, the smart screen rotation service is suspended, the gaze-controlled ringtone volume service is executed, the sensorhub channel is terminated from executing the face orientation algorithm, and the AP channel is triggered to execute the eye gaze algorithm.

[0138] For the above two examples, when determining whether the image currently captured by the camera contains facial features, it can be implemented based on the second service itself. Specifically, based on the execution result of the algorithm corresponding to the second service (here corresponding to the face orientation algorithm), it is determined whether the image currently captured by the camera contains facial features.

[0139] In more examples, when the first service is the gaze-on screen service and the second service is the face AOD service, in response to the execution instruction of the gaze-on screen service, it is determined that the camera in the electronic device is in the state of calling the face AOD service, and the image currently captured by the camera contains facial features, the face AOD service is suspended, the gaze-on screen service is executed, the sensorhub channel executes the face presence or absence algorithm, and the AP channel is triggered to execute the eye gaze algorithm.

[0140] In one more example, when the first service is the gaze controlled ringtone volume service and the second service is the face AOD service, in response to the execution instruction of the gaze controlled ringtone volume service, it is determined that the camera in the electronic device is in the state of calling the face AOD service, and the image currently captured by the camera contains facial features, the smart screen rotation service is suspended, the gaze controlled ringtone volume service is executed, the sensorhub channel executes the face presence or absence algorithm, and the AP channel is triggered to execute the eye gaze algorithm.

[0141] For the above two examples, when determining whether the image currently captured by the camera contains facial features, it can be implemented based on the second service itself. Specifically, based on the execution result of the algorithm corresponding to the second service (here corresponding to the face presence or absence algorithm), it is determined whether the image currently captured by the camera contains facial features.

[0142] Reference Figure 5 As shown, in one implementation, executing the first service in S302 includes:

[0143] S302A, calling a camera to capture a second image;

[0144] S302B, extracting human eye parameters from the second image.

[0145] Among them, the human eye parameters represent the control information of the electronic device by the user of the electronic device.

[0146] The human eye parameters represent the control information of the electronic device by the user, such as the display control information of the electronic device screen and the display control information of the volume of the electronic device.

[0147] Human eye parameters include, for example, the presence or absence of eyes, human eye gaze parameters, human eye blink parameters, etc., wherein the human eye gaze parameters include, for example, the presence or absence of eyes, human eye gaze point parameters, human eye gaze duration, etc.

[0148] It can be understood that in one example, the first service is an eye control service, including the aforementioned gaze control service or the eye gaze control service, which can be further refined to realize the gaze control screen display service and the gaze control volume service. Among them, the gaze control screen display service includes the gaze non-extinguishing service, and the gaze control volume service includes the gaze lowering call ringtone volume service.

[0149] Implement switching between conflicting eye control services and other services to effectively resolve the conflict problem of different intelligent control interaction functions occupying camera resources.

[0150] On the one hand, in one implementation, after extracting the human eye parameter from the second image in S302B, the method further includes:

[0151] S302C: If the human eye parameters are output after the first service is executed, the volume of the electronic device is adjusted based on the human eye parameters.

[0152] This process specifically implements the service of controlling the volume by looking at it.

[0153] Among them, the volume of electronic devices can be adjusted, such as turning up the volume of electronic devices, turning down the volume of electronic devices, etc., or the volume control can be implemented in combination with various software with sound emission requirements, such as reducing the volume of incoming ringtones (i.e., paying attention to the service of reducing the volume of incoming ringtones), increasing the volume of incoming ringtones, reducing the volume of music playback, increasing the volume of music playback, etc.

[0154] On the other hand, in one implementation, after extracting the human eye parameter from the second image in S302B, the method further includes:

[0155] S302D: If the first service outputs human eye parameters after execution, the screen display state of the electronic device is adjusted based on the human eye parameters.

[0156] This process specifically implements the service of regulating the screen display by looking at it.

[0157] Among them, the screen display state of the electronic device is regulated, for example, increasing the screen display brightness of the electronic device, decreasing the screen display brightness of the electronic device, controlling the screen brightness of the electronic device to turn off, and controlling the screen of the electronic device to remain in a bright state (i.e., the service of watching without turning off the screen).

[0158] In one implementation, after extracting the human eye parameter from the second image at S302B, the method further includes:

[0159] S302E: If the human eye parameters are output after the first service is executed, the first service is suspended or canceled, and the execution of the second service is resumed.

[0160] Here, the first service is set as a service that can extract human eye parameters from an image taken by a camera after execution.

[0161] The first service is, for example, a gaze-uninterrupted screen service and a gaze-reduced call ringtone volume service. After the first service is executed normally, the output human eye gaze parameter can be obtained.

[0162] When the human eye parameters output after the execution of the first service are obtained, it is determined that the algorithm corresponding to the first service temporarily inserted for execution has been completed, and the suspended second service is resumed, and the corresponding second service is suspended or canceled, and switching execution between conflicting services is implemented, effectively solving the conflict problem of different intelligent control interaction functions occupying camera resources.

[0163] If the first service is cancelled, the algorithm resources and / or hardware resources occupied by the first service are released accordingly.

[0164] In the case of cancellation of the first service, when the first service is no longer executed, the corresponding resources can be released so that other perception services or various processes can still use the released resources. The algorithm resources here can be considered as the resources used when processing data and responding, and the hardware resources can be considered as the perception elements, processors and other hardware, such as cameras.

[0165] Figure 6 It is a schematic diagram of the interaction process of a stare-on-screen service in an embodiment of the present application.

[0166] like Figure 6 As shown, the user is currently browsing a news page. The news page supports service functions such as air gesture page turning or air gesture screenshot. When the air gesture service is turned on, the camera will be called to monitor the user's gesture operations.

[0167] At this time, if the user stays on the page corresponding to news title 1 or news title 2 for too long when browsing the news page, the electronic device will think that it needs to enter energy saving mode or sleep mode, which may trigger the display screen to dim or trigger the device to sleep, and the display screen will turn off. In this case, the user can trigger the start of the "attention without screen off" service in a certain setting way. At this time, when the image currently captured by the camera in the electronic device detects that it contains facial features, the algorithm of the "attention without screen off" service starts to execute, calling the electronic device camera, capturing the user image, and identifying the human eye parameters therein. During this process, the user can gaze at the bright screen control area for a certain period of time. Then, based on the identified human eye gaze parameters, the electronic device will determine that there is human eye gaze, and the duration of the human eye gaze point in the bright screen control area exceeds the set duration, and then control the display screen to maintain the previous brightness, thereby realizing the "attention without screen off" service processing flow.

[0168] Figure 7 It is a schematic diagram of an interactive process of a service for reducing the volume of an incoming call ringtone by looking at an embodiment of the present application.

[0169] like Figure 7 As shown in 701, the user is currently browsing a news page. The news page supports service functions such as air gesture page turning or air gesture screenshot. When the air gesture service is turned on, the camera will be called to monitor the user's gesture operation.

[0170] If a user receives a call from Xiao A while browsing the news page, Figure 7 As shown in 702, the electronic device can enter the call answering interface as the user operates. After entering the call answering interface, the electronic device can automatically trigger the start of the gaze to reduce the incoming call ringing volume service according to the pre-associated settings. At this time, when the image currently captured by the camera in the electronic device detects that it contains facial features, the algorithm of the gaze to reduce the incoming call ringing volume service starts to execute, the electronic device camera is called, the user image is captured, and the human eye parameters therein are identified. In this process, the user can gaze at the upper area of ​​the volume bar on the right side of the display interface for a certain period of time, such as Figure 7 As shown in 703, the electronic device will determine that there is human eye gaze based on the identified human eye gaze parameters, and if the duration of the human eye gaze point in the upper area of ​​the volume bar on the right side of the display interface exceeds the set duration, the volume of the incoming call ringtone will be controlled to decrease with the gaze duration, thereby realizing the service processing flow of reducing the volume of the incoming call ringtone by gaze.

[0171] In one implementation, after extracting the human eye parameter from the second image in S302B, the method further includes:

[0172] S302F: If the human eye parameters are not output after the first service is executed, the first service is repeatedly executed until the set time is reached.

[0173] In one case, when the electronic device is shaking or the user is moving, the image captured by the camera may be blurred or incomplete, or the electronic device may be in an unstable network, which will affect the results of human eye parameter extraction.

[0174] When the human eye parameters are not output after the first service is executed, a processing method of repeatedly executing the first service within a set time period is set here to ensure the processing effectiveness of the service execution.

[0175] In one implementation, after S302F repeatedly executes the first service, the method further includes:

[0176] S302G: When the set time is reached and the human eye parameters are not output after the first service is executed, suspend or cancel the first service and resume the execution of the second service.

[0177] When the set time is reached and the first service does not output the human eye parameters after execution, it is considered that the image does not contain the required human eye parameters or the extraction of human eye parameters fails. At this time, it can be determined that the algorithm corresponding to the temporarily inserted first service has been executed, and the suspended second service is resumed, and the second service is suspended or canceled accordingly, and the switching execution between conflicting services is implemented, effectively solving the conflict problem of different intelligent control interaction functions occupying camera resources.

[0178] In one implementation, S302G executes the second service, including:

[0179] Calling the camera to capture a third image; extracting gesture parameters from the third image.

[0180] The gesture parameter represents the control information of the electronic device by the user of the electronic device, for example, the user's control information of taking a screenshot of the electronic device screen or the user's control information of turning a page of the electronic device.

[0181] Gesture parameters include, for example, gesture action, gesture movement trajectory, gesture flip trajectory, etc.

[0182] It can be understood that, in one example, the second service is a gesture control service, including the air gesture service described above.

[0183] Implement switching between conflicting gesture control services and other services to effectively solve the conflict problem of different intelligent control interaction functions occupying camera resources.

[0184] In one implementation, after determining the calling state of the camera in the electronic device in S301, the method further includes:

[0185] S303: When the camera is in an uncalled state and a first image currently captured by the camera contains facial features, execute a first service.

[0186] When the camera is not called and the first image currently captured by the camera contains facial features, it can be considered that the prerequisite for executing the first service is met and the first service can be directly executed to ensure service execution efficiency and quality.

[0187] Figure 8 Schematic diagram of an electronic device control device according to an embodiment of the present application. Figure 8 As shown, the device 2000 includes an acquisition unit 2001 and a processing unit 2002. The device 2000 can be integrated in electronic devices such as mobile phones, tablet computers, and smart wearable devices.

[0188] The device 2000 can be used to execute any of the above electronic device control methods. For example, the acquisition unit 2001 can be used to execute step S301, and the processing unit 2002 can be used to execute step S302. For another example, the processing unit 2002 can be used to execute Figure 3 For another example, the apparatus 2000 can be used to perform Figure 6 or Figure 7 interaction process.

[0189] In one implementation, the apparatus 2000 may further include a storage unit for storing data such as images, recognized image features, etc. The storage unit may be integrated in any one of the above units, or may be a unit independent of all the above units.

[0190] Fig. 9 Schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. Fig. 9As shown, the electronic device 900 may include a processor 910, an external memory interface 920, an internal memory 921, a universal serial bus (USB) interface 930, a charging management module 940, a power management module 941, a battery 942, an antenna 1, an antenna 2, a mobile communication module 950, a wireless communication module 960, an audio module 970, a speaker 970A, a receiver 970B, a microphone 970C, an earphone interface 970D, a sensor module 980, a button 990, a motor 991, an indicator 992, a camera 993, a display screen 994, and a subscriber identification module (SIM) card interface 995, etc. Among them, the sensor module 980 may include a pressure sensor 980A, a gyroscope sensor 980B, an air pressure sensor 980C, a magnetic sensor 980D, an acceleration sensor 980E, a distance sensor 980F, a proximity light sensor 980G, a fingerprint sensor 980H, a temperature sensor 980J, a touch sensor 980K, an ambient light sensor 980L, a bone conduction sensor 980M, etc.

[0191] 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 900. In other embodiments of the present application, the electronic device 900 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.

[0192] For example, Fig. 9 The processor 910 shown may include one or more processing units, for example, the processor 910 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

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

[0194] The processor 910 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 910 is a cache memory. The memory may store instructions or data that the processor 910 has just used or cyclically used. If the processor 910 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 910, and thus improves the efficiency of the system.

[0195] In some embodiments, the processor 910 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0196] In some embodiments, the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). The processor 910 may include multiple groups of I2C buses. The processor 910 may be coupled to the touch sensor 980K, the charger, the flash, the camera 993, etc. through different I2C bus interfaces. For example, the processor 910 may be coupled to the touch sensor 980K through the I2C interface, so that the processor 910 communicates with the touch sensor 980K through the I2C bus interface to realize the touch function of the electronic device 900.

[0197] In some embodiments, the I2S interface can be used for audio communication. The processor 910 can include multiple I2S buses. The processor 910 can be coupled to the audio module 970 via the I2S bus to achieve communication between the processor 910 and the audio module 970.

[0198] In some embodiments, the audio module 970 can transmit audio signals to the wireless communication module 960 through the I2S interface to implement the function of answering calls through a Bluetooth headset.

[0199] In some embodiments, the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. The audio module 970 and the wireless communication module 960 can be coupled via a PCM bus interface.

[0200] In some embodiments, the audio module 970 can also transmit audio signals to the wireless communication module 960 through the PCM interface to implement the function of answering calls through a Bluetooth headset. It should be understood that both the I2S interface and the PCM interface can be used for audio communication.

[0201] In some embodiments, the UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. The UART interface is generally used to connect the processor 910 and the wireless communication module 960. For example, the processor 910 communicates with the Bluetooth module in the wireless communication module 960 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 970 can transmit an audio signal to the wireless communication module 960 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0202] In some embodiments, the MIPI interface can be used to connect the processor 910 with peripheral devices such as the display screen 994 and the camera 993. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. The processor 910 and the camera 993 communicate through the CSI interface to realize the shooting function of the electronic device 900. The processor 910 and the display screen 994 communicate through the DSI interface to realize the display function of the electronic device 900.

[0203] In some embodiments, the GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. The GPIO interface can be used to connect the processor 910 with the camera 993, the display screen 994, the wireless communication module 960, the audio module 970, the sensor module 980, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0204] Exemplarily, the USB interface 930 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 900, and can also be used to transfer data between the electronic device 900 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0205] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 900. In other embodiments of the present application, the electronic device 900 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0206] The charging management module 940 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 940 may receive charging input from a wired charger through the USB interface 930. In some wireless charging embodiments, the charging management module 940 may receive wireless charging input through a wireless charging coil of the electronic device 900. While the charging management module 940 is charging the battery 942, it may also power the electronic device through the power management module 941.

[0207] The power management module 941 is used to connect the battery 942, the charging management module 940 and the processor 910. The power management module 941 receives input from the battery 942 and / or the charging management module 940, and supplies power to the processor 910, the internal memory 921, the external memory, the display screen 994, the camera 993, and the wireless communication module 960. The power management module 941 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 941 can also be set in the processor 910. In other embodiments, the power management module 941 and the charging management module 940 can also be set in the same device.

[0208] The wireless communication function of the electronic device 900 can be implemented through antenna 1, antenna 2, mobile communication module 950, wireless communication module 960, modem processor and baseband processor.

[0209] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 900 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of 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.

[0210] The mobile communication module 950 can provide a wireless communication solution applied to the electronic device 900, such as at least one of the following solutions: a second generation (2G) mobile communication solution, a third generation (3G) mobile communication solution, a fourth generation (5G) mobile communication solution, and a fifth generation (5G) mobile communication solution. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 950 can receive electromagnetic waves from the antenna 1, and filter and amplify the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 950 can also amplify the signal modulated by the modulation and demodulation processor, and the amplified signal is converted into an electromagnetic wave and radiated out through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 910. In some embodiments, at least some of the functional modules of the mobile communication module 950 can be set in the same device as at least some of the modules of the processor 910.

[0211] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 970A, a receiver 970B, etc.), or displays an image or video through a display screen 994. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 910 and be set in the same device as the mobile communication module 950 or other functional modules.

[0212] The wireless communication module 960 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 900. The wireless communication module 960 can be one or more devices integrating at least one communication processing module. The wireless communication module 960 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 910. The wireless communication module 960 can also receive the signal to be sent from the processor 910, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0213] In some embodiments, the antenna 1 of the electronic device 900 is coupled to the mobile communication module 950, and the antenna 2 of the electronic device 900 is coupled to the wireless communication module 960, so that the electronic device 900 can communicate with the network and other electronic devices through wireless communication technology. The wireless communication technology may include at least one of the following communication technologies: global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, IR technology. The GNSS may include at least one of the following positioning technologies: global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and satellite based augmentation systems (SBAS).

[0214] The electronic device 900 implements the display function through a GPU, a display screen 994, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 994 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 910 may include one or more GPUs, which execute program instructions to generate or change display information.

[0215] The display screen 994 is used to display images, videos, etc. The display screen 994 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), Mini-LED, Micro-Led, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 900 may include 1 or N display screens 994, where N is a positive integer greater than 1.

[0216] The electronic device 900 can realize the shooting function through an ISP, a camera 993, a video codec, a GPU, a display screen 994, and an application processor.

[0217] ISP is used to process the data fed back by camera 993. 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 993.

[0218] The camera 993 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 900 may include 1 or N cameras 993, where N is a positive integer greater than 1.

[0219] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 900 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0220] Video codecs are used to compress or decompress digital videos. The electronic device 900 may support one or more video codecs. Thus, the electronic device 900 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0221] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 900 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0222] The external memory interface 920 can be used to connect an external memory card, such as a secure digital (SD) card, to expand the storage capacity of the electronic device 900. The external memory card communicates with the processor 910 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.

[0223] The internal memory 921 can be used to store computer executable program codes, which include instructions. The processor 910 executes various functional applications and data processing of the electronic device 900 by running the instructions stored in the internal memory 921. The internal memory 921 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 900 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 921 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.

[0224] The electronic device 900 can implement audio functions such as music playing and recording through the audio module 970, the speaker 970A, the receiver 970B, the microphone 970C, the headphone jack 970D, and the application processor.

[0225] The audio module 970 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 970 can also be used to encode and decode audio signals. In some embodiments, the audio module 970 can be arranged in the processor 910, or some functional modules of the audio module 970 can be arranged in the processor 910.

[0226] The speaker 970A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 900 can listen to music or listen to a hands-free call through the speaker 970A.

[0227] The receiver 970B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 900 receives a call or voice message, the voice can be received by placing the receiver 970B close to the human ear.

[0228] Microphone 970C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 970C to input the sound signal into the microphone 970C. The electronic device 900 can be provided with at least one microphone 970C. In other embodiments, the electronic device 900 can be provided with two microphones 970C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 900 can also be provided with three, four or more microphones 970C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0229] The earphone interface 970D is used to connect a wired earphone and can be the USB interface 930 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0230] The pressure sensor 980A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 980A can be set on the display screen 994. There are many types of pressure sensors 980A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 980A, the capacitance between the electrodes changes. The electronic device 900 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 994, the electronic device 900 detects the touch operation intensity according to the pressure sensor 980A. The electronic device 900 can also calculate the touch position according to the detection signal of the pressure sensor 980A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0231] The gyroscope sensor 980B can be used to determine the motion posture of the electronic device 900. In some embodiments, the angular velocity of the electronic device 900 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 980B. The gyroscope sensor 980B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 980B detects the angle of the electronic device 900 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 900 through reverse movement to achieve anti-shake. The gyroscope sensor 980B can also be used for navigation and somatosensory game scenes.

[0232] The air pressure sensor 980C is used to measure air pressure. In some embodiments, the electronic device 900 calculates the altitude through the air pressure value measured by the air pressure sensor 980C to assist in positioning and navigation.

[0233] The magnetic sensor 980D includes a Hall sensor. The electronic device 900 can use the magnetic sensor 980D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 900 is a flip phone, the electronic device 900 can detect the opening and closing of the flip cover according to the magnetic sensor 980D; according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, set the flip cover to automatically unlock and other features.

[0234] The acceleration sensor 980E can detect the magnitude of the acceleration of the electronic device 900 in all directions (generally three axes). When the electronic device 900 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0235] The distance sensor 980F is used to measure the distance. The electronic device 900 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 900 can use the distance sensor 980F to measure the distance to achieve fast focusing.

[0236] The proximity light sensor 980G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The light-emitting diode may be an infrared light-emitting diode. The electronic device 900 emits infrared light outward through the light-emitting diode. The electronic device 900 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 900. When insufficient reflected light is detected, the electronic device 900 can determine that there is no object near the electronic device 900. The electronic device 900 can use the proximity light sensor 980G to detect that the user holds the electronic device 900 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 980G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0237] The ambient light sensor 980L is used to sense the ambient light brightness. The electronic device 900 can adaptively adjust the brightness of the display screen 994 according to the perceived ambient light brightness. The ambient light sensor 980L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 980L can also cooperate with the proximity light sensor 980G to detect whether the electronic device 900 is in a pocket to prevent accidental touches.

[0238] The fingerprint sensor 980H is used to collect fingerprints. The electronic device 900 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0239] The temperature sensor 980J is used to detect temperature. In some embodiments, the electronic device 900 uses the temperature detected by the temperature sensor 980J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 980J exceeds a threshold, the electronic device 900 reduces the performance of the processor located near the temperature sensor 980J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 900 heats the battery 942 to avoid abnormal shutdown of the electronic device 900 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 900 performs a boost on the output voltage of the battery 942 to avoid abnormal shutdown caused by low temperature.

[0240] The touch sensor 980K is also called a "touch panel". The touch sensor 980K can be set on the display screen 994, and the touch sensor 980K and the display screen 994 form a touch screen, also called a "touch screen". The touch sensor 980K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 994. In other embodiments, the touch sensor 980K can also be set on the surface of the electronic device 900, which is different from the position of the display screen 994.

[0241] The bone conduction sensor 980M can obtain a vibration signal. In some embodiments, the bone conduction sensor 980M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 980M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 980M can also be set in an earphone and combined into a bone conduction earphone. The audio module 970 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 980M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 980M to realize a heart rate detection function.

[0242] The key 990 includes a power key, a volume key, etc. The key 990 may be a mechanical key or a touch key. The electronic device 900 may receive key input and generate key signal input related to user settings and function control of the electronic device 900.

[0243] Motor 991 can generate vibration prompts. Motor 991 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 994, motor 991 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0244] Indicator 992 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0245] The SIM card interface 995 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 900 by inserting it into the SIM card interface 995 or pulling it out from the SIM card interface 995. The electronic device 900 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 995 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 995 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 995 can also be compatible with different types of SIM cards. The SIM card interface 995 can also be compatible with external memory cards. The electronic device 900 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 900 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 900 and cannot be separated from the electronic device 900.

[0246] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0247] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0248] An embodiment of the present application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor can implement the steps in any of the above methods when executing the computer program.

[0249] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0250] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0251] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0252] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0253] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software 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.

[0254] In the embodiments provided in the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0255] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0256] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0257] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0258] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0259] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0260] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0261] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for controlling an electronic device, characterized in that: include: In response to an execution instruction of the first service, determining a call state of a camera in the electronic device; When the camera is in a state of calling a second service and the first image currently captured by the camera contains facial features, the second service is suspended and the first service is executed.

2. The method according to claim 1, characterized in that The performing of the first service includes: Calling the camera to capture a second image; Human eye parameters are extracted from the second image, where the human eye parameters represent manipulation information of the electronic device by a user of the electronic device.

3. The method according to claim 2, characterized in that After extracting the human eye parameters from the second image, the method further includes: If the first service outputs the human eye parameter after execution, the volume of the electronic device is adjusted based on the human eye parameter.

4. The method according to claim 2, characterized in that After extracting the human eye parameters from the second image, the method further includes: If the first service outputs the human eye parameters after execution, the screen display state of the electronic device is adjusted based on the human eye parameters.

5. The method according to claim 2, characterized in that After extracting the human eye parameters from the second image, the method further includes: If the first service outputs the human eye parameter after execution, the first service is suspended or canceled, and the execution of the second service is resumed.

6. The method according to claim 2, characterized in that After extracting the human eye parameters from the second image, the method further includes: If the human eye parameter is not output after the first service is executed, the first service is repeatedly executed until a set time period is reached.

7. The method according to claim 6, characterized in that After repeatedly performing the first service, the method further includes: When the set time period is reached and the human eye parameter is not output after the first service is executed, the first service is suspended or canceled, and the execution of the second service is resumed.

8. The method according to claim 7, characterized in that The performing of the second service includes: Calling the camera to capture a third image; Gesture parameters are extracted from the third image, where the gesture parameters represent manipulation information of the electronic device by a user of the electronic device.

9. The method according to any one of claims 1 to 8, characterized in that After determining the calling state of the camera in the electronic device, the method further includes: When the camera is in an uncalled state and a first image currently captured by the camera contains facial features, the first service is executed.

10. The method according to any one of claims 1 to 8, characterized in that Before responding to the execution instruction of the first service and determining the calling state of the camera in the electronic device, the method further includes: determining a screen status of the electronic device; If the screen status indicates that the electronic device is in a bright screen unlocked state, the second service is triggered.

11. The method according to any one of claims 1 to 8, characterized in that Perception applications include: gesture fencing and eye-level fencing; The gesture fence is associated with the second service, and the eye-gaze fence is associated with the first service.

12. The method according to claim 11, characterized in that The first service corresponds to a first algorithm execution path, the second service corresponds to a second algorithm execution path, and the first algorithm execution path is different from the second algorithm execution path.

13. An electronic equipment control device, characterized in that: include: an acquiring unit, configured to determine a call state of a camera in the electronic device in response to an execution instruction of the first service; The processing unit is configured to suspend the second service and execute the first service when the camera is in a state of calling a second service and the first image currently captured by the camera contains facial features.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 12 is implemented.

15. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.