CN112153305A - Camera starting method, mobile terminal and computer storage medium - Google Patents
Camera starting method, mobile terminal and computer storage medium Download PDFInfo
- Publication number
- CN112153305A CN112153305A CN202011141883.XA CN202011141883A CN112153305A CN 112153305 A CN112153305 A CN 112153305A CN 202011141883 A CN202011141883 A CN 202011141883A CN 112153305 A CN112153305 A CN 112153305A
- Authority
- CN
- China
- Prior art keywords
- camera
- frame image
- exposure index
- parameter
- current
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000006870 function Effects 0.000 description 16
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The application provides a camera starting method, which comprises the following steps: responding to a camera application starting instruction, and acquiring a preset exposure index; generating an initial frame image according to the preset exposure index; and generating a stable frame image according to the initial frame image so as to complete the starting of the camera. According to the camera starting method, when the camera application is started, the preset exposure index is obtained, so that the first frame of image after starting can be generated according to the preset exposure index corresponding to the current external light condition when the camera application is started, and then the process that the first frame of image is used as the basis to generate a stable camera shooting picture is shortened subsequently, the camera starting time is effectively shortened, and the user experience is improved.
Description
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a camera starting method, a mobile terminal, and a computer storage medium.
Background
At present, when a camera is started, the exposure index of the camera needs to be adjusted according to the brightness of the surrounding environment when the camera is exposed, and when the camera is started, the first frame of image equipment cannot know the brightness information of the environment, so that when the camera enters the photographing equipment, the phenomenon can be seen, the interface is firstly black for a period of time and then gradually brightens, and therefore bad user experience can be brought.
Disclosure of Invention
An object of the present application is to provide a camera startup method, a mobile terminal, and a computer storage medium, which can quickly acquire a stable screen state when a camera is started.
In order to achieve the above object, a first aspect of an embodiment of the present application provides a camera starting method, including: responding to a camera application starting instruction, and acquiring a preset exposure index; generating an initial frame image according to the preset exposure index; and generating a stable frame image according to the initial frame image so as to complete the starting of the camera.
Optionally, the step of obtaining the preset exposure index includes: acquiring a current environment brightness parameter; and determining a corresponding preset exposure index according to the current environment brightness parameter.
Optionally, the step of obtaining the current ambient brightness parameter includes: acquiring an ambient brightness parameter through a sensor at preset intervals; when a camera application starting instruction is detected, determining the environment brightness parameter determined last time as the current environment brightness parameter.
Optionally, the step of obtaining the current ambient brightness parameter includes: when a camera application starting instruction is detected, acquiring an environment brightness parameter through a sensor; and determining the acquired ambient brightness parameter as the current ambient brightness parameter.
Optionally, the step of obtaining the current ambient brightness parameter includes: determining a current time parameter and a geographic location parameter; and determining a corresponding current environment brightness parameter according to the current time parameter and the geographic position parameter.
Optionally, the method further comprises: and presetting a corresponding relation between the environment brightness parameter and the exposure index.
Optionally, the step of generating a stable frame image from the initial frame image to complete the camera start-up includes: determining the brightness of an initial frame image according to the initial frame image; determining an adjusted exposure index according to the initial frame image brightness and the environment target brightness; and generating a current frame image according to the adjusted exposure index until the ratio of the brightness of the current frame image to the environment target brightness meets a preset threshold value.
A second aspect of the embodiments of the present application provides a camera starting apparatus, including:
the acquisition module is used for responding to a camera application starting instruction and acquiring a preset exposure index;
the image generation module is used for generating an initial frame image according to the preset exposure index;
and the starting module is used for generating a stable frame image according to the initial frame image so as to finish the starting of the camera.
A second aspect of an embodiment of the present application provides a mobile terminal, including a processor and a memory;
the memory is used for storing an executable program;
the processor is used for executing the executable program to realize the camera starting method.
A third aspect of the embodiments of the present application provides a computer storage medium, where an executable program is stored on the computer storage medium, and the executable program is executed to implement the camera booting method described above.
The embodiment of the application has the following beneficial effects:
according to the camera starting method, the mobile terminal and the computer storage medium in the embodiment of the application, the preset exposure index is obtained when the camera application is started, so that the first frame of image after starting can be generated according to the preset exposure index corresponding to the current external light condition when the camera application is started, and then the process of subsequently taking the first frame of image as a basis until generating a stable camera shooting picture is shortened, the camera starting time is effectively shortened, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a wireless communication system of a mobile terminal according to an embodiment of the present application;
fig. 3 is a flowchart of a method of an implementation manner of a camera starting method according to an embodiment of the present application;
FIG. 4 is a schematic illustration of an exposure index provided by an embodiment of the present application;
fig. 5 is a schematic diagram illustrating adjustment of a frame image when a camera is started according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present application may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like. The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present application are proposed.
Fig. 3 is a flowchart of a method of an implementation manner of a camera starting method according to an embodiment of the present application. In this embodiment, the camera starting method may be applied to the mobile terminal shown in fig. 1 or fig. 2, and it is understood that the camera starting method may also be applied to electronic devices such as a tablet and an electronic book. The camera starting method comprises the following steps:
step S310, responding to a camera application starting instruction, and acquiring a preset exposure index;
step S320, generating an initial frame image according to the preset exposure index;
step S330, generating a stable frame image according to the initial frame image to finish the starting of the camera.
Through the embodiment, when the camera application is started, the preset exposure index is acquired, so that the camera application can generate the first frame image after being started by the preset exposure index corresponding to the current external light condition when being started, and then the process of subsequently taking the first frame image as the basis until generating a stable camera shooting picture is shortened, the camera starting time is effectively shortened, and the user experience is improved.
The present embodiment is described in further detail below:
in step S310, a preset exposure index is obtained in response to a camera application start instruction.
In particular, the mobile terminal may install different applications to perform different operations. In the embodiment, the mobile terminal is provided with a camera application, the mobile terminal can be controlled to enter a camera mode by clicking a camera application icon, and in the camera mode, a camera is started to focus and shoot an image. In the present embodiment, whether to start the camera application is determined by detecting information of the touched application icon. In other embodiments, the camera application may also be started by associating a physical key with a start camera instruction, so that when detecting that the physical key is pressed to generate a signal, the control triggers an instruction to start the camera application.
The preset exposure index refers to an index for controlling the degree of exposure of the image corresponding to the brightness of the current surrounding environment. In the process of imaging through a camera, when the camera is at different shooting angles, the exposure index is automatically adjusted due to the problem of the brightness of the external environment, and in the dynamic adjustment process, the picture displayed by the camera is flickering. In this embodiment, the preset exposure index is a parameter corresponding to the brightness of the external environment when the camera is started, that is, the specific value of the obtained preset exposure index may be different under different conditions.
In this embodiment, the step of obtaining the preset exposure index includes:
step S3101, obtaining a current ambient brightness parameter;
step S3102, determining a corresponding preset exposure index according to the current ambient brightness parameter.
Specifically, the current environment brightness parameter refers to brightness information of an external environment in which the camera is located when the camera is started.
In an alternative embodiment, step S3101 may be performed by:
step S31011, obtaining ambient brightness parameters by a sensor at preset intervals;
in step S31012, when the camera application start instruction is detected, the environment brightness parameter determined most recently is determined as the current environment brightness parameter.
Through the embodiment, when the camera is started, the parameter corresponding to the brightness of the external environment when the camera is started can be quickly obtained, so that the starting speed of the camera is improved.
In step S31011, the function of acquiring the ambient brightness parameter at a fixed time is started in advance, so that the mobile terminal can acquire the current ambient brightness parameter once through the sensor at each preset interval, and save the current ambient brightness parameter and the time point of acquiring the current ambient brightness parameter into the memory. In an alternative embodiment, the historical ambient brightness parameter is overwritten each time a new ambient brightness parameter is obtained, by which it is ensured that the ambient brightness parameter stored in the memory is always up-to-date. In an alternative embodiment, a certain amount of ambient brightness parameter and time point information may be saved.
In step S31012, when the camera start command is detected, the current time point is determined, and the ambient brightness parameter closest to the current time is determined by the correspondence between the current time point and the ambient brightness parameter and the time point stored in the memory, and the ambient brightness parameter is used as the current ambient brightness parameter.
In an alternative embodiment, step S3101 may be performed by:
step S31013, when a camera application start instruction is detected, acquiring an ambient brightness parameter through a sensor;
in step S31014, the acquired ambient brightness parameter is determined as the current ambient brightness parameter.
Through the embodiment, the external environment brightness parameter when the camera is started can be accurately obtained, and the camera can be started more quickly.
Specifically, when a camera application start instruction is detected, a sensor is activated, and current ambient brightness information is acquired through the sensor so as to serve as the current ambient brightness parameter.
In an alternative embodiment, step S3101 may be performed by:
step S31015, determining a current time parameter and a geographic location parameter;
step S31016, determining a corresponding current ambient brightness parameter according to the current time parameter and the geographic location parameter.
Through the implementation mode, excessive waste of power consumption can be avoided by starting more hardware to work.
Specifically, in step S31015, the current time parameter is the time point when the camera application is started, and the geographic location parameter is the location of the mobile terminal when the camera is started. When the method is implemented, the time point can be obtained by reading the system time, and the position information can be obtained by a GPS of the mobile terminal. In step S31016, the corresponding ambient brightness parameter is found from the preset corresponding brightness parameters by acquiring the sunset time of the current time period of the current position from the network.
In step S3302, a corresponding relationship between the ambient brightness parameter and the exposure index may be preset, so that when the current ambient brightness parameter is obtained, the exposure index corresponding to the current ambient brightness parameter is determined according to the corresponding relationship.
In step S320, an initial frame image is generated according to the preset exposure index.
Specifically, as shown in fig. 4, the rectangular box marks the exposure index, and what intensity the image sensor is exposed to is finally determined by the exposure index issued to the image sensor, and the larger the exposure index value is, the stronger exposure is enabled. In the existing scheme, when a camera is started, an initial frame image, namely a first frame image generated after the camera is started, has no corresponding exposure index, so that the obtained first frame image is almost black, and the exposure index is gradually increased on the basis of the first frame image to achieve a final stable image. In this embodiment, the preset exposure index is an exposure index corresponding to the current ambient brightness, and the preset exposure index is used as an exposure index of the first frame image, so that when the camera is started, an image similar to or the same as the final image can be directly generated.
In step S330, a stable frame image is generated from the initial frame image to complete the camera start-up.
Specifically, the stable frame image is a finally generated image adapted to the brightness of the external environment, that is, the brightness of the image displayed in the camera interface has already tended to be stable, and the camera start-up is completed.
In the present embodiment, step S330 may be performed by:
step S3301, determining an initial frame image brightness according to the initial frame image;
step S3302, determining an adjusted exposure index according to the initial frame image brightness and the environment target brightness;
step S3303, generating the current frame image according to the adjusted exposure index until the ratio of the brightness of the current frame image to the environmental target brightness meets a preset threshold value
Specifically, as shown in fig. 5, after an initial frame image is obtained by an image sensor according to a preset exposure index, the initial frame image is divided into 16 × 16 regions, each region is provided with a different weight, and the overall image brightness of the initial frame is calculated by means of weighted averaging. And then, dynamically calculating the target brightness of the current environment according to the ae related parameters, and comparing the overall image brightness with the target brightness to determine whether the overall image brightness and the target brightness are equal. If the brightness of the generated image is not equal to the target brightness, the exposure index is increased or decreased, so that the image sensor generates a new image according to the adjusted exposure index, then the steps are repeated, the overall image brightness of the new image is calculated, and the comparison with the target brightness is continued until the overall image brightness of the generated image is equal to or close to the target brightness, so as to complete the starting of the camera.
Fig. 6 is a schematic structural component diagram of the mobile terminal 100 according to an embodiment of the present application, where the mobile terminal 100 includes: a touch panel 1071; a processor 110; a memory 109 connected to the processor 110, wherein the memory 109 contains a control instruction, and when the processor 110 reads the control instruction, the mobile terminal 100 is controlled to implement the following steps:
responding to a camera application starting instruction, and acquiring a preset exposure index; generating an initial frame image according to the preset exposure index; and generating a stable frame image according to the initial frame image so as to complete the starting of the camera.
Optionally, the step of obtaining the preset exposure index includes: acquiring a current environment brightness parameter; and determining a corresponding preset exposure index according to the current environment brightness parameter.
Optionally, the step of obtaining the current ambient brightness parameter includes: acquiring an ambient brightness parameter through a sensor at preset intervals; when a camera application starting instruction is detected, determining the environment brightness parameter determined last time as the current environment brightness parameter.
Optionally, the step of obtaining the current ambient brightness parameter includes: when a camera application starting instruction is detected, acquiring an environment brightness parameter through a sensor; and determining the acquired ambient brightness parameter as the current ambient brightness parameter.
Optionally, the step of obtaining the current ambient brightness parameter includes: determining a current time parameter and a geographic location parameter; and determining a corresponding current environment brightness parameter according to the current time parameter and the geographic position parameter.
Optionally, the method further comprises: and presetting a corresponding relation between the environment brightness parameter and the exposure index.
Optionally, the step of generating a stable frame image from the initial frame image to complete the camera start-up includes: determining the brightness of an initial frame image according to the initial frame image; determining an adjusted exposure index according to the initial frame image brightness and the environment target brightness; and generating a current frame image according to the adjusted exposure index until the ratio of the brightness of the current frame image to the environment target brightness meets a preset threshold value.
Through the mobile terminal that this application provided, through when starting camera application, acquire preset exposure index for the camera is used when starting, can carry out the generation of the first frame image after starting with the corresponding preset exposure index with current external light condition, and then makes the follow-up process that takes this first frame image as the basis until generating stable camera picture shorten, and the effectual camera that has reduced starts for a long time, has improved user experience.
A second aspect of the embodiments of the present application provides a camera starting apparatus, including:
the acquisition module is used for responding to a camera application starting instruction and acquiring a preset exposure index;
the image generation module is used for generating an initial frame image according to the preset exposure index;
and the starting module is used for generating a stable frame image according to the initial frame image so as to finish the starting of the camera.
It should be noted that the technical solutions in the above embodiments are also applicable to this embodiment, and therefore are not described herein again.
The mobile terminal in the embodiment of the application acquires an original video through shooting of shooting equipment, wherein the original video is a video formed by continuously acquired multiple frames of original images according to a certain playing speed, after the original video is acquired, each frame in the original video is subjected to superposition processing, then each superposed frame is processed to form a video formed by the processed images, and when each frame image is processed, an image with a preset frame number before the current frame image to be processed is acquired as a reference, the image with the preset frame number and the current frame image to be processed are synthesized, and finally a video with a smear effect is formed to increase interest.
An embodiment of the present application further provides a computer storage medium, where an executable program is stored in the computer storage medium, and when the executable program is executed, the following steps are implemented:
a camera startup method, comprising: responding to a camera application starting instruction, and acquiring a preset exposure index; generating an initial frame image according to the preset exposure index; and generating a stable frame image according to the initial frame image so as to complete the starting of the camera.
Optionally, the step of obtaining the preset exposure index includes: acquiring a current environment brightness parameter; and determining a corresponding preset exposure index according to the current environment brightness parameter.
Optionally, the step of obtaining the current ambient brightness parameter includes: acquiring an ambient brightness parameter through a sensor at preset intervals; when a camera application starting instruction is detected, determining the environment brightness parameter determined last time as the current environment brightness parameter.
Optionally, the step of obtaining the current ambient brightness parameter includes: when a camera application starting instruction is detected, acquiring an environment brightness parameter through a sensor; and determining the acquired ambient brightness parameter as the current ambient brightness parameter.
Optionally, the step of obtaining the current ambient brightness parameter includes: determining a current time parameter and a geographic location parameter; and determining a corresponding current environment brightness parameter according to the current time parameter and the geographic position parameter.
Optionally, the method further comprises: and presetting a corresponding relation between the environment brightness parameter and the exposure index.
Optionally, the step of generating a stable frame image from the initial frame image to complete the camera start-up includes: determining the brightness of an initial frame image according to the initial frame image; determining an adjusted exposure index according to the initial frame image brightness and the environment target brightness; and generating a current frame image according to the adjusted exposure index until the ratio of the brightness of the current frame image to the environment target brightness meets a preset threshold value.
Through the computer storage medium provided by the application, when the camera application is started, the preset exposure index is acquired, so that the camera application can generate the first frame image after being started by the preset exposure index corresponding to the current external light condition when being started, and then the process that the first frame image is used as the basis for generating the stable camera shooting picture is shortened subsequently, the starting time of the camera is effectively shortened, and the user experience is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A camera startup method, comprising:
responding to a camera application starting instruction, and acquiring a preset exposure index;
generating an initial frame image according to the preset exposure index;
and generating a stable frame image according to the initial frame image so as to complete the starting of the camera.
2. The method of claim 1, wherein the step of obtaining the preset exposure index comprises:
acquiring a current environment brightness parameter;
and determining a corresponding preset exposure index according to the current environment brightness parameter.
3. The method according to claim 2, wherein the step of obtaining the current ambient brightness parameter comprises:
acquiring an ambient brightness parameter through a sensor at preset intervals;
when a camera application starting instruction is detected, determining the environment brightness parameter determined last time as the current environment brightness parameter.
4. The method according to claim 2, wherein the step of obtaining the current ambient brightness parameter comprises:
when a camera application starting instruction is detected, acquiring an environment brightness parameter through a sensor;
and determining the acquired ambient brightness parameter as the current ambient brightness parameter.
5. The method according to claim 2, wherein the step of obtaining the current ambient brightness parameter comprises:
determining a current time parameter and a geographic location parameter;
and determining a corresponding current environment brightness parameter according to the current time parameter and the geographic position parameter.
6. The method of claim 1, further comprising:
and presetting a corresponding relation between the environment brightness parameter and the exposure index.
7. The method of claim 1, wherein the step of generating a stable frame image from the initial frame image to complete camera startup comprises:
determining the brightness of an initial frame image according to the initial frame image;
determining an adjusted exposure index according to the initial frame image brightness and the environment target brightness;
and generating a current frame image according to the adjusted exposure index until the ratio of the brightness of the current frame image to the environment target brightness meets a preset threshold value.
8. A camera startup device, comprising:
the acquisition module is used for responding to a camera application starting instruction and acquiring a preset exposure index;
the image generation module is used for generating an initial frame image according to the preset exposure index;
and the starting module is used for generating a stable frame image according to the initial frame image so as to finish the starting of the camera.
9. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory;
the memory is used for storing an executable program;
the processor is configured to execute the executable program to implement the camera booting method according to any one of claims 1 to 8.
10. A computer storage medium having stored thereon an executable program which when executed performs the camera booting method of any one of claims 1-8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011141883.XA CN112153305A (en) | 2020-10-22 | 2020-10-22 | Camera starting method, mobile terminal and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011141883.XA CN112153305A (en) | 2020-10-22 | 2020-10-22 | Camera starting method, mobile terminal and computer storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN112153305A true CN112153305A (en) | 2020-12-29 |
Family
ID=73954653
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011141883.XA Pending CN112153305A (en) | 2020-10-22 | 2020-10-22 | Camera starting method, mobile terminal and computer storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112153305A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113179339A (en) * | 2021-04-01 | 2021-07-27 | 华勤技术股份有限公司 | Terminal with photographing function and camera parameter adjusting method |
| CN116095497A (en) * | 2022-06-29 | 2023-05-09 | 荣耀终端有限公司 | Exposure control method, device and terminal equipment |
| CN119967279A (en) * | 2023-10-31 | 2025-05-09 | 荣耀终端股份有限公司 | Camera activation method and electronic device |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120327294A1 (en) * | 2011-06-24 | 2012-12-27 | Research In Motion Limited | Apparatus, and associated method, for facilitating automatic-exposure at camera device |
| CN105208360A (en) * | 2015-09-23 | 2015-12-30 | 青岛海信移动通信技术股份有限公司 | Image preview method and device of intelligent terminal and terminal |
| CN105611037A (en) * | 2015-07-22 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Terminal control method, terminal control device and terminal |
| CN106254791A (en) * | 2016-08-11 | 2016-12-21 | 广东欧珀移动通信有限公司 | Camera startup method and mobile terminal |
| CN108900779A (en) * | 2018-06-28 | 2018-11-27 | 努比亚技术有限公司 | Initial automatic exposure convergence method, mobile terminal and computer readable storage medium |
| CN109361866A (en) * | 2018-11-21 | 2019-02-19 | 豪威科技(上海)有限公司 | A kind of automatic exposure control method and system |
-
2020
- 2020-10-22 CN CN202011141883.XA patent/CN112153305A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120327294A1 (en) * | 2011-06-24 | 2012-12-27 | Research In Motion Limited | Apparatus, and associated method, for facilitating automatic-exposure at camera device |
| CN105611037A (en) * | 2015-07-22 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Terminal control method, terminal control device and terminal |
| CN105208360A (en) * | 2015-09-23 | 2015-12-30 | 青岛海信移动通信技术股份有限公司 | Image preview method and device of intelligent terminal and terminal |
| CN106254791A (en) * | 2016-08-11 | 2016-12-21 | 广东欧珀移动通信有限公司 | Camera startup method and mobile terminal |
| CN108900779A (en) * | 2018-06-28 | 2018-11-27 | 努比亚技术有限公司 | Initial automatic exposure convergence method, mobile terminal and computer readable storage medium |
| CN109361866A (en) * | 2018-11-21 | 2019-02-19 | 豪威科技(上海)有限公司 | A kind of automatic exposure control method and system |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113179339A (en) * | 2021-04-01 | 2021-07-27 | 华勤技术股份有限公司 | Terminal with photographing function and camera parameter adjusting method |
| CN116095497A (en) * | 2022-06-29 | 2023-05-09 | 荣耀终端有限公司 | Exposure control method, device and terminal equipment |
| CN116095497B (en) * | 2022-06-29 | 2023-10-20 | 荣耀终端有限公司 | Exposure control method, device and terminal equipment |
| CN119967279A (en) * | 2023-10-31 | 2025-05-09 | 荣耀终端股份有限公司 | Camera activation method and electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110086993B (en) | Image processing method, image processing device, mobile terminal and computer readable storage medium | |
| CN109005574B (en) | Cell selection method, mobile terminal and computer readable storage medium | |
| CN108900779B (en) | Initial automatic exposure convergence method, mobile terminal and computer-readable storage medium | |
| CN110187808B (en) | Dynamic wallpaper setting method and device and computer-readable storage medium | |
| CN112188082A (en) | High dynamic range image shooting method, shooting device, terminal and storage medium | |
| CN108038834B (en) | Method, terminal and computer readable storage medium for reducing noise | |
| CN113179369B (en) | Shot picture display method, mobile terminal and storage medium | |
| CN111324407A (en) | Animation display method, terminal and computer readable storage medium | |
| CN110064192A (en) | Interface control method, mobile terminal and computer readable storage medium | |
| CN107896304B (en) | Image shooting method and device and computer readable storage medium | |
| CN107979727A (en) | A kind of document image processing method, mobile terminal and computer-readable storage medium | |
| CN112511741A (en) | Image processing method, mobile terminal and computer storage medium | |
| CN109710159B (en) | Flexible screen response method and device and computer readable storage medium | |
| CN112153305A (en) | Camera starting method, mobile terminal and computer storage medium | |
| CN112135060B (en) | Focusing processing method, mobile terminal and computer storage medium | |
| CN110278481B (en) | Picture-in-picture implementation method, terminal and computer readable storage medium | |
| CN112135045A (en) | Video processing method, mobile terminal and computer storage medium | |
| CN112541420A (en) | Method and device for identifying fingerprint under screen and computer readable storage medium | |
| CN108848321B (en) | Exposure optimization method, apparatus, and computer-readable storage medium | |
| CN107239208B (en) | Method, apparatus, and computer-readable storage medium for processing screenshot | |
| CN112888084A (en) | Full-band communication method and device and mobile terminal | |
| CN108600629B (en) | Photographing method, mobile terminal and computer-readable storage medium | |
| CN107743204B (en) | Exposure processing method, terminal, and computer-readable storage medium | |
| CN108228302B (en) | Information processing method, terminal and storage medium | |
| CN107968920B (en) | Parameter determination method, electronic device and storage medium |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201229 |
|
| RJ01 | Rejection of invention patent application after publication |