Frequency limiting control method and electronic equipment

By using a frequency-limiting control method, the CPU frequency of electronic devices is dynamically adjusted, solving the problems of increased power consumption and performance loss caused by the gallery business calling the video processing algorithm, thereby achieving power consumption reduction and performance improvement.

CN120669841AActive Publication Date: 2025-09-19HONOR DEVICE CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410276397.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-11
Publication Date
2025-09-19
Estimated Expiration
2044-03-11

AI Technical Summary

Technical Problem

When electronic devices call video processing algorithms in gallery services, it leads to increased power consumption and performance loss, which existing technologies have failed to effectively solve.

Method used

A frequency limiting control method is provided. By obtaining a frequency limiting trigger scenario, the CPU frequency of an electronic device is dynamically adjusted. The frequency limiting operation mode is determined according to the frequency limiting trigger scenario, and the electronic device is controlled to operate under the frequency limiting conditions, thereby reducing power consumption and heat generation.

Benefits of technology

Effectively reduce the power consumption and heat generation of electronic devices, improve performance and stability, avoid performance loss or resource waste caused by excessively high or low frequencies, and extend the service life and battery life of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120669841A_ABST
    Figure CN120669841A_ABST
Patent Text Reader

Abstract

The invention discloses a frequency limiting control method and electronic equipment, and belongs to the technical field of electronic equipment. The frequency limiting control method is applied to the electronic equipment and comprises the following steps: acquiring a frequency limiting triggering scene of the electronic equipment; under the condition that it is determined that the electronic equipment meets a frequency limiting condition according to the frequency limiting triggering scene, determining a frequency limiting operation mode of the electronic equipment according to the frequency limiting triggering scene; and controlling the electronic equipment to operate based on the frequency limiting operation mode. Under the condition that the electronic equipment meets the frequency limiting condition, the frequency limiting operation mode of the electronic equipment is determined according to the frequency limiting triggering scene, and frequency limiting control over the equipment can be achieved according to the frequency limiting operation mode required by the equipment, so that power consumption and heating are reduced, and the performance and stability of the electronic equipment are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a frequency limiting control method and electronic equipment. Background Art

[0002] Video is one of the primary ways people obtain information and enjoy entertainment in their daily lives. With the improvement of client hardware performance and the continuous advancement of artificial intelligence technology, the demand for rapid video generation through electronic devices is increasing.

[0003] Currently, when the gallery service of an electronic device calls a video processing algorithm to analyze photos and videos, continuous calls will lead to increased power consumption and performance loss of the electronic device. Summary of the Invention

[0004] This application provides a frequency limiting control method and electronic device. This frequency limiting control method can flexibly adjust the CPU frequency of the electronic device according to the actual frequency limiting requirements of the electronic device, reduce the power consumption and heat generation of the electronic device, and avoid performance loss or resource waste caused by excessively high or low frequencies. The technical solution is as follows:

[0005] A first aspect of the present application provides a frequency limiting control method, applied to an electronic device, comprising:

[0006] Obtain the frequency limiting trigger scenario of the electronic device;

[0007] In a case where it is determined that the electronic device meets the frequency limiting condition according to the frequency limiting triggering scenario, determining a frequency limiting operation mode of the electronic device according to the frequency limiting triggering scenario;

[0008] The electronic device is controlled to operate based on the frequency-limited operation mode.

[0009] The frequency limiting control method provided in the embodiments of the present application can be applied to scenarios where various electronic devices need to operate at limited frequencies. For example, in scenarios where electronic devices call image processing algorithms (such as the algorithms involved in the "Smart Filming" skill option, which includes the functions of searching for images and creating videos) to perform image analysis and video generation, if the electronic devices meet the frequency limiting conditions, the CPU frequency of the electronic devices will be dynamically adjusted to reduce power consumption and heat generation.

[0010] In this implementation, frequency limiting trigger scenarios can be divided into foreground trigger scenarios and background trigger scenarios. Whether the electronic device meets the frequency limiting conditions is determined based on the frequency limiting trigger scenario. If the frequency limiting conditions are met, the frequency limiting operation mode of the electronic device is determined based on the frequency limiting trigger scenario. This allows determining whether frequency limiting control is required for the electronic device based on its current operating state, thereby reducing power consumption and heat generation, and improving the performance and stability of the electronic device.

[0011] According to the first aspect, or any implementation of the first aspect above, the method further includes: in response to the electronic device calling an image processing algorithm, triggering detection of a frequency limiting triggering scenario of the electronic device.

[0012] In this implementation, the frequency limiting triggering scenario of the electronic device can be dynamically triggered based on whether the electronic device has called an image processing algorithm.

[0013] When the electronic device is running, monitor whether there are any calls to the image processing algorithm, such as opening the camera, browsing photos, editing pictures, etc. If the call operation of the image processing algorithm is detected, and during the image processing process of the electronic device, determine the current working status of the electronic device to determine whether frequency limiting operation is required.

[0014] According to the first aspect, or any implementation of the first aspect above, the method further includes:

[0015] When the electronic device is being charged, in response to detecting that a device temperature of the electronic device is less than a first temperature, monitoring a foreground calling operation of the electronic device on the image processing algorithm;

[0016] When the electronic device is not being charged, in response to detecting that the device temperature of the electronic device is less than the first temperature and the battery power of the electronic device is greater than the first power, monitoring the foreground call operation of the electronic device to the image processing algorithm.

[0017] In this implementation, while the electronic device is operating, the system determines whether to monitor foreground invocations of image processing algorithms based on whether the electronic device is charging, the device temperature, and the battery level. Foreground invocations of image processing algorithms refer to operations where the electronic device executes the image processing algorithm on a user-visible interface, such as taking a photo, browsing photos, or editing an image.

[0018] According to the first aspect, or any implementation of the first aspect above, the method further includes:

[0019] monitoring, within the restricted call period of the electronic device, a background call operation of the electronic device on the image processing algorithm in response to detecting that a battery level of the electronic device when the screen is off and charging is greater than a second level and a device temperature is less than a fourth temperature, wherein the second level is greater than the first level;

[0020] During a non-restricted calling period of the electronic device, in response to detecting that the electronic device is charging with the screen off, monitoring a background calling operation of the electronic device on the image processing algorithm.

[0021] In this implementation, whether to monitor the electronic device's background calls to the image processing algorithm is determined based on the electronic device's restricted and unrestricted call periods, as well as the electronic device's battery level and temperature. The restricted call period can be the nighttime period of each day, for example, between 1:00 AM and 5:00 AM; the unrestricted call period can be the daytime period of each day, for example, between 1:00 AM and 5:00 AM. It should be understood that the above examples are merely for illustrative purposes and are not intended to be limiting in actual application scenarios.

[0022] Exemplarily, calling an image processing algorithm in the background refers to an operation in which an electronic device runs an image processing algorithm on an interface that is invisible to the user, such as background updating, background recognition, background compression, etc.

[0023] According to the first aspect, or any implementation of the first aspect above, determining, based on the frequency limit triggering scenario, that the electronic device meets the frequency limit condition includes:

[0024] In a case where the frequency limit triggering scenario is a foreground triggering scenario, in response to detecting that a device temperature of the electronic device is greater than a second temperature, determining that the electronic device meets the frequency limit condition;

[0025] In a case where the frequency limiting triggering scenario is a background triggering scenario, in response to detecting that the battery power of the electronic device is reduced when the screen is off and charging, it is determined that the electronic device meets the frequency limiting condition.

[0026] In one example, frequency limiting triggering scenarios can be categorized as foreground triggering scenarios and background triggering scenarios. Foreground triggering scenarios refer to situations where the electronic device is in a user-operated state, such as browsing the web, playing games, or watching videos. Background triggering scenarios refer to situations where the electronic device is not in a user-operated state, such as locking the screen, charging, or running an application in the background.

[0027] Dynamically adjust the processor frequency of electronic devices according to different trigger scenarios and frequency limit conditions, thereby protecting the safety and performance of electronic devices and improving the user experience of using electronic devices to call image processing algorithms to process images or generate videos.

[0028] According to the first aspect, or any implementation of the first aspect above, determining the frequency limited operation mode of the electronic device according to the frequency limited triggering scenario includes:

[0029] When the frequency limiting triggering scenario is a foreground triggering scenario, determining a frequency limiting operation mode of the electronic device according to a device temperature of the electronic device;

[0030] In the case where the frequency limiting triggering scenario is a background triggering scenario, the frequency limiting operation mode of the electronic device is determined according to the number of times the battery power of the electronic device decreases within the monitoring time of screen-off charging.

[0031] According to the first aspect, or any implementation of the first aspect above, the frequency-limited operation mode of the electronic device includes:

[0032] The duration of each call of the electronic device to the image processing algorithm, and the duration of sleep after each call of the image processing algorithm.

[0033] According to the first aspect, or any implementation of the first aspect above, determining the frequency-limited operation mode of the electronic device based on the device temperature of the electronic device includes:

[0034] In response to detecting that the device temperature of the electronic device is greater than the second temperature and less than the third temperature, determining a first frequency-limited operating mode of the electronic device, wherein the first frequency-limited operating mode is that the electronic device goes into sleep for a first time period after each invocation of the image processing algorithm for a first time period;

[0035] In response to detecting that the device temperature of the electronic device is greater than the third temperature and less than the first temperature, determining a second frequency-limited operating mode of the electronic device, wherein the second frequency-limited operating mode is to sleep for a second time period after the electronic device calls the image processing algorithm for a first time period each time;

[0036] The second duration is greater than the first duration, the second temperature is less than the third temperature, and the third temperature is less than the first temperature.

[0037] According to the first aspect, or any implementation of the first aspect above, the method further includes:

[0038] re-detecting the device temperature of the electronic device while controlling the electronic device to operate based on the first frequency-limited operating mode;

[0039] When the device temperature of the electronic device decreases and the total time duration for which the electronic device operates based on the first frequency-limited operation mode is greater than a fourth time duration, triggering the release of the frequency-limited operation control of the electronic device.

[0040] According to the first aspect, or any implementation of the first aspect above, the method further includes:

[0041] re-detecting the device temperature of the electronic device while controlling the electronic device to operate based on the second frequency-limited operating mode;

[0042] re-determining the frequency-limited operating mode of the electronic device when the device temperature of the electronic device is lower than the first temperature and the total operating time of the electronic device based on the first frequency-limited operating mode is longer than a fourth time;

[0043] When the device temperature of the electronic device is greater than the first temperature, the electronic device is stopped from calling the image processing algorithm.

[0044] According to the first aspect, or any implementation of the first aspect above, the method further includes:

[0045] In response to detecting that the device temperature of the electronic device is greater than the first temperature, stopping calling the image processing algorithm.

[0046] According to the first aspect, or any implementation of the first aspect above, determining the frequency-limited operation mode of the electronic device according to the number of times the battery power of the electronic device decreases during the monitoring period of screen-off charging includes:

[0047] When the number of times the battery power decreases reaches a first number, determining that the electronic device sleeps for a third time after calling the image processing algorithm for a first time each time, wherein the third time is less than the first time;

[0048] When the battery power decreases a second number of times, determining that the electronic device goes into sleep for a first time period after calling the image processing algorithm for a first time period each time;

[0049] When the battery power decreases for a third time, determining that the electronic device is put into sleep for a fourth time after each invocation of the image processing algorithm for a first time, wherein the fourth time is greater than the first time;

[0050] When the number of times the battery power decreases reaches a fourth number, determining that the electronic device sleeps for a second time period after each call of the image processing algorithm for a first time period, wherein the second time period is greater than the fourth time period;

[0051] The second number is greater than the first number, the third number is greater than the second number, and the fourth number is greater than the third number.

[0052] According to the first aspect, or any implementation of the first aspect above, the method further includes:

[0053] In response to the electronic device stopping the calling operation of the image processing algorithm, the frequency-limited operation control of the electronic device is triggered to be released.

[0054] In a second aspect of the present application, a frequency-limited operation device is provided, which is applied to an electronic device, comprising:

[0055] An acquisition unit, configured to acquire a frequency limiting triggering scenario of an electronic device;

[0056] a determining unit, configured to, when it is determined that the electronic device meets the frequency limiting condition according to the frequency limiting triggering scenario, determine a frequency limiting operation mode of the electronic device according to the frequency limiting triggering scenario;

[0057] A control unit is used to control the electronic device to operate based on the frequency-limited operation mode.

[0058] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0059] According to a third aspect, an electronic device is provided, comprising a module / unit for executing the first aspect or any one of the methods of the first aspect.

[0060] In a fourth aspect, an electronic device is provided, comprising one or more processors and a memory;

[0061] The memory is coupled to one or more processors, and the memory is used to store computer program code, where the computer program code includes computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the first aspect or any one of the methods in the first aspect.

[0062] In a fifth aspect, a chip system is provided, which is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the first aspect or any one of the methods in the first aspect.

[0063] In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the first aspect or any one of the methods in the first aspect.

[0064] In a seventh aspect, a computer program product is provided, comprising: a computer program code, which, when executed by an electronic device, enables the electronic device to execute the first aspect or any one of the methods in the first aspect.

[0065] The present application provides a frequency limiting control method, which is applied to an electronic device, obtains a frequency limiting trigger scenario of the electronic device; when it is determined that the electronic device meets the frequency limiting conditions according to the frequency limiting trigger scenario, determines the frequency limiting operation mode of the electronic device according to the frequency limiting trigger scenario; and controls the electronic device to operate based on the frequency limiting operation mode.

[0066] In this frequency limiting control method, frequency limiting trigger scenarios can be divided into foreground trigger scenarios and background trigger scenarios. Based on the frequency limiting trigger scenario, it is determined whether the electronic device meets the frequency limiting conditions. If the frequency limiting conditions are met, the frequency limiting operation mode of the electronic device is determined based on the frequency limiting trigger scenario. This can determine whether frequency limiting control is required for the electronic device based on its current operating state, thereby reducing power consumption and heat generation, and improving the performance and stability of the electronic device.

[0067] Through the above technical solution, since the electronic device includes the above frequency limiting control method, it at least has all the beneficial effects of the frequency limiting control method, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A schematic structural diagram of an electronic device 100 provided in an embodiment of the present application;

[0069] Figure 2 A software structure block diagram of the electronic device 100 provided in an embodiment of the present application;

[0070] Figure 3a This is a schematic diagram of an optional smart filming process provided by an embodiment of the present application;

[0071] Figure 3b A schematic diagram of a process of an electronic device calling an image processing algorithm provided by an embodiment of the present application;

[0072] Figure 4 A schematic diagram of a process for determining a frequency limiting condition and a frequency limiting operation mode based on a frequency limiting trigger scenario in an embodiment of the present application is shown;

[0073] Figure 5 A schematic diagram of a process for determining a frequency-limited operation mode in a foreground trigger scenario according to an embodiment of the present application is shown;

[0074] Figure 6 A schematic diagram of a process for determining a frequency-limited operation mode in a background triggering scenario according to an embodiment of the present application is shown;

[0075] Figure 7 A schematic diagram illustrating a process of frequency-limited operation of an electronic device in a foreground triggering scenario according to an embodiment of the present application is shown;

[0076] Figure 8A schematic diagram illustrating a process of frequency-limited operation of another electronic device in a foreground triggering scenario according to an embodiment of the present application is shown;

[0077] Figure 9 A schematic diagram illustrating a process of frequency-limited operation of an electronic device in a background triggering scenario according to an embodiment of the present application is shown;

[0078] Figure 10 A schematic diagram shows a process of frequency-limited operation of another electronic device in a background triggering scenario according to an embodiment of the present application. DETAILED DESCRIPTION

[0079] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0080] It should be understood that the term "plurality" used in this application refers to two or more. In this application, unless otherwise specified, " / " represents "or," for example, "A / B" can represent either "A" or "B." "And / or" in this document is simply a way of describing an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B simultaneously, or B alone.

[0081] In addition, to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. The terms "first" and "second" in the description and claims of the embodiments of this application are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first target object and the second target object are used to distinguish different target objects, rather than to describe a specific order of target objects.

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

[0083] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

[0084] First, some of the terms used in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0085] Rate Limiter refers to limiting the request frequency of a resource or interface. It can be understood as distributing permits at a specified rate. When a request comes in, the thread will be blocked until an available permit is obtained. After using these permits, there is no need to release them.

[0086] Contrastive Language-Image Pre-training (CLIP) is an effective and scalable multimodal pre-training method or model for learning from natural language supervision. It is based on parallel implementation of images and texts, and constructs training targets by calculating the similarity of feature vectors of the two branches.

[0087] The Basic Input Output System (BIOS) is an industry-standard firmware interface on compatible systems.

[0088] The above is a brief introduction to the nouns involved in the embodiments of this application, and no further details will be given below.

[0089] See also Figure 1 , Figure 1 A structural diagram of an electronic device 100 provided for an embodiment of the present application. Optionally, the electronic device 100 can be referred to as a terminal, or as a terminal device, and the specific product form of the electronic device 100 can be an intelligent terminal, such as a mobile phone, a tablet computer, a wearable device, an augmented reality / virtual reality device, a laptop computer, a vehicle-mounted device, a personal digital assistant (PDA), and other electronic devices with a frequency-limited operation function. Specifically, the functional modules involved in this application can be deployed on the DSP chip of the relevant device, and specifically can be the application program or software therein. A frequency-limited control method function can be implemented through software installation or upgrade, as well as through hardware call coordination.

[0090] It should be understood that Figure 1 The illustrated electronic device 100 is merely one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. Figure 1 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0091] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an acceleration sensor, a temperature sensor, a motion sensor, an air pressure sensor, a magnetic sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0092] The processor 110 may include one or more processing units, for example, an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

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

[0094] The processor 110 may further include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.

[0095] The USB interface 130 is an interface that complies with USB standard specifications, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.

[0096] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141. The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.

[0097] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.

[0098] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.

[0099] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.

[0100] The wireless communication module 160 can provide wireless communication solutions for application on the electronic device 100, 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 technology (NFC), infrared technology (IR), etc.

[0101] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 , and antenna 2 is coupled to wireless communication module 160 , so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0102] The electronic device 100 implements display functions through a GPU, a display screen 194 , an application processor, etc. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0103] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

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

[0105] The ISP is used to process data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then transmitted to the ISP for processing and converted into an image visible to the naked eye.

[0106] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0107] Among them, the camera 193 can be located in the edge area of ​​the electronic device, can be an under-screen camera, or can be a liftable camera. The camera 193 can include a rear camera, and can also include a rear camera. The embodiment of the present application does not limit the specific position and form of the camera 193. The electronic device 100 can include cameras with one or more focal lengths. For example, cameras with different focal lengths can include a telephoto camera, a wide-angle camera, an ultra-wide-angle camera, or a panoramic camera.

[0108] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.

[0109] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121, such as enabling the electronic device 100 to implement the frequency limiting control method in the embodiment of the present application. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0110] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170 and the application processor.

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

[0112] A touch sensor, also known as a "touch panel," can be provided on display screen 194. The touch sensor and display screen 194 together form a touch screen, also known as a "touch screen." The touch sensor is used to detect touch operations applied to or near the touch sensor. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194.

[0113] The pressure sensor is used to sense pressure signals and convert the pressure signals into electrical signals. In some embodiments, the pressure sensor can be provided on the display screen 194. The electronic device 100 can also calculate the touch position based on the detection signal of the pressure sensor.

[0114] The gyroscope sensor may be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) may be determined by the gyroscope sensor.

[0115] The accelerometer can detect the magnitude of the electronic device 100's acceleration in all directions (generally three axes). When the electronic device 100 is stationary, the accelerometer can detect the magnitude and direction of gravity. The accelerometer can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0116] The buttons 190 include a power button (also known as a power button), a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0117] Next, the software system of the electronic device 100 is described. The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. In this embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0118] like Figure 2 This is an illustrative block diagram of the software structure of electronic device 100. The layered architecture of electronic device 100 divides the software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime layer, the system layer, and the kernel layer, from top to bottom.

[0119] The application layer can include a series of application packages, such as Figure 2 As shown, the application package can include applications such as gallery, creation assistant, quick application engine, light editing service, etc.

[0120] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer, including various components and services to support developers' Android development. The application framework layer includes some predefined functions. Figure 2 As shown, the application framework layer may include a window manager, a content provider, a notification manager, a resource manager, a search engine, a learning memory library, and a visual image module, etc.

[0121] It should be noted that the images processed by the image processing algorithm involved in the embodiments of the present application can be taken by the electronic device, downloaded by the electronic device from a server, or received by the electronic device from other electronic devices. The embodiments of the present application do not limit this.

[0122] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0123] Content providers are used to store and retrieve data and make it accessible to applications. Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0124] The resource manager can provide various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0125] The visual image module includes visual controls, such as controls for displaying text and images. The visual image module can be used to construct an application's display interface, which can be composed of one or more views, such as a view that displays a text message notification icon, a view that displays text, and a view that displays images. The phone manager is used to provide communication functions for the electronic device 100, such as managing call status (including answering and hanging up).

[0126] The Notification Manager allows applications to display notifications in the status bar. These messages can be used to convey notifications and disappear automatically after a short pause, without requiring user interaction. For example, notifications are used to notify the completion of downloads, message reminders, etc. Notifications can also appear in the system's top status bar in the form of icons or scrolling text, such as notifications from applications running in the background, or in the form of dialog windows that appear on the screen. Examples include text messages in the status bar, beeping, electronic devices vibrating, indicator lights flashing, etc.

[0127] Library and Android Runtime. The system library can include multiple functional modules, such as: surface manager, media library, 3D graphics processing library (such as OpenGLES), 2D graphics engine (such as SGL), etc. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.

[0128] The Android runtime consists of core libraries and a virtual machine (VM). The runtime is responsible for scheduling and management of the Android system. The core libraries consist of two parts: one containing the Java language's callable functions and the other the Android core library. The application layer and the application framework layer run in the VM, which executes the Java files in the application and framework layers as binary files. The VM is responsible for managing object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0129] It is understandable that Figure 2 The components included in the illustrated system framework layer, system library, and runtime layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or split certain components, or arrange the components differently.

[0130] The kernel layer is the layer between the hardware and the aforementioned software layers. It includes at least the display driver, camera driver, and sensor driver. Hardware can include components such as cameras, displays, microphones, processors, and memory.

[0131] An embodiment of the present application provides a frequency limiting control method applicable to electronic devices. The frequency limiting control method includes: obtaining a frequency limiting triggering scenario for the electronic device; determining, based on the frequency limiting triggering scenario, that the electronic device meets a frequency limiting condition, determining a frequency limiting operating mode for the electronic device according to the frequency limiting triggering scenario; and controlling the electronic device to operate based on the frequency limiting operating mode.

[0132] Exemplarily, electronic devices may include mobile phones, tablet computers, smart watches, laptops, virtual-reality fusion devices, super mobile personal computers, smart TVs, smart screens, high-definition TVs, smart speakers, smart projectors, etc.

[0133] Obtaining the frequency limiting triggering scenario of the electronic device is to determine the current working state of the electronic device to determine whether a frequency limiting operation is required. In one example, the frequency limiting triggering scenario can be divided into a foreground triggering scenario and a background triggering scenario.

[0134] In this implementation, the foreground triggering scenario refers to the electronic device being in a state of user operation, such as browsing the web, playing games, watching videos, etc.

[0135] In this implementation, the background trigger scenario refers to the electronic device being in a non-user-operated state, such as locking the screen for charging, running an application in the background, calling an algorithm in the background, etc.

[0136] When it is determined that the electronic device meets the frequency limiting conditions according to the frequency limiting trigger scenario, the frequency limiting operation mode of the electronic device is determined according to the frequency limiting trigger scenario, that is, according to different frequency limiting trigger scenarios, the appropriate CPU frequency upper and lower limits, algorithm calling time and sleep time, as well as the rate and strategy for adjusting the frequency are selected.

[0137] After determining the frequency-limited operating mode of the electronic device, the electronic device is controlled to operate based on the frequency-limited operating mode, for example, by setting the algorithm calling time and sleep time, modifying the power management settings or basic input and output system BIOS settings, so that the algorithm calling time and sleep time of the electronic device, or the CPU frequency of the electronic device changes within a set range, to achieve the purpose of frequency limiting.

[0138] Flexible CPU frequency adjustment based on the actual frequency limit requirements of electronic devices avoids performance loss or resource waste caused by excessively high or low frequencies. This reduces power consumption and heat generation, extending the lifespan and battery life of electronic devices, and improving their reliability and safety. It also enhances the user experience, reduces issues such as lag, noise, and overheating, and improves the response speed and operational efficiency of electronic devices.

[0139] In one example, the frequency limiting triggering scenario of the electronic device may be dynamically triggered based on whether the electronic device has called an image processing algorithm.

[0140] Exemplarily, the image processing algorithm may be an algorithm involved in the "Smart Filming" skill option, which is used to process, analyze and understand images, such as image analysis, image generation, video segmentation, CLIP, video image segmentation, face recognition, image compression and other algorithms.

[0141] For example, when the electronic device is running, it monitors whether there are any calls to the image processing algorithm, such as opening the gallery, browsing photos, editing pictures, etc. When the electronic device detects the call operation of the image processing algorithm (starting the call) and when the electronic device is in the process of calling the image processing algorithm (calling process), the current working status of the electronic device, such as temperature, power, load, application, etc., is judged to determine whether frequency limiting operation is required.

[0142] If the electronic device meets the frequency limit conditions, the CPU frequency can be flexibly adjusted based on the actual frequency limit requirements of the electronic device to reduce power consumption and heat generation, thereby improving the performance and stability of the electronic device. For example, the appropriate CPU frequency rate and strategy can be selected based on different frequency limit triggering scenarios.

[0143] When electronic devices do not invoke image processing algorithms, they maintain normal operation without being affected by frequency limiting, ensuring their functionality and reliability. This avoids unnecessary frequency limiting, improving the operating efficiency and user experience of electronic devices.

[0144] The frequency limiting control method provided in the embodiment of the present application can be applied to various scenarios where electronic devices need to operate at a limited frequency, for example, electronic devices call image processing algorithms (such as Figure 3a The video analysis algorithm, video segmentation algorithm, CLIP algorithm, etc. involved in the smart film-making scene can be used for image search and video creation). In the smart film-making scene for image analysis and video generation, when it is determined that the electronic device meets the frequency limit conditions, the CPU frequency of the electronic device is dynamically adjusted, and the algorithm calling time and sleep time are used to reduce the power consumption and heat generation of the electronic device and improve the performance and stability of the electronic device.

[0145] The following combination Figure 3a 、 Figures 3b to 10 , the application scenario and process of the frequency limiting control method of the electronic device in the embodiment of the present application are schematically illustrated.

[0146] It should be noted that before the electronic device realizes the smart film-making scene, the frequency limiting control method provided in the example of this application can be executed, and then the task of searching for pictures or creating videos in the smart film-making scene can be executed to achieve the frequency limiting control effect of the electronic device. It can also be that the frequency limiting control method provided in the example of this application is executed in real time when the electronic device realizes the smart film-making scene, that is, in the process of executing the task of searching for pictures or creating videos in the smart film-making scene.

[0147] Figure 3a This is a schematic diagram of an optional process of a smart film-making scene. Taking the generation of a video in the smart film-making scene as an example, Figure 3a As shown, an optional implementation process of the smart filming scenario includes:

[0148] S101, the voice assistant detects the user voice "Hello, yoyo".

[0149] In an embodiment of the present application, when the electronic device displays any interface, the user speaks the wake-up word "Hello, Yoyo" of the voice assistant application. The wake-up word "Hello, Yoyo" is an example of a wake-up word for the voice assistant application. In actual applications, other wake-up words can also be used.

[0150] S102: The voice assistant determines that the detected voice information is a wake-up word and displays a voice assistant window.

[0151] In the embodiment of the present application, after detecting the user's voice, the voice assistant can determine whether the current user's voice is the voice assistant's wake-up word through recognition means such as semantic analysis. If it is the voice assistant's wake-up word, the voice assistant window is displayed.

[0152] S103, the voice assistant detects the user's voice "birthday wishes".

[0153] S104, the voice assistant obtains a character confirmation instruction based on the user's voice "birthday wishes".

[0154] In an embodiment of the present application, the voice assistant is configured with multiple commands, such as a character identification command, a material selection command, and a video generation command. Each command corresponds to multiple keywords. The voice assistant can determine which command the voice message corresponds to based on the keywords detected in the voice message. Examples of keywords for character identification commands include "birthday," "growth," and "children."

[0155] S105: The voice assistant sends a character confirmation request to the service management framework.

[0156] S106: After receiving the character confirmation request, the service management framework sends the character confirmation request to the media processing center.

[0157] S107: After receiving the character confirmation request, the media processing center creates an AigcManager.

[0158] In the embodiments of the present application, the AigcManager is responsible for automatically generating videos based on the media materials stored in the electronic device. Therefore, the AigcManager includes multiple corresponding modules, such as a character identification module, a material collection module, a video generation module, and a video storage module. The media processing center calls different module interfaces in the AigcManager to implement different functions based on different instructions or requests.

[0159] As the module interface corresponding to the person confirmation request, the media processing center calls the getallpersonTaginfos interface in AigcManager to obtain the person information.

[0160] S108, the media processing center calls the getallpersonTaginfos interface in AigcManager to obtain person information.

[0161] In the embodiment of the present application, the media materials stored in the electronic device have been pre-processed to obtain multiple character lists as character information. In actual applications, each character in the character list includes a character image and a character label.

[0162] S109: The media processing center sends character information (eg, including character images and character tags) to the service management framework.

[0163] S110, after receiving the character information, the service management framework sends the character information to the voice assistant.

[0164] S111, after receiving the character information, the voice assistant displays the character information in the voice assistant window.

[0165] S112, the user clicks "Jimmy" in the displayed character information.

[0166] S113, after receiving the click operation on "Jimmy" in the character information, the voice assistant sends a confirmation instruction to the service management framework, and the confirmation instruction carries the character tag corresponding to "Jimmy" selected by the user.

[0167] S114, after receiving the confirmation instruction, the service management framework sends a confirmation instruction to the media processing center.

[0168] S115, after receiving the confirmation instruction, the media processing center calls the interface of the material collection module in the AigcManager to collect media materials related to the character tag in the confirmation instruction.

[0169] The media processing middle platform can search for media materials with the "Jimmy" tag from the gallery application. The media materials can be in the form of pictures or videos.

[0170] S116, after collecting the media materials with the "Jimmy" tag, the media processing center sends the media materials to the service management framework.

[0171] S117: After receiving the media material, the service management framework sends the media material to the voice assistant.

[0172] S118, after receiving the media material, the voice assistant displays the received media material in the voice assistant window.

[0173] In practical applications, these media materials can be presented in the form of an album.

[0174] S119, the voice assistant detects the user's voice "generate video".

[0175] S120: The voice assistant obtains a video generation instruction based on the voice information.

[0176] The video generation instruction may carry the first keyword "birthday" or the like, so that when the light editing service generates a video, it may add some birthday-related special effects, music, etc. to the video.

[0177] S121, the voice assistant sends a video generation instruction to the service management framework.

[0178] S122, after receiving the video generation instruction, the service management framework sends the video generation instruction to the media processing center.

[0179] S123, after receiving the video generation instruction, the media processing center sends the pre-collected media materials to the light editing service.

[0180] S124, after receiving the media material, the light editing service generates video information based on the media material. The video information includes a video JSON file, a video cover, and a VIP material usage identifier.

[0181] In the process of generating a video json file, special effects, music, filters, etc. may be added to the original media materials. These special effects, music, and filters can be free or paid. If paid special effects, music, or filters are used when generating a video json file, the VIP material usage flag is "1". If paid special effects, music, or filters are not used when generating a video json file, the VIP material usage flag is "0". Of course, "0" and "1" are only examples; in actual applications, other flags can be set to distinguish them.

[0182] In practical applications, the video information may further include a file descriptor of the video for distinguishing different videos. The video may be used as an example of the first video.

[0183] S125, the light editing service sends video information to the media processing center.

[0184] S126, after receiving the video information, the media processing center sends the video information to the service management framework.

[0185] S127, after receiving the video information, the service management framework sends the video information to the voice assistant.

[0186] S128. After the voice assistant receives the video information, the text "A video of your child has been generated for you", the video cover, the save control and the share control are displayed in the voice assistant window.

[0187] In actual applications, when the VIP material usage flag is "1", a prompt message can be displayed to remind the user that the video generated by the user uses VIP materials. The content displayed in the voice assistant window can be referred to Figure 4 shown.

[0188] From the above examples, it can be understood that the media processing middle platform and light editing service can realize the process of generating videos. The media processing middle platform and light editing service can not only provide the function of generating videos to voice assistants, but also provide the function of generating videos to other applications.

[0189] As previously mentioned, the user can click the save control or the share control to save the video generated by the voice assistant in the electronic device.

[0190] Figure 3b The embodiment of the present application provides a schematic diagram of a process of an electronic device calling an image processing algorithm, such as Figure 3b As shown, in the implementation method of this example, in the intelligent film-making scenario where the electronic device calls the image processing algorithm to perform image analysis and video generation, taking the image processing algorithm as the face detection algorithm as an example, the algorithm running process first initializes the face detection algorithm process, and the face detection algorithm requests the database to read the data used by the algorithm. After the data is read from the database and cached in batches, the algorithm running process is used to initialize the algorithm, and the algorithm calling module is used to initialize the service call.

[0191] The algorithm execution process determines the stop condition to determine whether to stop initialization. It then cyclically accesses cached data from the database to invoke the algorithm to calculate or process the cached data. The algorithm call module performs image processing and then returns the image processing results. After releasing the algorithm, the database is refreshed or updated based on the processing results. The algorithm execution process then calls back from the face detection algorithm to the main process.

[0192] In one possible implementation, while an electronic device is operating, the system determines whether to monitor foreground invocations of image processing algorithms based on whether the electronic device is charging, the device temperature, and the battery level. Foreground invocations of image processing algorithms refer to operations where the electronic device executes the image processing algorithm on a user-visible interface, such as taking a photo, browsing photos, or editing an image.

[0193] While the electronic device is charging, in response to detecting that the device temperature of the electronic device is less than a first temperature (e.g., 46°C), the electronic device's foreground invocation of the image processing algorithm is monitored. Because the device temperature of the electronic device is less than the first temperature (e.g., 46°C), the electronic device is prohibited from invoking the image processing algorithm in either foreground or background mode. In other words, invoking the image processing algorithm is permitted only when the electronic device's temperature is low, and whether the user is using the image processing algorithm's function is detected only at this temperature.

[0194] When the electronic device is not charging, in response to detecting that the device temperature of the electronic device is less than a first temperature (e.g., 46°C) and the battery level of the electronic device is greater than the first level (e.g., 35%, 50%), the electronic device is monitored for the foreground call operation of the image processing algorithm. Because the device temperature of the electronic device is less than the first temperature (e.g., 46°C), the electronic device is prohibited from calling the image processing algorithm in the foreground or background mode. Since the electronic device is not charging, it is only when the temperature of the electronic device is low and the battery level is high that it is detected whether the user is using the image processing algorithm function.

[0195] Based on whether the electronic device is charging, as well as the temperature and power level of the electronic device, it is dynamically decided whether to monitor the electronic device's foreground call operations on the image processing algorithm, avoiding unnecessary frequency limiting operations and improving the operating efficiency and user experience of the electronic device.

[0196] When an electronic device is actively invoking an image processing algorithm, the CPU frequency is flexibly adjusted based on the device's actual frequency limiting requirements, reducing power consumption and heat generation, and improving the device's performance and stability. When an electronic device is not actively invoking an image processing algorithm, the device maintains normal operation without being affected by frequency limiting, ensuring its functionality and reliability.

[0197] In one example that can be implemented, in response to detecting that the device temperature of the electronic device is greater than a first temperature (for example, 46°C), the image processing algorithm is stopped from being called. That is, when the device temperature of the electronic device is too high, the function of the image processing algorithm is no longer executed to avoid further calling the image processing algorithm and increasing performance loss or resource waste of the electronic device.

[0198] It should be noted that the example values ​​of device temperature, battery level, duration, etc. in the examples of this application are only used to illustrate the examples of this method and facilitate understanding, but do not constitute specific limitations. It should be understood that in actual application scenarios, it is not limited to a specific value, but is limited to being able to implement the method in the examples of this application.

[0199] It is understandable that, especially in the background scenario where electronic devices are charging with the screen off, users are actually more inclined to charge their devices. However, due to image service processing, the battery of electronic devices becomes less and less, which affects the performance and stability of the electronic devices and reduces the user experience.

[0200] In an optional embodiment, whether to monitor the background call operation of the electronic device to the image processing algorithm is determined based on the electronic device's restricted call time period and unrestricted call time period, as well as the electronic device's battery level and temperature. The restricted call time period can be the nighttime period of each day, for example, between 1:00 AM and 5:00 AM; the unrestricted call time period can be the daytime period of each day, for example, between 1:00 AM and 5:00 AM. It should be understood that the above example is only used to illustrate this embodiment for ease of understanding, and is not limited to this in actual application scenarios.

[0201] Exemplarily, background calling of an image processing algorithm refers to an operation in which an electronic device runs an image processing algorithm on an interface invisible to a user, such as background analysis, background update, background recognition, background compression, and the like.

[0202] For example, during the restricted calling period of the electronic device, in response to detecting that the battery level of the electronic device when charging with the screen off is greater than a second level (for example, 50%, 60%, etc., the second level is greater than the first level), and the device temperature is less than a fourth temperature (for example, 38°C), the background calling operation of the electronic device on the image processing algorithm is monitored, that is, only when the electronic device is within the restricted calling period, the battery level is high and the temperature is low, will it be detected whether the electronic device is running the image processing algorithm function in the background.

[0203] During the non-restricted calling period of the electronic device, in response to detecting that the electronic device is charging with the screen off, the background calling operation of the electronic device on the image processing algorithm is monitored. That is, only when the electronic device is within the non-restricted calling period and is charging, will it be detected whether the electronic device is running the image processing algorithm function in the background.

[0204] Based on the restricted calling period and non-restricted calling period of the electronic device, as well as the power level and temperature of the electronic device, the background calling operation of the electronic device on the image processing algorithm is monitored to avoid frequency limiting operations when unnecessary, thereby improving the operating efficiency and user experience of the electronic device.

[0205] When an electronic device is calling an image processing algorithm in the background, the CPU frequency is flexibly adjusted based on the actual frequency limiting requirements of the electronic device, reducing power consumption and heat generation, and improving the performance and stability of the electronic device. When an electronic device is not calling an image processing algorithm in the background, the electronic device maintains normal operation without being affected by frequency limiting, ensuring the functionality and reliability of the electronic device.

[0206] As explained above, frequency limiting triggering scenarios can be categorized as foreground triggering scenarios and background triggering scenarios. Foreground triggering scenarios refer to situations where the electronic device is in a user-operated state, such as browsing the web, playing games, or watching videos. Background triggering scenarios refer to situations where the electronic device is not in a user-operated state, such as charging while the screen is locked or running an app in the background.

[0207] Figure 4 FIG. 1 shows a schematic diagram of a process for determining frequency limiting conditions and frequency limiting operation modes in a frequency limiting triggering scenario according to an embodiment of the present application. Figure 4 As shown, in an optional embodiment, in a foreground trigger scenario, if the device temperature of the electronic device exceeds a preset second temperature (e.g., 40°C), it indicates that the electronic device is at risk of overheating and needs to reduce the processor frequency to reduce heat generation. At this time, the electronic device meets the frequency limit condition.

[0208] In another optional embodiment, as Figure 4 As shown in the figure, in the background trigger scenario, if the battery level of an electronic device decreases instead of increases while the screen is off and charging, it means that the power consumption of the electronic device is greater than the charging speed, and the processor frequency needs to be reduced to reduce power consumption. In this case, the electronic device also meets the frequency limit condition.

[0209] Dynamically adjust the processor frequency of electronic devices according to different scenarios and conditions, thereby protecting the safety and performance of electronic devices and improving the user experience of using electronic devices to call image processing algorithms to process images or generate videos.

[0210] In an optional embodiment, as Figure 4 As shown, the above-mentioned determining the frequency-limited operation mode of the above-mentioned electronic device according to the above-mentioned frequency-limited triggering scenario includes:

[0211] When the above-mentioned frequency limiting trigger scenario is a foreground trigger scenario, the frequency limiting operation mode of the above-mentioned electronic device is determined according to the device temperature of the above-mentioned electronic device; when the above-mentioned frequency limiting trigger scenario is a background trigger scenario, the frequency limiting operation mode of the above-mentioned electronic device is determined according to the number of times the battery power of the above-mentioned electronic device is reduced during the monitoring time of screen-off charging.

[0212] When it is determined that the electronic device meets the frequency limiting conditions according to the frequency limiting trigger scenario, the frequency limiting operation mode of the electronic device is determined according to the frequency limiting trigger scenario. For example, according to different foreground trigger scenarios or background trigger scenarios, the call duration of each call of the image processing algorithm by the electronic device and the sleep duration after each call of the image processing algorithm are determined.

[0213] When the frequency limiting trigger scenario is a foreground trigger scenario, the frequency limiting operation mode of the electronic device is determined according to the device temperature of the electronic device, the call duration of each call of the image processing algorithm by the electronic device, and the sleep duration after each call of the image processing algorithm are determined.

[0214] In one example, Figure 5 FIG. 1 shows a schematic diagram of a process in which a foreground triggering scenario determines a frequency-limited operation mode according to an embodiment of the present application. Figure 5As shown, the above-mentioned determining the frequency-limited operation mode of the electronic device according to the device temperature of the electronic device includes:

[0215] In response to detecting that the device temperature of the electronic device is greater than the second temperature (for example, 40°C) and less than the third temperature (for example, 43°C), the first frequency-limited operating mode of the electronic device is determined, and the first frequency-limited operating mode is that the electronic device goes into sleep mode for a first time (for example, 10 seconds) after each time the electronic device calls the image processing algorithm for a first time (for example, 10 seconds); in response to detecting that the device temperature of the electronic device is greater than the third temperature (for example, 43°C) and less than the first temperature (for example, 46°C), the second frequency-limited operating mode of the electronic device is determined, and the second frequency-limited operating mode is that the electronic device goes into sleep mode for a second time (for example, 20 seconds) after each time the electronic device calls the image processing algorithm for a first time (for example, 10 seconds); wherein, the second time is greater than the first time, the second temperature is less than the third temperature, and the third temperature is less than the first temperature.

[0216] For example, when the device temperature is between 40°C and 43°C, the CPU frequency upper limit is reduced to 1.5GHz, the lower limit is reduced to 0.8GHz, the frequency adjustment rate is 0.1GHz / s, the strategy is step-by-step, each call of the image processing algorithm by the electronic device lasts 10 seconds, and the sleep period is 10 seconds. When the device temperature is between 43°C and 46°C, the CPU frequency upper limit is reduced to 1.0GHz, the lower limit is reduced to 0.5GHz, the frequency adjustment rate is 0.05GHz / s, the strategy is step-by-step, each call of the image processing algorithm by the electronic device lasts 10 seconds, and the sleep period is 20 seconds.

[0217] In one example, the restriction control policy can also be automatically restored during the operation of the electronic device. For example, in a foreground trigger scenario, when the user actively triggers the process of calling the image processing algorithm, when the image processing algorithm runs slower, the frequency adjustment rate will automatically decrease, and the device temperature of the electronic device will drop accordingly. When it is detected that the device temperature has returned to normal (less than 40°C) and has been running at this temperature for 10 minutes without heating up, the electronic device will quickly run the image processing algorithm in a normal state.

[0218] Based on the duration of image processing algorithm calls and sleep periods, the frequency of image processing algorithm calls is controlled to reduce power consumption and improve the operating efficiency and user experience of the electronic device. When the temperature of the electronic device is high, the CPU frequency is reduced, the time spent calling the image processing algorithm is shortened, and the sleep period is increased, thus reducing power consumption and heat generation, and improving the performance and stability of the electronic device.

[0219] In another example, you can also select different CPU frequency upper and lower limits, as well as frequency adjustment rates and policies based on device temperature. For example, when the device temperature exceeds 50°C, the CPU frequency upper limit is reduced to 1.5 GHz, the lower limit is reduced to 0.8 GHz, the frequency adjustment rate is 0.1 GHz / s, and the policy is step-by-step. When the device temperature is below 40°C, the CPU frequency upper limit is increased to 2.5 GHz, the lower limit is increased to 1.2 GHz, the frequency adjustment rate is 0.2 GHz / s, and the policy is smooth.

[0220] There is also an optional implementation method, which determines the frequency-limited operation mode of the electronic device according to the device temperature of the electronic device, that is, according to the high and low temperature of the device, selects different CPU frequency upper and lower limits, as well as the rate and strategy for adjusting the frequency, and the call duration of each call of the electronic device to the image processing algorithm, as well as the sleep duration after each call of the image processing algorithm.

[0221] For example, when the device temperature is between 40°C and 43°C, the upper limit of the CPU frequency is reduced to 1.5GHz, the lower limit is reduced to 0.8GHz, the frequency adjustment rate is 0.1GHz / s, the strategy is step-by-step, and the electronic device calls the image processing algorithm for 5 seconds each time, and the sleep time is 10 seconds; for another example, when the device temperature is between 43°C and 46°C, the upper limit of the CPU frequency is reduced to 1.0GHz, the lower limit is reduced to 0.5GHz, the frequency adjustment rate is 0.05GHz / s, the strategy is step-by-step, and the electronic device calls the image processing algorithm for 3 seconds each time, and the sleep time is 15 seconds.

[0222] In one example, Figure 6 A schematic diagram of a process of determining a frequency-limited operation mode by triggering a background scene in an embodiment of the present application is shown. Figure 6 As shown, in the case where the frequency limiting trigger scenario is a background trigger scenario, the frequency limiting operation mode of the electronic device is determined according to the number of times the battery power of the electronic device is reduced during the monitoring period of screen-off charging, that is, the calling duration of each time the electronic device calls the image processing algorithm, as well as the sleep duration after each call of the image processing algorithm are determined according to the number of times the battery power is reduced.

[0223] In another example, different CPU frequency upper and lower limits, as well as the rate and strategy for adjusting the frequency, can also be selected based on the number of times the battery power of the electronic device decreases during the monitoring period of screen-off charging. For example, when the battery power of the electronic device decreases more than 5 times within 10 minutes, the CPU frequency upper limit is reduced to 1.0GHz, the lower limit is reduced to 0.5GHz, the frequency adjustment rate is 0.05GHz / s, and the strategy is step-by-step; when the battery power of the electronic device decreases less than 3 times within 10 minutes, the CPU frequency upper limit is increased to 2.0GHz, the lower limit is increased to 1.0GHz, the frequency adjustment rate is 0.1GHz / s, and the strategy is smooth.

[0224] Dynamically determines the electronic device's frequency-limited operation mode based on the device's temperature and the number of times its battery level has decreased, preventing performance loss or resource waste caused by excessively high or low CPU frequencies. In foreground triggering scenarios, the CPU frequency is adjusted based on the device's temperature, reducing power consumption and heat generation, and improving the device's performance and stability. In background triggering scenarios, the CPU frequency is adjusted based on the number of times its battery level has decreased, reducing power consumption, extending the device's service life and endurance, and improving its reliability and safety.

[0225] In one embodiment, Figure 7 FIG. 1 shows a schematic diagram of a process of an electronic device in an embodiment of the present application operating at a limited frequency in a foreground triggering scenario. Figure 7 As shown, the frequency limiting trigger scenario is a foreground trigger scenario. When the electronic device is running based on the first frequency limiting operation mode, the device temperature of the electronic device is re-detected. When the device temperature of the electronic device decreases and the total time for the electronic device to run based on the first frequency limiting operation mode is greater than the fourth time, the frequency limiting operation control of the electronic device is triggered to be released.

[0226] Exemplarily, frequency-limited operation control can be achieved by modifying power management settings or BIOS settings to change the CPU frequency of the electronic device within a set range to achieve the purpose of frequency limiting. It can also be achieved by controlling the duration of each call of the electronic device to the image processing algorithm and the sleep duration after the call is completed to reduce the frequent calls to the image processing algorithm.

[0227] When the electronic device is operating in the first frequency-limited operating mode, the device temperature of the electronic device is re-detected. Specifically, based on changes in the device temperature, a determination is made as to whether the CPU frequency or sleep time needs to be adjusted. For example, if the device temperature continues to rise, the CPU frequency may be further reduced or the sleep time increased; if the device temperature begins to fall, the CPU frequency may be appropriately increased or the sleep time reduced.

[0228] When the device temperature of the electronic device decreases and the total time for which the electronic device operates based on the first frequency-limited operation mode is greater than the fourth time, the frequency-limited operation control of the electronic device is released, that is, the normal operation state of the electronic device is restored, and the CPU frequency or sleep time is no longer restricted, so as to improve the performance of the electronic device and user experience.

[0229] In the case where the frequency limiting trigger scenario is a foreground trigger scenario, the frequency limiting operation mode of the electronic device is dynamically adjusted according to the device temperature of the electronic device to avoid performance loss or resource waste caused by too high or too low CPU frequency. According to the calling time and sleep time of the electronic device's calling image processing algorithm, the calling frequency of the image processing algorithm is controlled to reduce the dependence and consumption on the image processing algorithm, thereby improving the operating efficiency and user experience of the electronic device. When the device temperature of the electronic device decreases and the total operation time of the electronic device based on the first frequency limiting operation mode is greater than the fourth time, the frequency limiting operation control of the electronic device is released, the normal operation state of the electronic device is restored, the CPU frequency or sleep time is no longer restricted, and the performance and user experience of the electronic device are improved.

[0230] In an achievable example, when controlling the electronic device to operate based on the second frequency-limited operating mode, the device temperature of the electronic device is re-detected, that is, after each call of the image processing algorithm, the current temperature of the electronic device is obtained to determine whether the frequency-limited operating mode needs to be adjusted.

[0231] As an example of this application, Figure 8 FIG. 1 shows a schematic diagram of a process of an electronic device in an embodiment of the present application operating at a limited frequency in a foreground triggering scenario. Figure 8 As shown, when the device temperature of the electronic device is lower than the first temperature (for example, 46°C) and the total time for the electronic device to operate based on the first frequency-limited operation mode is greater than a fourth time (for example, 10 minutes, 30 minutes, etc.), the frequency-limited operation mode of the electronic device is re-determined, that is, according to the current frequency-limited triggering scenario of the electronic device, the appropriate CPU frequency upper and lower limits, the rate and strategy for adjusting the frequency, the call time of each call of the electronic device to the image processing algorithm, and the sleep time after each call of the image processing algorithm are selected.

[0232] For example, when the frequency limit trigger scenario of the electronic device is the foreground trigger scenario, the CPU frequency upper limit is increased to 2.5GHz, the lower limit is increased to 1.2GHz, the frequency adjustment rate is 0.2GHz / s, the strategy is smooth, and the electronic device calls the image processing algorithm each time for 10 seconds and the sleep time is 5 seconds.

[0233] When the device temperature of the electronic device is greater than a first temperature (e.g., 46° C.), the electronic device stops invoking the image processing algorithm. That is, when the CPU frequency of the electronic device reaches the upper limit, the image processing algorithm function is no longer executed until the temperature of the electronic device drops below the first temperature (e.g., 46° C.). It will be understood that after the algorithm is stopped, the frequency limiting control method provided in this embodiment may be stopped or continued.

[0234] Dynamically re-determine or stop the electronic device's frequency-limited operation mode based on the device's temperature, avoiding performance loss or resource waste caused by excessively high or low CPU frequencies. Adjust the frequency-limited operation mode based on the total duration of the electronic device's frequency-limited operation to avoid prolonged frequency-limited operation affecting the user experience or causing the device to overcool. If the device temperature is too high, stop the electronic device from calling the image processing algorithm, reducing dependence on and consumption of the image processing algorithm, and improving the operating efficiency and safety of the electronic device.

[0235] In one example, when the above-mentioned frequency limiting trigger scenario is a foreground trigger scenario, the frequency limiting operation mode of the electronic device is determined according to the device temperature of the electronic device, that is, different CPU frequency upper and lower limits are selected according to the high and low temperature of the device, as well as the rate and strategy for adjusting the frequency, the call duration of each call of the electronic device to the image processing algorithm, and the sleep duration after each call of the image processing algorithm.

[0236] For example, when the device temperature is between 40°C and 43°C, the upper limit of the CPU frequency is reduced to 1.5GHz, the lower limit is reduced to 0.8GHz, the frequency adjustment rate is 0.1GHz / s, the strategy is step-by-step, and the electronic device calls the image processing algorithm for 5 seconds each time, and the sleep time is 10 seconds; when the device temperature is between 43°C and 46°C, the upper limit of the CPU frequency is reduced to 1.0GHz, the lower limit is reduced to 0.5GHz, the frequency adjustment rate is 0.05GHz / s, the strategy is step-by-step, and the electronic device calls the image processing algorithm for 3 seconds each time, and the sleep time is 15 seconds.

[0237] As an example of the present application, if it is detected that the device temperature of the electronic device is greater than a first temperature (for example, 46°C), the electronic device stops calling the image processing algorithm, that is, when the device temperature is too high, the function of the image processing algorithm is no longer executed to avoid further increasing the heat and power consumption of the device.

[0238] Dynamically determine the frequency-limited operating mode of electronic devices based on their temperature, avoiding performance loss or resource waste caused by excessively high or low CPU frequencies. Control the frequency of image processing algorithm calls based on the duration of the algorithm's calls and sleep time, reducing reliance on and consumption of the algorithms and improving operational efficiency and user experience.

[0239] When the temperature of an electronic device is high, the CPU frequency is reduced, the time spent calling the image processing algorithm is shortened, the sleep time is increased, power consumption and heat generation are reduced, and the performance and stability of the electronic device are improved. When the temperature of an electronic device is too high, the image processing algorithm is stopped to avoid unnecessary calls and protect the safety and reliability of the electronic device.

[0240] An optional implementation method, Figure 9 FIG. 1 shows a schematic diagram of a process of an electronic device in an embodiment of the present application operating at a limited frequency in a background triggering scenario, such as Figure 9 As shown, the above-mentioned determination of the frequency-limited operation mode of the electronic device according to the number of times the battery power of the electronic device decreases within the monitoring time of screen-off charging includes:

[0241] When the battery power decreases a first number of times, determining that the electronic device is put into sleep for a third time after each invocation of the image processing algorithm for the first time, wherein the third time is less than the first time;

[0242] When the battery power decreases for a second time, the electronic device is determined to sleep for a first time after calling the image processing algorithm for a first time each time.

[0243] In background triggering scenarios, that is, when the image processing algorithm is called and executed in the background, there are two frequency limiting gears. One frequency limiting gear is when the number of power failures is less than or equal to 2 (generally considered to be a scenario that will occur in actual applications), and the other frequency limiting gear is when the power failure occurs more than 2 times (generally considered to be a theoretical scenario that will not occur in actual applications).

[0244] In one implementation, when the frequency-limited operation mode of the electronic device is in the first gear, after the frequency-limited operation, it is detected whether the battery power of the electronic device continues to decrease (also called a power-off phenomenon) within the monitoring period (for example, 15 minutes). If it is detected that the electronic device has been frequency-limited for more than 10 minutes and the battery power does not continue to decrease during this period, the frequency-limited control is terminated and the normal operation of the device is restored; if it decreases, the process returns to executing the detection of the number of times the battery power of the electronic device has decreased within the monitoring period, for example, from 1 power-off to 2 power-offs.

[0245] Figure 10FIG. 1 shows a schematic diagram of another electronic device in an embodiment of the present application operating in a frequency-limited manner under a background triggering scenario. Figure 10 As shown, when the battery power decreases for the third time, it is determined that the electronic device will sleep for a fourth time after calling the image processing algorithm for the first time each time, wherein the fourth time is greater than the first time.

[0246] When the battery power decreases a fourth number of times, it is determined that the electronic device sleeps for a second time after calling the image processing algorithm for a first time each time, wherein the second time is greater than the fourth time.

[0247] In this embodiment, the second number is greater than the first number, the third number is greater than the second number, and the fourth number is greater than the third number.

[0248] In the case where the above-mentioned frequency limiting trigger scenario is a background trigger scenario, the frequency limiting operation mode of the electronic device is determined according to the number of times the battery power of the electronic device is reduced during the monitoring period of screen-off charging. That is, according to the number of times the battery power is reduced, different electronic devices are selected to select the calling time of each call of the image processing algorithm and the sleep time after each call of the image processing algorithm.

[0249] In another implementation, Figure 10 As shown, for example, when the limited frequency operation mode of the electronic device is in the second gear, if it is detected that the electronic device has been running the algorithm for more than 10 minutes and no power outage occurs during this period, it will be restored to the first gear, that is, the limited frequency operation mode with less than or equal to 2 power outages.

[0250] For example, when the battery power of the electronic device decreases once within 10 minutes, the calling time of the electronic device for each call of the image processing algorithm is set to 10 seconds, and the sleep time is set to 10 seconds; when the battery power of the electronic device decreases twice within 10 minutes, the calling time of the electronic device for each call of the image processing algorithm is set to 10 seconds, and the sleep time is set to 10 seconds; when the battery power of the electronic device decreases three times within 10 minutes, the calling time of the electronic device for each call of the image processing algorithm is set to 10 seconds, and the sleep time is set to 15 seconds; when the battery power of the electronic device decreases four times within 10 minutes, the calling time of the electronic device for each call of the image processing algorithm is set to 10 seconds, and the sleep time is set to 20 seconds.

[0251] Based on the number of times the electronic device's battery power decreases during the monitoring period of screen-off charging, the duration of the electronic device's call image processing algorithm and the duration of its sleep state are dynamically determined. This controls the frequency of the image processing algorithm calls, reduces reliance on and consumption of the image processing algorithm, improves the electronic device's operating efficiency and user experience, and avoids performance loss or resource waste caused by excessively high or low CPU frequencies. For example, when the electronic device's battery power decreases, the CPU frequency is reduced, the sleep time is increased, and power consumption is reduced, thus extending the electronic device's service life and endurance, and improving its reliability and safety.

[0252] In one embodiment, the electronic device can also trigger the release of frequency-limited operation control in response to the electronic device stopping the call to the image processing algorithm. Specifically, when the electronic device calls the image processing algorithm, the CPU frequency is flexibly adjusted based on the actual frequency-limiting requirements of the electronic device, thereby reducing power consumption and heat generation, and improving the performance and stability of the electronic device. When the electronic device no longer needs to use the image processing algorithm, the electronic device resumes normal operation without being affected by frequency limiting, thereby improving the functionality and reliability of the electronic device.

[0253] The embodiment of the present application provides an embodiment of a frequency limiting control method and device. The device can be implemented by software, hardware or a combination of both to form part or all of a computer device. The computer device can be Figure 1 The electronic device shown. The frequency limiting control method device includes:

[0254] An acquisition unit, configured to acquire a frequency limiting triggering scenario of an electronic device;

[0255] a determining unit, configured to, when it is determined that the electronic device meets the frequency limiting condition according to the frequency limiting triggering scenario, determine a frequency limiting operation mode of the electronic device according to the frequency limiting triggering scenario;

[0256] The control unit is used to control the electronic device to operate based on the above-mentioned frequency-limited operation mode.

[0257] It should be noted that the frequency limiting control method device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0258] The functional units and modules in the above embodiments may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The above integrated units may be implemented in the form of hardware or software functional units. In addition, the specific names of the functional units and modules are only for the purpose of distinguishing them from each other and are not intended to limit the scope of protection of the embodiments of this application.

[0259] The frequency limiting control method device provided in the above embodiment and the frequency limiting control method embodiment belong to the same concept. The specific working process and technical effects brought about by the units and modules in the above embodiment can be found in the method embodiment part and will not be repeated here.

[0260] An embodiment of the present application further provides an electronic device, the electronic device comprising one or more processors and a memory;

[0261] The memory is coupled to one or more processors, and the memory is used to store computer program code. The computer program code includes computer instructions. The one or more processors call the computer instructions to enable the electronic device to perform the following frequency limiting control method:

[0262] Obtain the frequency limiting trigger scenario of the electronic device;

[0263] In the case where it is determined that the electronic device meets the frequency limiting condition according to the frequency limiting triggering scenario, determining the frequency limiting operation mode of the electronic device according to the frequency limiting triggering scenario;

[0264] The electronic device is controlled to operate based on the frequency-limited operation mode.

[0265] According to any implementation of the present application, the method further includes: in response to the electronic device's calling operation on the image processing algorithm, triggering detection of a frequency limiting triggering scenario of the electronic device.

[0266] According to any implementation of the present application, the above method further includes:

[0267] When the electronic device is being charged, in response to detecting that a device temperature of the electronic device is less than a first temperature, monitoring a foreground call operation of the electronic device on the image processing algorithm;

[0268] According to any implementation of the present application, the above method further includes:

[0269] During the restricted call period of the electronic device, in response to detecting that a battery level of the electronic device is greater than a second level when the screen is off and charging, and the device temperature is less than a fourth temperature, monitoring a background call operation of the electronic device to the image processing algorithm, wherein the second level is greater than the first level;

[0270] During the non-restricted calling period of the electronic device, in response to detecting that the electronic device is charging with the screen off, the background calling operation of the electronic device on the image processing algorithm is monitored.

[0271] According to any implementation of the present application, determining that the electronic device meets the frequency limiting condition according to the frequency limiting triggering scenario includes:

[0272] In a case where the frequency limiting triggering scenario is a foreground triggering scenario, in response to detecting that the device temperature of the electronic device is greater than a second temperature, determining that the electronic device meets the frequency limiting condition;

[0273] In the case where the above-mentioned frequency limiting triggering scenario is a background triggering scenario, in response to detecting that the battery power of the above-mentioned electronic device is reduced when the screen is off and charging, it is determined that the above-mentioned electronic device meets the above-mentioned frequency limiting condition.

[0274] According to any implementation of the present application, determining the frequency-limited operation mode of the electronic device according to the frequency-limited triggering scenario includes:

[0275] In the case where the frequency limiting triggering scenario is a foreground triggering scenario, determining the frequency limiting operation mode of the electronic device according to the device temperature of the electronic device;

[0276] In the case where the above-mentioned frequency limiting triggering scenario is a background triggering scenario, the frequency limiting operation mode of the above-mentioned electronic device is determined according to the number of times the battery power of the above-mentioned electronic device decreases within the monitoring time of screen-off charging.

[0277] According to any implementation of the present application, the frequency-limited operation mode of the electronic device includes:

[0278] The duration of each call of the image processing algorithm by the electronic device, and the duration of sleep after each call of the image processing algorithm.

[0279] According to any implementation of the present application, determining the frequency-limited operation mode of the electronic device based on the device temperature of the electronic device includes:

[0280] In response to detecting that the device temperature of the electronic device is greater than the second temperature and less than the third temperature, determining a first frequency-limited operating mode for the electronic device, wherein the first frequency-limited operating mode is that the electronic device goes into sleep for a first time period after each invocation of the image processing algorithm for a first time period;

[0281] In response to detecting that the device temperature of the electronic device is greater than the third temperature and less than the first temperature, determining a second frequency-limited operating mode for the electronic device, wherein the second frequency-limited operating mode is that the electronic device goes into hibernation for a second time period after each invocation of the image processing algorithm for a first time period;

[0282] The second time duration is greater than the first time duration, the second temperature is less than the third temperature, and the third temperature is less than the first temperature.

[0283] According to any implementation of the present application, the above method further includes:

[0284] re-detecting the device temperature of the electronic device while controlling the electronic device to operate based on the first frequency-limited operating mode;

[0285] When the device temperature of the electronic device decreases and the total operating time of the electronic device based on the first frequency-limited operating mode is greater than a fourth time, the frequency-limited operating control of the electronic device is triggered to be released.

[0286] According to any implementation of the present application, the above method further includes:

[0287] re-detecting the device temperature of the electronic device while controlling the electronic device to operate in the second frequency-limited operating mode;

[0288] re-determining the frequency-limited operating mode of the electronic device when the device temperature of the electronic device is lower than the first temperature and the total operating time of the electronic device based on the first frequency-limited operating mode is longer than a fourth time period;

[0289] When the device temperature of the electronic device is greater than the first temperature, the electronic device is stopped from calling the image processing algorithm.

[0290] According to any implementation of the present application, the above method further includes:

[0291] In response to detecting that the device temperature of the electronic device is greater than the first temperature, calling the image processing algorithm is stopped.

[0292] According to any implementation of the present application, determining the frequency-limited operation mode of the electronic device according to the number of times the battery power of the electronic device decreases during the monitoring period of screen-off charging includes:

[0293] When the battery power decreases a first number of times, determining that the electronic device is put into sleep for a third time after each invocation of the image processing algorithm for the first time, wherein the third time is less than the first time;

[0294] When the battery power decreases a second time, determining that the electronic device goes into sleep for a first time after calling the image processing algorithm for a first time each time;

[0295] When the battery power decreases for a third time, determining that the electronic device is put into sleep for a fourth time after each invocation of the image processing algorithm for the first time, wherein the fourth time is greater than the first time;

[0296] When the battery power decreases a fourth number of times, determining that the electronic device is put into sleep for a second time period after each invocation of the image processing algorithm for a first time period, wherein the second time period is greater than the fourth time period;

[0297] Among them, the second number is greater than the first number, the third number is greater than the second number, and the fourth number is greater than the third number.

[0298] According to any implementation of the present application, the above method further includes:

[0299] In response to the electronic device stopping the calling operation of the image processing algorithm, the frequency-limited operation control of the electronic device is triggered to be released.

[0300] The electronic devices may be mobile phones, smart screens, tablet computers, wearable electronic devices, in-vehicle electronic devices, augmented reality (AR) devices, virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), projectors, or communication devices such as servers, storage devices, base stations, or smart cars. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0301] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions; when the computer-readable storage medium is executed on an electronic device, the electronic device executes the frequency limiting control method shown above.

[0302] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium, or a semiconductor medium (e.g., a solid-state disk (SSD)).

[0303] An embodiment of the present application further provides a computer program product comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute the aforementioned frequency limiting control method.

[0304] The computer storage medium and computer program product provided in the above-mentioned embodiments of the present application are used to execute the method provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the method provided above, and will not be repeated here.

[0305] In the above embodiments, it can also be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (such as a coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0306] The above are optional embodiments provided for this application and are not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the technical scope disclosed in this application should be included in the scope of protection of this application.

[0307] The above-described embodiments 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, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A frequency limiting control method, characterized in that: Used in electronic equipment, including: Obtain the frequency limiting trigger scenario of the electronic device; In a case where it is determined that the electronic device meets the frequency limiting condition according to the frequency limiting triggering scenario, determining a frequency limiting operation mode of the electronic device according to the frequency limiting triggering scenario; The electronic device is controlled to operate based on the frequency-limited operation mode.

2. The method according to claim 1, wherein The method further comprises: In response to the electronic device's calling operation on the image processing algorithm, a frequency limiting triggering scenario of the electronic device is triggered and detected.

3. The method according to claim 2, wherein The method further comprises: When the electronic device is being charged, in response to detecting that a device temperature of the electronic device is less than a first temperature, monitoring a foreground call operation of the electronic device on the image processing algorithm; When the electronic device is not being charged, in response to detecting that the device temperature of the electronic device is less than the first temperature and the battery power of the electronic device is greater than the first power, monitoring the foreground call operation of the electronic device to the image processing algorithm.

4. The method according to claim 2, wherein The method further comprises: monitoring, within the restricted call period of the electronic device, a background call operation of the electronic device on the image processing algorithm in response to detecting that a battery level of the electronic device when the screen is off and charging is greater than a second level and a device temperature is less than a fourth temperature, wherein the second level is greater than the first level; During a non-restricted calling period of the electronic device, in response to detecting that the electronic device is charging with the screen off, monitoring a background calling operation of the electronic device on the image processing algorithm.

5. The method according to claim 1, wherein The determining, according to the frequency limit triggering scenario, that the electronic device meets the frequency limit condition includes: In a case where the frequency limit triggering scenario is a foreground triggering scenario, in response to detecting that a device temperature of the electronic device is greater than a second temperature, determining that the electronic device meets the frequency limit condition; In a case where the frequency limiting triggering scenario is a background triggering scenario, in response to detecting that the battery power of the electronic device is reduced when the screen is off and charging, it is determined that the electronic device meets the frequency limiting condition.

6. The method according to claim 1, wherein The determining the frequency-limited operation mode of the electronic device according to the frequency-limited triggering scenario includes: When the frequency limiting triggering scenario is a foreground triggering scenario, determining a frequency limiting operation mode of the electronic device according to a device temperature of the electronic device; In the case where the frequency limiting triggering scenario is a background triggering scenario, the frequency limiting operation mode of the electronic device is determined according to the number of times the battery power of the electronic device decreases within the monitoring time of screen-off charging.

7. The method according to claim 6, wherein The frequency-limited operation mode of the electronic device includes: The duration of each call of the image processing algorithm by the electronic device, and the duration of sleep after each call of the image processing algorithm.

8. The method according to claim 7, wherein The determining, based on the device temperature of the electronic device, a frequency-limited operation mode of the electronic device includes: In response to detecting that the device temperature of the electronic device is greater than the second temperature and less than the third temperature, determining a first frequency-limited operating mode of the electronic device, wherein the first frequency-limited operating mode is that the electronic device goes into sleep for a first time period after each invocation of the image processing algorithm for a first time period; In response to detecting that the device temperature of the electronic device is greater than the third temperature and less than the first temperature, determining a second frequency-limited operating mode of the electronic device, wherein the second frequency-limited operating mode is to sleep for a second time period after the electronic device calls the image processing algorithm for a first time period each time; The second duration is greater than the first duration, the second temperature is less than the third temperature, and the third temperature is less than the first temperature.

9. The method according to claim 8, wherein The method further comprises: re-detecting the device temperature of the electronic device while controlling the electronic device to operate based on the first frequency-limited operating mode; When the device temperature of the electronic device decreases and the total time duration for which the electronic device operates based on the first frequency-limited operation mode is greater than a fourth time duration, triggering the release of the frequency-limited operation control of the electronic device.

10. The method according to claim 8, wherein The method further comprises: re-detecting the device temperature of the electronic device while controlling the electronic device to operate based on the second frequency-limited operating mode; re-determining the frequency-limited operating mode of the electronic device when the device temperature of the electronic device is lower than the first temperature and the total operating time of the electronic device based on the first frequency-limited operating mode is longer than a fourth time; When the device temperature of the electronic device is greater than the first temperature, the electronic device is stopped from calling the image processing algorithm.

11. The method according to claim 8, wherein The method further comprises: In response to detecting that the device temperature of the electronic device is greater than the first temperature, stopping calling the image processing algorithm.

12. The method according to claim 7, wherein The determining of the frequency-limited operation mode of the electronic device according to the number of times the battery power of the electronic device decreases within the monitoring time of screen-off charging includes: When the number of times the battery power decreases reaches a first number, determining that the electronic device sleeps for a third time after calling the image processing algorithm for a first time each time, wherein the third time is less than the first time; When the battery power decreases a second number of times, determining that the electronic device goes into sleep for a first time period after calling the image processing algorithm for a first time period each time; When the battery power decreases for a third time, determining that the electronic device is put into sleep for a fourth time after each invocation of the image processing algorithm for a first time, wherein the fourth time is greater than the first time; When the number of times the battery power decreases reaches a fourth number, determining that the electronic device sleeps for a second time period after each call of the image processing algorithm for a first time period, wherein the second time period is greater than the fourth time period; The second number is greater than the first number, the third number is greater than the second number, and the fourth number is greater than the third number.

13. The method according to any one of claims 1 to 12, characterized in that The method further comprises: In response to the electronic device stopping the calling operation of the image processing algorithm, the frequency-limited operation control of the electronic device is triggered to be released.

14. An electronic device, characterized in that: The electronic device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program code, where the computer program code includes computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the method according to any one of claims 1 to 13.

15. A computer-readable storage medium, characterized in that The computer-readable storage medium comprises instructions, which, when executed on an electronic device, cause the electronic device to perform the method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Method and device for managing electric quantity consumption

    CN105867592A

  • Terminal energy-saving management method and apparatus, and terminal

    CN106371481A

  • Electronic device and charging method thereof and storage medium

    CN107508350A

  • Temperature control parameter adjusting method and terminal equipment

    CN113253822A

  • Power consumption adjusting method and electronic equipment

    CN116027878A