CN111064898B - Image shooting method and device, equipment and storage medium - Google Patents

Image shooting method and device, equipment and storage medium Download PDF

Info

Publication number
CN111064898B
CN111064898B CN201911216265.4A CN201911216265A CN111064898B CN 111064898 B CN111064898 B CN 111064898B CN 201911216265 A CN201911216265 A CN 201911216265A CN 111064898 B CN111064898 B CN 111064898B
Authority
CN
China
Prior art keywords
image
brightness value
light
camera module
compensation element
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
CN201911216265.4A
Other languages
Chinese (zh)
Other versions
CN111064898A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911216265.4A priority Critical patent/CN111064898B/en
Publication of CN111064898A publication Critical patent/CN111064898A/en
Application granted granted Critical
Publication of CN111064898B publication Critical patent/CN111064898B/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/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

Landscapes

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

Abstract

The embodiment of the application discloses an image shooting method, which comprises the following steps: acquiring a photographing instruction; responding to the photographing instruction; acquiring a first collected image through a camera module of the electronic equipment; controlling a light compensation element of the electronic equipment to light up at a first brightness value and obtaining a second collected image through the camera module; controlling the light compensation element to light up at a second brightness value and obtaining a third collected image through the camera module; the second luminance value is greater than the first luminance value; and synthesizing and storing a target image based on the first acquisition image, the second acquisition image and the third acquisition image. The embodiment of the application also provides an image shooting device, equipment and a storage medium.

Description

Image shooting method and device, equipment and storage medium
Technical Field
The embodiment of the application relates to an image processing technology, and relates to but is not limited to an image shooting method, an image shooting device, image shooting equipment and a storage medium.
Background
Taking pictures in weak light requires taking clear pictures with flash light. The flash lamp photographing is divided into two steps: firstly, the stage of dodging in advance, in this stage, the flash light is opened with the low current, the flash light can be opened for a long time, take multiframe image in succession and carry out automatic exposure (After Effect, AE), reach the AE convergence, even the image reaches anticipated exposure, according to the luminance ratio of preflash and main flashing, calculate the exposure parameter that the main flashing needs to set up, secondly, the main stage of dodging, in this stage, the flash light is opened with the strong current, can not open for a long time, otherwise can burn out the LED lamp, according to the exposure parameter that the stage of preflash calculated and once take a photo in the flash light of main flashing stage is lighted, then close the flash light.
The photos shot by the existing scheme are easy to cause that bright places are overexposed and dark places are too dark in a shooting scene, so that more dynamic ranges and image details can not be provided, and the visual effect in a real environment can not be better reflected.
Disclosure of Invention
In view of the above, embodiments of the present application provide an image capturing method and apparatus, a device, and a storage medium to solve the problems in the prior art.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides an image capturing method, including:
acquiring a photographing instruction;
responding to the photographing instruction;
acquiring a first collected image through a camera module of the electronic equipment;
controlling a light compensation element of the electronic equipment to light up at a first brightness value and obtaining a second collected image through the camera module;
controlling the light compensation element to light up at a second brightness value and obtaining a third collected image through the camera module; the second luminance value is greater than the first luminance value;
and synthesizing and storing a target image based on the first acquisition image, the second acquisition image and the third acquisition image.
In a second aspect, an embodiment of the present application provides an image capturing apparatus, including a first obtaining module, a response module, a first acquiring module, a second acquiring module, a third acquiring module, and a synthesizing module, where:
the first obtaining module is used for obtaining a photographing instruction and determining exposure parameters meeting preset conditions for a collecting device of the electronic equipment when a flash lamp of the electronic equipment is in a pre-flashing stage;
the response module is used for responding to the photographing instruction and photographing to obtain at least two images with different brightness according to the exposure parameters when the flash lamp is in a main flash stage;
the first acquisition module is used for acquiring a first acquisition image through a camera module of the electronic equipment;
the second acquisition module is used for controlling a light compensation element of the electronic equipment to be lightened by a first brightness value and acquiring a second acquired image through the camera module;
the third acquisition module is used for controlling the light compensation element to be lightened by a second brightness value and acquiring a third acquired image through the camera module; the second luminance value is greater than the first luminance value;
and the synthesis module is used for synthesizing and storing a target image based on the first collected image, the second collected image and the third collected image.
In a third aspect, an embodiment of the present application provides an image capturing device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps in the image capturing method when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the image capturing method described above.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
in the embodiment of the application, firstly, the electronic equipment obtains a photographing instruction, then, in the process of responding to the photographing instruction, aiming at the same photographing scene, the flash lamp is controlled to be turned off, the flash lamp is controlled to be turned on at low current, and the flash lamp is controlled to be turned on at high current to obtain three images, and finally, a target image is synthesized and stored based on the three images; therefore, under the condition that a flash lamp is not required to be continuously turned on by strong current, a plurality of images with different exposures can be obtained, a picture with a high dynamic range is further synthesized, more dynamic ranges and image details can be provided, and the visual effect in a real environment can be better reflected.
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 described below are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of an image capturing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another image capturing method according to an embodiment of the present disclosure;
fig. 3 is a schematic overall implementation flowchart of an image capturing method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an image capturing apparatus according to an embodiment of the present disclosure;
fig. 5 is a hardware entity diagram of an image capturing apparatus according to an embodiment of the present disclosure.
Detailed Description
High-dynamic range (HDR) is a set of techniques used in computer graphics and cinematography to achieve a larger dynamic range of exposure (i.e., a larger difference in shading) than conventional digital image techniques. According to LDR (Low-Dynamic Range) images with different exposure times, the LDR image with the best detail corresponding to each exposure time is used for synthesizing a final HDR image, namely, several photos with different exposures are taken, and then the normal part of each exposure is reserved and synthesized into one photo, so that a photo with high Dynamic Range is obtained. The dynamic range refers to a luminance range of a photographed object, that is, a luminance span from a darkest point to a brightest point in the object.
In the photographic technique, the difference is often used to quantify the dynamic range. Each doubling or halving of the Exposure is called an increase or decrease of 1EV (Exposure level). The full visual dynamic range of the real world, all luminance values in the real scene are scaled and stored.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Example one
An embodiment of the present application provides an image processing method applied to an electronic device, and fig. 1 is a schematic flowchart of the image processing method provided in the embodiment of the present application, and as shown in fig. 1, the method includes:
in step S101, the electronic device obtains a photographing instruction.
Here, the manner in which the electronic device obtains the photographing instruction may be through a voice instruction or manually turning on a photographing function button of the electronic device, and the like, which is not limited in this embodiment of the application.
And step S102, the electronic equipment responds to the photographing instruction.
Here, the mode of the electronic device responding to the photographing instruction may be entering a photographing interface, or photographing a preview picture.
And step S103, obtaining a first collected image through a camera module of the electronic equipment.
Here, the camera module of the electronic device is a front camera or a rear camera of the electronic device.
Here, the first captured image is at least one image captured directly with a front camera or a rear camera under ambient light conditions.
It should be noted that, at this time, no light compensation element performs brightness compensation, that is, a flash of the electronic device is in an off state, and the first captured image obtained here is an underexposed picture. .
And step S104, controlling a light compensation element of the electronic equipment to be lightened by a first brightness value and obtaining a second collected image through the camera module.
Here, the light compensation element of the electronic device may be a flash lamp component of the electronic device, including an internal flash lamp and an external flash lamp, or may be a fill-in lamp component. For convenience of explanation, the embodiments of the present application are described by taking a flash lamp as an example.
Here, the light compensation element is controlled to light at a first brightness value, which is understood to be capable of compensating for ambient light so that a taken picture is normally exposed. In the implementation process, the flash lamp is controlled to be turned on at low current, and the flash lamp can be started based on ambient light or can be turned on manually by a user.
It should be noted that the flash lamp is not always turned on, but is turned on briefly (about 1000 a/sec) at the moment of shooting, otherwise the device will be burned out.
Here, the second captured image is a different image from the first captured image, and is a normally exposed picture obtained by the camera module in the same shooting scene under the condition that the optical fiber compensation element of the electronic device, such as a flash lamp, is controlled to be turned on at a low current.
And step S105, controlling the light compensation element to be lightened by a second brightness value and obtaining a third collected image through the camera module.
Here, the second luminance value is greater than the first luminance value. And controlling the light compensation element to light the flash lamp with a second brightness value in the corresponding main flash stage and turning on the flash lamp with high current (strong light).
In one possible implementation, the first brightness value and the second brightness value may be fixed values determined and do not change with the change of the ambient light of the shooting environment; in another possible implementation, the first brightness value and the second brightness value are dynamically adjustable with the change of the ambient light of the shooting environment.
Here, the third captured image is an overexposed picture taken by the camera module in the same shooting scene under the condition that an optical fiber compensation element such as a flash lamp of the electronic device is controlled to be turned on at a high current.
And step S106, synthesizing and storing a target image based on the first collected image, the second collected image and the third collected image.
Here, the first captured image, the second captured image, and the third captured image are three images of underexposure, normal, and overexposure, respectively, taken for the same scene.
Further, the three images can be fused by the HDR algorithm to obtain a final target image, which is a photograph with a high dynamic range, that is, a photograph with bright areas not over-exposed and bright dark areas.
In the embodiment of the application, firstly, the electronic equipment obtains a photographing instruction, then, in the process of responding to the photographing instruction, aiming at the same photographing scene, the flash lamp is controlled to be turned off, the flash lamp is controlled to be turned on at low current, and the flash lamp is controlled to be turned on at high current to obtain three images, and finally, a target image is synthesized and stored based on the three images; therefore, under the condition that a flash lamp is not required to be continuously turned on by strong current, a plurality of images with different exposures can be obtained, a picture with a high dynamic range is further synthesized, more dynamic ranges and image details can be provided, and the visual effect in a real environment can be better reflected.
Example two
The embodiment of the application provides another image shooting method which is applied to electronic equipment. Fig. 2 is a schematic flowchart of another image capturing method provided in an embodiment of the present application, and as shown in fig. 2, the method includes:
in step S201, the electronic device obtains a photographing instruction.
Step S202, controlling a light compensation element of the electronic device to be lightened by a third brightness value and obtaining a preview image through the camera module.
Here, the third brightness value is the same as the first brightness value, and it is understood that the process of obtaining the preview image corresponds to a pre-flash stage of the flash photography, and in the implementation process, the third brightness value and the first brightness value may be empirical values or may be determined based on the light of the photographing surrounding environment.
Illustratively, at this stage the flash is turned on at low current, multiple frames of successive images are taken, and the AE is adjusted to bring the AE converged image to the desired brightness, thereby determining the final preview image.
It should be noted that the flash lamp can be kept in a long-time on state when being turned on at a low current, so that multiple frames of images can be continuously shot, and the LED lamp is not burned out.
In some embodiments, the method further comprises obtaining instruction instructions for instructing activation of the light compensation element in response to the photographing instruction.
Here, the manner of obtaining the instruction may be a flash that is activated based on ambient light, or may be a flash that is manually turned on by the user.
Step S203, determining exposure parameters for acting on the camera module based on the preview image.
Here, the exposure parameters include an exposure time and a Gain (Gain). It can be understood that the exposure parameters of the camera module are set according to the normal exposure of the shot object. In the implementation process, the exposure parameters required to be set in the main flash stage are calculated according to the brightness ratio of the pre-flash to the main flash.
In some embodiments, the method further comprises: the procedure for determining the first luminance value and the second luminance value provides two cases as follows: in the first case: determining a first luminance value and a second luminance value for acting on the light compensation element based on the preview image; wherein the third luminance value is different from the first luminance value; since the first luminance value is different from the second luminance value, in this case, the first to third luminance values are all different; in the second case: determining a second luminance value for acting on the light compensation element based on the preview image; the third luminance value is the same as the first luminance value.
It should be noted that, when determining the first luminance value and the second luminance value simultaneously based on the preview image, the first luminance value or the second luminance value may be determined first, and then another luminance value may be determined based on the relationship between the first luminance value and the second luminance value and the determined one luminance value, for example, the relationship between the first luminance value and the second luminance value may be a fixed luminance difference between the first luminance value and the second luminance value.
Illustratively, a ratio between the brightness of the entire preview image and the brightness of dark areas in the preview image is calculated, by which the second brightness value is adjusted. In general, the ratio and the second luminance value may be adjusted in a direct proportional relationship or a similar direct proportional relationship. In some embodiments, the brightness value of the light compensation element can be controlled by the current value, and at this time, the current value can be adjusted according to the relationship between the ratio and the current value provided in table 1 (applicable to the second case) of this embodiment, so as to adjust the brightness value.
Here, the brightness distribution of the preview image may be partially used to characterize the ambient light, that is, a method is provided for determining the second brightness value based partially on the ambient light, and when implemented, this may be accomplished by using the preview image as the implementation means. In other embodiments, the electronic device further comprises an ambient light sensor, such that when implemented, the first and second luminance values may also be obtained based on the ambient light sensor.
And step S204, obtaining a first collected image based on the exposure parameters through the camera module.
Here, the first captured image is at least one image captured by the camera module directly based on the same exposure parameters as those used for capturing the preview image under the ambient light condition.
It should be noted that, at this time, no light compensation element performs brightness compensation, that is, a flash of the electronic device is in an off state, and the first captured image obtained here is an underexposed picture.
Step S205, controlling the light compensation element to light up with a first brightness value and obtaining a second captured image based on the exposure parameter through the camera module.
Here, controlling the light compensation element to light at a first brightness value may be understood as controlling the flash lamp to turn on at a low current. In implementation, the flash turning-on control may be a flash started based on ambient light, or may be a flash turned on manually by a user.
Here, the second captured image is a different image from the first captured image, and is a normal exposure picture obtained by shooting the camera module based on the same exposure parameters under the same shooting scene and by controlling the optical fiber compensation element of the electronic device, such as a flash lamp, to be turned on at a low current.
Step S206, controlling the light compensation element to be turned on by a second brightness value and the camera module to obtain a third captured image based on the exposure parameter.
Here, the second luminance value is greater than the first luminance value. And controlling the light compensation element to light the flash lamp with a second brightness value in the corresponding main flash stage and turning on the flash lamp with high current (strong light).
In one possible implementation, the first brightness value and the second brightness value may be fixed values determined and do not change with the change of the ambient light of the shooting environment; in another possible implementation, the first luminance value and the second luminance value may be dynamically adjusted according to the change of the ambient light of the photographing, such as determining the second luminance value based on the preview image photographed only by the ambient light.
Here, the third captured image is a photograph of an overexposure obtained by the camera module based on the same exposure parameters under the same shooting scene in a case where the optical fiber compensation element of the electronic device, such as a flash lamp, is controlled to be turned on at a high current.
Step S207, synthesizing and storing a target image based on the first captured image, the second captured image, and the third captured image.
Here, the first captured image, the second captured image, and the third captured image are three images, which are shot by the camera module under the condition that the exposure parameters are not changed and are respectively under-exposed, normal, and over-exposed, for the same shooting scene.
In the embodiment of the application, the light compensation element of the electronic device is controlled to be lightened by a third brightness value, a preview image is obtained through the camera module, then exposure parameters acting on the camera module are determined based on the preview image, then the light compensation element is controlled to be closed in a distributed mode, the light compensation element is lightened by a first brightness value and the light compensation element is lightened by a second brightness value, and three images which are respectively under-exposed, normal and over-exposed are obtained through shooting by the camera module under the same exposure parameters; therefore, the flash lamp does not need to be opened by strong current for a long time, the LED lamp of the flash lamp cannot be burnt out, a plurality of pictures with different brightness are taken under the condition that the exposure parameters are not changed, the final pictures are obtained by fusion, more dynamic ranges and image details can be provided, and the visual effect in the real environment can be better reflected.
EXAMPLE III
Taking pictures in weak light requires taking clear pictures with flash light. In the related art, if a flash is used, only one picture is taken during the main flash. The shot picture is easy to cause the over exposure of bright places and the insufficient brightness of dark places, and the dynamic range is too small, so that the shot scene in the picture cannot be seen clearly.
The dynamic range refers to a luminance range of a photographic subject, i.e., a luminance span from a darkest point to a brightest point in the subject. In the photographic technique, the difference is often used to quantify the dynamic range. Every time the Exposure is doubled or halved, it is called to increase or decrease 1EV (Exposure level) the full visual dynamic range of the real world, and all brightness values in the real scene are scaled and stored.
In order to solve the problem that a dynamic range of a photo shot by a flash lamp is relatively small, a new flash lamp photographing step and method are designed in the embodiment of the present application, and fig. 3 is a schematic overall implementation flow diagram of an image photographing method provided in the embodiment of the present application, and as shown in fig. 3, the flow includes two stages: a pre-flash phase 301 and a main flash phase 302, wherein:
first, a preflash stage 301;
in the preflash stage, no difference from the traditional flash photography, the AE is adjusted to make the AE convergent image reach the expected brightness under the condition of low current and low light. According to the brightness ratio of the pre-flash to the main flash, the exposure parameters (exposure time and gain) required to be set by the main flash are calculated. Wherein the preflash stage 301 comprises the steps of:
in step 311, the flash is turned on with low current.
The low current is typically an empirical value of 200mA and may also be determined based on the light that captures the ambient environment.
In step 312, several frames of images are taken in succession.
Here, after several frames of AE adjustment, AE converges to reach the intended exposure target.
Step 313, turn off the flash. And after the preview image meeting the exposure target is obtained, the flash lamp is turned off.
The flash lamp can keep a long-time open state when being started at low current, so that a plurality of frames of images can be continuously shot, and the LED lamp is not burnt out. After several frames of AE adjustment (automatic exposure), the AE converges to reach the expected exposure target; and taking the exposure parameter after AE convergence as the exposure parameter of the main flash stage. Among the common exposure parameters are: aperture size (control depth of field), shutter speed (capture dynamic element), exposure time, sensitivity, etc. The exposure parameters in the embodiments of the present application may include exposure time and gain.
Exposure is a physical quantity used to calculate the amount of light flux reaching the camera from the scene. The image sensor can only obtain a high quality picture if the correct exposure is obtained. Overexposure, the image appears too bright and underexposed, and the image appears too dark. The amount of light flux reaching the sensor is mainly determined by two factors: the length of the exposure time and the size of the aperture.
The automatic exposure is performed by using the aperture, and the size of the aperture is mainly controlled according to a shot scene, so that the light input amount is maintained within a certain range. The cost of exposure control by the aperture is relatively high. The mainstream technology adopted by the middle and low-end cameras in the market at present realizes automatic exposure by adjusting the exposure time.
There are two methods of automatic exposure control algorithm, one is to use the reference brightness value to divide the image into many sub-images uniformly, the brightness of each sub-image is used to set the reference brightness value, and the brightness value can be obtained by setting the shutter speed. Alternatively, exposure control is performed by studying the relationship between the luminance and the exposure value under different lighting conditions. Both of these methods have studied a large number of image examples and many different lighting conditions. But also require a database of images acquired under different lighting conditions. In practice, automatic exposure research needs to solve several problems, namely, firstly, whether an image needs automatic exposure is judged, secondly, when the image needs automatic exposure, how to adjust a digital signal after photoelectric conversion to find out an automatic exposure capability compensation function is carried out, and finally, what degree the adjustment is most appropriate.
Second, a main flash stage 302;
during main flashing, three pictures are shot by controlling the on-off of a flash lamp and the current intensity during opening according to exposure parameters determined in a pre-flashing stage under the condition that the exposure parameters are not changed, and the three pictures are fused into a picture with a high dynamic range through an HDR algorithm. And taking 3 photos according to the exposure parameters determined in the pre-flash stage under the condition that the exposure parameters are not changed. The main flash stage 302 includes the following steps:
step 321, taking an under-exposed picture 1 with the flash off.
Here, the exposure parameters are unchanged, and an underexposed picture is taken under the condition that the flash lamp is turned off;
step 322 turns on the flash at low current, takes a normally exposed picture, and then turns off the flash.
Here, the exposure parameters are unchanged, and a normal picture is taken under the condition of low light of a flash lamp; the low current here is the same low current as in the pre-flash phase, and is typically an empirical value of 200mA, and may also be determined based on the light of the shooting surroundings.
In implementation, the flash turning-on control may be a flash started based on ambient light, or may be a flash turned on manually by a user.
Step 323 turns on the flash at high current, takes an overexposed picture 3, and then turns off the flash.
Here, the exposure parameters are unchanged, and an underexposed picture is taken under the condition of strong light of a flash lamp; in practice, the flash lamp may be turned on at a high current, that is, at a strong light, and the current of the strong light may be adjusted by calculating a ratio of the brightness of the whole preview image to the brightness of the dark area.
For example, the preview image may be in YUV format, where the Y value represents the image brightness. The luminance (lum) of the whole image is calculated by adding the Y values of all pixels and then averaging them. The brightness of the dark region is determined in the same manner, and the ratio of the two is calculated. The current value of the strong light is calculated from this ratio. The relationship between the two is shown in the following table 1: defining the ratio of the brightness of the whole image to the brightness of a dark area as X, and if X is greater than 5, the strong light current value of the main flashing stage is 5 times of the current value (empirical value 200mA) of the pre-flashing stage; if X <5, the strong light current value in the main flashing stage is X times of the current value in the pre-flashing stage.
TABLE 1
Figure BDA0002299603540000111
Step 324, combine photo 1, photo 2 and photo 3 into a final photo.
Here, three photos are combined into one high dynamic range photo through the HDR algorithm; thus, three photos of weak exposure, normal exposure and over exposure are obtained, and the three photos are fused into a photo with a bright part not being over exposed and a dark part being brightened through the HDR algorithm, so that the effect of high dynamic range is achieved.
In the embodiment of the present application, in the preflash stage, the exposure parameter after AE convergence is used as the exposure parameter in the main flash stage. Then, in the main flash stage, 3 photographs were taken with the exposure parameters unchanged: taking a photo under the condition that the flash lamp is turned off; taking a picture under the same low current as the pre-flash; a picture is taken using the strong current of the main flash. Thus obtaining three photos of weak exposure, normal exposure and overexposure, and the three photos are fused into a photo with a high dynamic range through an HDR algorithm; therefore, the flash lamp does not need to be turned on by strong current for a long time in the main flashing stage, the LED lamp of the flash lamp cannot be burnt out, a plurality of photos with different exposures can be shot to synthesize a photo with a bright part not being overexposed and a photo with a dark part being lightened, the effect of a high dynamic range is achieved, more dynamic ranges and image details can be provided, and the visual effect in a real environment can be better reflected.
Example four
The embodiment of the application provides an image shooting device, which comprises modules and units contained in the modules, and can be realized by a processor in image shooting equipment (such as electronic equipment with a camera, such as a mobile phone); of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 4 is a schematic structural diagram of an image capturing apparatus according to an embodiment of the present disclosure, and as shown in fig. 4, the image capturing apparatus 400 includes: a first obtaining module 401, a response module 402, a first acquisition module 403, a second acquisition module 404, a third acquisition module 405, and a synthesis module 406, wherein:
the first obtaining module 401 is configured to determine, for an acquisition device of the electronic device, an exposure parameter that meets a preset condition when a flash of the electronic device is in a pre-flash stage according to a photographing instruction;
the response module 402 is configured to respond to the photographing instruction and obtain at least two images with different brightness by photographing according to the exposure parameter when the flash lamp is in a main flash stage;
the first collecting module 403 is configured to obtain a first collected image through a camera module of the electronic device;
the second collecting module 404 is configured to control a light compensation element of the electronic device to light up at a first brightness value and obtain a second collected image through the camera module;
the third collecting module 405 is configured to control the light compensation element to light up at a second brightness value and obtain a third collected image through the camera module; the second luminance value is greater than the first luminance value;
the synthesizing module 406 is configured to synthesize a target image based on the first captured image, the second captured image, and the third captured image and store the target image.
In some embodiments, the response module further comprises an acquisition unit and a first determination unit, wherein:
the acquisition unit is used for controlling the light compensation element to be lightened by a third brightness value and obtaining a preview image through the camera module;
the first determining unit is used for determining exposure parameters acting on the camera module based on the preview image.
In some embodiments, the first acquisition module is further configured to obtain, by the camera module, a first acquired image based on the exposure parameter;
correspondingly, the second acquisition module is further configured to control the light compensation element to be lit at a first brightness value and obtain a second acquired image based on the exposure parameter through the camera module;
correspondingly, the third acquisition module is further configured to control the light compensation element to be lit at a second brightness value, and the camera module obtains a third acquired image based on the exposure parameter.
In some embodiments, the response module further comprises: a second determination unit configured to determine a second luminance value acting on the light compensation element based on the preview image; the third luminance value is the same as the first luminance value.
In some embodiments, the apparatus further comprises: and the second obtaining module is used for obtaining an instruction, and the instruction is used for instructing to start the light compensation element in the process of responding to the photographing instruction.
Here, it should be noted that: the above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the image capturing method is implemented in the form of a software functional module and sold or used as a standalone product, the image capturing method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device automatic test line including the storage medium to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Accordingly, embodiments of the present application provide a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps in the image capturing method provided in the above embodiments.
Correspondingly, the embodiment of the application provides an image shooting device, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the program to realize the steps of the method.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
An embodiment of the present application provides an image capturing apparatus, and fig. 5 is a schematic diagram of a hardware entity of the image capturing apparatus provided in the embodiment of the present application, as shown in fig. 5, the hardware entity of the apparatus 500 includes: a processor 501, a communication interface 502 and a memory 503, and a camera module as a flash of a light compensation element. Wherein, if the front-end shooting is carried out, the display screen can also be used as a light compensation element (in the case of no front-end flash lamp). Of course, in the embodiment of the application, if the front-mounted camera is used and the front-mounted flash lamp is not used, the rear-mounted flash lamp can be used as the light compensation element. Wherein
The processor 501 generally controls the overall operation of the device 500.
The communication interface 502 may enable the device 500 to communicate with other terminals or servers via a network.
The Memory 503 is configured to store instructions and applications executable by the processor 501, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 501 and modules in the device 500, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. 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.
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.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an automatic test line of a device to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An image shooting method is applied to electronic equipment and comprises the following steps:
acquiring a photographing instruction;
responding to the photographing instruction;
controlling a light compensation element of the electronic equipment to be in a closed state, and obtaining a first collected image through a camera module of the electronic equipment, wherein the first collected image is an underexposed image;
controlling a light compensation element of the electronic equipment to light up by a first brightness value and obtaining a second collected image through the camera module, wherein the first brightness value is determined according to the intensity of the light of the shooting surrounding environment;
controlling the light compensation element to light up at a second brightness value and obtaining a third collected image through the camera module; the second brightness value is greater than the first brightness value, wherein the second brightness value is determined according to the intensity of the light of the shooting surrounding environment, and the third acquired image is an overexposed image;
synthesizing and storing a target image based on the first captured image, the second captured image and the third captured image.
2. The method of claim 1 wherein said responding to said photograph instruction further comprises:
controlling a light compensation element of the electronic equipment to light up at a third brightness value and obtaining a preview image through the camera module;
and determining exposure parameters acting on the camera module based on the preview image.
3. The method of claim 2, the obtaining a first captured image by the camera module comprising:
obtaining a first collected image based on the exposure parameter through the camera module;
the controlling the light compensation element of the electronic device to light with a first brightness value and obtain a second collected image through the camera module comprises:
controlling the light compensation element to light up by a first brightness value and obtaining a second collected image based on the exposure parameter through the camera module;
the controlling the light compensation element to be lighted with a second brightness value and obtaining a third collected image through the camera module comprises:
and controlling the light compensation element to be lightened by a second brightness value, and obtaining a third acquired image by the camera module based on the exposure parameter.
4. The method of claim 2, said responding to said photograph instruction further comprising:
determining a first luminance value and a second luminance value for acting on the light compensation element based on the preview image; wherein the third luminance value is different from the first luminance value;
alternatively, the first and second electrodes may be,
determining a second luminance value acting on the light compensation element based on the preview image, the third luminance value being the same as the first luminance value.
5. The method of claim 1, further comprising:
and obtaining an indication instruction, wherein the indication instruction is used for indicating that the light compensation element is started in the process of responding to the photographing instruction.
6. An image capture device, the device comprising a first acquisition module, a response module, a first acquisition module, a second acquisition module, a third acquisition module, and a synthesis module, wherein:
the first obtaining module is used for obtaining a photographing instruction;
the response module is used for responding to the photographing instruction;
the first acquisition module is used for controlling a light compensation element of the electronic equipment to be in a closed state, and acquiring a first acquired image through a camera module of the electronic equipment, wherein the first acquired image is an underexposed image;
the second acquisition module is used for controlling a light compensation element of the electronic equipment to be lightened by a first brightness value and acquiring a second acquired image through the camera module, wherein the first brightness value is determined according to the intensity of the light of the shooting surrounding environment;
the third acquisition module is used for controlling the light compensation element to be lightened by a second brightness value and acquiring a third acquired image through the camera module; the second brightness value is greater than the first brightness value, wherein the second brightness value is determined according to the intensity of the light of the shooting surrounding environment, and the third acquired image is an overexposed image;
and the synthesis module is used for synthesizing and storing the photographed image based on the first collected image, the second collected image and the third collected image.
7. The apparatus of claim 6, the response module further comprising an acquisition unit and a first determination unit, wherein:
the acquisition unit is used for controlling the light compensation element to be lightened by a third brightness value and obtaining a preview image through the camera module;
the first determining unit is used for determining exposure parameters acting on the camera module based on the preview image.
8. The apparatus of claim 7, the first acquisition module further configured to obtain, by the camera module, a first acquired image based on the exposure parameters;
the second acquisition module is also used for controlling the light compensation element to be lightened by a first brightness value and acquiring a second acquired image based on the exposure parameter through the camera module;
the third acquisition module is further configured to control the light compensation element to be lit at a second brightness value and the camera module to obtain a third acquired image based on the exposure parameter.
9. An image capturing device comprising a memory and a processor, the memory storing a computer program operable on the processor, the processor implementing the steps of the method of any one of claims 1 to 5 when executing the program.
10. 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 5.
CN201911216265.4A 2019-12-02 2019-12-02 Image shooting method and device, equipment and storage medium Active CN111064898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911216265.4A CN111064898B (en) 2019-12-02 2019-12-02 Image shooting method and device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911216265.4A CN111064898B (en) 2019-12-02 2019-12-02 Image shooting method and device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111064898A CN111064898A (en) 2020-04-24
CN111064898B true CN111064898B (en) 2021-07-16

Family

ID=70299507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911216265.4A Active CN111064898B (en) 2019-12-02 2019-12-02 Image shooting method and device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111064898B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953899B (en) * 2020-08-04 2021-12-17 深圳市锐尔觅移动通信有限公司 Image generation method, image generation device, storage medium, and electronic apparatus
CN112415831B (en) * 2020-09-07 2022-05-31 合肥联宝信息技术有限公司 Optical compensation image acquisition device and method
CN112135043A (en) * 2020-09-21 2020-12-25 珠海格力电器股份有限公司 Method and apparatus for synthesizing photograph, storage medium, and electronic apparatus
CN114095666B (en) * 2021-08-12 2023-09-22 荣耀终端有限公司 Photographing method, electronic device, and computer-readable storage medium
CN113556472B (en) * 2021-09-22 2021-12-14 上海豪承信息技术有限公司 Image compensation method, device, medium and front camera

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647554A (en) * 2004-09-15 2012-08-22 佳能株式会社 Image processing apparatus and image processing method
CN104092954A (en) * 2014-07-25 2014-10-08 北京智谷睿拓技术服务有限公司 Flash control method and control device and image collection method and collection device
CN105208294A (en) * 2014-06-20 2015-12-30 中兴通讯股份有限公司 Method and device for taking picture
CN107071262A (en) * 2016-12-28 2017-08-18 深圳天珑无线科技有限公司 Photographic method and camera arrangement
CN109194873A (en) * 2018-10-29 2019-01-11 浙江大华技术股份有限公司 A kind of image processing method and device
CN109525783A (en) * 2018-12-25 2019-03-26 努比亚技术有限公司 A kind of exposure image pickup method, terminal and computer readable storage medium
CN109788207A (en) * 2019-01-30 2019-05-21 Oppo广东移动通信有限公司 Image composition method, device, electronic equipment and readable storage medium storing program for executing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102075456B1 (en) * 2013-07-10 2020-02-10 삼성전자주식회사 Image processing method for improving image quality and image processing device therewith
CN107734225B (en) * 2017-10-24 2019-06-07 维沃移动通信有限公司 A kind of image pickup method and device
CN110493506B (en) * 2018-12-12 2021-03-02 杭州海康威视数字技术股份有限公司 Image processing method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647554A (en) * 2004-09-15 2012-08-22 佳能株式会社 Image processing apparatus and image processing method
CN105208294A (en) * 2014-06-20 2015-12-30 中兴通讯股份有限公司 Method and device for taking picture
CN104092954A (en) * 2014-07-25 2014-10-08 北京智谷睿拓技术服务有限公司 Flash control method and control device and image collection method and collection device
CN107071262A (en) * 2016-12-28 2017-08-18 深圳天珑无线科技有限公司 Photographic method and camera arrangement
CN109194873A (en) * 2018-10-29 2019-01-11 浙江大华技术股份有限公司 A kind of image processing method and device
CN109525783A (en) * 2018-12-25 2019-03-26 努比亚技术有限公司 A kind of exposure image pickup method, terminal and computer readable storage medium
CN109788207A (en) * 2019-01-30 2019-05-21 Oppo广东移动通信有限公司 Image composition method, device, electronic equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN111064898A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN111064898B (en) Image shooting method and device, equipment and storage medium
US10250819B2 (en) Image processing apparatus and image processing method
JP4236433B2 (en) System and method for simulating fill flash in photography
CN109194882B (en) Image processing method, image processing device, electronic equipment and storage medium
JP6259185B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
CN108337446B (en) High dynamic range image acquisition method, device and equipment based on double cameras
EP3975547A1 (en) High dynamic range (hdr) image generation method and apparatus, and electronic device and computer-readable storage medium
JP2012109900A (en) Photographing device, photographing method and program
CN111316635B (en) Camera control method and device
JP2003101876A (en) Camera with strobe adjustment function
US7679653B2 (en) Digital image acquisition arranged to acquire image data related to different light configurations
CN111434104B (en) Image processing apparatus, image capturing apparatus, image processing method, and recording medium
JP2011061530A (en) Image capturing apparatus and method of controlling the same
JP5048599B2 (en) Imaging device
JP5970871B2 (en) Electronic camera
JP2015139025A (en) Imaging apparatus
JP5335964B2 (en) Imaging apparatus and control method thereof
JP2013051516A (en) Imaging device and determination method, and program
CN113347352A (en) Shooting parameter adjusting method and device, electronic equipment and computer storage medium
JP2007336355A (en) Photographing device
JP2005260738A (en) Imaging apparatus and its exposure control method
JP2020077980A (en) Imaging device, imaging method, and program
WO2023236215A1 (en) Image processing method and apparatus, and storage medium
Mancini et al. Basic photography principles
JP2003259231A (en) Automatic exposure controller and program thereof

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