CN109889731B - Shooting parameter determination method and device and storage medium - Google Patents

Shooting parameter determination method and device and storage medium Download PDF

Info

Publication number
CN109889731B
CN109889731B CN201910133819.8A CN201910133819A CN109889731B CN 109889731 B CN109889731 B CN 109889731B CN 201910133819 A CN201910133819 A CN 201910133819A CN 109889731 B CN109889731 B CN 109889731B
Authority
CN
China
Prior art keywords
state
parameter set
optical accessory
isp parameter
target
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
CN201910133819.8A
Other languages
Chinese (zh)
Other versions
CN109889731A (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.)
Sengled Co Ltd
Original Assignee
Sengled Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sengled Co Ltd filed Critical Sengled Co Ltd
Priority to CN201910133819.8A priority Critical patent/CN109889731B/en
Publication of CN109889731A publication Critical patent/CN109889731A/en
Application granted granted Critical
Publication of CN109889731B publication Critical patent/CN109889731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The invention provides a method, a device and a storage medium for determining shooting parameters, wherein the method comprises the following steps: the method comprises the steps of judging whether at least one optical accessory of the terminal equipment needs to be switched to a target state or not according to environmental data of the environment where the terminal equipment is located, if so, obtaining at least one of the target state of the at least one optical accessory, the current exposure of the terminal equipment and the current time, inquiring a pre-obtained image signal processing ISP parameter set database according to the at least one of the target state of the at least one optical accessory, the current exposure and the current time, obtaining a target ISP parameter set of the terminal equipment, and when the at least one optical accessory is switched to the target state, determining shooting parameters of the terminal equipment according to the target ISP parameter set. The corresponding shooting parameters are obtained according to the state of the optical accessory, so that the phenomenon of overexposure or underexposure of the image caused by the state change of the optical accessory is avoided, and the quality of the video image is improved.

Description

Shooting parameter determination method and device and storage medium
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a method and a device for determining shooting parameters and a storage medium.
Background
Currently, along with the development of economy and the improvement of the living standard of people, a video camera plays an increasingly important role in the daily life of a user, and in some cases, the user needs to acquire a high-quality image. The video camera product comprises optical accessories such as an infrared light supplement lamp, a visible light supplement lamp, an illuminating lamp or a switchable optical filter, and when the accessories are opened and closed, instantaneous overexposure or underexposure of a video picture of the video camera can be caused.
In the prior art, when an Image is instantaneously over-exposed or under-exposed, an Image Processor of a video camera can gradually adjust an Image Signal Processor (ISP) parameter set in a step-by-step manner, where the ISP parameter set includes white balance, saturation, noise reduction parameters, and the like, so as to gradually restore the video Image to normal.
However, the above approach is a step adjustment approach, which gradually approaches the ISP parameter set to restore the image to normal, and during such step adjustment, the video image is still not ideal.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a method and a device for determining shooting parameters and a storage medium, so as to adjust the shooting parameters of a terminal and improve the quality of a shot image.
In a first aspect, an embodiment of the present invention provides a method for determining shooting parameters, including:
judging whether at least one optical accessory of the terminal equipment needs to be switched to a target state according to environmental data of the environment where the terminal equipment is located, wherein the target state comprises an opening state or a closing state;
if yes, acquiring at least one of a target state of the at least one optical accessory, a current exposure of the terminal equipment and a current moment;
inquiring a pre-acquired image signal processing ISP parameter set database according to at least one of the target state, the current exposure and the current time of the at least one optical accessory to acquire a target ISP parameter set of the terminal equipment, wherein the ISP parameter set database is a set of a plurality of ISP parameter sets determined according to the exposure of the terminal equipment and the state of the at least one optical accessory at a plurality of different historical times;
and when the at least one optical accessory is switched to the target state, determining shooting parameters of the terminal equipment according to the target ISP parameter set.
In a specific implementation manner, the querying a pre-acquired ISP parameter set database according to at least one of a target state of the at least one optical accessory, the current exposure amount, and the current time to acquire a target ISP parameter set of the terminal device includes:
obtaining a current state of the at least one optical accessory, the current state including an on state or an off state;
and inquiring a pre-acquired ISP parameter set database according to at least one of the target state of the at least one optical accessory, the current exposure, the current time and the current state of the at least one optical accessory to acquire the target ISP parameter set.
In a specific implementation manner, the querying a pre-acquired ISP parameter set database according to at least one of a target state of the at least one optical accessory, the current exposure, the current time, and a current state of the at least one optical accessory to acquire the target ISP parameter set includes:
inquiring an ISP parameter set database acquired in advance according to the current exposure, the current moment and the current state of the at least one optical accessory to acquire an initial ISP parameter set;
determining a set of target ISP parameters in the initial ISP parameter set based on a target state of the at least one optical accessory.
In a specific implementation manner, the method further includes:
acquiring the exposure of the terminal equipment at a plurality of different historical moments and the state of at least one optical accessory, wherein the state of the optical accessory comprises the current state and the target state of the optical accessory;
determining an ISP parameter set at each historical moment according to the exposure at each historical moment and the state of at least one optical accessory;
and acquiring the ISP parameter set database according to the ISP parameter set at each historical moment.
In a specific implementation manner, acquiring the ISP parameter set database according to the ISP parameter set at each historical time includes:
and establishing the state of at least one optical accessory at each historical moment, and the mapping relation between the exposure at each historical moment and the ISP parameter set at each historical moment, and acquiring the ISP parameter set database.
In a specific implementation, the ISP parameter set includes an automatic exposure parameter, a gain value, and a noise reduction parameter.
In a specific implementation manner, the terminal device is a video camera.
In a second aspect, an embodiment of the present invention provides an apparatus for determining shooting parameters, including:
the system comprises a judging module, a judging module and a judging module, wherein the judging module is used for judging whether at least one optical accessory of the terminal equipment needs to be switched to a target state according to environment data of the environment where the terminal equipment is located, and the target state comprises an opening state or a closing state;
an obtaining module, configured to obtain at least one of a target state of at least one optical accessory, a current exposure amount of the terminal device, and a current time if the at least one optical accessory of the terminal device needs to be switched to the target state;
the query module is used for querying a pre-acquired image signal processing ISP parameter set database according to at least one of the target state of the at least one optical accessory, the current exposure and the current time to acquire a target ISP parameter set of the terminal equipment, wherein the ISP parameter set database is a set of a plurality of ISP parameter sets determined according to the exposure of the terminal equipment and the target state of the at least one optical accessory at a plurality of different historical times;
and the determining module is used for determining the shooting parameters of the terminal equipment according to the target ISP parameter set when the state of the at least one optical accessory is switched to the target state.
In a specific implementation manner, the obtaining module includes:
a first obtaining submodule, configured to obtain a current state of the at least one optical accessory, where the current state includes an on state or an off state;
and the query submodule is used for querying an ISP parameter set database which is acquired in advance according to at least one of the target state of the at least one optical accessory, the current exposure, the current moment and the current state of the at least one optical accessory to acquire the target ISP parameter set.
In a specific implementation manner, the obtaining module includes:
a second obtaining submodule, configured to query a pre-obtained ISP parameter set database according to the current exposure, the current time, and the current state of the at least one optical accessory, and obtain an initial ISP parameter set;
a first determining submodule configured to determine a target ISP parameter set in the initial ISP parameter set based on a target state of the at least one optical accessory.
In a specific implementation manner, the obtaining module includes:
the third acquisition submodule is used for acquiring the exposure of the terminal equipment at a plurality of different historical moments and the state of at least one optical accessory, wherein the state of the optical accessory comprises the current state and the target state of the optical accessory;
a second determining submodule, configured to determine, according to the exposure amount and the state of the at least one optical accessory at each historical time, an ISP parameter set at each historical time;
and the third obtaining submodule is further used for obtaining the ISP parameter set database according to the ISP parameter sets at each historical moment.
In a specific implementation manner, the obtaining module includes:
and the fourth acquisition submodule is used for establishing the state of at least one optical accessory at each historical moment and each historical moment, establishing the mapping relation between the exposure at each historical moment and the ISP parameter set at each historical moment and acquiring the ISP parameter set database.
In a specific implementation, the ISP parameter set includes an automatic exposure parameter, a gain value, and a noise reduction parameter.
In a specific implementation manner, the terminal device is a video camera.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
a processor;
a memory; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor, the computer program comprising instructions for performing the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and the computer program causes a terminal device to execute the method in the first aspect.
The invention provides a method, a device and a storage medium for determining shooting parameters, wherein the method comprises the following steps: judging whether at least one optical accessory of the terminal equipment needs to be switched to a target state according to environmental data of the environment where the terminal equipment is located, wherein the target state comprises an opening state or a closing state, if so, acquiring at least one of the target state of the at least one optical accessory, the current exposure of the terminal equipment and the current time, inquiring a pre-acquired image signal processing ISP parameter set database according to at least one of the target state, the current exposure and the current time of at least one optical accessory to acquire a target ISP parameter set of the terminal equipment, the ISP parameter set database is a set of a plurality of ISP parameter sets determined according to the exposure of the terminal equipment and the state of at least one optical accessory at a plurality of different historical moments, and when at least one optical accessory is switched to a target state, shooting parameters of the terminal equipment are determined according to the target ISP parameter sets. The method for determining the shooting parameters can adjust the shooting parameters of the terminal equipment according to the state of the optical accessory, thereby avoiding the overexposure or underexposure phenomenon of the video image caused by the state change of the optical accessory and improving the quality of the video image.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first schematic flow chart of a method for determining shooting parameters according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a second method for determining shooting parameters according to an embodiment of the present invention;
fig. 3 is a third schematic flowchart of a method for determining shooting parameters according to an embodiment of the present invention;
fig. 4 is a first schematic structural diagram of a device for determining shooting parameters according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for determining shooting parameters according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for determining the shooting parameters provided by the embodiment of the invention can be applied to an application scene for shooting videos or images by using the terminal equipment. The video camera product comprises optical accessories such as an infrared light supplement lamp, a visible light supplement lamp, a lighting lamp or a switchable optical filter, when the accessories are opened and closed, instantaneous overexposure or underexposure of a video picture of the video camera can be caused, specifically, when the optical accessories are opened, instantaneous overexposure of an image can be caused, and when the optical accessories are closed, instantaneous underexposure of the image can be caused.
To address this problem, the image processor of the video camera in the prior art can gradually adjust the image signal processing parameter set in a stepwise manner until the video image gradually returns to normal. However, in the above method, the ISP parameter set for restoring the image to normal is gradually approached by using a step adjustment method, and in the step adjustment process, the video image is still not ideal.
In view of the above problems, an embodiment of the present invention provides a method for determining a shooting parameter, where a terminal device determines, according to environmental data of an environment where the terminal device is located, whether at least one optical accessory of the terminal device needs to be switched to a target state, if so, at least one of the target state of the at least one optical accessory, a current exposure of the terminal device, and a current time is obtained, and according to at least one of the target state of the at least one optical accessory, the current exposure, and the current time, a pre-obtained image signal processing ISP parameter set database is queried, a target ISP parameter set of the terminal device is obtained, and a shooting parameter of the terminal device is determined according to the target ISP parameter set. The shooting parameters of the terminal equipment are adjusted according to the state of the optical accessory, so that the phenomenon of overexposure or underexposure of the video image caused by the state change of the optical accessory is avoided, and the quality of the video image is improved.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a first flowchart illustrating a method for determining a shooting parameter according to an embodiment of the present invention. The embodiment of the invention provides a method for determining shooting parameters, which can be executed by any device for executing the method for determining shooting parameters, and the device can be realized by software and/or hardware. In this embodiment, the apparatus may be integrated in a terminal device, and the terminal device may be a mobile phone, a computer, a video camera, and the like having a shooting function, which is not limited by the present solution. As shown in fig. 1, a method for shooting parameters according to an embodiment of the present invention includes the following steps:
step 101, judging whether at least one optical accessory of the terminal equipment needs to be switched to a target state according to the environment data of the environment where the terminal equipment is located.
The terminal equipment has a shooting function, and optical accessories can be arranged on the terminal equipment and comprise an infrared light supplementing lamp, a visible light supplementing lamp, an illuminating lamp, a switchable filter light sheet and the like. The optical accessory is used for providing auxiliary light when shooting under the condition of lacking light so as to shoot a reasonable image.
The target state of the optical accessory includes an on state or an off state.
In a possible implementation, the environmental data of terminal equipment place environment includes the light intensity of terminal equipment place environment, if the light intensity of terminal equipment place environment is less than preset light intensity, and current terminal equipment's light is not opened, then judge and to switch into the on-state with the light, perhaps, current terminal equipment's infrared light filling lamp is not opened, obtain more reasonable image for the shooting, then judge and to switch into the on-state with infrared light filling lamp, specific need opens which kind of optical accessories, can be according to actual conditions and decide, this scheme is all not the restriction to the quantity and the kind that need switch to the optical accessories of target state.
In another possible implementation manner, if the illumination lamp of the current terminal device is turned on and the light intensity of the environment where the terminal device is located is greater than the preset light intensity, it is determined that the illumination lamp can be switched to the off state, so as to reduce power consumption of the terminal device.
And 102, if so, acquiring at least one of a target state of at least one optical accessory, a current exposure of the terminal equipment and a current moment.
It should be noted that the shooting function of the terminal device may be affected by the natural optical environment of weather (sunny day or cloudy day), but because the terminal device such as a video camera is inconvenient to acquire the current weather condition, the current automatic exposure of the terminal device is used to indirectly measure the current weather condition, specifically, because the automatic exposure of the terminal device may be affected by the current weather condition, when the terminal device is used to shoot, the terminal device itself may adaptively adjust the automatic exposure according to the current weather condition, so the current exposure of the terminal device may be used to indirectly measure the current weather condition.
Optionally, the current time is a time of day, including morning, noon, and evening.
Specifically, if it is determined that at least one optical accessory of the terminal device needs to be switched to the target state, at least one of the target state of the at least one optical accessory, the current exposure of the terminal device, and the current time is obtained.
Step 103, inquiring a pre-acquired image signal processing ISP parameter set database according to at least one of the target state, the current exposure and the current time of at least one optical accessory, and acquiring a target ISP parameter set of the terminal equipment.
The ISP parameter set database is a set of a plurality of ISP parameter sets determined according to the exposure of the terminal equipment and the state of at least one optical accessory under a plurality of different historical moments.
Optionally, the ISP parameter set includes an automatic exposure parameter, a gain value, and a noise reduction parameter, and when shooting is performed, a reasonable ISP parameter set is set to obtain a reasonable and normal image.
Optionally, in the ISP parameter set database, at least one of the time, the exposure amount of the terminal device, and the state of at least one optical accessory may be in a one-to-one mapping relationship with the ISP parameter set, where the mapping relationship may be in a form of a table, a text form, or the like, and this is not limited in this embodiment.
It should be noted that, because the optical accessory may cause instantaneous overexposure or underexposure when opened and closed, in the prior art, the ISP parameter set is adjusted in a stepping manner and needs to be adjusted in a very short time, so that the adjustment effect is poor and the image quality is poor.
Then, according to at least one of the target state, the current exposure and the current time of at least one optical accessory, inquiring a pre-acquired image signal processing ISP parameter set database to obtain an ISP parameter set consistent with at least one of the target state, the current exposure and the current time of at least one optical accessory, wherein the ISP parameter set is a target ISP parameter set of the terminal equipment.
And step 104, when at least one optical accessory is switched to the target state, determining shooting parameters of the terminal equipment according to the target ISP parameter set.
And after the target ISP parameter set of the terminal equipment is acquired, when the state of the optical accessory is switched to the target state, taking the target ISP parameter set as a shooting parameter of the terminal equipment. The ISP parameter set can be adaptively adjusted along with the change of the state of the optical accessory, thereby avoiding the phenomenon of overexposure or underexposure of the image caused by the change of the state of the optical accessory and improving the quality of the video image.
The method for determining shooting parameters provided in this embodiment determines, according to environmental data of an environment where a terminal device is located, whether at least one optical accessory of the terminal device needs to be switched to a target state, where the target state includes an on state or an off state, if so, at least one of the target state of the at least one optical accessory, a current exposure amount of the terminal device, and a current time is obtained, and according to at least one of the target state of the at least one optical accessory, the current exposure amount, and the current time, a pre-obtained image signal processing ISP parameter set database is queried to obtain a target ISP parameter set of the terminal device, where the ISP parameter set database is a set of a plurality of ISP parameter sets determined according to the exposure amounts of the terminal device and the state of the at least one optical accessory at a plurality of different historical times, and when the at least one optical accessory is switched to the target, and determining the shooting parameters of the terminal equipment according to the target ISP parameter set. The method for determining the shooting parameters can adjust the shooting parameters of the terminal equipment according to the state of the optical accessory, thereby avoiding the overexposure or underexposure phenomenon of the video image caused by the state change of the optical accessory and improving the quality of the video image.
Fig. 2 is a schematic flowchart of a second method for determining shooting parameters according to an embodiment of the present invention, where this embodiment describes in detail a specific implementation process of step 103 on the basis of the embodiment of fig. 1, and as shown in fig. 2, the method includes:
step 201, obtaining a current state of at least one optical accessory.
The current state of the optical accessory includes an on state or an off state.
Step 202, according to at least one of the target state of at least one optical accessory, the current time of the current exposure and the current state of at least one optical accessory, querying a pre-acquired ISP parameter set database to acquire a target ISP parameter set.
The terminal equipment can acquire the current state of at least one optical accessory, and query the ISP parameter set database acquired in advance according to at least one of the target state of at least one optical accessory, the current moment of the current exposure and the current state of at least one optical accessory to acquire the target ISP parameter set.
Optionally, in the ISP parameter set database, at least one of time, an exposure amount of the terminal device, a target state of different optical accessories, and a current state of different optical accessories may be in a one-to-one mapping relationship with the ISP parameter set, where the mapping relationship may be in a form of a table, a text form, or the like, and this is not limited in this embodiment.
In a possible implementation manner, the terminal device may perform two queries to obtain the target ISP parameter set, and first query the ISP parameter set database obtained in advance according to the current exposure, the current time, and the current state of the at least one optical accessory. Specifically, an ISP parameter set is obtained, where a difference between a current exposure amount and an exposure amount in the ISP parameter set database is within a first preset range, a difference between a current time and a time in the ISP parameter set database is within a second preset range, and a current state of at least one optical accessory is the same as a state of the optical accessory in the ISP parameter set database, where the ISP parameter set is an initial ISP parameter set. The first preset range and the second preset range may be selected according to experiments or experiences, and the scheme is not limited to this.
Next, a set of target ISP parameters is determined in the initial set of ISP parameters based on the target state of the at least one optical accessory. Specifically, the target state of at least one optical accessory is used as a search condition, and the initial ISP parameter set is queried to obtain a target ISP parameter set.
The present embodiment will be specifically described below using a specific example.
Assuming a steady state set of ISP parameters can be expressed as:
Pisp=F(T,W,La,Lb… …) function (1)
Wherein Pisp represents the ISP parameter set in a certain stable state;
t represents the time of day;
w represents the current weather;
Laindicating the state of the optical accessory a (including the current state and the target state);
Lbindicating the state (including the current state and the target state) of the optical accessory b.
Since a terminal device such as a video camera is inconvenient to acquire the current weather condition, the current weather condition is indirectly measured by the current automatic exposure of the terminal device, and the above function can be expressed as:
Pisp=F(T,A,La,Lb… …) function (2)
A represents the exposure amount of the camera.
For simplicity, it is assumed that only one optical accessory a is provided on the terminal device, such as: the filter, then the function (2) can be expressed as:
Pisp=F(T,A,La) Function formula (3)
From this it can be determined when T, A, LaWith a certain value, the Pisp parameter set is determined. Assume that in the last few days, every day T is given LaThe camera is shown with the same optical attachment status, and the weather conditions substituted by a are similar, then the corresponding video ISP parameter sets should be similar or identical.
Because the ISP parameter set database records a plurality of ISP parameter set sets determined by the exposure of the terminal equipment and the target states of a plurality of optical accessories at different historical moments, when the current optical accessory state changes, the ISP parameter set database is searched to match the similar T value, the similar A value and the similar L valueaThe state values are the same, if the difference value of T in the same day is found to be within a second preset range, the difference value of A is within a first preset rangeWithin a range of LaEqual to the ISP parameter set Pisp in the target state, which is the target ISP parameter set.
In the method for determining shooting parameters provided in this embodiment, the target ISP parameter set is obtained by obtaining the current state of at least one optical accessory, and querying the ISP parameter set database obtained in advance according to at least one of the target state of at least one optical accessory, the current time of the current exposure, and the current state of at least one optical accessory. The target ISP parameter set acquired by the embodiment is acquired according to the state of the optical accessory, so that the phenomenon of overexposure or underexposure of the video image caused by the state change of the optical accessory is avoided, and the quality of the video image is improved.
Fig. 3 is a third schematic flowchart of a method for determining shooting parameters according to an embodiment of the present invention, where on the basis of the embodiments in fig. 1 and fig. 2, the method further includes:
step 301, acquiring the exposure and the state of at least one optical accessory of the terminal device at a plurality of different historical moments.
Step 302, determining an ISP parameter set at each historical time based on the exposure at each historical time and the state of the at least one optical accessory.
The state of the optical accessory comprises a current state and a target state of the optical accessory, wherein the current state and the target state comprise an on state or an off state, the terminal equipment acquires the automatic exposure amount and the state of at least one optical accessory at a plurality of different historical moments, and determines an ISP parameter set at each historical moment according to the exposure amount and the state of at least one optical accessory at each historical moment, wherein the ISP parameter set is an ISP parameter set which enables an image to be best shot at the historical moment, the exposure amount and the state of the optical accessory.
The ISP parameter set includes auto exposure parameters, gain values, noise reduction parameters.
And step 303, acquiring an ISP parameter set database according to the ISP parameter sets at each historical moment.
In one possible implementation manner, the state of at least one optical accessory at each historical time and the mapping relation between the exposure at each historical time and the ISP parameter set at each historical time are established, and the ISP parameter set database is obtained. The mapping relation can be in the form of a table or a text, and the scheme does not limit the mapping relation.
Optionally, the terminal device is a video camera.
The key point of the scheme is that the ISP parameter sets in the ISP parameter set database in the scheme are determined in a stepping mode within necessary time, and when the picture is actually shot, the best ISP parameter set is searched according to searching conditions without using a stepping mode for adjustment, so that the picture quality is improved.
In the method for determining shooting parameters provided by this embodiment, the exposure amount and the state of at least one optical accessory of the terminal device at different historical times are obtained, the ISP parameter set at each historical time is determined according to the exposure amount and the state of at least one optical accessory at each historical time, and the ISP parameter set database is obtained according to the ISP parameter set at each historical time. By acquiring the ISP parameter set database in advance, the optimal ISP parameter set can be searched according to the searching condition during actual shooting, and the ISP parameter set does not need to be adjusted in a stepping mode, so that the image quality is improved.
Fig. 4 is a first schematic structural diagram of a device for determining shooting parameters according to an embodiment of the present invention, where the device for determining shooting parameters may be an independent terminal device or a device integrated in a terminal device, and the device may be implemented by software, hardware, or a combination of software and hardware. As shown in fig. 4, the photographing parameter determining apparatus 10 includes:
the system comprises a judging module 11, a judging module and a judging module, wherein the judging module is used for judging whether at least one optical accessory of the terminal equipment needs to be switched to a target state according to environment data of an environment where the terminal equipment is located, and the target state comprises an opening state or a closing state;
an obtaining module 12, configured to obtain at least one of a target state of at least one optical accessory, a current exposure amount of the terminal device, and a current time if the at least one optical accessory of the terminal device needs to be switched to the target state;
an inquiring module 13, configured to inquire, according to at least one of a target state of the at least one optical accessory, the current exposure amount, and the current time, an image signal processing ISP parameter set database acquired in advance, and acquire a target ISP parameter set of the terminal device, where the ISP parameter set database is a set of a plurality of ISP parameter sets determined according to exposure amounts of the terminal device and at least one optical accessory state at a plurality of different historical times;
a determining module 14, configured to determine, when the at least one optical accessory is switched to the target state, a shooting parameter of the terminal device according to the target ISP parameter set.
The terminal device provided in this embodiment may be configured to execute the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a device for determining shooting parameters according to an embodiment of the present invention. On the basis of the above-mentioned embodiment of fig. 4, as shown in fig. 5, the obtaining module 11 includes:
a first obtaining submodule 120, configured to obtain a current state of the at least one optical accessory, where the current state includes an on state or an off state;
the query submodule 121 is configured to query a pre-acquired ISP parameter set database according to at least one of the target state of the at least one optical accessory, the current exposure, the current time, and the current state of the at least one optical accessory, so as to acquire the target ISP parameter set.
In a specific implementation manner, the obtaining module 12 includes:
a second obtaining sub-module 122, configured to query, according to the current exposure, the current time, and the current state of the at least one optical accessory, a pre-obtained ISP parameter set database, and obtain an initial ISP parameter set;
a first determining submodule 123, configured to determine a target ISP parameter set in the initial ISP parameter set according to a target state of the at least one optical accessory.
In a specific implementation manner, the obtaining module 12 includes:
a third acquisition submodule 124 for
Acquiring the exposure of the terminal equipment at a plurality of different historical moments and the state of at least one optical accessory, wherein the state of the optical accessory comprises the current state and the target state of the optical accessory;
a second determination sub-module 125 is provided,
determining an ISP parameter set at each historical moment according to the exposure at each historical moment and the state of at least one optical accessory;
the third obtaining sub-module 126 is further configured to obtain the ISP parameter set database according to the ISP parameter set at each historical time.
In a specific implementation manner, the obtaining module 12 includes:
a fourth acquisition submodule 127 for
And establishing the state of at least one optical accessory at each historical moment, and the mapping relation between the exposure at each historical moment and the ISP parameter set at each historical moment, and acquiring the ISP parameter set database.
In a specific implementation, the ISP parameter set includes an automatic exposure parameter, a gain value, and a noise reduction parameter.
In a specific implementation manner, the terminal device is a video camera.
The terminal device provided in this embodiment may be configured to execute the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention, and as shown in fig. 6, a terminal device 60 according to this embodiment includes: a processor 601 and a memory 602; wherein
A memory 602 for storing computer-executable instructions;
the processor 601 is configured to execute the computer-executable instructions stored in the memory to implement the steps performed by the receiving device in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 602 may be separate or integrated with the processor 601.
When the memory 602 is separately provided, the voice interaction device further comprises a bus 603 for connecting the memory 602 and the processor 601.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the method for determining a shooting parameter as described above is implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for determining shooting parameters is characterized by comprising the following steps:
judging whether at least one optical accessory of the terminal equipment needs to be switched to a target state according to environmental data of the environment where the terminal equipment is located, wherein the target state comprises an opening state or a closing state;
if yes, acquiring at least one of a target state of the at least one optical accessory, a current exposure of the terminal equipment and a current moment;
inquiring a pre-acquired image signal processing ISP parameter set database according to at least one of the target state, the current exposure and the current time of the at least one optical accessory to acquire a target ISP parameter set of the terminal equipment, wherein the ISP parameter set database is a set of a plurality of ISP parameter sets determined according to the exposure of the terminal equipment and the state of the at least one optical accessory at a plurality of different historical times;
and when the at least one optical accessory is switched to the target state, determining shooting parameters of the terminal equipment according to the target ISP parameter set.
2. The method of claim 1, wherein the querying a pre-obtained ISP parameter set database for the target ISP parameter set of the terminal device according to at least one of the target status of the at least one optical accessory, the current exposure, and the current time to obtain the target ISP parameter set of the terminal device comprises:
obtaining a current state of the at least one optical accessory, the current state including an on state or an off state;
and inquiring a pre-acquired ISP parameter set database according to at least one of the target state of the at least one optical accessory, the current exposure, the current time and the current state of the at least one optical accessory to acquire the target ISP parameter set.
3. The method of claim 2, wherein said querying a pre-obtained database of ISP parameter sets for the target ISP parameter set based on at least one of the target status of the at least one optical accessory, the current exposure, the current time of day, and the current status of the at least one optical accessory comprises:
inquiring an ISP parameter set database acquired in advance according to the current exposure, the current moment and the current state of the at least one optical accessory to acquire an initial ISP parameter set;
determining a set of target ISP parameters in the initial ISP parameter set based on a target state of the at least one optical accessory.
4. The method of claim 3, further comprising:
acquiring the exposure of the terminal equipment at a plurality of different historical moments and the state of at least one optical accessory, wherein the state of the optical accessory comprises the current state and the target state of the optical accessory;
determining an ISP parameter set at each historical moment according to the exposure at each historical moment and the state of at least one optical accessory;
and acquiring the ISP parameter set database according to the ISP parameter set at each historical moment.
5. The method according to claim 4, wherein said obtaining the ISP parameter set database according to the ISP parameter sets at each historical time comprises:
and establishing the state of at least one optical accessory at each historical moment, and the mapping relation between the exposure at each historical moment and the ISP parameter set at each historical moment, and acquiring the ISP parameter set database.
6. The method of any of claims 1-5, wherein the ISP parameter set comprises auto exposure parameters, gain values, and noise reduction parameters.
7. The method of claim 1, wherein the terminal device is a video camera.
8. An apparatus for determining shooting parameters, comprising:
the system comprises a judging module, a judging module and a judging module, wherein the judging module is used for judging whether at least one optical accessory of the terminal equipment needs to be switched to a target state according to environment data of the environment where the terminal equipment is located, and the target state comprises an opening state or a closing state;
an obtaining module, configured to obtain at least one of a target state of at least one optical accessory, a current exposure amount of the terminal device, and a current time if the at least one optical accessory of the terminal device needs to be switched to the target state;
the query module is used for querying a pre-acquired image signal processing ISP parameter set database according to at least one of the target state of the at least one optical accessory, the current exposure and the current time to acquire a target ISP parameter set of the terminal equipment, wherein the ISP parameter set database is a set of a plurality of ISP parameter sets determined according to the exposure of the terminal equipment and the state of the at least one optical accessory at a plurality of different historical times;
and the determining module is used for determining the shooting parameters of the terminal equipment according to the target ISP parameter set when the at least one optical accessory is switched to the target state.
9. A terminal device, comprising:
a processor;
a memory; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor, the computer program comprising instructions for performing the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that it stores a computer program that causes a terminal device to execute the method of any one of claims 1-7.
CN201910133819.8A 2019-02-22 2019-02-22 Shooting parameter determination method and device and storage medium Active CN109889731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910133819.8A CN109889731B (en) 2019-02-22 2019-02-22 Shooting parameter determination method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910133819.8A CN109889731B (en) 2019-02-22 2019-02-22 Shooting parameter determination method and device and storage medium

Publications (2)

Publication Number Publication Date
CN109889731A CN109889731A (en) 2019-06-14
CN109889731B true CN109889731B (en) 2021-03-05

Family

ID=66928851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910133819.8A Active CN109889731B (en) 2019-02-22 2019-02-22 Shooting parameter determination method and device and storage medium

Country Status (1)

Country Link
CN (1) CN109889731B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021145682A1 (en) 2020-01-13 2021-07-22 Samsung Electronics Co., Ltd. Method of fast estimation of scene brightness and optimal camera exposure
CN114390211B (en) * 2020-10-20 2024-03-22 北京小米移动软件有限公司 Exposure convergence method, device, electronic equipment and storage medium
CN117425080B (en) * 2023-12-18 2024-05-28 荣耀终端有限公司 Photographing method and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408888A (en) * 2007-10-09 2009-04-15 奥林巴斯映像株式会社 Image processing device, retrieving device and camera
CN102003954A (en) * 2010-09-25 2011-04-06 武汉理工大学 Automatic-configuring system for digital photogrammetric optical parameters

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6717376B2 (en) * 1997-08-26 2004-04-06 Color Kinetics, Incorporated Automotive information systems
CN105635595B (en) * 2015-05-29 2019-11-08 宇龙计算机通信科技(深圳)有限公司 The control method of flash lamp, the control device of flash lamp and mobile terminal
CN107277388A (en) * 2017-07-27 2017-10-20 青岛海信移动通信技术股份有限公司 Mobile terminal and its light compensation method
CN108063900B (en) * 2017-12-12 2020-04-07 青岛海信移动通信技术股份有限公司 Method and device for regulating and controlling light supplementing lamp and storage medium
CN108449548A (en) * 2018-03-16 2018-08-24 广东小天才科技有限公司 Shooting method, shooting device, shooting equipment and computer-readable storage medium
CN108805919A (en) * 2018-05-23 2018-11-13 Oppo广东移动通信有限公司 Light efficiency processing method, device, terminal and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408888A (en) * 2007-10-09 2009-04-15 奥林巴斯映像株式会社 Image processing device, retrieving device and camera
CN102003954A (en) * 2010-09-25 2011-04-06 武汉理工大学 Automatic-configuring system for digital photogrammetric optical parameters

Also Published As

Publication number Publication date
CN109889731A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109889731B (en) Shooting parameter determination method and device and storage medium
CN107071272B (en) Method and device for controlling brightness of camera fill-in light and terminal
CN106060249B (en) Photographing anti-shake method and mobile terminal
CN107155067B (en) Camera control method and device, terminal and storage medium
CN106454077B (en) Shooting method, shooting device and terminal
US7433589B2 (en) Image capturing apparatus and image capturing method
US8934050B2 (en) User interface and method for exposure adjustment in an image capturing device
CN102082902B (en) Image pickup apparatus and control method thereof
CN109040576A (en) The method and system of camera control and image procossing with the window based on multiframe counted for image data
CN111064898B (en) Image shooting method and device, equipment and storage medium
CN110809146A (en) Image contrast adjusting method and device, terminal equipment and storage medium
US20210168273A1 (en) Control Method and Electronic Device
CN111277758B (en) Photographing method, terminal and computer-readable storage medium
CN111050078A (en) Photographing method, mobile terminal and computer storage medium
CN105898152A (en) Method and system for restoring ambient light luminance on image
US8212891B2 (en) Apparatus, methods and computer readable storage mediums
CN111541937A (en) Image quality adjusting method, television device and computer storage medium
CN113840095B (en) Light supplement lamp control method and related device
CN113778471B (en) Camera module burning method, device and readable storage medium
CN113011328B (en) Image processing method, device, electronic equipment and storage medium
CN108174088A (en) A kind of brightness adjusting method, device, terminal and computer readable storage medium
WO2023093101A1 (en) Mode switching method for terminal device, and device and storage medium
JP4719371B2 (en) Imaging apparatus and control method thereof
US11343438B1 (en) Instant auto exposure control with multiple cameras
US11622078B2 (en) Method and apparatus for image formation using preview images

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method, device and storage medium for determining shooting parameters

Effective date of registration: 20230227

Granted publication date: 20210305

Pledgee: Tongxiang Yunbei Investment Construction Co.,Ltd.

Pledgor: SENGLED Co.,Ltd.

Registration number: Y2023980033490

PE01 Entry into force of the registration of the contract for pledge of patent right