CN117061863B - Frame rate control method, device and equipment - Google Patents

Frame rate control method, device and equipment Download PDF

Info

Publication number
CN117061863B
CN117061863B CN202311317272.XA CN202311317272A CN117061863B CN 117061863 B CN117061863 B CN 117061863B CN 202311317272 A CN202311317272 A CN 202311317272A CN 117061863 B CN117061863 B CN 117061863B
Authority
CN
China
Prior art keywords
frame rate
preview
electronic device
state
camera module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311317272.XA
Other languages
Chinese (zh)
Other versions
CN117061863A (en
Inventor
张�浩
朱丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311317272.XA priority Critical patent/CN117061863B/en
Publication of CN117061863A publication Critical patent/CN117061863A/en
Application granted granted Critical
Publication of CN117061863B publication Critical patent/CN117061863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/65Control of camera operation in relation to power supply
    • H04N23/651Control of camera operation in relation to power supply for reducing power consumption by affecting camera operations, e.g. sleep mode, hibernation mode or power off of selective parts of the camera
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The method, the device and the equipment for controlling the frame rate are applied to electronic equipment, when the electronic equipment detects that a camera module is started, current motion gesture information of the equipment is obtained, the state type of the equipment can be determined according to the motion gesture information, and then the preview frame rate of the camera module is adjusted based on the state type. The preview frame rate of the camera module is dynamically adjusted based on the current state type of the electronic equipment, when the electronic equipment moves rapidly, the higher preview frame rate can be set so as to ensure smooth pictures, and when the electronic equipment is stationary, the lower preview frame rate can be set so as to save electric quantity.

Description

Frame rate control method, device and equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a frame rate control method, apparatus, and device.
Background
Today, electronic devices such as smartphones, tablet computers, etc. are often configured with a camera module, and when a user wants to take an image, the electronic device can activate the camera module and display a preview image, and the user can adjust the shooting angle according to the preview image.
However, in the prior art, the preview image of the electronic device is usually displayed at a fixed frame rate, if the user is in a scene moving at a high speed, the fixed frame rate is relatively low, the preview image may be jammed, and if the user is in a static state, the fixed frame rate is relatively high, which causes resource waste.
Disclosure of Invention
In view of this, the present application provides a frame rate control method, apparatus and device, so as to solve the problem that the preview frame rate in the prior art is difficult to satisfy different shooting scenes.
In a first aspect, an embodiment of the present application provides a frame rate control method, where the method is applied to an electronic device, when the electronic device detects that a camera module is started, current motion gesture information of the electronic device is obtained, a state type of the electronic device can be determined according to the motion gesture information, and then a preview frame rate of the camera module is adjusted based on the state type.
In the embodiment of the application, the electronic device dynamically adjusts the preview frame rate of the camera module based on the current state type of the electronic device, when the electronic device moves fast, the electronic device can set a higher preview frame rate so as to ensure smooth pictures, and when the electronic device is static, the electronic device can set a lower preview frame rate, so that the electric quantity is saved.
In an alternative manner, the status type of the electronic device may include: a stationary state, a first motion state, or a second motion state; wherein the speed of the electronic device in the second motion state is greater than the speed of the electronic device in the first motion state.
In an alternative manner, when the electronic device adjusts the preview frame rate of the camera module based on its own state type, the electronic device first obtains a preset frame rate associated with the current state type of the electronic device, and then adjusts the preview frame rate of the camera module with the preset frame rate as the frame rate to be adjusted.
In the embodiment of the application, the electronic device may pre-configure the associated preview frame rate for different status types, and after determining the current status type of the electronic device, the electronic device may acquire the corresponding preset frame rate, so as to adjust the preview frame rate of the camera module.
In an optional manner, when the electronic device adjusts the preview frame rate of the camera module by taking the preset frame rate as the frame rate to be adjusted, if detecting that the electronic device is in a static state, setting the preview frame rate as the first frame rate; if the fact that the self equipment is in the first motion state is detected, setting the preview frame rate to be a second frame rate; if the fact that the self equipment is in the second motion state is detected, setting the preview frame rate to a third frame rate; wherein the first frame rate is less than the second frame rate, and the second frame rate is less than the third frame rate.
In the embodiment of the application, the electronic equipment sets different frame rates according to different state types, so that smooth pictures can be ensured, and electric quantity waste can be avoided.
In an alternative manner, when the electronic device adjusts the preview frame rate of the camera module based on the state type, the electronic device first acquires the preview image collected by the camera module, and then adjusts the preview frame rate of the camera module based on the preview image and the current state type of the electronic device. Specifically, if the preview image is detected to contain preset content information and the state type of the electronic device is a preset specified type, the electronic device sets the preview frame rate to be a fourth frame rate; the preset content information comprises: an object having a movement capability and a speed at which it moves can exceed a first threshold.
In this embodiment of the present application, if the electronic device detects that there is an object that may be moving or is moving rapidly in the preview image, the preview frame rate needs to be set to a higher frame rate even if the moving speed of the device itself is low.
In an alternative manner, when the electronic device adjusts the preview frame rate of the camera module based on the state type, if the frame rate to be adjusted determined based on the state type is different from the configured frame rate of the camera module, and the difference between the setting time of the configured frame rate and the current time is greater than the second threshold, the electronic device may set the preview frame rate of the camera module to the frame rate to be adjusted, otherwise, the configured frame rate of the camera module is kept unchanged.
In the embodiment of the application, in order to avoid excessive frame rate adjustment times in a short time, the electronic device adjusts the preview frame rate only when the frame rate to be adjusted is different from the configured frame rate and the current time of the last adjustment time interval exceeds the second threshold.
In a second aspect, an embodiment of the present application provides a frame rate control apparatus, including:
the acquisition module is used for acquiring a preconfigured device driving identifier when detecting a closing instruction of the display screen;
the processing module is used for unloading the external driving equipment associated with the equipment driving identification based on the pre-configured equipment driving identification;
and the control module is used for turning off the power supply corresponding to the unloaded external driving equipment.
In a third aspect, embodiments of the present application provide an electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the electronic device to perform the method according to any one of the first aspects.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium includes a stored program, where when the program runs, the program controls a device in which the computer readable storage medium is located to execute the method of any one of the first aspects.
In a fifth aspect, embodiments of the present application provide a computer program product comprising executable instructions which, when executed on a computer, cause the computer to perform the method of any of the first aspects.
By adopting the scheme provided by the embodiment of the application, when the electronic equipment detects that the camera module is started, the current motion gesture information of the electronic equipment is obtained, the state type of the electronic equipment can be determined according to the motion gesture information, and then the preview frame rate of the camera module is adjusted based on the state type. The preview frame rate of the camera module is dynamically adjusted based on the current state type of the electronic equipment, when the electronic equipment moves rapidly, the higher preview frame rate can be set so as to ensure smooth pictures, and when the electronic equipment is stationary, the lower preview frame rate can be set so as to save electric quantity.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a frame rate control method according to an embodiment of the present application;
fig. 2 is a flowchart of another frame rate control method according to an embodiment of the present application;
fig. 3 is a flowchart of another frame rate control method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a frame rate control device according to an embodiment of the present application;
fig. 5 is a flowchart of another frame rate control method according to an embodiment of the present application;
fig. 6 is a flowchart of another frame rate control method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another frame rate control device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For a better understanding of the technical solutions of the present application, embodiments of the present application are described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, based on the embodiments herein, which would be apparent to one of ordinary skill in the art without making any inventive effort, are intended to be within the scope of the present application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one way of describing an association of associated objects, meaning that there may be three relationships, e.g., a and/or b, which may represent: the first and second cases exist separately, and the first and second cases exist separately. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In the prior art, the step of activating the camera module by the electronic device may be as shown in fig. 1. When a user needs to shoot an image, the camera module of the electronic device can be started manually, and the electronic device controls the camera module to start in response to a starting request of the user. After the camera module is started, the preview image collected by the electronic equipment through the camera module can be displayed in a screen so as to enable a user to adjust the shooting angle. In this process, the state type of the electronic device may change, for example, the user is initially stationary somewhere, and after a certain period of time, the user starts walking, and after a certain period of time, the user starts running. In contrast, the state type of the electronic device is changed from stationary to slow movement, and then from slow movement to fast movement. Regardless of the state type of the electronic device, the preview frame rate of the camera module is configured with a fixed value, and the preview image in the screen is displayed with a fixed frame rate. When the electronic device is in different state types, the most suitable preview frame rate is also different, and the camera module is configured only with one fixed frame rate, so that different scenes are difficult to be suitable.
Aiming at the problems, the embodiment of the application can dynamically adjust the preview frame rate of the camera module based on the current state type of the electronic equipment, and can set higher preview frame rate when the electronic equipment moves fast so as to ensure smooth pictures, and can set lower preview frame rate when the electronic equipment is static, thereby saving electric quantity.
In the embodiment of the present application, the step of the electronic device activating the camera module may be as shown in fig. 2. After the electronic device starts the camera module, the preview picture collected by the camera module is displayed on the screen, and in the process, if the state type of the electronic device changes, the electronic device dynamically configures the preview frame rate of the camera module. Specifically, the preview frame rate of the camera module may be determined by the preview frame rate adjustment module 200, and the preview frame rate adjustment module 200 is internally provided with: a sensor 201, a sensor data processing module 202, a mobile sensing platform (Mobile Sensing Development Platform, MSDP) module 203, a preview frame rate decision module 204, and a preview frame rate output module 205. The sensor 201 is configured to collect related data such as speed data, acceleration data, and gesture data of the electronic device, and the sensor data processing module 202 performs preliminary processing on the data and sends the data to the MSDP module 203.MSDP module 203 may determine a status type (e.g., a stationary status, a slow moving status, a fast moving status, etc.) of the electronic device based on the received data and send the status type to preview frame rate decision module 204. The preview frame rate decision module 204 can determine the corresponding preview frame rate based on the current status type of the electronic device, with the preview frame rates corresponding to different status types being generally different. The preview frame rate output module 205 may output the final determined preview frame rate based on which the electronic device configures the camera module.
When the preview frame rate decision module determines the corresponding preview frame rate, the preview frame rate decision module can be comprehensively considered in combination with the preview image besides the current state type of the electronic equipment. The workflow of the preview frame rate decision module may be as shown in fig. 3, and may specifically include:
step 301, determining a state type of an electronic device;
step 302, if the electronic device is in a high-speed moving state, matching a third frame rate;
step 303, judging whether an object which is likely to move at a high speed is identified or not when the electronic equipment is in a static state, and if so, entering step 305; if not, go to step 304;
step 304, if the electronic device is in a static state and does not recognize an object which can move at a high speed, matching a first frame rate;
step 305, the electronic device is in a static state and recognizes an object which is likely to move at a high speed, and then matches a fourth frame rate;
step 306, judging whether an object which is likely to move at a high speed is identified or not when the electronic equipment is in a low-speed moving state, and if so, entering step 307; if not, go to step 308;
step 307, the electronic device is in a low-speed moving state and recognizes an object that may move at a high speed, and matches the fourth frame rate;
step 308, the electronic device is in a low-speed moving state and does not recognize an object which can move at a high speed, and the second frame rate is matched;
step 309, judging whether the adjustment condition is met;
step 310, outputting a frame rate to be adjusted;
step 311, the frame rate to be adjusted is not output.
First, the preview frame rate decision module determines the current status type of the electronic device according to the information sent by the MSDP module. Based on motion gesture information such as speed, acceleration, angular velocity, etc. of the electronic device, the state types thereof may be classified into a stationary state, a low-speed moving state, and a high-speed moving state. The low-speed moving state may refer to a scene in which a user is walking normally, and the high-speed moving state may refer to a scene in which a user is running or riding a vehicle. The state types and corresponding specific scenarios disclosed in the embodiments of the present application are only exemplary descriptions, and the number of the state types is not limited, and other reasonable state types may be included besides the three state types.
For scenes with different state types of the electronic equipment, the preview frame rate decision module can match different preview frame rates for the camera module, specifically, when the electronic equipment is in a static state, the preview frame rate decision module matches a first frame rate for the electronic equipment, when the electronic equipment is in a low-speed moving state, the preview frame rate decision module matches a second frame rate for the electronic equipment, and when the electronic equipment is in a high-speed moving state, the preview frame rate decision module matches a third frame rate for the electronic equipment. The third frame rate is numerically greater than the second frame rate, which is greater than the first frame rate. It will be appreciated that when the electronic device is in a stationary state, the camera module may have a lower frame rate requirement, the preview frame rate may be set to a first frame rate, when the electronic device is in a low-speed moving state, the camera module may have a higher frame rate requirement, the preview frame rate may be set to a second frame rate, and when the electronic device is in a high-speed moving state, the camera module may have a higher frame rate requirement, the preview frame rate may be set to a third frame rate. Therefore, the preview frame rate can meet the shooting requirement of the camera module, and the electric energy waste caused by the overhigh frame rate can be avoided.
If there is an object that may move at a high speed in the current photographing scene under the condition that the electronic device is in a stationary state or a low-speed moving state, the preview frame rate of the camera module needs to be increased. The electronic device may pre-record common objects that have mobility and that are moving at a speed exceeding a first threshold, such as animals like cats, dogs, or vehicles like automobiles, airplanes. When the object that may move at a high speed moves, the camera module needs a higher preview frame rate to clearly display the preview image, so the preview frame rate decision module may match the fourth frame rate for the camera module when detecting that the preview image contains the preset content information. Wherein the fourth frame rate is greater than the first frame rate and greater than the second frame rate. The third frame rate is a frame rate corresponding to the electronic device in the high-speed moving state, and has a higher value, and when the camera module configures the third frame rate, the camera module is sufficient to clearly display the preview image even if the object moving at high speed appears in the preview image, so that it is not necessary to determine whether the object moving at high speed is identified in the preview image between step 301 and step 302. Alternatively, the fourth frame rate may be the same as the third frame rate or may be different from the third frame rate.
After the preview frame rate decision module matches any frame rate for the camera module, the matched frame rate can be used as the frame rate to be adjusted S1, and before outputting the frame rate to be adjusted S1, the preview frame rate decision module needs to judge whether the current frame rate to be adjusted S1 meets the adjustment condition. The current system time may be denoted as T1, the configured frame rate of the camera module may be denoted as S2, and the configured time may be denoted as T2. The preview frame rate decision module needs to judge whether S1 is different from S2, and whether the difference between T1 and T2 is larger than a second threshold, if yes, determining that S1 meets the adjustment condition, otherwise, determining that S1 does not meet the adjustment condition. In an actual shooting scene, the state type of the electronic device may be changed frequently, and if the switching frequency of the preview frame rate is too high, a stronger cracking sense may occur in the preview image, so that user experience is affected. For this case, the second threshold may be reasonably set, and the preview frame rate may be switched only if the frame rate to be adjusted is different from the configured frame rate and the difference between the current time and the last adjustment time is greater than the second threshold. Therefore, the switching interval of the preview frame rate of the camera module is larger, so that the picture splitting feeling caused by switching the preview frame rate at high frequency is avoided.
When the frame rate to be adjusted is determined to meet the adjustment condition, the preview frame rate decision module can output the frame rate to be adjusted, otherwise, the frame rate to be adjusted is not output. The electronic device may set the output frame rate to be adjusted to a preview frame rate of the camera module to be suitable for different shooting scenes.
In this embodiment of the present invention, when the electronic device moves at a high speed or there is a possible high-speed object in the preview screen, the electronic device may set the preview frame rate of the camera module to a higher value to ensure smooth screen, and when the electronic device moves at a low speed or is stationary, the electronic device may set the preview frame rate of the camera module to a lower value to save electric power.
Fig. 4 is a schematic structural diagram of a frame rate control device according to an embodiment of the present application. As shown in fig. 4, the apparatus may include: camera application Camera app401, camera service402, camera provision Camera provider403, camera driver404, and Camera Hardware405.
The Camera app401 may include a process/service Activity/service and a Camera frame, and the operation steps of the Camera app401 may be shown as a flowchart indicated by a right arrow. First, a system service Getsystemservice is acquired, and a Camera manager is started. The Camera manager can configure the Camera characteristics Camera characteristics and turn on the Camera Device. The Camera Device generates a demand, the demand Capture module captures the demand and then sends the demand to the Camera session Capture module Camera CaptureSession, and after capturing is completed, a Capture Result is obtained.
The Camera provider403 includes a Main program and a function interface-custom code Camx-CHI framework, wherein the function interface Camx includes: the hardware abstraction layer (Hardware Abstraction Layer, HAL), the bus CHI, the Session, the sensor HWL, the storage node SWL, the communication module CSL and the Pipeline409, and the custom code CHI includes: session, storage module ChiOverride, configuration management module CHIUsecase, feature module ChiFeature, test Feature SIT Feature2, and test Node SIT Node406. The MSDP module is connected with the positioning module FWK, the FWK is provided with a positioning service LBSService module, the FWK is connected with the Hardware abstraction layer HAL407, the HAL407 comprises a mode fusion device module, the HAL407 is connected with the Kernel Kernel, the intelligent sensing hub is connected with the Hardware Hardware.
The SIT Node406 and the HAL407 are connected to the dynamic adjustment modules Dynamic Adjustment Model, dynamic Adjustment Model, and based on the status type and the content information of the preview image, can determine the corresponding preview frame rate and send it to the Pipeline409.
Fig. 5 is a flowchart of another frame rate control method according to an embodiment of the present application. As shown in fig. 5, the method may include:
step 501, the display 520 sends a request for opening a preview to the Camera application Camera App521;
step 502, a Camera application Camera App521 sends a request for identifying a state type, and the request passes through a location service module LBSService526, a mode fusion module fusion device 527 and an intelligent sensor hub528 in sequence, wherein the location service module LBSService526;
step 503, the Camera application Camera APP521 issues a Camera request to the Camera to supply Camera Provider522;
step 504, camera Provider522 processes the Camera request;
step 505, a frame rate adjusting module Sensor Node523 loads the request;
step 506, the content recognition module Tiny524 recognizes the preview image and judges whether an object which is likely to move at a high speed is in the preview image;
step 507, the content recognition module Tiny524 sends the recognition result to the dynamic adjustment module Dynamic Adjustment Model525;
step 508, when the content recognition module Tiny524 recognizes the preview image, the location service module lbsserve 526, the modality fusion module fusion device 527 and the intelligent sensor hub528 can combine to determine the current state type of the electronic device;
step 509, the intelligent sensor hub528 sends the status type to the dynamic adjustment module Dynamic Adjustment Model525, and the status type is sent through the mode fusion module fusion device 527;
step 510. The dynamic adjustment module Dynamic Adjustment Model525 combines the status type of the electronic device and the content information of the preview image to determine the preview frame rate;
step 511, the frame rate adjustment module Sensor Node523 transmits the preview frame rate back to the Camera Provider522;
step 512, the Camera Provider522 transmits the preview frame rate back to the Camera application Camera APP521;
step 513. After receiving the preview frame rate, the display 520 adjusts the display frame number based on the preview frame rate, and displays the preview image.
In this embodiment of the present application, the content recognition module Tiny524 may be used to recognize content information in the preview image, and the location service module lbs device 526, the modality fusion module fusion device 527 and the intelligent sensor hub528 may determine the current status type of the electronic device, and the dynamic adjustment module Dynamic Adjustment Model525 combines the determination results of the two aspects to determine a suitable preview frame rate, so that not only can the picture flow be ensured, but also the waste of electric quantity can be avoided.
Fig. 6 is a flowchart of a frame rate control method according to an embodiment of the present application. The method may be applied to an electronic device, as shown in fig. 6, and may include:
step 601, when the camera module is detected to be started, current motion gesture information of self equipment is obtained;
step 602, determining the state type of the self equipment according to the motion gesture information;
step 603, adjusting the preview frame rate of the camera module based on the status type.
The motion gesture information may include information such as velocity data, acceleration data, gesture data, and the like, from which the electronic device may determine its own state type. Wherein the status types may include: the electronic device comprises a static state, a first motion state and a second motion state, wherein the speed of the electronic device in the second motion state is higher than that of the electronic device in the first motion state, the first motion state can represent the low-speed motion state, and the second motion state can represent the high-speed motion state. Based on the state types, the electronic device can pertinently adjust the preview frame rate, and the three state types are taken as examples. When the electronic equipment is in a static state, the preview frame rate of the camera module can be adjusted to be a first frame rate with a lower value; when the electronic equipment is in a first motion state, the preview frame rate of the camera module can be adjusted to a second frame rate with a higher value; when the electronic device is in the second state, the preview frame rate of the camera module can be adjusted to a third frame rate with the highest value.
In an alternative way, the electronic device may further adjust the preview frame rate in combination with the content of the preview image, based on the determination of the status type. Specifically, if an object with moving capability and a speed during moving can exceed a first threshold value exists in the preview screen, the electronic device needs to adjust the preview frame rate to the highest value so as to ensure that the camera module can clearly display the preview image when the object moves. In execution, if the object is detected to be included in the preview image and the state type of the electronic device is a specified type (stationary state or first motion state), the electronic device sets the preview frame rate to a fourth frame rate.
Fig. 7 is a schematic structural diagram of a frame rate control device according to an embodiment of the present application. The apparatus may be deployed in an electronic device, as shown in fig. 4, and may include:
and the acquiring module 710 is configured to acquire current motion gesture information of the electronic device when the camera module is started.
A determining module 720, configured to determine a status type of the electronic device according to the motion gesture information.
An adjustment module 730 for adjusting the preview frame rate of the camera module based on the status type.
For specific flow, reference is made to the description of the flow chart of the method described above.
Corresponding to the above embodiment, the present application also provides an electronic device. Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 800 may include: a processor 801, a memory 802, and a communication unit 803. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the electronic device shown in the drawings is not limiting of the embodiments of the invention, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
Wherein the communication unit 803 is configured to establish a communication channel, so that the electronic device may communicate with other devices. Receiving user data sent by other devices or sending user data to other devices.
The processor 801, which is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and/or processes data by running or executing software programs, instructions, and/or modules stored in the memory 802, and invoking data stored in the memory. The processor may be comprised of integrated circuits (integrated circuit, ICs), such as a single packaged IC, or may be comprised of packaged ICs that connect multiple identical or different functions. For example, the processor 801 may include only a central processing unit (central processing unit, CPU). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
The memory 802, for storing instructions for execution by the processor 801, the memory 802 may be implemented by any type of volatile or non-volatile memory device, or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
The execution of the instructions in memory 802, when executed by processor 801, enables electronic device 800 to perform some or all of the steps of the embodiment shown in fig. 1.
In a specific implementation, the present invention further provides a computer storage medium, where the computer storage medium may store a program, where the program may include some or all of the steps in each embodiment of the frame rate control method provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
In a specific implementation, the present invention also provides a computer program product, where the computer program product contains executable instructions that, when executed on a computer, cause the computer to perform some or all of the steps in the embodiments of the frame rate control method provided by the present invention.
The embodiment of the application also provides a non-transitory computer readable storage medium, which stores computer instructions that cause the computer to execute the frame rate control method provided by the embodiment of the application.
The non-transitory computer readable storage media described above may employ any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory; EPROM) or flash Memory, an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.

Claims (5)

1. A frame rate control method, wherein the method is applied to an electronic device, and comprises:
when the camera module is detected to be started, current motion gesture information of the electronic equipment is obtained;
determining the state type of the electronic equipment according to the motion gesture information;
adjusting a preview frame rate of the camera module based on the status type;
the state type includes: a stationary state, a first motion state, or a second motion state, wherein a speed of the electronic device when in the second motion state is greater than a speed of the electronic device when in the first motion state;
the adjusting the preview frame rate of the camera module based on the status type includes:
if the electronic equipment is in the static state, setting the preview frame rate to a first frame rate;
if the electronic equipment is in the first motion state, setting the preview frame rate to a second frame rate;
if the electronic equipment is in the second motion state, setting the preview frame rate to a third frame rate;
wherein the first frame rate is less than the second frame rate, the second frame rate is less than the third frame rate;
the method further comprises the steps of:
acquiring a preview image acquired by the camera module, and if the preview image is detected to contain preset content information and the state type of the electronic equipment is a preset appointed type, setting the preview frame rate to be a fourth frame rate;
wherein, the preset content information includes: an object having a movement capability and a speed at which it moves can exceed a first threshold.
2. The method of claim 1, wherein the adjusting the preview frame rate of the camera module based on the status type comprises:
if the frame rate to be adjusted determined based on the state type is different from the configured frame rate of the camera module, and the difference value between the setting time of the configured frame rate and the current time is larger than a second threshold value, setting the preview frame rate of the camera module to be the frame rate to be adjusted, otherwise, keeping the configured frame rate of the camera module unchanged.
3. A frame rate control apparatus, the apparatus deployed in an electronic device, comprising:
the acquisition module is used for acquiring current motion gesture information of the electronic equipment when the camera module is detected to be started;
the determining module is used for determining the state type of the electronic equipment according to the motion gesture information;
an adjustment module for adjusting a preview frame rate of the camera module based on the status type;
the state type includes: a stationary state, a first motion state, or a second motion state, wherein a speed of the electronic device when in the second motion state is greater than a speed of the electronic device when in the first motion state;
the adjusting the preview frame rate of the camera module based on the status type includes:
if the electronic equipment is in the static state, setting the preview frame rate to a first frame rate;
if the electronic equipment is in the first motion state, setting the preview frame rate to a second frame rate;
if the electronic equipment is in the second motion state, setting the preview frame rate to a third frame rate;
wherein the first frame rate is less than the second frame rate, the second frame rate is less than the third frame rate;
the adjusting module is further configured to obtain a preview image collected by the camera module, and if it is detected that the preview image includes preset content information and the state type of the electronic device is a preset specified type, set the preview frame rate to be a fourth frame rate;
wherein, the preset content information includes: an object having a movement capability and a speed at which it moves can exceed a first threshold.
4. An electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, cause the electronic device to perform the method of any one of claims 1 or 2.
5. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer readable storage medium is located to perform the method according to any one of claims 1 or 2.
CN202311317272.XA 2023-10-12 2023-10-12 Frame rate control method, device and equipment Active CN117061863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311317272.XA CN117061863B (en) 2023-10-12 2023-10-12 Frame rate control method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311317272.XA CN117061863B (en) 2023-10-12 2023-10-12 Frame rate control method, device and equipment

Publications (2)

Publication Number Publication Date
CN117061863A CN117061863A (en) 2023-11-14
CN117061863B true CN117061863B (en) 2024-04-16

Family

ID=88657606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311317272.XA Active CN117061863B (en) 2023-10-12 2023-10-12 Frame rate control method, device and equipment

Country Status (1)

Country Link
CN (1) CN117061863B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847680A (en) * 2016-03-28 2016-08-10 维沃移动通信有限公司 Camera power consumption control method and mobile terminal
CN108337442A (en) * 2018-05-14 2018-07-27 Oppo广东移动通信有限公司 Shooting preview display methods, device, terminal and storage medium
CN116680153A (en) * 2023-07-28 2023-09-01 荣耀终端有限公司 Application frame rate smoothing method, electronic device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847680A (en) * 2016-03-28 2016-08-10 维沃移动通信有限公司 Camera power consumption control method and mobile terminal
CN108337442A (en) * 2018-05-14 2018-07-27 Oppo广东移动通信有限公司 Shooting preview display methods, device, terminal and storage medium
CN116680153A (en) * 2023-07-28 2023-09-01 荣耀终端有限公司 Application frame rate smoothing method, electronic device and storage medium

Also Published As

Publication number Publication date
CN117061863A (en) 2023-11-14

Similar Documents

Publication Publication Date Title
US11314309B2 (en) Electronic device control method and apparatus, and electronic device
EP3481048B1 (en) Electronic device for recording image using multiple cameras and operating method thereof
WO2021115007A1 (en) Network switching method and electronic device
CN110851271B (en) Resource sharing method and device and storage medium
US10735697B2 (en) Photographing and corresponding control
US10931755B2 (en) Method and apparatus for managing a shared storage system
US20170068527A1 (en) Device control method and apparatus
EP4120077A1 (en) Method for scheduling hardware accelerator, and task scheduler
CN107566746B (en) Photographing method and user terminal
CN115016885B (en) Virtual machine garbage recycling operation method and electronic equipment
CN105490917A (en) Sharing method and device in application
CN111522597A (en) Game starting method and device, electronic equipment and storage medium
CN107181825B (en) Online processing method of terminal equipment data
CA3102425C (en) Video processing method, device, terminal and storage medium
CN117061863B (en) Frame rate control method, device and equipment
EP3054709B1 (en) Electronic apparatus and short-range communication method thereof
US20150288885A1 (en) Method and Apparatus for Controlling Camera Devices
CN114659450B (en) Robot following method, device, robot and storage medium
CN111064886B (en) Shooting method of terminal equipment, terminal equipment and storage medium
CN114157626A (en) Method, system, storage medium and computer equipment for transmitting photos by photographing
CN107679063A (en) Image display method, server and computer-readable recording medium
WO2019169692A1 (en) Smartphone-based method for prompting download completion, electronic device and storage medium
CN112468870A (en) Video playing method, device, equipment and storage medium
CN114546910A (en) Access control method, device, storage medium and electronic device
KR102243220B1 (en) Apparatus and method for controlling mirroring using priority in vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant