CN-122002145-A - Frame rate control method, electronic device, storage medium, and program product
Abstract
The application relates to the technical field of frame rate control, and discloses a frame rate control method, electronic equipment, a storage medium and a program product. The method is applied to a first electronic device comprising a first camera. The first camera collects M video frames at a first frame rate, and then the first electronic device determines content change degrees of the M video frames. If the content change degree is greater than the first change degree threshold, the first camera collects N video frames at a second frame rate greater than a first frame rate corresponding to the M video frames, and the first electronic device displays the N video frames at the second frame rate. If the content change degree is smaller than the second change degree threshold, the first camera collects N video frames at a second frame rate smaller than the first frame rate, and the first electronic device displays the N video frames at the second frame rate. The method can ensure that the acquisition frame rate and the display frame rate of N video frames are dynamically adjusted, and can improve the display quality of the video frames or reduce the acquisition power consumption corresponding to the video frames.
Inventors
- Bao Xindong
- WANG SHAOYANG
- LI TAO
Assignees
- 华为终端有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241105
Claims (11)
- 1. A frame rate control method, applied to a first electronic device, the first electronic device including a first camera, the method comprising: the first camera collects continuous M video frames at a first frame rate; the first electronic device determines that the content variation degree of the M video frames meets a frame rate adjustment condition; the first camera collects continuous N video frames at a second frame rate; wherein the second frame rate is different from the first frame rate, and the 1 st video frame of the N video frames is acquired after the completion of the acquisition of the mth video frame of the M video frames, and M and N are integers greater than 1, and the M and N are the same or different.
- 2. The method of claim 1, wherein the second frame rate is greater than the first frame rate, and wherein the frame rate adjustment condition is that a degree of content change of the M video frames is greater than a first degree of change threshold.
- 3. The method of claim 1, wherein the second frame rate is less than the first frame rate, and wherein the frame rate adjustment condition is that a degree of content change of the M video frames is less than a second degree of change threshold.
- 4. The method of claim 2 or 3, wherein the degree of content variation of the M video frames is determined based on at least one of a first mean square error, a first pixel absolute difference average, a first texture difference average, a first key frame ratio, a first quantization parameter difference of the M video frames.
- 5. The method of claim 1, wherein the first electronic device determining that the content variation level of the M video frames satisfies a frame rate adjustment condition comprises: the first electronic device determines that the content change degree of the M video frames meets the frame rate adjustment condition based on a decision tree model, wherein the decision tree model is obtained by training based on a classification and regression tree algorithm.
- 6. The method of claim 1, wherein the first electronic device determines the acquisition frame rate of the N video frames to be the second frame rate by: determining that the content variation degrees of the M video frames belong to a first content variation degree range, and acquiring a third frame rate corresponding to the first content variation degree range; Acquiring a fourth frame rate corresponding to first network information corresponding to the M video frames and/or a fifth frame rate corresponding to a first temperature of first electronic equipment corresponding to the M video frames; and in the case that the third frame rate is smaller than the fourth frame rate and/or the third frame rate is smaller than the fifth frame rate, the third frame rate is taken as the second frame rate.
- 7. The method according to claim 1, wherein the method further comprises: After the first camera collects continuous N video frames at the second frame rate, the first electronic device encodes and displays the N video frames at the second frame rate.
- 8. The method according to claim 1, wherein the method further comprises: And carrying out real-time video communication corresponding to the first electronic equipment and second electronic equipment, and sending the N video frames with the second frame rate to the second electronic equipment, wherein the second electronic equipment is used for displaying the N video frames with the second frame rate.
- 9. An electronic device comprising one or more processors, one or more memories, the one or more memories storing one or more programs that, when executed by the one or more processors, cause the electronic device to perform the frame rate control method of any of claims 1-8.
- 10. A readable storage medium having stored thereon instructions that, when executed on an electronic device, cause the electronic device to perform the frame rate control method of any of claims 1 to 8.
- 11. A computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the frame rate control method of any one of claims 1 to 8.
Description
Frame rate control method, electronic device, storage medium, and program product Technical Field The present application relates to the field of frame rate control technologies, and in particular, to a frame rate control method, an electronic device, a storage medium, and a program product. Background When a user uses an electronic device to perform real-time video communication (e.g., video call), a camera of the electronic device may capture video frames (e.g., including character images, scenic images, etc.) at a frame rate, and the electronic device may then display the captured video frames in a display screen at the frame rate. It will be appreciated that the size of the acquisition frame rate of the video frames may affect the acquisition power consumption, e.g., the greater the acquisition frame rate, the greater the power consumption. The size of the display frame rate (FRAMES PER second, FPS) of the video frames can affect the display quality and thus the user experience. Fig. 1 is a schematic diagram showing a correspondence relationship between quality of experience and display frame rate of interface content when a user uses an electronic device to conduct a video call. As shown in fig. 1, the horizontal axis represents the display frame rate, and the vertical axis represents the quality of experience. It can be seen that when the display frame rate is between 0FPS and 24FPS, the quality of experience is increasing with increasing display frame rate. But after the display frame rate is greater than 24FPS, the quality of experience tends to stabilize as the display frame rate increases. If the display frame rate is still increased at this time, the quality of experience cannot be obviously improved. In addition, if the display frame rate is to be increased, the camera needs to increase the acquisition frame rate when acquiring the video frames, which leads to an increase in acquisition power consumption. Thus, in some approaches, the camera captures video frames at a fixed capture frame rate and the electronic device displays the captured video frames at the same display frame rate as the capture frame rate, i.e., the electronic device also displays the captured video frames at a fixed display frame rate (e.g., 15 FPS) to ensure higher quality of experience and lower power consumption. However, in different application scenarios, the required acquisition frame rate of the camera is different, and the requirements of the user on the display frame rate are also different. For example, in some cases where the acquisition frame rate is low (e.g., when a video call is in progress, the motion of the image content between adjacent frames is simpler, and the lower acquisition frame rate can accurately record the image content), if the fixed acquisition frame rate is higher than the current lower acquisition frame rate requirement, the acquisition power consumption will be higher. For another example, under some conditions with higher requirements on the acquisition frame rate (such as more complex motion of image content between adjacent frames during video call, in order to capture motion information more accurately, the image content needs to be frequently recorded at a higher acquisition frame rate), if the fixed acquisition frame rate is lower, the current requirements on the acquisition frame rate cannot be met, some motion details between video frames cannot be acquired, and further, the video frames cannot display the motion details during display, that is, the display frame rate cannot meet the current requirements on the higher display frame rate, so that display is blurred, and display quality is reduced. Disclosure of Invention The embodiment of the application provides a frame rate control method, electronic equipment, a storage medium and a program product. In a first aspect, the application provides a frame rate control method applied to first electronic equipment, wherein the method comprises the steps that a first camera collects continuous M video frames at a first frame rate, the first electronic equipment determines that the content change degree of the M video frames meets frame rate adjustment conditions, the first camera collects continuous N video frames at a second frame rate, the second frame rate is different from the first frame rate, 1 st video frame in the N video frames is collected after the M video frames are collected, M and N are integers larger than 1, and M and N are the same or different. It can be understood that after determining that the content variation degrees of the M video frames meet the frame rate adjustment condition, the first electronic device may determine, based on the first frame rate corresponding to the M video frames, the acquisition frame rate of the N video frames as the second frame rate, so that the first camera may acquire the N video frames at the second frame rate. Therefore, in some manners, the first electronic device may determine, based