A kind of photographic method, device, terminal and the storage medium of anti-splashette
Technical field
The present embodiments relate to image acquisition technology more particularly to a kind of photographic method of anti-splashette, device, terminal and
Storage medium.
Background technique
Currently, terminal device is when shooting artificial light source, since artificial light source is shone by AC power supply, and alternating current
Energy according to sine wave form cyclically-varying, and terminal device shooting image during exposed as unit of pixel column
Light, therefore in the case where the integral multiple that the time for exposure of terminal device is unsatisfactory for the alternating current energy period, terminal device can be made
The brightness of image is shot as the variation of number of lines of pixels generates cyclically-varying, so that shooting image is appeared to have band and is dodged on surface
It is bright, i.e. generation splashette phenomenon (also known as flicker phenomenon).
Since the electric frequency systems that the whole world occupies advantage there are two are 50Hz and 60Hz system, the prior art
The mode that terminal device is typically based on switching exposure meter supports the anti-splashette of artificial light source under 50Hz and 60Hz to shoot, and exposure meter
In for different frequency light source configuration parameter amount it is larger (usual every kind of frequency be corresponding with about 400 groups of configuration parameters), if therefore
Increase exposure meter in for other frequency light sources configuration parameter by way of, can not only consume a large amount of human cost and when
Between cost be used for the debugging of configuration parameter, while a large amount of configuration parameter will occupy bigger memory space, therefore feasibility is lower.
Summary of the invention
In view of this, the embodiment of the invention provides photographic method, device, terminal and the storage medium of a kind of anti-splashette,
Eliminate the splashette phenomenon during full frame shooting different frequency light source.
In a first aspect, the embodiment of the invention provides a kind of photographic methods of anti-splashette, comprising:
In detect preview screen there are when splashette phenomenon, trigger exposure parameter adjustment mode;
Under the exposure parameter adjustment modes, target frequency parameter is received;
Exposure time parameter is determined according to the target frequency parameter, and is shot according to the exposure time parameter.
Optionally, the reception target frequency parameter, comprising:
The numerical value for receiving user's input, using the numerical value as target frequency parameter;Alternatively,
The touch control operation for receiving user's input, determines target frequency parameter according to the touch control operation;Alternatively,
Receive the target frequency parameter that light source equipment is sent by customized communication interface.
It is optionally, described that exposure time parameter is determined according to the target frequency parameter, comprising:
The unit exposure time is determined according to the target frequency parameter, and the exposure is determined according to the unit exposure time
Time parameter.
Optionally, under the exposure parameter adjustment modes, further includes:
Predeterminated frequency parameter section is traversed, and judges whether the preview screen under current frequency parameter deposits in ergodic process
In splashette phenomenon;
If it is not, then being determined using current frequency parameter as target frequency parameter according to the target frequency parameter that traversal obtains
Exposure time parameter, and shot according to the exposure time parameter.
Optionally, after determining exposure time parameter, further includes:
Adjust exposure gain parameter, white balance parameter and/or Focusing parameter;Correspondingly,
It is shot according to the exposure time parameter, exposure gain parameter, white balance parameter and/or Focusing parameter.
Second aspect, the embodiment of the invention provides a kind of camera arrangements of anti-splashette, comprising:
Adjustment modes trigger module, in detecting preview screen there are when splashette phenomenon, trigger exposure parameter is adjusted
Mode;
Frequency parameter receiving module, for receiving target frequency parameter under the exposure parameter adjustment modes;
Time parameter determining module, for determining exposure time parameter according to the target frequency parameter, and according to described
Exposure time parameter is shot.
Optionally, the frequency parameter receiving module, is specifically used for:
The numerical value for receiving user's input, using the numerical value as target frequency parameter;Alternatively,
The touch control operation for receiving user's input, determines target frequency parameter according to the touch control operation;Alternatively,
Receive the target frequency parameter that light source equipment is sent by customized communication interface.
Optionally, the camera arrangement, further includes:
Frequency parameter spider module for traversing predeterminated frequency parameter section, and judges current frequency in ergodic process
Preview screen under parameter whether there is splashette phenomenon;If it is not, then using current frequency parameter as target frequency parameter;
Correspondingly, the time parameter determining module, when the target frequency parameter for being obtained according to traversal determines exposure
Between parameter, and shot according to the exposure time parameter.
The third aspect, the embodiment of the invention provides a kind of terminals, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the photographic method of the anti-splashette as described in any embodiment of the present invention.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence realizes the photographic method of the anti-splashette as described in any embodiment of the present invention when the program is executed by processor.
Photographic method, device, terminal and the storage medium of a kind of anti-splashette provided in an embodiment of the present invention, wherein anti-splashette
Photographic method include: in detect preview screen there are when splashette phenomenon, trigger exposure parameter adjustment mode;In exposure parameter
Under adjustment modes, target frequency parameter is received;Exposure time parameter is determined according to target frequency parameter, and is joined according to the time for exposure
Number is shot.By setting exposure parameter adjustment modes, it can be exposed the adjustment of time parameter in this mode, thus
Eliminate the splashette phenomenon during full frame shooting different frequency light source.
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 do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of photographic method flow chart for anti-splashette that the embodiment of the present invention one provides;
Fig. 2 is the photographic method flow chart of the anti-splashette of another kind provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of camera arrangement structural schematic diagram for anti-splashette that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for terminal that the embodiment of the present invention four provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.Following each embodiments
In, optional feature and example are provided simultaneously in each embodiment, each feature recorded in embodiment can be combined, and be formed
The embodiment of each number should not be considered merely as a technical solution by multiple optinal plans.
Embodiment one
Fig. 1 is a kind of photographic method flow chart for anti-splashette that the embodiment of the present invention one provides, and the present embodiment is applicable to
The case where anti-splashette is shot during full frame shooting different frequency light source, this method can be realized by terminal, can specifically pass through end
Software and/or hardware in end is implemented.
Photographic method referring to Fig. 1, the anti-splashette includes the following steps:
S110, in detect preview screen there are when splashette phenomenon, trigger exposure parameter adjustment mode.
Wherein, camera terminal for example can be camera, the mobile phone configured with camera, computer, plate electricity in the present embodiment
The terminals such as brain or automobile data recorder.Wherein, it is existing that splashette is likely to occur during the full frame shooting different frequency light source of camera terminal
As, wherein different frequency light source for example can be light emitting diode (LED) display screen (Light Emitting Diode Display,
LED display), LCD Panel (Liquid Crystal Display, LCD), organic light emitting display (Organic
Light Emitting Display, OLED) or projector picture etc..
Wherein it is possible to artificially judge that preview screen with the presence or absence of splashette phenomenon, can also detect automatically preview with camera terminal
Picture whether there is splashette phenomenon.Wherein, preview screen is artificially judged with the presence or absence of splashette phenomenon, if specifically can be human eye sight
It measures in preview screen and there is periodical light and shade variation, then it is assumed that there are splashette phenomenons for preview screen;Wherein, camera terminal is automatic
Detecting preview screen whether there is splashette phenomenon, specifically can be the frame picture obtained in preview screen, each in detection frame picture
Row pixel intensity, and judge whether there is periodical light and shade variation between each row pixel intensity, if then thinking that preview screen is deposited
In splashette phenomenon.
Wherein, detecting that preview screen, can be with the manual trigger exposure parameter adjustment mode of user there are when splashette, it can also
To be camera terminal automatic trigger exposure parameter adjustment modes.Wherein, the manual trigger exposure parameter adjustment mode of user, such as can
To be the physical button for the exposure parameter adjustment modes that user presses camera terminal, the exposure parameter adjustment mould for stirring camera terminal
The virtual push button or other virtual controls of the exposure parameter adjustment modes of the physics turntable or triggering camera terminal of formula.Wherein, it claps
Taking the photograph terminal automatic trigger exposure parameter adjustment modes specifically can be, when terminal detect preview screen there are when splashette phenomenon from
The dynamic correlation function for calling exposure parameter adjustment modes, so that camera terminal enters the operation interface of exposure parameter adjustment modes.
S120, under exposure parameter adjustment modes, receive target frequency parameter.
Wherein, target frequency parameter can be understood as the frequency parameter of the light source of full frame shooting.Mould is adjusted in exposure parameter
Under formula, camera terminal receives the frequency parameter of the light source of shooting, to determine that the exposure time parameter of camera terminal lays the foundation.
Optionally, target frequency parameter is received, comprising:
The numerical value for receiving user's input, using numerical value as target frequency parameter;Alternatively, receiving the touch-control behaviour of user's input
Make, target frequency parameter is determined according to touch control operation;Alternatively, receiving the target that light source equipment is sent by customized communication interface
Frequency parameter.
Wherein, user can directly input the numerical value of the frequency parameter of the light source of full frame shooting, using the numerical value as target
Frequency parameter.
Wherein, when user does not know the frequency parameter of the light source of full frame shooting, can be joined by being exposed to camera terminal
Virtual control under number adjustment modes carries out touch control operation, to determine target frequency parameter.Wherein, virtual control for example can be
Slider bar or slip ring;Wherein, touch control operation for example can be slide or click to virtual slider or slip ring
Operation.Wherein, user, with the presence or absence of splashette phenomenon, can also clap after carrying out touch control operation taking human as preview screen is judged
It takes the photograph terminal and detects preview screen automatically with the presence or absence of splashette phenomenon, and when judging that splashette phenomenon disappears, by current virtual control
Corresponding frequency parameter is as target frequency parameter.
Wherein, connection can also be established with light source equipment before the light source of full frame shooting.Wherein, light source equipment is received
The target frequency parameter sent by customized communication interface specifically may is that under exposure parameter adjustment modes, set to light source
Preparation send request message, to request the luminous frequency parameter (i.e. target frequency parameter) of light source equipment;It is connect by customized communication
Mouth receives the target frequency parameter that light source equipment is sent.
Target frequency parameter is received by the method for reseptance of plurality of target frequency parameter, to determine camera terminal
Exposure time parameter lays the foundation.
S130, exposure time parameter is determined according to target frequency parameter, and is shot according to exposure time parameter.
Wherein, the target frequency parameter corresponding period can be determined according to the physical characteristic between frequency and period, according to
The period may further determine that exposure time parameter.
Optionally, exposure time parameter is determined according to target frequency parameter, comprising: unit is determined according to target frequency parameter
Time for exposure determines exposure time parameter according to the unit exposure time.
Illustratively, when target frequency parameter is f, 1/f is the target component corresponding period, then the unit exposure time
Min_shutter can be Min_shutter=2*1/f, and further exposure time parameter T can be T=n*Min_
shutter.Wherein, n can take positive integer, and n value can be artificially arranged for user, or camera terminal is arranged automatically;
Wherein, n value is longer more the time of exposing completely, and the brightness of shooting picture is higher.
Optionally, after determining exposure time parameter, further includes:
Adjust exposure gain parameter, white balance parameter and/or Focusing parameter;Correspondingly, according to exposure time parameter, exposure
Gain parameter, white balance parameter and/or Focusing parameter are shot.
It wherein, can be by exposure gain parameter, white balance parameter and/or right during determining exposure time parameter
Burnt parameter immobilizes, to save system resource;Wherein, after exposure time parameter determines, exposure can further be adjusted
Gain parameter, white balance parameter and/or Focusing parameter, to adjust separately brightness, color and/or the clarity of preview screen, from
And improve shooting effect;Wherein it is possible to exposure gain parameter, white balance parameter and/or Focusing parameter are artificially adjusted, it can also be eventually
End is automatic to call internal 3A algorithm (auto-focusing AF, automatic exposure AE, automatic white balance AWB) to exposure gain parameter, Bai Ping
Weighing apparatus parameter and/or Focusing parameter are adjusted.
The photographic method of anti-splashette provided in this embodiment, in detecting preview screen there are when splashette phenomenon, triggering exposes
Optical parameter adjustment modes;Under exposure parameter adjustment modes, target frequency parameter is received;It is determined and is exposed according to target frequency parameter
Time parameter, and shot according to exposure time parameter.
The embodiment of the present invention can be exposed time parameter by setting exposure parameter adjustment modes in this mode
Adjustment, so that the splashette phenomenon during full frame shooting different frequency light source is eliminated, with existing by increasing in exposure meter
It is compared for the anti-splashette method of the configuration parameter of different frequency light source, saves the consumption of human cost and time cost, it can
Row is high, and practicability is good.
Embodiment two
The present embodiment on the basis of the above embodiments, provides the determination method of another exposure time parameter, specifically
It is: under exposure parameter adjustment modes, further includes: traversal predeterminated frequency parameter section, and current frequency is judged in ergodic process
Preview screen under rate parameter whether there is splashette phenomenon;If it is not, then using current frequency parameter as target frequency parameter, according to
It traverses obtained target frequency parameter and determines exposure time parameter, and shot according to exposure time parameter.The present embodiment with
Above-described embodiment inventive concept having the same, same as the previously described embodiments or corresponding term explain that the present embodiment is no longer superfluous
It states.
Fig. 2 is the photographic method flow chart for the anti-splashette of another kind that the embodiment of the present invention one provides.Referring to fig. 2, the anti-sudden strain of a muscle
The photographic method of screen includes the following steps:
S210, in detect preview screen there are when splashette phenomenon, trigger exposure parameter adjustment mode;
S220, under exposure parameter adjustment modes, traverse predeterminated frequency parameter section, and judge in ergodic process current
Preview screen under frequency parameter whether there is splashette phenomenon;
S230, if it is not, then using current frequency parameter as target frequency parameter;
S240, determine exposure time parameter according to the obtained target frequency parameter of traversal, and according to exposure time parameter into
Row shooting.
Wherein, camera terminal can also determine target frequency parameter by traversing predeterminated frequency parameter section.Wherein, it traverses
Predeterminated frequency parameter section specifically can be, and using the minimum value in predeterminated frequency parameter section as starting point, carry out frequency with preset step-length
Rate parameter traversals.Wherein, in ergodic process, if the splashette phenomenon of the preview screen under current frequency parameter disappears, stop
Process is only traversed, and can be using current frequency parameter as target frequency parameter;If preview screen under current frequency parameter
When splashette phenomenon does not disappear, then when judging whether the splashette phenomenon of the preview screen under next frequency parameter disappears, until traversal
Terminate to traverse to predeterminated frequency parameter section maximum value.Wherein, it if traversal terminates not determine target frequency parameter yet, can incite somebody to action
Predeterminated frequency parameter can also receive the numerical value of user's input, using numerical value as target frequency parameter as target frequency parameter;
Alternatively, receiving the touch control operation of user's input, target frequency parameter is determined according to touch control operation;Alternatively, it is logical to receive light source equipment
Cross the target frequency parameter that customized communication interface is sent.
The photographic method of anti-splashette provided in this embodiment, provides another time for exposure on that basi of the above embodiments
Determination method for parameter enriches the photographic method of anti-splashette.In addition, the present embodiment and above-described embodiment invention having the same
Design, the technical detail of detailed description not can be found in above-described embodiment in the present embodiment, and the present embodiment can reach with it is upper
State the identical beneficial effect of embodiment.
Embodiment three
Fig. 3 is a kind of camera arrangement structural schematic diagram for anti-splashette that the embodiment of the present invention three provides, and the present embodiment can fit
The case where being shot for anti-splashette during full frame shooting different frequency light source.Using anti-splashette provided in an embodiment of the present invention
The photographic method of anti-splashette disclosed in above-described embodiment may be implemented in camera arrangement.
Referring to Fig. 3, the camera arrangement of anti-splashette in the present embodiment, comprising:
Adjustment modes trigger module 310, in detect preview screen there are when splashette phenomenon, trigger exposure parameter tune
Integral pattern;
Frequency parameter receiving module 320, for receiving target frequency parameter under exposure parameter adjustment modes;
Time parameter determining module 330, for determining exposure time parameter according to target frequency parameter, and when according to exposure
Between parameter shot.
Optionally, frequency parameter receiving module 320, is specifically used for:
The numerical value for receiving user's input, using numerical value as target frequency parameter;Alternatively, receiving the touch-control behaviour of user's input
Make, target frequency parameter is determined according to touch control operation;Alternatively, receiving the target that light source equipment is sent by customized communication interface
Frequency parameter.
Optionally, time parameter determining module 330, comprising:
Parameter determination submodule, for determining the unit exposure time according to target frequency parameter, according to the unit exposure time
Determine exposure time parameter.
Optionally, camera arrangement, further includes:
Frequency parameter spider module for traversing predeterminated frequency parameter section, and judges current frequency in ergodic process
Preview screen under parameter whether there is splashette phenomenon;If it is not, then using current frequency parameter as target frequency parameter;
Correspondingly, time parameter determining module 330, the target frequency parameter for being obtained according to traversal determines the time for exposure
Parameter, and shot according to exposure time parameter.
Optionally, time parameter determining module 330, further includes:
Parameter adjusting submodule, for adjusting exposure gain parameter, white balance parameter and/or Focusing parameter;
Correspondingly, being shot according to exposure time parameter, exposure gain parameter, white balance parameter and/or Focusing parameter.
The photographic method of the camera arrangement of anti-splashette provided in this embodiment, the anti-splashette proposed with embodiment one belongs to together
One inventive concept, the technical detail of detailed description not can be found in embodiment one, and the present embodiment and implementation in the present embodiment
The beneficial effect having the same of example one.
Example IV
A kind of terminal is present embodiments provided, can be used for anti-splashette shooting during full frame shooting different frequency light source
Situation.Fig. 4 is a kind of structural schematic diagram for terminal that the embodiment of the present invention four provides.Referring to fig. 4, which includes:
One or more processors 410;
Memory 420, for storing one or more programs;
When one or more programs are executed by one or more processors 410, so that one or more processors 410 are realized
Such as the photographic method for the anti-splashette that embodiment one proposes.
In Fig. 4 by taking a processor 410 as an example;Processor 410 and memory 420 can be connected by bus or other modes
It connects, in Fig. 4 for being connected by bus.
Memory 420 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, such as the corresponding program instruction/module of the photographic method of the anti-splashette in the embodiment of the present invention.Processor 410 is logical
Cross the operation software program, instruction and the module that are stored in memory 420, thereby executing terminal various function application and
The photographic method of above-mentioned anti-splashette is realized in data processing.Wherein, following method mainly may be implemented: in detecting preview
Picture is there are when splashette phenomenon, trigger exposure parameter adjustment mode;Under exposure parameter adjustment modes, target frequency ginseng is received
Number;Exposure time parameter is determined according to target frequency parameter, and is shot according to exposure time parameter.
Memory 420 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 420 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 420 can be into one
Step includes the memory remotely located relative to processor 410, these remote memories can pass through network connection to terminal.On
The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
The photographic method for the anti-splashette that the terminal and embodiment one that the present embodiment proposes propose belongs to same inventive concept, not
The technical detail of detailed description can be found in embodiment one in the present embodiment, and the present embodiment and embodiment one are having the same
Beneficial effect.
Embodiment five
The present embodiment provides a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed
The photographic method of the anti-splashette proposed such as embodiment one is realized when device executes.Wherein, following method mainly may be implemented: in detection
To preview screen there are when splashette phenomenon, trigger exposure parameter adjustment mode;Under exposure parameter adjustment modes, target frequency is received
Rate parameter;Exposure time parameter is determined according to target frequency parameter, and is shot according to exposure time parameter.
The photographic method for the anti-splashette that the storage medium and embodiment one that the present embodiment proposes propose belongs to same invention structure
Think, the technical detail of detailed description not can be found in embodiment one in the present embodiment, and the present embodiment has with embodiment one
Identical beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
The method that standby (can be personal computer, server or the network equipment etc.) executes each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.