CN109889731A - The determination method, apparatus and storage medium of acquisition parameters - Google Patents

The determination method, apparatus and storage medium of acquisition parameters Download PDF

Info

Publication number
CN109889731A
CN109889731A CN201910133819.8A CN201910133819A CN109889731A CN 109889731 A CN109889731 A CN 109889731A CN 201910133819 A CN201910133819 A CN 201910133819A CN 109889731 A CN109889731 A CN 109889731A
Authority
CN
China
Prior art keywords
state
parameter set
optical accessory
isp parameter
terminal device
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.)
Granted
Application number
CN201910133819.8A
Other languages
Chinese (zh)
Other versions
CN109889731B (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.)
Shengdi Wisdom Technology Co Ltd
Original Assignee
Shengdi Wisdom Technology 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 Shengdi Wisdom Technology Co Ltd filed Critical Shengdi Wisdom Technology 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

Abstract

The present invention provides a kind of determination method of acquisition parameters, device and storage medium, this method comprises: according to the environmental data of terminal device local environment, judge whether at least one optical accessory of terminal device needs to switch to dbjective state, if, obtain the dbjective state of at least one optical accessory, at least one of the current exposure amount of terminal device and current time, and according to the dbjective state of at least one optical accessory, at least one of current exposure amount and current time, inquire the image signal process ISP parameter set data library obtained in advance, obtain the target ISP parameter set of terminal device, when at least one optical accessory is switched to dbjective state, according to target ISP parameter set, determine the acquisition parameters of terminal device.Corresponding acquisition parameters are obtained according to the state of optical accessory, causes image overexposure or under-exposure phenomenon occur so as to avoid the state change due to optical accessory, improves the quality of video image.

Description

The determination method, apparatus and storage medium of acquisition parameters
Technical field
The present invention relates to intelligent terminal technical field more particularly to the determination method, apparatus and storage of a kind of acquisition parameters Medium.
Background technique
Currently, along with the raising of expanding economy and living standards of the people, daily life of the video camera in user In play an increasingly important role, in some cases, user needs to obtain the image of high quality.Video camera product Comprising optical accessories such as infrared light compensating lamp, visible light light compensating lamp, headlamp or switching light filters, when these attachmentes are opened When closing movement, camera video picture moment overexposure or under-exposure will cause.
In the prior art, when moment overexposure or under-exposure occurs in image, the image processor of video camera can be by Image signal process (Image Signal Processor, ISP) parameter set, ISP parameter set are gradually adjusted according to the mode of stepping Including white balance, saturation degree, noise reduction parameters etc., so that video image is gradually recovered normally.
However, aforesaid way is by the way of step by step modulating, gradually approaching makes image restore normal ISP parameter set, During this step by step modulating, video image is still undesirable.
Summary of the invention
To solve problems of the prior art, the present invention provides a kind of determination method, apparatus of acquisition parameters and deposits Storage media improves the quality of shooting image with the acquisition parameters to adjustment terminal.
In a first aspect, the embodiment of the present invention provides a kind of determination method of acquisition parameters, comprising:
According to the environmental data of terminal device local environment, judge the terminal device at least one optical accessory whether Need to switch to dbjective state, the dbjective state includes open state or closed state;
If so, obtain the dbjective state of at least one optical accessory, the current exposure amount of the terminal device and At least one of current time;
According to the dbjective state of at least one optical accessory, the current exposure amount and in the current time At least one, inquires the image signal process ISP parameter set data library obtained in advance, obtains the target ISP of the terminal device Parameter set, wherein ISP parameter set data library is the light exposure according to the terminal device under multiple and different historical junctures The set of the multiple ISP parameter sets determined with the state of at least one optical accessory;
When at least one described optical accessory is switched to dbjective state, according to the target ISP parameter set, the end is determined The acquisition parameters of end equipment.
It is the dbjective state of at least one optical accessory according to, described current in a kind of concrete implementation mode At least one of light exposure and the current time inquire the ISP parameter set data library obtained in advance, obtain the terminal The target ISP parameter set of equipment, comprising:
The current state of at least one optical accessory is obtained, the current state includes open state or closing shape State;
According to the dbjective state of at least one optical accessory, the current exposure amount, the current time, Yi Jisuo At least one of the current state of at least one optical accessory is stated, the ISP parameter set data library obtained in advance is inquired, obtains institute State target ISP parameter set.
It is the dbjective state of at least one optical accessory according to, described current in a kind of concrete implementation mode At least one of light exposure, the current time and current state of at least one optical accessory, inquiry obtain in advance The ISP parameter set data library taken, obtains the target ISP parameter set, comprising:
According to the current state of the current exposure amount, the current time and at least one optical accessory, look into The ISP parameter set data library obtained in advance is ask, initial ISP parameter set is obtained;
According to the dbjective state of at least one optical accessory, target ISP ginseng is determined in the initial ISP parameter set Manifold.
In a kind of concrete implementation mode, the method also includes:
The state of the terminal device light exposure under multiple and different historical junctures and at least one optical accessory is obtained, The state of the optical accessory includes the current state and dbjective state of the optical accessory;
According to the state of light exposure and at least one optical accessory under each historical juncture, when determining each history The ISP parameter set inscribed;
According to the ISP parameter set under each historical juncture, ISP parameter set data library is obtained.
In a kind of concrete implementation mode, according to the ISP parameter set under each historical juncture, the ISP ginseng is obtained Manifold database, comprising:
The state of each historical juncture, at least one optical accessory under each historical juncture are established, and The mapping relations of light exposure under each historical juncture and the ISP parameter set under each historical juncture, described in acquisition ISP parameter set data library.
In a kind of concrete implementation mode, the ISP parameter set includes auto exposure parameter, yield value, noise reduction parameters.
In a kind of concrete implementation mode, the terminal device is video camera.
Second aspect, the embodiment of the present invention provide a kind of determining device of acquisition parameters, comprising:
Judgment module judges at least the one of the terminal device for the environmental data according to terminal device local environment Whether a optical accessory needs to switch to dbjective state, and the dbjective state includes open state or closed state;
Module is obtained, if at least one optical accessory for the terminal device needs to switch to dbjective state, is obtained The dbjective state of at least one optical accessory, the current exposure amount of the terminal device and in current time at least one It is a;
Enquiry module, for dbjective state, the current exposure amount and the institute according at least one optical accessory At least one of current time is stated, the image signal process ISP parameter set data library obtained in advance is inquired, obtains the terminal The target ISP parameter set of equipment, wherein ISP parameter set data library is according to the end under multiple and different historical junctures The set for multiple ISP parameter sets that the light exposure of end equipment and the dbjective state of at least one optical accessory determine;
Determining module, when the state at least one optical accessory is switched to dbjective state, according to the target ISP parameter set determines the acquisition parameters of the terminal device.
In a kind of concrete implementation mode, the acquisition module includes:
First acquisition submodule, for obtaining the current state of at least one optical accessory, the current state packet Include open state or closed state;
Submodule is inquired, for according to the dbjective state of at least one optical accessory, the current exposure amount, described At least one of current time and the current state of at least one optical accessory inquire the ISP parameter obtained in advance Collect database, obtains the target ISP parameter set.
In a kind of concrete implementation mode, the acquisition module includes:
Second acquisition submodule, for according to the current exposure amount, the current time and at least one described light The current state of attachment is learned, the ISP parameter set data library obtained in advance is inquired, obtains initial ISP parameter set;
First determines submodule, for the dbjective state according at least one optical accessory, joins in the initial ISP Target ISP parameter set is determined in manifold.
In a kind of concrete implementation mode, the acquisition module includes:
Third acquisition submodule, for obtaining light exposure of the terminal device under multiple and different historical junctures and at least The state of one optical accessory, the state of the optical accessory include the current state and dbjective state of the optical accessory;
Second determines submodule, for the shape according to light exposure and at least one optical accessory under each historical juncture State determines the ISP parameter set under each historical juncture;
Third acquisition submodule is also used to obtain the ISP ginseng according to the ISP parameter set under each historical juncture Manifold database.
In a kind of concrete implementation mode, the acquisition module includes:
4th acquisition submodule, at least one for establishing under each historical juncture, each historical juncture The state of optical accessory and the light exposure under each historical juncture and the ISP parameter set under each historical juncture Mapping relations, obtain ISP parameter set data library.
In a kind of concrete implementation mode, the ISP parameter set includes auto exposure parameter, yield value, noise reduction parameters.
In a kind of concrete implementation mode, the terminal device is video camera.
The third aspect, the embodiment of the present invention provide a kind of terminal device, comprising:
Processor;
Memory;And
Computer program;
Wherein, the computer program is stored in the memory, and is configured as being executed by the processor, The computer program includes the instruction for executing method as described in relation to the first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Matter is stored with computer program, and the computer program makes terminal device execute method described in first aspect.
The determination method, apparatus and storage medium of acquisition parameters provided by the invention, this method comprises: according to terminal device The environmental data of local environment, judges whether at least one optical accessory of terminal device needs to switch to dbjective state, target State includes open state or closed state, if so, obtain the dbjective state of at least one optical accessory, terminal device it is current At least one of light exposure and current time, according to the dbjective state of at least one optical accessory, current exposure amount and At least one of current time inquires the image signal process ISP parameter set data library obtained in advance, obtains terminal device Target ISP parameter set, wherein ISP parameter set data library is the light exposure according to the terminal device under multiple and different historical junctures The set of the multiple ISP parameter sets determined with the state of at least one optical accessory, at least one optical accessory are switched to target When state, according to target ISP parameter set, the acquisition parameters of terminal device are determined.The acquisition parameters provided through the invention are really Determine method, can be realized the acquisition parameters of the status adjustment terminal device according to optical accessory, to avoid due to optical accessory State change cause video image overexposure or under-exposure phenomenon occur, improve the quality of video image.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is the flow diagram one of the determination method of acquisition parameters provided in an embodiment of the present invention;
Fig. 2 is the flow diagram two of the determination method of acquisition parameters provided in an embodiment of the present invention;
Fig. 3 is the flow diagram three of the determination method of acquisition parameters provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram one of the determining device of acquisition parameters provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram two of the determining device of acquisition parameters provided in an embodiment of the present invention;
Fig. 6 is the hardware structural diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The determination method of acquisition parameters provided in an embodiment of the present invention can be applied to using terminal equipment and carry out video bat Take the photograph or the application scenarios of image taking in.Video camera product include infrared light compensating lamp, visible light light compensating lamp, headlamp or The optical accessories such as person's switching light filter will cause camera video picture moment mistake when on-off action occurs for these attachmentes Exposure is under-exposure, specifically, when optical accessory unlatching, will cause image moment overexposure, when optical accessory closing, can make It is under-exposure at image moment.
For this problem, the image processor of video camera can gradually adjust in the way of stepping in the prior art Image signal process parameter set, until video image is gradually recovered normally.However, in aforesaid way, using the side of step by step modulating Formula, gradually approaching makes image restore normal ISP parameter set, and during this step by step modulating, video image is still to pay no attention to Think.
The embodiment of the present invention considers the above problem, proposes a kind of determination method of acquisition parameters, terminal is set in this method The standby environmental data according to terminal device local environment, judges whether at least one optical accessory of terminal device needs to switch to Dbjective state, if so, obtaining the dbjective state of at least one optical accessory, the current exposure amount of terminal device and current time At least one of, and according to the dbjective state of at least one optical accessory, current exposure amount and in current time at least One, the image signal process ISP parameter set data library obtained in advance is inquired, the target ISP parameter set of terminal device, root are obtained According to target ISP parameter set, the acquisition parameters of terminal device are determined.It realizes according to the status adjustment terminal device of optical accessory Acquisition parameters cause video image overexposure or under-exposure phenomenon occur so as to avoid the state change due to optical accessory, Improve the quality of video image.
Technical solution of the present invention is described in detail with specific embodiment below.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Fig. 1 is the flow diagram one of the determination method of acquisition parameters provided in an embodiment of the present invention.The embodiment of the present invention Provide a kind of determination method of acquisition parameters, this method can be held by the device for arbitrarily executing the determination method of acquisition parameters Row, the device can pass through software and or hardware realization.In the present embodiment, which be can integrate in terminal device, terminal Equipment can be mobile phone, computer, video camera etc. with shooting function, and this programme is without limitation.As shown in Figure 1, The method of acquisition parameters provided in an embodiment of the present invention includes the following steps:
Step 101, according to the environmental data of terminal device local environment, judge at least one optical accessory of terminal device Whether need to switch to dbjective state.
Terminal device has shooting function, can be set optical accessory thereon, and optical accessory includes infrared light compensating lamp, can Light-exposed light compensating lamp, headlamp, changeable filtering mating plate etc..Optical accessory is used to provide when shooting when lacking light condition Light is assisted, reasonable image is obtained with shooting.
The dbjective state of optical accessory includes open state or closed state.
In one possible implementation, the environmental data of terminal device local environment includes terminal device local environment Light intensity, if the light intensity of terminal device local environment is lower than default light intensity, and the illumination of present terminal equipment Lamp is not switched on, then headlamp can be switched to open state by judgement, alternatively, the infrared light compensating lamp of present terminal equipment is not beaten It opens, in order to shoot to obtain more reasonable image, then infrared light compensating lamp can be switched to open state by judgement, specifically need to open Which kind of optical accessory, can according to the actual situation depending on, quantity of this programme to the optical accessory for needing to switch to dbjective state With no restrictions with type.
In alternatively possible implementation, if the headlamp of present terminal equipment has been opened, and locating for terminal device The light intensity of environment is greater than default light intensity, then headlamp can be switched and is in off state by judgement, is set with reducing terminal Standby power consumption.
Step 102, if so, obtain the dbjective state of at least one optical accessory, the current exposure amount of terminal device and At least one of current time.
It should be noted that the shooting function of terminal device will receive the shadow of the natural optical environment of weather (fine day or cloudy day) It rings, but since the terminal device as video camera is inconvenient to obtain current weather condition, with terminal device Current automatic exposure amount carrys out the current weather condition of indirect measure, specifically, since the automatic exposure amount of terminal device will receive The influence of current weather, when using terminal equipment is shot, terminal device itself can be according to current weather conditions, Lai Shiying Adjust automatic exposure amount, therefore weather condition that can be current come indirect measure using the current exposure amount of terminal device to property.
Optionally, at the time of current time is in one day, including the morning, noon, evening.
Specifically, if judging, at least one optical accessory of terminal device needs to switch to dbjective state, obtain to At least one of dbjective state, the current exposure amount of terminal device and the current time of a few optical accessory.
Step 103, according to the dbjective state of at least one optical accessory, current exposure amount and in current time at least One, the image signal process ISP parameter set data library obtained in advance is inquired, the target ISP parameter set of terminal device is obtained.
ISP parameter set data library is the light exposure and at least one light according to the terminal device under multiple and different historical junctures The set for multiple ISP parameter sets that the state of attachment determines.
Optionally, ISP parameter set includes auto exposure parameter, yield value, noise reduction parameters, and when being shot, setting is closed The ISP parameter set of reason can obtain reasonable normal image.
Optionally, in ISP parameter set data library, the moment, the light exposure of terminal device, at least one optical accessory shape At least one of state can be one-to-one mapping relations with ISP parameter set, which can be the shape of table Formula or textual form etc., this programme is without limitation.
It should be noted that will cause figure moment overexposure or under-exposure, in existing skill since optical accessory is in opening and closing In art, it is also to need to be adjusted in a short period of time that ISP parameter set is adjusted by the way of stepping, therefore, will lead to tune Whole is ineffective, and picture quality is bad, and multiple ISP parameter sets in the ISP parameter set data library in this programme be through The Dynamic step adjustment for having crossed necessary time just obtains, and can obtain more accurate ISP parameter set, ensure that the figure of output Image quality amount is higher.
Next, according to the dbjective state of at least one optical accessory, current exposure amount and in current time at least One, the image signal process ISP parameter set data library obtained in advance is inquired, the target-like at least one optical accessory is obtained At least one of state, current exposure amount and current time consistent ISP parameter set, which is then terminal device Target ISP parameter set.
When step 104, at least one optical accessory are switched to dbjective state, according to target ISP parameter set, the end is determined The acquisition parameters of end equipment.
After getting the target ISP parameter set of terminal device, when the state of optical accessory switches to dbjective state, then will Acquisition parameters of the target ISP parameter set as terminal device.Enable ISP parameter set with the variation of the state of optical accessory And adaptively adjust, cause image overexposure or under-exposure existing occur so as to avoid the state change due to optical accessory As improving the quality of video image.
The determination method of acquisition parameters provided in this embodiment, by the environmental data according to terminal device local environment, Judge whether at least one optical accessory of terminal device needs to switch to dbjective state, dbjective state includes open state or pass Closed state, if so, obtaining the dbjective state of at least one optical accessory, the current exposure amount of terminal device and in current time At least one, according at least one of the dbjective state of at least one optical accessory, current exposure amount and current time, The image signal process ISP parameter set data library obtained in advance is inquired, the target ISP parameter set of terminal device is obtained, wherein ISP parameter set data library is the light exposure and at least one optical accessory according to the terminal device under multiple and different historical junctures The set for multiple ISP parameter sets that state determines when at least one optical accessory is switched to dbjective state, is joined according to target ISP Manifold determines the acquisition parameters of terminal device.The determination method of the acquisition parameters provided through the invention, can be realized according to light The acquisition parameters for learning the status adjustment terminal device of attachment, so that the state change due to optical accessory be avoided to cause video image There is overexposure or under-exposure phenomenon, improves the quality of video image.
Fig. 2 is the flow diagram two of the determination method of acquisition parameters provided in an embodiment of the present invention, and the present embodiment is upper On the basis of stating Fig. 1 embodiment, the specific implementation process of step 103 is described in detail, as shown in Fig. 2, this method packet It includes:
Step 201, the current state for obtaining at least one optical accessory.
The current state of optical accessory includes open state or closed state.
Step 202, the dbjective state according at least one optical accessory, current exposure amount current time, and at least one At least one of the current state of a optical accessory inquires the ISP parameter set data library obtained in advance, obtains target ISP ginseng Manifold.
Terminal device can obtain the current state of at least one optical accessory, and according to the mesh of at least one optical accessory At least one of mark state, current exposure amount current time and current state of at least one optical accessory, inquiry are preparatory The ISP parameter set data library of acquisition obtains target ISP parameter set.
Optionally, in ISP parameter set data library, moment, the light exposure of terminal device, the target-like of different optical accessories At least one of state, current state of different optical accessories can be one-to-one mapping relations with ISP parameter set, this is reflected Firing table relationship can be the form of table or textual form etc., and this programme is without limitation.
In one possible implementation, terminal device can be inquired twice obtains target ISP parameter set, first According to the current state of current exposure amount, current time and at least one optical accessory, the ISP parameter obtained in advance is inquired Collect database.Specifically, the difference of current exposure amount and the light exposure in ISP parameter set data library is obtained in the first preset range Difference at the time of in interior, current time and ISP parameter set data library is in the second preset range, at least one optical accessory The identical ISP parameter set of state of the optical accessory in current state and ISP parameter set data library, the ISP parameter set are just Beginning ISP parameter set.First preset range and the second preset range can be chosen according to experiment or experience, and this programme does not do this Limitation.
Next, determining target ISP ginseng in initial ISP parameter set according to the dbjective state of at least one optical accessory Manifold.Specifically, it using the dbjective state of at least one optical accessory as search criterion, is inquired in initial ISP parameter set, Obtain target ISP parameter set.
This programme is specifically described using a specific example below.
Assuming that the ISP parameter set of a stable state can indicate are as follows:
Pisp=F (T, W, La,Lb...) and functional expression (1)
Wherein, Pisp indicates the ISP parameter set under certain stable state;
At the time of T was indicated in one day;
W indicates current weather;
LaIndicate the state (including current state and dbjective state) of optical accessory a;
LbIndicate the state (including current state and dbjective state) of optical accessory b.
Since the terminal device as video camera is inconvenient to obtain current weather condition, terminal device is used Current automatic exposure amount carry out the current weather condition of indirect measure, then above-mentioned functional expression can indicate are as follows:
Pisp=F (T, A, La,Lb...) functional expression (2)
The light exposure of A expression video camera.
To put it more simply, assume that an optical accessory a is only arranged on terminal device, such as: optical filter, then functional expression (2) can To indicate are as follows:
Pisp=F (T, A, La) functional expression (3)
It is possible thereby to determine, as T, A, LaOne timing of value, Pisp parameter set are exactly determining.Assuming that in these last few days, often When its T, with LaThe optical accessory state of the video camera of expression is identical, close with the weather conditions that A is replaced, then corresponding video ISP parameter set also should be close or identical.
Due to having recorded the light exposure of the terminal device under multiple and different historical junctures and multiple in ISP parameter set data library The set for multiple ISP parameter sets that the dbjective state of optical accessory determines passes through then when present optical accessory state change ISP parameter set data library is searched, T value is close, A value is close, L to matchaState value is identical, if the difference of T on the same day can be found Value is in the second preset range, and the difference of A is in the first preset range, LaEqual to the ISP parameter set under the conditions of dbjective state Pisp, ISP parameter set Pisp are then target ISP parameter set.
The determination method of acquisition parameters provided in this embodiment, by obtaining the current state of at least one optical accessory, And working as according to the dbjective state of at least one optical accessory, current exposure amount current time and at least one optical accessory At least one of preceding state inquires the ISP parameter set data library obtained in advance, obtains target ISP parameter set.The present embodiment obtains The target ISP parameter set taken avoids the state change due to optical accessory from causing to be obtained according to the state of optical accessory There is overexposure or under-exposure phenomenon in video image, improves the quality of video image.
Fig. 3 is the flow diagram three of the determination method of acquisition parameters provided in an embodiment of the present invention, and the present embodiment is upper On the basis of stating Fig. 1, Fig. 2 embodiment, this method further include:
Step 301 obtains light exposure and at least one optical accessory of the terminal device under multiple and different historical junctures State.
Step 302, according to the state of light exposure and at least one optical accessory under each historical juncture, determination is each gone through The ISP parameter set inscribed when history.
The state of optical accessory includes the current state and dbjective state of optical accessory, and current state and dbjective state are wrapped Open state or closed state are included, terminal device obtains it in the automatic exposure amount of multiple and different historical junctures and at least one The state of optical accessory, and according to the state of light exposure and at least one optical accessory under each historical juncture, it determines each ISP parameter set under historical juncture, the ISP parameter set are the historical juncture, to clap in the state of light exposure, optical accessory Take the photograph the optimal ISP parameter set of image.
ISP parameter set includes auto exposure parameter, yield value, noise reduction parameters.
Step 303, according to the ISP parameter set under each historical juncture, obtain ISP parameter set data library.
In one possible implementation, at least one optics under each historical juncture, each historical juncture is established The mapping relations of the state of attachment and the light exposure under each historical juncture and the ISP parameter set under each historical juncture, are obtained Take ISP parameter set data library.The mapping relations can be table form, can also be text form, this programme to this not It is limited.
Optionally, terminal device is video camera.
This programme it is critical that the ISP parameter set in ISP parameter set data library in this programme is all that have passed through necessity The step-by-step system of time, in actual photographed, optimal ISP parameter set is searched according to search criterion, no come what is determined The mode for needing to reuse stepping adjusts, and improves picture quality.
The determination method of acquisition parameters provided in this embodiment, by obtaining exposure of the terminal device under the different historical junctures The state of light quantity and at least one optical accessory, according to the shape of light exposure and at least one optical accessory under each historical juncture State determines the ISP parameter set under each historical juncture, according to the ISP parameter set under each historical juncture, obtains ISP parameter set Database.By obtaining ISP parameter set data library in advance, so that being searched according to search criterion optimal in actual photographed ISP parameter set, the mode for not needing to reuse stepping adjust ISP parameter set, improve picture quality.
Fig. 4 is the structural schematic diagram one of the determining device of acquisition parameters provided in an embodiment of the present invention, the acquisition parameters Determining device can be independent terminal device, or the device being integrated in terminal device, the device can be by soft The mode of part, hardware or software and hardware combining is realized.As shown in figure 4, the determining device 10 of the acquisition parameters includes:
Judgment module 11 judges the terminal device at least for the environmental data according to terminal device local environment Whether one optical accessory needs to switch to dbjective state, and the dbjective state includes open state or closed state;
Module 12 is obtained to obtain if at least one optical accessory for the terminal device needs to switch to dbjective state Take the dbjective state of at least one optical accessory, the current exposure amount of the terminal device and in current time at least One;
Enquiry module 13, for according to the dbjective state of at least one optical accessory, the current exposure amount and At least one of described current time inquires the image signal process ISP parameter set data library obtained in advance, obtains the end The target ISP parameter set of end equipment, wherein ISP parameter set data library is according under multiple and different historical junctures The set for multiple ISP parameter sets that the light exposure of terminal device and at least one optical accessory state determine;
Determining module 14 when being switched to dbjective state at least one described optical accessory, is joined according to the target ISP Manifold determines the acquisition parameters of the terminal device.
Terminal device provided in this embodiment can be used for executing the technical solution of above method embodiment, realization principle Similar with technical effect, details are not described herein again for the present embodiment.
Fig. 5 is the structural schematic diagram two of the determining device of acquisition parameters provided in an embodiment of the present invention.Implement in above-mentioned Fig. 4 On the basis of example, as shown in figure 5, acquisition module 11 includes:
First acquisition submodule 120, for obtaining the current state of at least one optical accessory, the current state Including open state or closed state;
Inquire submodule 121, for according to the dbjective state of at least one optical accessory, the current exposure amount, At least one of the current time and the current state of at least one optical accessory inquire the ISP obtained in advance Parameter set data library obtains the target ISP parameter set.
In a kind of concrete implementation mode, the acquisition module 12 includes:
Second acquisition submodule 122, for according to the current exposure amount, the current time and described at least one The current state of a optical accessory inquires the ISP parameter set data library obtained in advance, obtains initial ISP parameter set;
First determines submodule 123, for the dbjective state according at least one optical accessory, described initial Target ISP parameter set is determined in ISP parameter set.
In a kind of concrete implementation mode, the acquisition module 12 includes:
Third acquisition submodule 124, is used for
The state of the terminal device light exposure under multiple and different historical junctures and at least one optical accessory is obtained, The state of the optical accessory includes the current state and dbjective state of the optical accessory;
Second determines submodule 125,
According to the state of light exposure and at least one optical accessory under each historical juncture, when determining each history The ISP parameter set inscribed;
Third acquisition submodule 126 is also used to obtain the ISP according to the ISP parameter set under each historical juncture Parameter set data library.
In a kind of concrete implementation mode, the acquisition module 12 includes:
4th acquisition submodule 127, is used for
The state of each historical juncture, at least one optical accessory under each historical juncture are established, and The mapping relations of light exposure under each historical juncture and the ISP parameter set under each historical juncture, described in acquisition ISP parameter set data library.
In a kind of concrete implementation mode, the ISP parameter set includes auto exposure parameter, yield value, noise reduction parameters.
In a kind of concrete implementation mode, the terminal device is video camera.
Terminal device provided in this embodiment can be used for executing the technical solution of above method embodiment, realization principle Similar with technical effect, details are not described herein again for the present embodiment.
Fig. 6 is the hardware structural diagram of terminal device provided in an embodiment of the present invention, as shown in fig. 6, the present embodiment Terminal device 60 includes: processor 601 and memory 602;Wherein
Memory 602, for storing computer executed instructions;
Processor 601 is set for executing the computer executed instructions of memory storage with realizing to receive in above-described embodiment Standby performed each step.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory 602 can also be integrated with processor 601 either independent.
When memory 602 is independently arranged, which further includes bus 603, for connecting the memory 602 and processor 601.
The embodiment of the present invention also provides a kind of computer readable storage medium, stores in the computer readable storage medium There are computer executed instructions, when processor executes the computer executed instructions, realizes acquisition parameters as described above really Determine method.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or module It connects, can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned module at Unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this Shen Please each embodiment the method part steps.
It should be understood that above-mentioned processor can be central processing unit (English: Central Processing Unit, letter Claim: CPU), can also be other general processors, digital signal processor (English: Digital Signal Processor, Referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with hair The step of bright disclosed method, can be embodied directly in hardware processor and execute completion, or with hardware in processor and soft Part block combiner executes completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage can also be USB flash disk, mobile hard disk, read-only memory, disk or CD etc..
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer Portion's apparatus interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control Bus etc..For convenient for indicating, the bus in illustrations does not limit only a bus or a type of bus.
Above-mentioned storage medium can be by any kind of volatibility or non-volatile memory device or their combination It realizes, 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, Disk or CD.Storage medium can be any usable medium that general or specialized computer can access.
A kind of illustrative storage medium is coupled to processor, believes to enable a processor to read from the storage medium Breath, and information can be written to the storage medium.Certainly, storage medium is also possible to the component part of processor.It processor and deposits Storage media can be located at specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC in).Certainly, pocessor and storage media can also be used as discrete assembly and be present in electronic equipment or main control device.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of determination method of acquisition parameters characterized by comprising
According to the environmental data of terminal device local environment, judge whether at least one optical accessory of the terminal device needs Dbjective state is switched to, the dbjective state includes open state or closed state;
If so, obtaining the dbjective state of at least one optical accessory, the current exposure amount of the terminal device and current At least one of moment;
According to the dbjective state of at least one optical accessory, the current exposure amount and in the current time at least One, the image signal process ISP parameter set data library obtained in advance is inquired, the target ISP parameter of the terminal device is obtained Collection, wherein ISP parameter set data library is according to the light exposure of the terminal device under multiple and different historical junctures and extremely The set for multiple ISP parameter sets that the state of a few optical accessory determines;
When at least one described optical accessory is switched to dbjective state, according to the target ISP parameter set, determine that the terminal is set Standby acquisition parameters.
2. the method according to claim 1, wherein the target-like of at least one optical accessory according to At least one of state, the current exposure amount and described current time inquire the ISP parameter set data library obtained in advance, Obtain the target ISP parameter set of the terminal device, comprising:
The current state of at least one optical accessory is obtained, the current state includes open state or closed state;
According to the dbjective state of at least one optical accessory, the current exposure amount, the current time and it is described extremely At least one of the current state of a few optical accessory, inquires the ISP parameter set data library obtained in advance, obtains the mesh Mark ISP parameter set.
3. according to the method described in claim 2, it is characterized in that, the target-like of at least one optical accessory according to State, the current exposure amount, at least one in the current state of the current time and at least one optical accessory It is a, the ISP parameter set data library obtained in advance is inquired, the target ISP parameter set is obtained, comprising:
According to the current state of the current exposure amount, the current time and at least one optical accessory, inquiry is pre- The ISP parameter set data library first obtained, obtains initial ISP parameter set;
According to the dbjective state of at least one optical accessory, target ISP parameter is determined in the initial ISP parameter set Collection.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
The state of the terminal device light exposure under multiple and different historical junctures and at least one optical accessory is obtained, it is described The state of optical accessory includes the current state and dbjective state of the optical accessory;
According to the state of light exposure and at least one optical accessory under each historical juncture, determine under each historical juncture ISP parameter set;
According to the ISP parameter set under each historical juncture, ISP parameter set data library is obtained.
5. according to the method described in claim 4, it is characterized in that, the ISP parameter according under each historical juncture Collection, obtains ISP parameter set data library, comprising:
Establish each historical juncture, the state of at least one optical accessory under each historical juncture and described The mapping relations of the ISP parameter set under light exposure and each historical juncture under each historical juncture obtain the ISP ginseng Manifold database.
6. method according to claim 1-5, which is characterized in that the ISP parameter set includes automatic exposure ginseng Number, yield value, noise reduction parameters.
7. the method according to claim 1, wherein the terminal device is video camera.
8. a kind of determining device of acquisition parameters characterized by comprising
Judgment module judges at least one light of the terminal device for the environmental data according to terminal device local environment Learn whether attachment needs to switch to dbjective state, the dbjective state includes open state or closed state;
Module is obtained, if at least one optical accessory for the terminal device needs to switch to dbjective state, described in acquisition At least one of the dbjective state of at least one optical accessory, the current exposure amount of the terminal device and current time;
Enquiry module, for according to the dbjective state of at least one optical accessory, the current exposure amount and described working as At least one of preceding moment inquires the image signal process ISP parameter set data library obtained in advance, obtains the terminal device Target ISP parameter set, wherein ISP parameter set data library be set according to the terminal under multiple and different historical junctures The set for multiple ISP parameter sets that the state of standby light exposure and at least one optical accessory determines;
Determining module, when being switched to dbjective state at least one described optical accessory, according to the target ISP parameter set, Determine the acquisition parameters of the terminal device.
9. a kind of terminal device characterized by comprising
Processor;
Memory;And
Computer program;
Wherein, the computer program is stored in the memory, and is configured as being executed by the processor, described Computer program includes the instruction for executing the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program make terminal device perform claim require the described in any item methods of 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 true CN109889731A (en) 2019-06-14
CN109889731B 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)

Cited By (3)

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

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020158583A1 (en) * 1997-08-26 2002-10-31 Lys Ihor A. Automotive information systems
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
CN105635595A (en) * 2015-05-29 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Flash lamp control method, flash lamp control device and mobile terminal
CN107277388A (en) * 2017-07-27 2017-10-20 青岛海信移动通信技术股份有限公司 Mobile terminal and its light compensation method
CN108063900A (en) * 2017-12-12 2018-05-22 青岛海信移动通信技术股份有限公司 The regulation and control method, apparatus and storage medium of a kind of light compensating lamp
CN108449548A (en) * 2018-03-16 2018-08-24 广东小天才科技有限公司 A kind of image pickup method, device, capture apparatus 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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020158583A1 (en) * 1997-08-26 2002-10-31 Lys Ihor A. Automotive information systems
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
CN105635595A (en) * 2015-05-29 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Flash lamp control method, flash lamp control device and mobile terminal
CN107277388A (en) * 2017-07-27 2017-10-20 青岛海信移动通信技术股份有限公司 Mobile terminal and its light compensation method
CN108063900A (en) * 2017-12-12 2018-05-22 青岛海信移动通信技术股份有限公司 The regulation and control method, apparatus and storage medium of a kind of light compensating lamp
CN108449548A (en) * 2018-03-16 2018-08-24 广东小天才科技有限公司 A kind of image pickup method, device, capture apparatus 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

Cited By (4)

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

Also Published As

Publication number Publication date
CN109889731B (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN109889731A (en) The determination method, apparatus and storage medium of acquisition parameters
CN108933899B (en) Panorama shooting method, device, terminal and computer readable storage medium
WO2019237992A1 (en) Photographing method and device, terminal and computer readable storage medium
CN102084642B (en) Electron camera, image processing device, and image processing method
US8896625B2 (en) Method and system for fusing images
CN102082902B (en) Image pickup apparatus and control method thereof
US7433589B2 (en) Image capturing apparatus and image capturing method
CN103518223A (en) White balance optimization with high dynamic range images
CN108712609A (en) Focusing process method, apparatus, equipment and storage medium
CN109040576A (en) The method and system of camera control and image procossing with the window based on multiframe counted for image data
CN105872393A (en) High dynamic range image generation method and device
CN101237530A (en) Photographing apparatus, method for controlling photographing apparatus and computer-readable recording medium containing program
CN109951627A (en) Image processing method, device, storage medium and electronic equipment
CN108805198A (en) Image processing method, device, computer readable storage medium and electronic equipment
CN105657281B (en) Filming control method, fill-flash control device and fill-flash control system
CN111064898B (en) Image shooting method and device, equipment and storage medium
CN105721748A (en) Photographing control device and auxiliary flash control device
CN109121267A (en) Lamp light control method, equipment and storage medium
CN105635599B (en) Portable photographic device, fill-flash device and camera system
CN108600630A (en) Photographic method, device and terminal device
CN109819176A (en) A kind of image pickup method, system, device, electronic equipment and storage medium
CN105812670B (en) A kind of method and terminal taken pictures
CN108322648A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN105049703A (en) Shooting method for mobile communication terminal and mobile communication terminal
CN109587392A (en) The method of adjustment and device of monitoring device, storage medium, electronic device

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