CN113497879B - Photographing light supplementing method and device, terminal and storage medium - Google Patents

Photographing light supplementing method and device, terminal and storage medium Download PDF

Info

Publication number
CN113497879B
CN113497879B CN202010192452.XA CN202010192452A CN113497879B CN 113497879 B CN113497879 B CN 113497879B CN 202010192452 A CN202010192452 A CN 202010192452A CN 113497879 B CN113497879 B CN 113497879B
Authority
CN
China
Prior art keywords
module
shooting
metadata
flash
photographing
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
CN202010192452.XA
Other languages
Chinese (zh)
Other versions
CN113497879A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010192452.XA priority Critical patent/CN113497879B/en
Publication of CN113497879A publication Critical patent/CN113497879A/en
Application granted granted Critical
Publication of CN113497879B publication Critical patent/CN113497879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

The embodiment of the application discloses a photographing light supplement method, a photographing light supplement device, a terminal and a storage medium, wherein the method comprises the following steps: if the image acquisition unit is detected to be started, controlling a light supplement module to perform pre-flashing; acquiring fast metadata of a preview image; wherein the fast metadata comprises convergence information of shooting parameters and partial data of the preview image; and when the convergence information of the shooting parameters represents that the shooting parameters are converged, the light supplementing module is controlled to carry out main flashing, and the image acquisition unit is controlled to carry out shooting operation. Here, since the time when the camera application acquires the fast metadata is earlier than the time of the metadata, the shooting parameter convergence information is carried in the fast metadata, so that the camera application can acquire the shooting parameter convergence information earlier, thereby performing main flash and photographing operations faster, shortening the light supplement time, and improving the photographing efficiency.

Description

Photographing light supplementing method and device, terminal and storage medium
Technical Field
The present application relates to terminal technologies, and in particular, to a method and an apparatus for supplementing light during photographing, a terminal, and a storage medium.
Background
At present, the shooting function becomes the basic function of the terminal equipment, and when the terminal equipment is used for shooting, a flash lamp is used for supplementing light in a scene with insufficient light so as to improve the shooting effect.
The conventional photo fill-in process is shown in fig. 1, where a camera Application program (APP) > Hardware Abstraction Layer (HAL) > triggers an Auto Focus (AE)/Auto exposure (AF)/Auto exposure (AWB) of a 3A module through a sensor module, controls a flash to turn on and flash to a pre-flash by the 3A module, sends a 3A convergence message to the APP through the HAL when receiving the 3A convergence message, controls the flash to turn off and flash to turn on a main flash to upload metadata (metadata) and controls the flash to turn off and flash to the APP via the sensor module when receiving the 3A convergence message, and then controls the flash to turn off and flash to end.
In the preposed photographing light supplement process, the on/off pre-flashing and the on/off main flashing are determined by the 3A module, and the sensor module controls the flash lamp to execute. Due to the queue mechanism of the HAL, the 3A convergence message needs to wait for 3 frames in the HAL before being sent to the APP to perform the next photographing operation, which results in a long time-consuming photographing supplementary lighting process.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present application are expected to provide a method, an apparatus, a terminal, and a storage medium for supplementing light during photographing.
The technical scheme of the application is realized as follows:
in a first aspect, a light supplement method for photographing is provided, where the method includes:
if the image acquisition unit is detected to be started, controlling the light supplement module to perform pre-flashing;
acquiring fast metadata of a preview image; the quick metadata comprises convergence information of shooting parameters and partial data of the preview image;
and when the convergence information of the shooting parameters represents that the shooting parameters are converged, controlling the light supplementing module to carry out main flashing and controlling the image acquisition unit to carry out shooting operation.
In a second aspect, a light supplement device for photographing is provided, the device comprising:
the control unit is used for controlling the light supplementing module to perform pre-flashing if the image acquisition unit is detected to be started;
an acquisition unit configured to acquire fast metadata of a preview image; wherein the fast metadata comprises convergence information of shooting parameters and partial data of the preview image;
the control unit is further used for controlling the light supplementing module to carry out main flashing and controlling the image acquisition unit to execute photographing operation when the convergence information of the photographing parameters represents that the photographing parameters are converged.
In a third aspect, a light supplement device for photographing is provided, which includes: a processor and a memory configured to store a computer program operable on the processor, wherein the processor is configured to perform the steps of the aforementioned method when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method.
The embodiment of the application provides a method, a device, a terminal and a storage medium for supplementing light during photographing, wherein the method comprises the following steps: if the image acquisition unit is detected to be started, controlling a light supplement module to perform pre-flashing; acquiring fast metadata of a preview image; wherein the fast metadata comprises convergence information of shooting parameters and partial data of the preview image; and when the convergence information of the shooting parameters represents that the shooting parameters are converged, the light supplementing module is controlled to carry out main flashing, and the image acquisition unit is controlled to carry out shooting operation. Here, since the time when the camera application acquires the fast metadata is earlier than the time of the metadata, the shooting parameter convergence information is carried in the fast metadata, so that the camera application can acquire the shooting parameter convergence information earlier, thereby performing main flash and photographing operations faster, shortening the light supplement time, and improving the photographing efficiency.
Drawings
FIG. 1 is a schematic diagram of a conventional flash-lamp photography light supplement process;
fig. 2 is a schematic view of a first process of a light supplement method for photographing in the embodiment of the present application;
FIG. 3 is a schematic diagram of a light supplement flow of flash lamp photographing in the embodiment of the present application;
fig. 4 is a schematic diagram of a second process of the light supplement method for photographing in the embodiment of the present application;
FIG. 5 is a schematic diagram of a conventional light supplement process for screen photography;
FIG. 6 is a schematic diagram of a light supplement process in screen shooting in an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a structure of a light supplement device for photographing according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a terminal in an embodiment of the present application.
Detailed Description
So that the manner in which the features and elements of the present embodiments can be understood in detail, a more particular description of the embodiments, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
The application provides a light supplement method for photographing, fig. 2 is a first flowchart of the light supplement method for photographing in the embodiment of the application, and as shown in fig. 2, the method may specifically include:
step 201: if the image acquisition unit is detected to be started, controlling the light supplement module to perform pre-flashing;
the flash of the camera seems to be a flash, but actually, the flash is divided into two flashes, namely a pre-flash with a small light quantity and a main flash. The flash lamp emits a series of nearly invisible preflash (supervisory preflash) just before the main flash, and after the sensor captures preflash information reflected by an object, the sensor cooperates with a photometric system, and the flash lamp automatically adjusts the flash amount to obtain proper exposure.
In practical application, when a light supplement event is detected, the light supplement module is controlled to perform pre-flashing. For example, when the terminal camera is in an on state and the light supplement function is in the on state, light measurement is performed through devices such as an ambient light sensor, and when the light measurement result includes that the current ambient light brightness is lower than a preset light supplement brightness threshold value, a light supplement event is automatically triggered.
Specifically, control light filling module carries out preflash, include: acquiring a brightness value of a current environment; and when the brightness value of the current environment is smaller than a preset brightness value, controlling the light supplementing module to perform pre-flashing. The ambient brightness can be detected in real time by an ambient light sensor configured in the terminal.
In practical applications, the light supplement module may be a flash lamp, and the flash lamp includes an infrared flash lamp and a visible flash lamp, where the visible flash lamp is a flash lamp with a normal natural light source, and a light source used by the infrared flash lamp is an infrared light source. When receiving the formation of image instruction, control infrared flash lamp is dodged in advance to control visible light flash lamp owner and dodge, start the shutter formation of image at the main in-process that dodges, and control visible light flash lamp and close, because infrared flash lamp adopts when flashing is infrared light source, can effectively avoid the influence to user's eye, effectively ensure the formation of image effect.
The light filling module can also be a display screen, and when a user uses a front camera or a rotatable camera at the front position of the mobile terminal to perform self-shooting, the display screen can be reused as the light filling module without additionally adding a flash lamp.
Step 202: acquiring fast metadata of a preview image; wherein the fast metadata comprises convergence information of shooting parameters and partial data of the preview image;
specifically, the acquiring the fast metadata of the preview image includes: controlling a photographing application program to obtain fast metadata uploaded by a hardware abstraction layer; wherein the upload time of the fast metadata of the preview image is earlier than the upload time of the metadata of the preview image.
The preview image also includes metadata, which includes all the data of the preview image. In the high-pass SM6125 flash fill light process, the HAL uploads the metadata of the preview image and the fast metadata, but the fast metadata is uploaded about 3 frames earlier than the metadata, about 100 ms. Therefore, the shooting parameter convergence information carried in the fast metadata is utilized, so that the camera application program can acquire the shooting parameter convergence information earlier, main flash and shooting operation can be carried out more quickly, the light supplementing time is shortened, and the shooting efficiency is improved.
Step 203: and when the convergence information of the shooting parameters represents that the shooting parameters are converged, the light supplementing module is controlled to carry out main flashing, and the image acquisition unit is controlled to carry out shooting operation.
In some embodiments, the shooting parameters include at least one of: a focus parameter, an exposure parameter, and a white balance parameter. In practical application, the method for representing the convergence of the shooting parameters may include setting a convergence indicating flag bit in the fast metadata, where the flag bit is "1" to represent that the shooting parameters referred to by the characterization converge, and the flag bit is "0" to represent that the shooting parameters referred to by the characterization do not converge.
In practical applications, before the step, the method further comprises: triggering an adjusting module to perform automatic focusing, automatic exposure and automatic white balance operation, and acquiring convergence information of the shooting parameters; wherein the shooting parameters include: a focus parameter, an exposure parameter, and a white balance parameter.
Here, the adjusting module is established based on a 3A algorithm, which may also be referred to as a 3A module, the 3A algorithm is an important component of an image preprocessing algorithm for controlling the device based on image information, and is composed of an AWB algorithm, an AF algorithm, and an AE algorithm, and the focus parameter, the exposure parameter, and the white balance parameter are adjusted by the 3A module.
In practical application, the flicker brightness and the flicker time of the light supplementing module are related to the ambient brightness, and the higher the ambient brightness value is, the longer the flicker brightness and/or the longer the flicker time is. That is, if the sensed actual brightness value is higher than the preset value, the blinking time is reduced and/or the driving current is reduced; if the sensed actual brightness value is below the preset value, the time of the flicker is increased and/or the driving current is increased.
Here, the light supplement process for photographing is exemplified by taking the light supplement module as a flash lamp, and the controlling the light supplement module to perform pre-flashing includes: if the image acquisition unit is detected to be started, triggering a sensor module to control the flash lamp to be turned on and preflash; when the convergence information of the shooting parameters represents that the shooting parameters are converged, the sensor module controls the flash lamp to turn off and pre-flash;
the control the light filling module carries out the owner and dodges, include: triggering the sensor module control turning on a main flash of the flash lamp; the shooting application program acquires the shooting image acquired by the image acquisition unit and triggers the sensor module to control the flash lamp to turn off the main flash.
The control operation of the flash lamp is realized by the sensor module, when a user opens the camera application program, the sensor module is triggered to control the flash lamp to start pre-flash, the camera acquires a preview image, and the display screen displays the preview image; when the adjustment module detects that the shooting parameters are converged, the sensor module controls the flash lamp to close and pre-flash on the main flash until a shooting instruction (a user presses the shutter) is received to indicate that image acquisition is finished, and the main flash is closed.
Fig. 3 is a schematic diagram of a flash light supplement process in flash light photographing in this embodiment, as shown in fig. 3, a camera APP triggers a 3A module AE/AF/AWB- > trigger information to delay 5 frames- > trigger information to a 3A module- >3A module through a sensor module to control a flash light to turn on and pre-flash- >3A convergence message- > HAL sends a 3A convergence message carrying fast metadata (partial metadata) to the APP- > APP when the 3A convergence message is received, a lower photographing command- >3A module controls a flash light to turn off and pre-flash and turn on main flash- > HAL to upload metadata (metadata) and an image buffer to APP- >3A module controls the flash light to turn off and main flash through the sensor module, and photographing is finished.
On a high-pass SM6125 platform, corresponding partial metadata is generated immediately after a preview image is collected and is sent to a camera APP, the metadata of the preview image needs to be uploaded together with an image buffer when being uploaded, format conversion needs to be carried out on the image buffer when the image buffer is uploaded, so that the uploading time of the metadata is delayed, the partial metadata is about 3 frames earlier than the uploading time of the metadata, and a 3A convergence message is carried in the partial metadata and sent to the APP, so that the APP can acquire a shooting parameter convergence message earlier, the shooting command sending time is advanced, and the whole shooting duration is shortened.
By adopting the technical scheme, the time for the camera application program to acquire the quick metadata is earlier than the time for the metadata, and the shooting parameter convergence information is carried in the quick metadata, so that the camera application program can acquire the shooting parameter convergence information earlier, main flash and shooting operation can be carried out more quickly, the light supplementing time is shortened, and the shooting efficiency is improved.
On the basis of the foregoing embodiment, the present application provides a light supplement method for photographing by using a light supplement module as a display screen, fig. 4 is a second flowchart of the light supplement method for photographing in the embodiment of the present application, and the method specifically includes, as shown in fig. 4:
step 401: if the image acquisition unit is detected to be started, triggering a photographing application program to control the display screen to start pre-flashing;
in practical application, when a light supplement event is detected, the light supplement module is controlled to perform pre-flashing. For example, when the terminal camera is in an on state and the light supplement function is in the on state, light measurement is performed through devices such as an ambient light sensor, and when the light measurement result includes that the current ambient light brightness is lower than a preset light supplement brightness threshold value, a light supplement event is automatically triggered.
Specifically, a brightness value of the current environment is obtained; and when the brightness value of the current environment is smaller than a preset brightness value, triggering a photographing application program to control the display screen to start pre-flashing. The ambient brightness can be detected in real time by an ambient light sensor configured in the terminal.
That is to say, when the fill-in light event occurs, the camera application program is triggered to directly control the display screen to turn on the pre-flashing.
Fig. 5 is a schematic diagram of a conventional light supplement process for screen photographing, as shown in fig. 5, after a camera APP triggers a 3A module AE/AF/AWB- > trigger information to delay 5 frames- > trigger information to the 3A module in an HAL layer, the 3A module sends a pre-flash command- > passing through a path such as a sensor module- > HAL- > camera APP, the camera APP responds to the pre-flash command to turn on the pre-flash screen light supplement- >3A module sends a 3A convergence message to- > APP via HAL and turns off the pre-flash- > APP turns on a main flash screen light supplement lower photographing command- > HAL upload image metadata (metadata) and a buffer sends a main flash command- > passing through a path such as a sensor module- > HAL- > camera APP when the 3A module receives the 3A convergence message, the camera APP responds to turn off the main flash command to turn off the main flash screen light supplement, and photographing is finished.
The existing screen shooting light supplement flow can also be understood as a prepositive shooting light supplement flow, the on/off pre-flashing and the on/off main flashing are determined by a 3A module, when the control screen is opened for pre-flashing, the camera APP triggers the 3A module to carry out AE and AF, and the APP is opened for pre-flashing the screen light supplement, and the APP- > HAL- >3A module- > sensor module- > HAL- > APP can be controlled to carry out the pre-flashing light supplement by walking through the passage of APP- > HAL- >3A module- > sensor module- > HAL- > APP.
This application is then by camera APP direct control display screen carry out the light filling, omits above-mentioned passageway, has shortened screen light filling time.
Step 402: acquiring fast metadata of a preview image; wherein the fast metadata comprises convergence information of shooting parameters and partial data of the preview image;
specifically, the acquiring the fast metadata of the preview image includes: controlling a photographing application program to obtain fast metadata uploaded by a hardware abstraction layer; wherein the upload time of the fast metadata of the preview image is earlier than the upload time of the metadata of the preview image.
The preview image also includes metadata, which includes all the data of the preview image. In the high-pass SM6125 flash fill light process, the HAL uploads the metadata of the preview image and the fast metadata, but the fast metadata is uploaded about 3 frames earlier than the metadata, about 100 ms. Therefore, the shooting parameter convergence information carried in the fast metadata is utilized, so that the camera application program can acquire the shooting parameter convergence information earlier, main flash and shooting operation can be carried out more quickly, the light supplementing time is shortened, and the shooting efficiency is improved.
That is to say, the steps of acquiring the convergence information of the shooting parameters by screen light supplement and flash light supplement are the same, and the convergence information is acquired from the fast metadata of the preview image, so that the light supplement time is further shortened.
Step 403: when the convergence information of the shooting parameters represents that the shooting parameters are converged, triggering a shooting application program to control the display screen to be turned off and pre-flashing, and controlling the display screen to be turned on and main flashing;
that is, when it is detected that the shooting parameters are converged, the shooting application is triggered to directly control the display Guan Yushan, and the display is controlled to be turned on. Specifically, when the photographing application program obtains the photographing instruction, the display screen is controlled to be turned on for main flashing.
In some embodiments, the shooting parameters include at least one of: a focus parameter, an exposure parameter, and a white balance parameter. In practical application, the method for representing the convergence of the shooting parameters may include setting a convergence indicating flag bit in the fast metadata, where the flag bit is "1" to represent that the shooting parameters referred to by the characterization converge, and the flag bit is "0" to represent that the shooting parameters referred to by the characterization do not converge.
In practical application, before the step, the method further comprises the following steps: triggering an adjusting module to perform automatic focusing, automatic exposure and automatic white balance operation, and acquiring convergence information of the shooting parameters; wherein the photographing parameters include: focus parameters, exposure parameters, and white balance parameters.
Here, the adjusting module is established based on a 3A algorithm, which may also be referred to as a 3A module, the 3A algorithm is an important component of an image preprocessing algorithm for controlling the device based on image information, and is composed of an AWB algorithm, an AF algorithm, and an AE algorithm, and the focus parameter, the exposure parameter, and the white balance parameter are adjusted by the 3A module.
Step 404: and the photographing application program acquires the photographed image acquired by the image acquisition unit and controls the display screen to turn off the main flash.
The control operation of the flash lamp is realized by the sensor module, when a user opens the camera application program, the sensor module is triggered to control the flash lamp to start pre-flash, the camera acquires a preview image, and the display screen displays the preview image; when the adjustment module detects that the shooting parameters are converged, the sensor module controls the flash lamp to close and pre-flash on the main flash until a shooting instruction (a user presses the shutter) is received to indicate that image acquisition is finished, and the main flash is closed.
That is to say, when the APP that shoots obtains final image, direct control display screen closes owner and dodges.
As shown in fig. 5, in the conventional light supplement process for screen photographing, when the light supplement of the screen is controlled, the light supplement operation is performed from the 3A module to the APP, and the path of the 3A module- > sensor module- > HAL- > APP must be traveled once.
Fig. 6 is a schematic diagram of a light supplement flow of screen shooting in this embodiment, as shown in fig. 6, when the camera APP is started, the camera APP directly controls the display screen to turn on the pre-flashing screen light supplement- >3A module to self-trigger AE/AF/AWB, obtains the 3A convergence message- > HAL, sends the 3A convergence message carrying the slave fast metadata (partial metadata) to the APP- > APP, and turns off the pre-flashing when the 3A convergence message is received, controls the display screen to turn on the main flashing screen light supplement, sends the shooting command- > HAL to upload the metadata (metadata) and the image buffer to the APP- > APP, controls the screen to turn off the main flashing, and finishes the shooting.
The camera APP can directly control the screen to be turned on/off for pre-flashing, and is turned on/off for main flashing, namely when the APP triggers and adjusts shooting parameters, the APP can directly control the screen to be pre-flashed without performing shooting light supplement control on the display screen after the APP makes a turn on the HAL, the 3A module and the sensor module access, so that screen light supplement can be performed earlier to enable the shooting parameters to be converged, and the convergence time is shortened; the convergence message is uploaded through the quick metadata, so that the camera APP can acquire the convergence message earlier, and the shooting time is further shortened; when the APP receives the photographing instruction, the main flash can be closed immediately. Therefore, the screen shooting light supplement time is greatly shortened and is about 500ms, power consumption caused by shooting light supplement is reduced, and control efficiency of the screen shooting light supplement is improved.
By adopting the technical scheme, the time for the camera application program to acquire the quick metadata is earlier than the time for the metadata, and the shooting parameter convergence information is carried in the quick metadata, so that the camera application program can acquire the shooting parameter convergence information earlier, main flash and shooting operation can be carried out more quickly, the light supplementing time is shortened, and the shooting efficiency is improved.
The embodiment of the present application further provides a light supplement device for photographing, as shown in fig. 7, the device includes:
the control unit 701 is used for controlling the light supplementing module to perform pre-flashing if the image acquisition unit is detected to be started;
an acquisition unit 702 configured to acquire fast metadata of a preview image; wherein the fast metadata comprises convergence information of shooting parameters and partial data of the preview image;
the control unit 701 is further configured to control the light supplement module to perform main flashing and control the image acquisition unit to perform a photographing operation when the convergence information of the photographing parameters represents that the photographing parameters converge.
In some embodiments, the obtaining unit 702 is specifically configured to control the photographing application to obtain the fast metadata uploaded by the hardware abstraction layer; wherein the uploading time of the fast metadata of the preview image is earlier than the uploading time of the metadata of the preview image.
In some embodiments, the light supplement module is a display screen, and the control unit 701 is specifically configured to trigger the photographing application program to control the display screen to turn on pre-flashing if it is detected that the image acquisition unit is started; and when the convergence information of the shooting parameters represents that the shooting parameters are converged, triggering a shooting application program to control the display screen to be turned off and pre-flashing.
In some embodiments, the control unit 701 is further configured to trigger an adjustment module to perform auto focusing, auto exposure, and auto white balance operations after the trigger photographing application controls the display screen to flash in advance, so as to obtain convergence information of the photographing parameters; wherein the photographing parameters include: a focus parameter, an exposure parameter, and a white balance parameter.
In some embodiments, the control unit 701 is specifically configured to control the display screen to turn on the main flash; and the photographing application program acquires the photographed image acquired by the image acquisition unit and controls the display screen to turn off the main flash.
In some embodiments, the light supplement module is a flash lamp, and the control unit 701 is specifically configured to trigger the sensor module to control the flash lamp to turn on and pre-flash if it is detected that the image acquisition unit is started; when the convergence information of the shooting parameters represents that the shooting parameters are converged, the sensor module controls the flash lamp to turn off and pre-flash;
the control unit 701 is specifically configured to trigger the sensor module to control the flash lamp to flash on; the shooting application program acquires the shooting image acquired by the image acquisition unit and triggers the sensor module to control the flash lamp to turn off the main flash.
In some embodiments, the control unit 701 is specifically configured to obtain a brightness value of the current environment; and when the brightness value of the current environment is smaller than a preset brightness value, controlling the light supplementing module to perform pre-flashing.
By adopting the technical scheme, the time for the camera application program to acquire the quick metadata is earlier than the time for the metadata, and the shooting parameter convergence information is carried in the quick metadata, so that the camera application program can acquire the shooting parameter convergence information earlier, main flash and shooting operation can be carried out more quickly, the light supplementing time is shortened, and the shooting efficiency is improved.
An embodiment of the present application further provides a terminal, as shown in fig. 8, the terminal further includes: a processor 801 and a memory 802 configured to store a computer program capable of running on the processor; the steps of the method in the embodiments of the present application are implemented by the processor 801 when running a computer program in the memory 802.
Of course, in practice, the various components in the terminal are coupled together by a bus system 803, as shown in FIG. 8. It is understood that the bus system 803 is used to enable communications among the components. The bus system 803 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 803 in figure 8.
The terminal has a photographing function, and the terminal may be implemented in various forms. For example, the terminal described in the present invention may include devices such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a PDA, a PMP, a navigation device, a wearable device, a smart band, a camera, and the like.
The embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method according to any of the embodiments.
In practical applications, the processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, and a microprocessor. It is understood that the electronic device for implementing the above processor function may be other devices, and the embodiments of the present application are not limited in particular.
The Memory may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in several of the method, apparatus and terminal embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method, apparatus and terminal embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A light supplement method for photographing is characterized by comprising the following steps:
if the image acquisition unit is detected to be started, controlling the light supplement module to perform pre-flashing;
acquiring fast metadata of a preview image; the quick metadata comprises convergence information of shooting parameters and partial data of the preview image;
when the convergence information of the shooting parameters represents that the shooting parameters are converged, the light supplementing module is controlled to carry out main flashing, and the image acquisition unit is controlled to carry out shooting operation;
wherein the acquiring the fast metadata of the preview image comprises:
controlling a photographing application program to obtain quick metadata uploaded by a hardware abstraction layer; wherein the upload time of the fast metadata of the preview image is earlier than the upload time of the metadata of the preview image.
2. The method of claim 1, wherein the fill-in module is a display screen,
control light filling module carries out preflash, include: if the image acquisition unit is detected to be started, triggering a photographing application program to control the display screen to be turned on and preflash;
and when the convergence information of the shooting parameters represents that the shooting parameters are converged, triggering a shooting application program to control the display screen to be turned off and pre-flashing.
3. The method of claim 2, wherein after the triggering the photographing application controls the display screen to pre-flash, the method further comprises:
triggering an adjusting module to perform automatic focusing, automatic exposure and automatic white balance operation, and acquiring convergence information of the shooting parameters; wherein the shooting parameters include: a focus parameter, an exposure parameter, and a white balance parameter.
4. The method according to claim 2, wherein the controlling the supplementary lighting module to perform a main flash comprises:
controlling the display screen to start a main flash;
and the shooting application program acquires the shot image acquired by the image acquisition unit and controls the display screen to close the main flash.
5. The method of claim 1, wherein the fill light module is a flash lamp,
the control light filling module carries out preflash, including: if the image acquisition unit is detected to be started, triggering a sensor module to control the flash lamp to flash on and off;
when the convergence information of the shooting parameters represents that the shooting parameters are converged, the sensor module controls the flash lamp to turn off and pre-flash;
the control the light filling module carries out main sudden strain of a muscle, include:
triggering the sensor module to control the flash lamp to start main flash;
the shooting application program acquires the shooting image acquired by the image acquisition unit and triggers the sensor module to control the flash lamp to turn off the main flash.
6. The method of claim 1, wherein controlling the fill light module to perform pre-flashing comprises:
acquiring a brightness value of a current environment;
and when the brightness value of the current environment is smaller than a preset brightness value, controlling the light supplementing module to perform pre-flashing.
7. The utility model provides a light filling device shoots, its characterized in that, the device includes:
the control unit is used for controlling the light supplementing module to perform pre-flashing if the image acquisition unit is detected to be started;
an acquisition unit configured to acquire fast metadata of a preview image; wherein the fast metadata comprises convergence information of shooting parameters and partial data of the preview image;
the control unit is further configured to control the light supplement module to perform main flashing and control the image acquisition unit to perform a photographing operation when the convergence information of the photographing parameters indicates that the photographing parameters are converged;
the acquiring unit is specifically configured to control the photographing application program to acquire the fast metadata uploaded by the hardware abstraction layer; wherein the upload time of the fast metadata of the preview image is earlier than the upload time of the metadata of the preview image.
8. A terminal, the terminal comprising: a processor and a memory configured to store a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the method of any one of claims 1 to 6 when running the computer program.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010192452.XA 2020-03-18 2020-03-18 Photographing light supplementing method and device, terminal and storage medium Active CN113497879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010192452.XA CN113497879B (en) 2020-03-18 2020-03-18 Photographing light supplementing method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010192452.XA CN113497879B (en) 2020-03-18 2020-03-18 Photographing light supplementing method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113497879A CN113497879A (en) 2021-10-12
CN113497879B true CN113497879B (en) 2023-04-07

Family

ID=77993380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010192452.XA Active CN113497879B (en) 2020-03-18 2020-03-18 Photographing light supplementing method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113497879B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708988A (en) * 2022-02-25 2023-09-05 荣耀终端有限公司 Electronic equipment and shooting method and medium thereof
CN116723383B (en) * 2022-02-28 2024-04-19 荣耀终端有限公司 Shooting method and related equipment
CN116723382B (en) * 2022-02-28 2024-05-03 荣耀终端有限公司 Shooting method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791466A (en) * 2016-12-20 2017-05-31 贵州财富之舟科技有限公司 Shoot light compensation method and device
CN107087117A (en) * 2017-05-25 2017-08-22 上海传英信息技术有限公司 Mobile terminal and the method using taking photos by using flashlights photo
CN109639991A (en) * 2018-12-26 2019-04-16 上海与德通讯技术有限公司 A kind of photographic method, device, terminal and storage medium
CN110719413A (en) * 2019-11-25 2020-01-21 展讯通信(上海)有限公司 Flash lamp working process control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791466A (en) * 2016-12-20 2017-05-31 贵州财富之舟科技有限公司 Shoot light compensation method and device
CN107087117A (en) * 2017-05-25 2017-08-22 上海传英信息技术有限公司 Mobile terminal and the method using taking photos by using flashlights photo
CN109639991A (en) * 2018-12-26 2019-04-16 上海与德通讯技术有限公司 A kind of photographic method, device, terminal and storage medium
CN110719413A (en) * 2019-11-25 2020-01-21 展讯通信(上海)有限公司 Flash lamp working process control method and device

Also Published As

Publication number Publication date
CN113497879A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
CN113497879B (en) Photographing light supplementing method and device, terminal and storage medium
KR101710971B1 (en) Shooting method, apparatus, and terminal
US7813635B2 (en) Photographing apparatus, method for controlling photographing apparatus and computer-readable recording medium containing program
CN108111773B (en) Photographing method and device based on screen supplementary lighting, mobile terminal and storage medium
WO2016131329A1 (en) Photography method and device
WO2014036911A1 (en) Flash control method and device
CN103179348A (en) Shooting method and system for mobile terminals and mobile terminal
CN108401116B (en) Camera mode switching optimization method and device, computer equipment and storage medium
WO2017133087A1 (en) Photographing control apparatus and auxiliary flash control apparatus
US10609265B2 (en) Methods and apparatus for synchronizing camera flash and sensor blanking
WO2019214574A1 (en) Image capturing method and apparatus, and electronic terminal
WO2021169686A1 (en) Photo capture control method and apparatus and computer readable storage medium
CN107333069A (en) A kind of proactive photographic method of bright screen light filling and mobile terminal
CN111200708B (en) Long exposure shooting control method, system, equipment and computer storage medium
CN106303243A (en) A kind of photographic method, device and terminal
JP7103839B2 (en) Electronic devices, control devices, control methods and control programs
CN103034021A (en) Method and system and mobile terminal of camera photographing
JP2014049990A (en) Imaging apparatus and control method
CN105323382B (en) A kind of screen light compensation method, device and mobile terminal
JP4658015B2 (en) Digital camera and control method thereof
WO2022067496A1 (en) Fast auto-exposure method for camera, and storage medium
CN106791462B (en) Method and system for supplementing light during photographing of front camera of mobile terminal
CN103685964B (en) Control method and device and electronic equipment
WO2017004886A1 (en) Image capturing method and terminal
CN203407048U (en) External flash lamp and shooting system

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