Shooting method, shooting device and storage medium
By collecting and identifying preview image data, combining the requirements information of the preset imaging control algorithm, the target parameter value of the flash control parameters is determined, which solves the problem that the flash control parameters in the prior art cannot accurately cover all scenes, and achieves more efficient brightness adjustment and shooting effects.
Patent Information
- Application Number
- CN202110953661.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-19
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2041-08-19
AI Technical Summary
The prior art cannot accurately cover the flash control parameters of all shooting scenes during shooting, resulting in inaccurate brightness adjustment and affecting the shooting effect.
By collecting preview image data, identifying the scene and object feature parameter values, and combining the algorithm requirements information of the preset imaging control algorithm, the target parameter values of the flash control parameters are determined to accurately adjust the control parameters of the flash.
Accurate flash control of shooting scenes is achieved, improving the accuracy of shooting effects and brightness adjustment.
Smart Images

Figure CN115714906B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of photography, and in particular to a photography method, a photography device, and a storage medium. Background Art
[0002] The flash in the camera can supplement the light source and increase the shooting brightness when shooting in low-light or other low-light shooting scenes. To ensure that the brightness of the shooting scene meets the requirements, the flash control parameters can be adjusted according to the shooting effects of different scenes. Finally, more appropriate flash control parameters are determined for different shooting scenes, and the shooting scenes and corresponding flash control parameters are written into the configuration file for subsequent shooting.
[0003] However, currently during the shooting process, the flash control parameters corresponding to the current shooting scene are searched from the configuration file, but the actual shooting scenes are ever-changing, and the flash control parameters in the configuration file cannot cover all shooting scenes, which will cause the brightness adjustment to be inaccurate and thus affect the final shooting effect. Summary of the invention
[0004] The embodiments of the present application provide a shooting method, a shooting device, and a storage medium, which can accurately determine the flash control parameters, thereby improving the shooting effect.
[0005] The technical solution of this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising:
[0007] Collecting preview image data, and identifying the preview image data to obtain scene feature parameter values of the preview scene and object feature parameter values of the photographed object; the preview scene is the scene corresponding to the preview image data, and the photographed object is the object in the preview image data;
[0008] Obtaining algorithm requirement information of a preset imaging control algorithm in the preview scene;
[0009] According to the scene characteristic parameter value, the object characteristic parameter value and the algorithm requirement information, a target parameter value of a flash control parameter is determined; and the flash is driven based on the target parameter value to realize a shooting process.
[0010] In a second aspect, an embodiment of the present application provides a photographing device, the device comprising:
[0011] An acquisition unit, used for acquiring preview image data;
[0012] an identification unit, configured to identify the preview image data to obtain a scene feature parameter value of the preview scene and an object feature parameter value of the photographed object; the preview scene is a scene corresponding to the preview image data, and the photographed object is an object in the preview image data;
[0013] An acquisition unit, used to acquire algorithm requirement information of a preset imaging control algorithm in the preview scene;
[0014] A determination unit is used to determine a target parameter value of a flash control parameter according to the scene characteristic parameter value, the object characteristic parameter value and the algorithm requirement information, so as to drive the flash based on the target parameter value to realize a shooting process.
[0015] In a third aspect, an embodiment of the present application proposes a photographing device, which includes: a flash, a processor, a memory and a communication bus; when the processor executes an operating program stored in the memory, the method as described above is implemented.
[0016] In a fourth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method as described above is implemented.
[0017] The embodiment of the present application provides a shooting method, shooting device, and storage medium, the method comprising: collecting preview image data, and identifying the preview image data to obtain scene feature parameter values of the preview scene and object feature parameter values of the shooting object; the preview scene is the scene corresponding to the preview image data, and the shooting object is the object in the preview image data; obtaining algorithm requirement information of the preset imaging control algorithm in the preview scene; determining the target parameter value of the flash control parameter according to the scene feature parameter value, the object feature parameter value, and the algorithm requirement information; and driving the flash based on the target parameter value to realize the shooting process. The above method is adopted to implement the scheme, and the shooting device first collects preview image data before shooting, and adjusts the flash control parameter by identifying the preview image data and determining the algorithm requirement of the preset imaging control algorithm in the shooting device. In the subsequent shooting process, based on the target parameter value of the flash control parameter determined in the image preview process, the flash can be accurately controlled for the current shooting scene, thereby improving the shooting effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flowchart of a shooting method provided in an embodiment of the present application;
[0019] Figure 2 A schematic flow chart of an exemplary flash control method during a shooting process provided in an embodiment of the present application;
[0020] Figure 3A schematic diagram of a photographing device provided in an embodiment of the present application Figure 1 ;
[0021] Figure 4 A schematic diagram of a photographing device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0022] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0023] The present application embodiment provides a shooting method, such as Figure 1 As shown, the method may include:
[0024] S101, collecting preview image data, and identifying the preview image data to obtain scene feature parameter values of the preview scene and object feature parameter values of the photographed object; the preview scene is the scene corresponding to the preview image data, and the photographed object is the object in the preview image data.
[0025] A shooting method proposed in an embodiment of the present application is suitable for a scenario where a flash is controlled during shooting.
[0026] In an embodiment of the present application, the shooting device includes at least a flash and a camera, etc. The shooting device can control the flash parameters such as the flash duration, flash intensity, etc. of the flash during the shooting process. The shooting device can be any device with shooting and storage functions, such as: tablet computers, mobile phones, personal computers (PC), laptops, cameras, wearable devices and other devices.
[0027] In the embodiment of the present application, the shooting function of the shooting device is started, the shooting preview interface is entered, and the camera is used to collect preview image data in real time.
[0028] It should be noted that in the process of real-time collection of preview image data, a preset time period or a preset number of frames can be set in advance, and a frame of preview image data is collected every preset time period or every preset number of frames. The specific interval for collecting a frame of preview image data can be selected according to actual conditions, and the embodiment of the present application does not make specific limitations.
[0029] Exemplarily, one frame of preview image data is collected every five frames, or one frame of preview image data is collected every seven frames, or one frame of preview image data is collected every 20 ms.
[0030] In the embodiment of the present application, the image format of the preview image data is RAW image format (RAW image format, RAW) image data.
[0031] In the embodiment of the present application, the shooting device performs image recognition on the preview image data to determine the scene characteristic parameter value of the preview scene in which the preview image data is located and the object characteristic parameter value of the shooting object in the preview image data.
[0032] Optionally, the scene characteristic parameter value may include at least one of brightness and contrast of the preview scene. It should be noted that the scene characteristic parameter value is not limited to brightness and contrast, and the specific one can be selected according to actual conditions. The embodiment of the present application does not make specific limitations.
[0033] It should be noted that the shooting scenes may be night shooting, forest shooting, portrait shooting, natural scenery shooting and the like. The scene characteristic parameter values corresponding to different shooting scenes are different. The shooting device can compensate for the flash control parameters of the flash by obtaining the scene characteristic parameter values corresponding to the preview scene.
[0034] It should be noted that the shooting object in the preview image data can be obtained by identifying the content and objects in the preview image data. Even for a shooting scene of natural scenery, if the shooting objects include multiple shooting objects such as houses, trees, and grass, the shooting object of the preview scene can be determined based on parameters such as depth of field and the size of the shooting area occupied.
[0035] Optionally, the object feature parameter value may include at least one of the smoothness of the photographed object, the proportion of the photographed object in the preview image, the color of the photographed object, and the brightness of a region of interest (ROI) corresponding to the photographed object.
[0036] It should be noted that the smoothness of the photographed object can be that the surface of the photographed object is smooth or the surface of the photographed object is rough, wherein the judgment of surface smoothness and surface roughness can be determined based on the boundary pixel value of the photographed object or other relevant parameters. The smoothness of the photographed object can not only be divided into these two forms of surface smoothness and surface roughness, but can also be further subdivided. The specific one can be selected according to the actual situation, and the embodiments of the present application do not make specific limitations.
[0037] Furthermore, the object feature parameter value may also include the position and distance of the photographed object relative to the camera; after collecting a frame of preview image data every preset time period or every preset number of frames, the movement trend of the photographed object can be determined based on the collected multiple frames of preview image data, and then, based on the movement trend of the photographed object, the position and distance of the photographed object relative to the camera can be predicted.
[0038] Specifically, the position and distance of the object relative to the camera in the next frame or the next few frames are predicted according to the motion parameters of the shooting device and the motion trend of the object. The motion parameters of the shooting device may be motion parameters corresponding to a gyroscope (Gyroscope, Gyro) or an adaptive cruise control (Adaptive Cruise Control, ACC) sensor in the shooting device.
[0039] S102: Acquire algorithm requirement information of a preset imaging control algorithm in a preview scene.
[0040] In an embodiment of the present application, a preset imaging control algorithm is stored in the shooting device, wherein the preset imaging control algorithm may be an automatic exposure control (AEC) algorithm, an automatic white balance (AWB) algorithm, an auto focus (AF) algorithm, etc. The specific one may be selected according to actual conditions, and the embodiment of the present application does not make any specific limitation.
[0041] In the embodiment of the present application, different preset imaging control algorithms correspond to different algorithm requirement information in the preview scene. After the preview scene is determined from the preview image data, the algorithm requirement information of the preset imaging control algorithm in the preview scene is obtained.
[0042] In the embodiment of the present application, the algorithm requirement information includes the algorithm convergence time of the preset imaging control algorithm and the expected value of the shooting parameters, among which the shooting parameters can be shooting related parameters such as aperture and exposure time. The specific ones can be selected according to the actual situation, and the embodiment of the present application does not make specific limitations.
[0043] Taking the AEC algorithm as an example, for different preview scenes, the AEC algorithm requires different lengths of time to complete AEC convergence. A certain convergence time can be reserved for the AEC algorithm based on the characteristics of the preview scene. In order to achieve the best automatic exposure control in different preview scenes, the AEC algorithm needs to set the aperture value and the expected exposure time for the preview scene.
[0044] S103, determining a target parameter value of a flash control parameter according to the scene feature parameter value, the object feature parameter value and the algorithm requirement information, so as to control the flash based on the target parameter value during the shooting process.
[0045] In an embodiment of the present application, since the algorithm requirement information of the preset imaging control algorithm includes the algorithm convergence time of the preset imaging algorithm and the expected values of the shooting parameters, the shooting device first determines the initial parameter values of the flash control parameters based on the scene characteristic parameter values, the object characteristic parameter values and the algorithm convergence time; then, based on the expected values of the shooting parameters, the initial parameter values are adjusted to obtain the target parameter values of the flash control parameters.
[0046] For example, the smoother the surface of the photographed object, the smaller the required brightness, and the parameter value of the flash control parameter needs to be adjusted down, otherwise the parameter value of the flash control parameter needs to be adjusted up; the larger the proportion of the photographed object in the preview image data, the smaller the required brightness, and the parameter value of the flash control parameter needs to be adjusted down, otherwise the parameter value of the flash control parameter needs to be adjusted up; the brighter the color of the photographed object, the smaller the required brightness, and the parameter value of the flash control parameter needs to be adjusted down, otherwise the parameter value of the flash control parameter needs to be adjusted up.
[0047] In an embodiment of the present application, an initial parameter value of a flash control parameter is adjusted based on an expected value of a shooting parameter to obtain a target parameter value of the flash control parameter, including: controlling the flash based on the initial parameter value and acquiring first image data; processing the first image data using a preset imaging control algorithm to obtain a first value of the shooting parameter; if the first value meets the expected value, determining the initial parameter value as the target parameter value; if the first value does not meet the expected value, continuing to adjust the initial parameter value until a second value of the shooting parameter obtained based on the adjusted parameter value meets the expected value, and then determining the adjusted parameter value as the target parameter value.
[0048] Specifically, the shooting device includes a flash control module. After determining the initial parameter value, the shooting device inputs the initial parameter value of the flash control parameter into the flash control module. The flash control module adjusts the flash mode of the current shooting according to the flash control parameter, and collects first image data in the flash mode of the current shooting mode. Then, the first image data is processed by a preset imaging control algorithm to obtain a first value of the shooting parameter. Then, the first value is compared with an expected value. If the first value meets the expected value, there is no need to adjust the initial parameter value, and the initial parameter value is directly determined as the target parameter value; if the first value does not meet the expected value, the preset imaging control algorithm continues to converge. Specifically, the initial parameter value is adjusted, and the adjusted initial parameter value is input into the flash control module. The above operation is repeated until the image data captured according to the adjusted parameter value and the second value of the shooting parameter obtained after processing by the converged preset imaging control algorithm meet the expected value, indicating that the preset imaging control algorithm has converged. At this time, the adjusted parameter value is determined as the target parameter value.
[0049] In an embodiment of the present application, the image format of the first image data is RAW image data. Specifically, the first image data may be grayscale value data of each pixel in the image. For example, when taking a portrait, the flash is controlled based on the initial parameter value of the flash control parameter, and the grayscale value data of each pixel in the portrait shooting scene is collected to form the first image data.
[0050] It should be noted that by processing the first image data using a preset imaging control algorithm, the exposure duration value and aperture value corresponding to the first image data can be obtained. The exposure duration value and aperture value corresponding to the first image data are the first values of the shooting parameters obtained by processing the first image data.
[0051] In the embodiment of the present application, the flash control parameters include at least one of flash intensity, flash duration and flash direction, which can be specifically selected according to actual conditions and are not specifically limited in the embodiment of the present application; wherein the flash intensity is the current size when the flash is working.
[0052] It should be noted that the flash intensity can be the flash intensity corresponding to different flash periods in the flash duration. In practical applications, different flash intensities are achieved by setting the current value of the flash lamp, such as setting the current value to 30mA in the 1ms-5ms period, setting the current value to 80mA in the 5ms-15ms period, and setting the current value to 200mA in the 15ms-30ms period, until the current value is set to 500mA when the preset imaging control algorithm converges.
[0053] It should be noted that controlling the flash intensity can control the brightness of the captured image area, controlling the flash duration can control the brightness effect of the captured image, and controlling the flash direction can perform more accurate flash operations on the target area.
[0054] In an embodiment of the present application, if the flash control parameters include flash direction, the flash can be a flash with adjustable direction, multiple flashes with adjustable directions, or multiple flashes with non-adjustable directions. The specific selection can be based on actual conditions, and the embodiment of the present application does not make any specific limitation.
[0055] It should be noted that the embodiment of the present application proposes a direction-adjustable flash. The shooting device can be provided with one direction-adjustable flash or multiple direction-adjustable flashes. The specific one can be selected according to actual conditions, and the embodiment of the present application does not make specific limitations. The shooting device can control the flash to adjust the direction along the flash direction.
[0056] It should be noted that the embodiments of the present application can also be applied to scenarios in which a shooting device is provided with multiple non-adjustable flashes; the shooting device can adjust the light intensity of the multiple non-adjustable flashes respectively to control the flash direction during the shooting process.
[0057] Furthermore, after determining the target parameter value of the flash control parameter based on the scene characteristic parameter value, the object characteristic parameter value and the algorithm requirement information, the flash is driven to realize the shooting process based on the target parameter value of the flash control parameter. Specifically: taking the target parameter value as the value center, multiple parameter values are determined, and the multiple parameter values include the target parameter value; the flash is driven to perform multiple shots using the multiple parameter values to obtain multiple image data; and the target shooting image is determined from the multiple image data by performing brightness analysis on the multiple image data.
[0058] In the embodiment of the present application, with the target parameter value as the value center, a parameter value is determined at every preset value interval. The target parameter value may be subtracted from the value corresponding to the preset value interval to obtain a parameter value, and / or the target parameter value may be added to the value corresponding to the preset value interval to obtain a parameter value.
[0059] It should be noted that after determining the target parameter value of the flash control parameter based on the scene characteristic parameter value, the object characteristic parameter value and the algorithm requirement information, the target parameter value can also be used to directly drive the flash to shoot and obtain the target shot image. The specific choice of multiple shots or one shot can be made according to the actual situation, and the embodiments of the present application do not make specific limitations.
[0060] It can be understood that before shooting, the shooting device first collects preview image data, and adjusts the flash control parameters by identifying the preview image data and determining the algorithm requirements of the preset imaging control algorithm in the shooting device. In the subsequent shooting process, based on the target parameter values of the flash control parameters determined during the image preview process, the flash can be accurately controlled for the current shooting scene, thereby improving the shooting effect.
[0061] Based on the above embodiments, the present application provides a flash control method during shooting, wherein the shooting device includes a flash with adjustable direction. Figure 2 As shown, the method may include:
[0062] 1. Start the shooting device, and the sensor of the shooting device obtains RAW image data;
[0063] 2. Identify the RAW image data to obtain scene feature parameter values of the preview scene and object feature parameter values of the photographed object;
[0064] 3. Simultaneously obtain the preset imaging control algorithm and the algorithm convergence time and expected values of the shooting parameters of the preset imaging control algorithm in the preview scene;
[0065] 4. Calculate according to the scene characteristic parameter value, the object characteristic parameter value and the algorithm convergence time to obtain the initial parameter value of the flash light parameter, wherein the initial parameter value of the flash light parameter includes the initial flash light duration, the initial flash light current value and the initial flash light direction;
[0066] 5. Inputting the initial flash duration, the initial flash current and the initial flash direction into the flash control module, the flash control module starts the flash based on the initial flash duration, the initial flash current and the initial flash direction;
[0067] 6. The sensor of the shooting device collects the first image data;
[0068] 7. The photographing device processes the first image data using a preset imaging control algorithm to obtain a first value of a photographing parameter, namely, an aperture value of 1 and an exposure time of 1;
[0069] 8. If the aperture value 1 and the exposure time 1 meet the expected aperture value and the expected exposure time corresponding to the preview scene, the initial flash time, the initial flash current and the initial flash direction are used to achieve subsequent image capture;
[0070] 9. If the aperture value 1 and the exposure time 1 do not meet the expected aperture value and the expected exposure time corresponding to the preview scene, adjust the initial flash duration, the initial flash current and the initial flash direction according to the aperture value 1 and the exposure time 1, and execute 5 based on the adjusted initial flash duration, the initial flash current and the initial flash direction.
[0071] The present application embodiment provides a photographing device 1. Figure 3 As shown, the photographing device 1 includes:
[0072] The acquisition unit 10 is used to acquire preview image data;
[0073] The recognition unit 11 is used to recognize the preview image data to obtain a scene feature parameter value of the preview scene and an object feature parameter value of the photographed object; the preview scene is a scene corresponding to the preview image data, and the photographed object is an object in the preview image data;
[0074] An acquisition unit 12, configured to acquire algorithm requirement information of a preset imaging control algorithm in the preview scene;
[0075] The determination unit 13 is used to determine the target parameter value of the flash control parameter according to the scene characteristic parameter value, the object characteristic parameter value and the algorithm requirement information, so as to drive the flash to realize the shooting process based on the target parameter value.
[0076] Optionally, the algorithm requirement information includes the algorithm convergence time and expected values of shooting parameters of the preset imaging control algorithm;
[0077] The determination unit 13 is further used to determine the initial parameter value of the flash control parameter according to the scene characteristic parameter value, the object characteristic parameter value and the algorithm convergence time; and adjust the initial parameter value based on the expected value of the shooting parameter to obtain the target parameter value of the flash control parameter.
[0078] Optionally, the device further includes: an image processing unit,
[0079] The acquisition unit 10 is further used to control the flashlight based on the initial parameter value and acquire first image data;
[0080] The image processing unit is used to process the first image data using the preset imaging control algorithm to obtain a first value of the shooting parameter;
[0081] The determination unit 13 is also used to determine the initial parameter value as the target parameter value if the first value meets the expected value; if the first value does not meet the expected value, continue to adjust the initial parameter value until the second value of the shooting parameter obtained based on the adjusted parameter value meets the expected value, and then determine the adjusted parameter value as the target parameter value.
[0082] Optionally, the device further comprises: a prediction unit;
[0083] The acquisition unit 10 is further used to acquire a frame of preview image data every preset period or every preset number of frames;
[0084] The determining unit 13 is further used to determine the motion trend of the photographed object according to the collected multiple frames of preview image data;
[0085] The prediction unit is further used to predict the position and distance of the photographed object relative to the camera based on the motion trend.
[0086] Optionally, the device further includes: a shooting unit;
[0087] The determination unit 13 is further configured to determine a plurality of parameter values with the target parameter value as a value center, wherein the plurality of parameter values include the target parameter value; and determine a target captured image from the plurality of image data by performing brightness analysis on the plurality of image data;
[0088] The shooting unit drives the flash lamp to shoot multiple times using the multiple parameter values to obtain multiple image data.
[0089] Optionally, the scene characteristic parameter value includes at least one of brightness and contrast of the preview scene.
[0090] Optionally, the object feature parameter value further includes: at least one of: smoothness of the photographed object, a proportion of the photographed object in the preview image, color of the photographed object, and brightness of a region of interest ROI corresponding to the photographed object.
[0091] Optionally, the flash control parameter includes at least one of flash intensity and flash duration.
[0092] Optionally, the flash control parameter also includes a flash direction; accordingly, the flash is a flash with adjustable direction, a plurality of flashes with adjustable directions, or a plurality of flashes with non-adjustable directions.
[0093] The embodiment of the present application provides a shooting device, which collects preview image data, identifies the preview image data, obtains the scene characteristic parameter value of the preview scene and the object characteristic parameter value of the shooting object; the preview scene is the scene corresponding to the preview image data, and the shooting object is the object in the preview image data; obtains the algorithm requirement information of the preset imaging control algorithm in the preview scene; determines the target parameter value of the flash control parameter according to the scene characteristic parameter value, the object characteristic parameter value and the algorithm requirement information; and drives the flash based on the target parameter value to realize the shooting process. It can be seen that the shooting device proposed in this embodiment first collects preview image data before shooting, and adjusts the flash control parameter by identifying the preview image data and determining the algorithm requirement of the preset imaging control algorithm in the shooting device. In the subsequent shooting process, based on the target parameter value of the flash control parameter determined in the image preview process, the flash can be accurately controlled for the current shooting scene, thereby improving the shooting effect.
[0094] Figure 4 A schematic diagram of the structure of a photographing device 1 provided in an embodiment of the present application Figure 2 In practical applications, based on the same disclosure concept of the above embodiments, Figure 4 As shown, the photographing device 1 of this embodiment includes: a processor 14 , a memory 15 , a communication bus 16 and a flash 17 .
[0095] In the process of a specific embodiment, the acquisition unit 10, the identification unit 11, the acquisition unit 12, the determination unit 13, the image processing unit, the prediction unit and the shooting unit can be implemented by a processor 14 located on the shooting device 1, and the processor 14 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing image processing device (DSPD), a programmable logic image processing device (PLD), a field programmable gate array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other, and this embodiment does not specifically limit it.
[0096] In the embodiment of the present application, the communication bus 16 is used to realize the connection and communication between the processor 14 and the memory 15; when the processor 14 executes the running program stored in the memory 15, the following shooting method is realized:
[0097] Collect preview image data, identify the preview image data, and obtain scene feature parameter values of the preview scene and object feature parameter values of the photographed object; the preview scene is the scene corresponding to the preview image data, and the photographed object is the object in the preview image data; obtain algorithm requirement information of a preset imaging control algorithm in the preview scene; determine a target parameter value of a flash control parameter according to the scene feature parameter value, the object feature parameter value and the algorithm requirement information; and drive the flash 17 based on the target parameter value to realize the photographing process.
[0098] Furthermore, the algorithm requirement information includes the algorithm convergence time and expected values of shooting parameters of the preset imaging control algorithm;
[0099] The processor 14 is further configured to determine an initial parameter value of the flash control parameter according to the scene characteristic parameter value, the object characteristic parameter value and the algorithm convergence time; and adjust the initial parameter value based on the expected value of the shooting parameter to obtain a target parameter value of the flash control parameter.
[0100] Furthermore, the processor 14 is also used to control the flash 17 based on the initial parameter value and collect first image data; process the first image data using the preset imaging control algorithm to obtain a first value of the shooting parameter; if the first value meets the expected value, determine the initial parameter value as the target parameter value; if the first value does not meet the expected value, continue to adjust the initial parameter value until the second value of the shooting parameter obtained based on the adjusted parameter value meets the expected value, and then determine the adjusted parameter value as the target parameter value.
[0101] Furthermore, the processor 14 is also used to collect a frame of preview image data every preset time period or every preset number of frames; determine the motion trend of the subject based on the collected multiple frames of preview image data; and predict the position and distance of the subject relative to the camera based on the motion trend.
[0102] Furthermore, the processor 14 is also used to determine multiple parameter values with the target parameter value as the value center, and the multiple parameter values include the target parameter value; use the multiple parameter values to drive the flash 17 to perform multiple shots to obtain multiple image data; and determine the target shot image from the multiple image data by performing brightness analysis on the multiple image data.
[0103] Furthermore, the scene characteristic parameter value includes at least one of brightness and contrast of the preview scene.
[0104] Furthermore, the object characteristic parameter value also includes: at least one of: smoothness of the photographed object, a proportion of the photographed object in the preview image, color of the photographed object, and brightness of a region of interest ROI corresponding to the photographed object.
[0105] Furthermore, the flash control parameter includes at least one of flash intensity and flash duration.
[0106] Furthermore, the flash control parameter also includes a flash direction; accordingly, the flash is a flash with adjustable direction, a plurality of flashes with adjustable directions, or a plurality of flashes with non-adjustable directions.
[0107] An embodiment of the present application provides a storage medium having a computer program stored thereon. The computer-readable storage medium stores one or more programs. The one or more programs can be executed by one or more processors and applied to a shooting device. The computer program implements the shooting method as described above.
[0108] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for enabling an image display device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0110] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A shooting method, characterized in that: The method comprises: Collecting preview image data, and identifying the preview image data to obtain scene feature parameter values of the preview scene and object feature parameter values of the photographed object; the preview scene is the scene corresponding to the preview image data, and the photographed object is the object in the preview image data; Acquiring algorithm requirement information of a preset imaging control algorithm in the preview scene; the preset imaging control algorithm includes an automatic exposure control algorithm, an automatic white balance algorithm or an automatic focus algorithm; the algorithm requirement information includes an algorithm convergence time and an expected value of a shooting parameter of the preset imaging control algorithm; Determine a target parameter value of a flash control parameter according to the scene feature parameter value, the object feature parameter value and the algorithm requirement information; and drive the flash based on the target parameter value to realize a shooting process; Wherein, determining the target parameter value of the flash control parameter according to the scene characteristic parameter value, the object characteristic parameter value and the algorithm requirement information includes: Determining an initial parameter value of the flash control parameter according to the scene feature parameter value, the object feature parameter value and the algorithm convergence time; Based on the expected value of the shooting parameter, the initial parameter value is adjusted to obtain the target parameter value of the flash control parameter.
2. The method according to claim 1, characterized in that The adjusting the initial parameter value of the flash control parameter based on the expected value of the shooting parameter to obtain the target parameter value of the flash control parameter includes: Controlling the flashlight based on the initial parameter value and collecting first image data; Processing the first image data using the preset imaging control algorithm to obtain a first value of the shooting parameter; If the first value satisfies the expected value, determining the initial parameter value as the target parameter value; If the first value does not meet the expected value, the initial parameter value continues to be adjusted until a second value of the shooting parameter obtained based on the adjusted parameter value meets the expected value, and the adjusted parameter value is determined as the target parameter value.
3. The method according to claim 1, characterized in that The collecting preview image data comprises: Collecting a frame of preview image data every preset period of time or every preset number of frames; Correspondingly, the object feature parameter value includes the position and distance of the photographed object relative to the camera, and the identifying of the preview image data to obtain the object feature parameter value of the photographed object includes: Determining the motion trend of the photographed object according to the collected multiple frames of preview image data; Based on the motion trend, the position and distance of the photographed object relative to the camera are predicted.
4. The method according to claim 1, characterized in that: After determining the target parameter value of the flash control parameter according to the scene characteristic parameter value, the object characteristic parameter value and the algorithm requirement information, the method further includes: Taking the target parameter value as the value center, determining a plurality of parameter values, wherein the plurality of parameter values include the target parameter value; Using the multiple parameter values to drive the flash to take multiple shots to obtain multiple image data; By performing brightness analysis on the plurality of image data, a target shot image is determined from the plurality of image data.
5. The method according to claim 1, characterized in that The scene characteristic parameter value includes at least one of brightness and contrast of the preview scene.
6. The method according to claim 1 or 3, characterized in that: The object characteristic parameter value also includes: at least one of: smoothness of the photographed object, a proportion of the photographed object in the preview image, color of the photographed object, and brightness of a region of interest ROI corresponding to the photographed object.
7. The method according to any one of claims 1 to 5, characterized in that: The flash control parameter also includes a flash direction; accordingly, the flash is a flash with adjustable direction, a plurality of flashes with adjustable directions, or a plurality of flashes with non-adjustable directions.
8. A photographing device, characterized in that: The device comprises: An acquisition unit, used for acquiring preview image data; an identification unit, configured to identify the preview image data to obtain a scene feature parameter value of the preview scene and an object feature parameter value of the photographed object; the preview scene is a scene corresponding to the preview image data, and the photographed object is an object in the preview image data; an acquisition unit, configured to acquire algorithm requirement information of a preset imaging control algorithm in the preview scene; the preset imaging control algorithm includes an automatic exposure control algorithm, an automatic white balance algorithm or an automatic focus algorithm; the algorithm requirement information includes an algorithm convergence time and an expected value of a shooting parameter of the preset imaging control algorithm; A determination unit is used to determine an initial parameter value of a flash control parameter according to the scene characteristic parameter value, the object characteristic parameter value and the algorithm convergence time; adjust the initial parameter value based on the expected value of the shooting parameter to obtain a target parameter value of the flash control parameter; and drive the flash based on the target parameter value to realize the shooting process.
9. A photographing device, characterized in that: The device comprises: a flash, a processor, a memory and a communication bus; when the processor executes the running program stored in the memory, the method according to any one of claims 1 to 7 is implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Combined ambient and flash exposure for improved image quality
US20120177352A1