CN110022475A - A kind of photographic equipment calibration method, photographic equipment and computer readable storage medium - Google Patents
A kind of photographic equipment calibration method, photographic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110022475A CN110022475A CN201810022276.8A CN201810022276A CN110022475A CN 110022475 A CN110022475 A CN 110022475A CN 201810022276 A CN201810022276 A CN 201810022276A CN 110022475 A CN110022475 A CN 110022475A
- Authority
- CN
- China
- Prior art keywords
- flash
- color information
- light shooting
- white balance
- light
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 210000003205 muscle Anatomy 0.000 claims description 5
- 238000004519 manufacturing process Methods 0.000 abstract description 17
- 238000012360 testing method Methods 0.000 abstract description 10
- 230000008901 benefit Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000178 monomer Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/02—Diagnosis, testing or measuring for television systems or their details for colour television signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Color Television Image Signal Generators (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The invention proposes a kind of photographic equipment calibration methods, comprising: when control flash lamp carries out flash of light shooting, by carrying out flash of light shooting more than twice within the set duration, obtains the color information for the picture that each flash of light shooting obtains;According to the color information, the white balance parameter of flash of light shooting is calibrated.The invention also discloses a kind of photographic equipment and computer readable storage mediums, by implementing above scheme, it can be during photographic equipment carries out flash of light shooting, automatically the calibration for carrying out the white balance parameter of flash of light shooting effectively raises the efficiency and accuracy rate of the white balance parameter calibration of flash of light shooting;Avoid photographic equipment the production phase due to increase Test Engineer carry out flash of light shooting white balance parameter calibration, increased production cost.
Description
Technical field
The present invention relates to flash light techniques field more particularly to a kind of photographic equipment calibration methods, photographic equipment and calculating
Machine readable storage medium storing program for executing.
Background technique
Currently, photographic equipment is all equipped with flash lamp mostly, to carry out light filling when low light scene shooting.Since flash lamp consumes
Reasons, the flash time of shooting process such as electricity and service life are generally arranged very short, cause photographic equipment during flash of light cannot be complete
It is calculated at automatic exposure and automatic white balance, therefore a pre-flash is set before flash of light, counted according to the data of pre-flash
Calculate the automatic exposure value and automatic white balance value during flash of light.But since flash of light lamp color temperature has differences, flash lamp monomer is not
Together, flash effect all has differences;And flash of light lamp color temperature can have serious colour cast when differing greatly.
Existing flash lamp calibration program includes: before photographic equipment factory, by Test Engineer in specific environment
Control flash lamp carries out flash of light shooting, by comparing the photo that actual scene and flash of light shooting obtain, determines that photographic equipment carries out
The white balance deviation of flash of light shooting, thus to calibrate the white balance value that photographic equipment carries out flash of light shooting.But existing flash lamp
Calibration program has the following problems: needing to increase the testing engineering personnel of production link, to increase cost;Calibrate scene list
One, it cannot effect that definitely other scenes have had;Since flash lamp can be with using, colour temperature can be varied, photographic equipment into
The white balance value of row flash of light shooting can be more and more inaccurate.
Summary of the invention
The technical problem to be solved by the present invention is to provide photographic equipment calibration method, photographic equipment and computer-readable deposit
Storage media overcomes the defect that cannot be calibrated automatically to the white balance value of flash lamp in the prior art.
The technical solution adopted by the present invention is that a kind of photographic equipment calibration method, comprising:
When control flash lamp carries out flash of light shooting, by carrying out flash of light bat twice or more than twice within the set duration
It takes the photograph, obtains the color information for the picture that flash of light shooting obtains every time;
According to the color information, the white balance parameter of flash of light shooting is calibrated.
Optionally, described according to the color information, calibration white balance parameter is carried out to the white balance parameter of flash of light shooting,
Include:
It is compared by the color information of the picture obtained to flash of light shooting at least twice, obtains color information and compare
Value;
According to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated.
Optionally, described according to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated, is wrapped
It includes:
Judge whether the color information fiducial value is greater than the first given threshold;
In the case where the color information fiducial value is greater than the first given threshold, according to the color information fiducial value,
The white balance parameter of flash of light shooting is calibrated.
Optionally, described in the case where the color information fiducial value is greater than the first given threshold, according to the color
Information fiducial value calibrates the white balance parameter of flash of light shooting, comprising:
In the case where the color information fiducial value is greater than the first given threshold, judge that the color information fiducial value is
It is no to be greater than the second given threshold;
If the color information fiducial value is greater than the second given threshold, the white balance parameter to flash of light shooting is forbidden to carry out
Calibration;Otherwise according to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated;
Wherein, second given threshold is greater than first given threshold.
Optionally, the color information of the picture includes:
The color information of object is set in the picture in the color information of setting regions and/or the picture.
The present invention also provides a kind of photographic equipment, the photographic equipment includes processor, memory and flash lamp;
The processor is for executing the photographic equipment calibration procedure stored in memory, to perform the steps of
When the control flash lamp carries out flash of light shooting, by carrying out sudden strain of a muscle twice or more than twice within the set duration
Photo-beat is taken the photograph, and the color information for the picture that flash of light shooting obtains every time is obtained;
According to the color information, the white balance parameter of flash of light shooting is calibrated.
Optionally, described according to the color information, calibration white balance parameter is carried out to the white balance parameter of flash of light shooting,
Include:
It is compared by the color information of the picture obtained to flash of light shooting at least twice, obtains color information and compare
Value;
According to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated.
Optionally, described according to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated, is wrapped
It includes:
Judge whether the color information fiducial value is greater than the first given threshold;
In the case where the color information fiducial value is greater than the first given threshold, according to the color information fiducial value,
The white balance parameter of flash of light shooting is calibrated.
Optionally, described in the case where the color information fiducial value is greater than the first given threshold, according to the color
Information fiducial value calibrates the white balance parameter of flash of light shooting, comprising:
In the case where the color information fiducial value is greater than the first given threshold, judge that the color information fiducial value is
It is no to be greater than the second given threshold;
If the color information fiducial value is greater than the second given threshold, the white balance parameter to flash of light shooting is forbidden to carry out
Calibration;Otherwise according to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated;
Wherein, second given threshold is greater than first given threshold.
Optionally, the color information of the picture includes:
The color information of object is set in the picture in the color information of setting regions and/or the picture.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage have one or
The multiple programs of person, one or more of programs can be executed by one or more processor, be set with the photography for realizing above-mentioned
The step of standby calibration method.
By adopting the above technical scheme, the present invention at least has the advantage that
A kind of photographic equipment calibration method, photographic equipment and computer readable storage medium of the present invention, can take the photograph
During shadow equipment carries out flash of light shooting, the calibration of the white balance parameter of flash of light shooting is carried out automatically, effectively raises sudden strain of a muscle
The efficiency and accuracy rate for the white balance parameter calibration that photo-beat is taken the photograph;Photographic equipment is avoided in the production phase due to increasing testing engineering
The white balance parameter calibration of Shi Jinhang flash of light shooting, increased production cost.
Detailed description of the invention
Fig. 1 is photographic equipment calibration method flow chart of the present invention first to second embodiment;
Fig. 2 is the schematic diagram of second, third and the setting regions of the picture of the flash of light shooting of the 5th embodiment of the present invention;
Fig. 3 is the schematic diagram of second, third and the setting object of the picture of the flash of light shooting of the 5th embodiment of the present invention;
Fig. 4 is the photographic equipment composed structure schematic diagram of the 4th to the 5th embodiment of the invention.
Specific embodiment
Further to illustrate the present invention to reach the technical means and efficacy that predetermined purpose is taken, below in conjunction with attached drawing
And preferred embodiment, the present invention is described in detail as after.
First embodiment of the invention, a kind of photographic equipment calibration method, as shown in Figure 1, comprising the following specific steps
Step S101, when controlling flash lamp and carrying out flash of light shooting, by carry out within the set duration twice or twice with
On flash of light shooting, obtain the color information of picture that flash of light shooting obtains every time.
In some embodiments of the invention, it before first time flash of light shooting within the set duration, carries out primary or more
Secondary shooting of not glistening;According to the light information for the picture that the first time flash of light shooting in setting duration is got, and bat of not glistening
The light information for taking the photograph the picture got calculates pair of other flash of light shootings except the first time flash of light shooting in setting duration
Burnt parameter and exposure parameter;According to Focusing parameter and exposure parameter, carried out in duration in addition to first time flash of light shooting to setting
Other flash of light shootings.
In some embodiments of the invention, the quantity of flash lamp is not specifically limited.Flash lamp can be photography and set
The flash lamp of standby internal setting, is also possible to the flash lamp being arranged except photographic equipment.
Such as: step S101, comprising: when control flash lamp carry out flash of light shooting when, by setting duration 0.1s in into
Row flash of light shooting twice obtains the color information for the picture that flash of light shooting obtains every time;
Wherein, before the first time flash of light shooting in setting duration 0.1s, shooting of not glistening once is carried out;According to setting
The light information for the picture that first time flash of light shooting in duration 0.1s is got, and do not glisten and shoot the light of the picture got
Line information calculates Focusing parameter, exposure parameter and the white balance parameter of second of flash of light shooting in setting duration;According to right
Burnt parameter, exposure parameter and white balance parameter are shot to remove flash of light for the second time in setting duration.
Step S102, according to the color information for the picture that each flash of light shooting obtains, to the white balance parameter of flash of light shooting
It is calibrated.
By the white balance parameter for during photographic equipment carries out flash of light shooting every time, carrying out flash of light shooting automatically
Calibration effectively raises the efficiency and accuracy rate of the white balance parameter calibration of flash of light shooting.
Photographic equipment calibration method described in first embodiment of the invention, can photographic equipment carry out flash of light shooting mistake
Cheng Zhong carries out the calibration of the white balance parameter of flash of light shooting automatically, effectively raises the white balance parameter calibration of flash of light shooting
Efficiency and accuracy rate;Avoid photographic equipment the production phase due to increase Test Engineer carry out flash of light shooting white balance
Parametric calibration effectively reduces the production cost of photographic equipment.
Second embodiment of the invention, a kind of photographic equipment calibration method as shown in FIG. 1 to 3, including walk in detail below
It is rapid:
Step S101, when controlling flash lamp and carrying out flash of light shooting, by carry out within the set duration twice or twice with
On flash of light shooting, obtain the color information of picture that flash of light shooting obtains every time.
In some embodiments of the invention, it before first time flash of light shooting within the set duration, carries out primary or more
Secondary shooting of not glistening;According to the light information for the picture that the first time flash of light shooting in setting duration is got, and bat of not glistening
The light information for taking the photograph the picture got calculates pair of other flash of light shootings except the first time flash of light shooting in setting duration
Burnt parameter and exposure parameter;According to Focusing parameter and exposure parameter, carried out in duration in addition to first time flash of light shooting to setting
Other flash of light shootings.
In some embodiments of the invention, the quantity of flash lamp is not specifically limited.Flash lamp can be photography and set
The flash lamp of standby internal setting, is also possible to the flash lamp being arranged except photographic equipment.
Optionally, step S101, comprising:
The color information of picture includes: the color for setting object in picture in the color information of setting regions and/or picture
Information.
When control flash lamp carries out flash of light shooting, by carrying out flash of light bat twice or more than twice within the set duration
It takes the photograph, obtains the color letter for setting object in the color information of setting regions in the obtained picture of flash of light shooting every time and/or picture
Breath.
Such as: step S101, comprising: when control flash lamp carry out flash of light shooting when, by setting duration 0.1S in into
Row flash of light shooting twice obtains the color information (as shown in Figure 2) of setting regions A in the picture that flash of light shooting obtains every time.
For another example: step S101, comprising: when control flash lamp carry out flash of light shooting when, by setting duration 0.1S in into
Row flash of light shooting twice obtains the color information (as shown in Figure 3) that object B is set in the picture that flash of light shooting obtains every time.
Step S102, according to the color information for the picture that each flash of light shooting obtains, to the white balance parameter of flash of light shooting
It is calibrated.
Optionally, step S102, comprising:
It is compared by the color information of the picture obtained to flash of light shooting at least twice, obtains color information and compare
Value;
According to color information fiducial value, the white balance parameter of flash of light shooting is calibrated;
Wherein, according to color information fiducial value, the mode that the white balance parameter of flash of light shooting is calibrated, comprising:
Mode one, judges whether color information fiducial value is greater than the first given threshold;
If it is determined that color information fiducial value is greater than the first given threshold, then according to color information fiducial value, flash of light is shot
White balance parameter calibrated;Otherwise the white balance parameter of flash of light shooting is not calibrated.
Mode two, judges whether color information fiducial value is greater than the first given threshold;
If it is determined that color information fiducial value is greater than the first given threshold, then judge whether color information fiducial value is greater than second
Given threshold;Otherwise the white balance parameter of flash of light shooting is not calibrated.
If color information fiducial value is greater than the second given threshold, the white balance parameter to flash of light shooting is forbidden to carry out school
It is quasi-;Otherwise according to color information fiducial value, the white balance parameter of flash of light shooting is calibrated;
Wherein, the second given threshold is greater than the first given threshold.
According to the second given threshold judge set duration in picture in object whether quickly variation (such as to high speed move
Dynamic object carries out flash of light shooting), and/or whether light is unstable (such as to stage glazing in picture in setting duration
The fast-changing object of line carries out flash of light shooting).When whether the object in the picture in setting duration quickly changes, and/or set
When whether light unstable in picture in timing is long, according to color information fiducial value, to the white balance parameter of flash of light shooting into
Row calibration, the white balance parameter for obtaining flash of light shooting have serious deviation.If therefore color information fiducial value is greater than second and sets
Determine threshold value, then the white balance parameter to flash of light shooting is forbidden to calibrate.
By the white balance parameter for during photographic equipment carries out flash of light shooting every time, carrying out flash of light shooting automatically
Calibration effectively raises the efficiency and accuracy rate of the white balance parameter calibration of flash of light shooting.
Wherein, the color information of picture includes: to set object in the color information of setting regions and/or picture in picture
Color information.
Photographic equipment calibration method described in second embodiment of the invention, can photographic equipment carry out flash of light shooting mistake
Cheng Zhong carries out the calibration of the white balance parameter of flash of light shooting automatically, effectively raises the white balance parameter calibration of flash of light shooting
Efficiency and accuracy rate;Avoid photographic equipment the production phase due to increase Test Engineer carry out flash of light shooting white balance
Parametric calibration effectively reduces the production cost of photographic equipment.
Third embodiment of the invention, the present embodiment are on the basis of the above embodiments, with a kind of photographic equipment calibration side
For method, an application example of the invention is introduced in conjunction with 2~Fig. 3 of attached drawing.
Step S301 carries out shooting of not glistening once, shooting of not glistened when control flash lamp carries out flash of light shooting
Light information.
Wherein, the light information of shooting of not glistening includes but is not limited to: the scene brightness information for shooting of not glistening.
Step S302 carries out first time flash of light shooting after the first setting duration, obtains the light shot that glistens for the first time
Line information, and the color information for the picture shot that glistens for the first time.
Optionally, a length of 0.1s when the first setting.
Wherein, the light information of flash of light shooting for the first time includes but is not limited to: the scene brightness letter of flash of light shooting for the first time
Breath.
Step S303, after the second setting duration, according to the light information for shooting of not glistening, and flash of light shooting for the first time
Light information, carry out second flash of light shooting, obtain the color information of the picture of second of flash of light shooting.
Optionally, a length of 0.1s when the second setting.
According to the light information for shooting of not glistening, and the light information of flash of light shooting for the first time, it carries out second of flash of light and claps
The mode taken the photograph, comprising:
According to the scene brightness information for shooting of not glistening, and the scene brightness information of primary flash of light shooting, in conjunction in scene
Target calculate the Focusing parameter and exposure parameter of second flash of light shooting;According to the Focusing parameter and exposure of second of flash of light shooting
Optical parameter carries out second of flash of light shooting.
Step S304, according to the color information of the picture of flash of light shooting for the first time, and the picture shot that glistens for second
Color information calibrates the white balance parameter of flash of light shooting.
Wherein, the color information of picture includes: to set object in the color information of setting regions and/or picture in picture
Color information.
Optionally, step S304, comprising:
According in the color information of setting regions in the picture of first time flash of light shooting, and the picture of second of flash of light shooting
The color information of setting regions calibrates the white balance parameter of flash of light shooting.
Such as: as shown in Fig. 2, according to the color information of setting regions A in the picture of first time flash of light shooting, and second
The color information of setting regions A in the picture of flash of light shooting, calibrates the white balance parameter of flash of light shooting.
Be averaged R/G value and B/G value according to the pixel of setting regions A in the picture of first time flash of light shooting, second of flash of light
The average R/G value and B/G value of setting regions A in the picture of shooting calculates flash of light shooting for the first time and second of flash of light shooting
Color information R/G difference and B/G difference;
Wherein, R/G difference be for the first time flash of light shooting picture in setting regions A pixel be averaged R/G value with for the second time
The difference of the average R/G value of setting regions A in the picture of flash of light shooting;
The pixel that B/G difference is setting regions A in the picture of flash of light shooting for the first time be averaged B/G value and second flash of light bat
The difference of the average B/G value of setting regions A in the picture taken the photograph;
White balance parameter is R-gain (red gain) before calibrating, (blue increases by G-gain (green color gain) and B-gain
Benefit);White balance parameter is R-gain ', G-gain ' and B-gain ' after calibration
The picture of setting regions A in R-gain '=R-gain- (R-gain) × B/G difference/first time flash of light shooting picture
The average R/G value × r of element;
The picture of setting regions A in B-gain '=B-gain- (B-gain) × B/G difference/first time flash of light shooting picture
The average B/G value × r of element;
G-gain '=G-gain;
Wherein r is regulation coefficient;Optional r=0.8.
Optionally, step S304, comprising:
According to the color information for setting object in the picture of first time flash of light shooting, and in the picture of second of flash of light shooting
The color information for setting object calibrates the white balance parameter of flash of light shooting.
Such as: as shown in figure 3, extracting flash of light shooting for the first time according to preset Object identifying and Boundary Recognition algorithm
All identical reference objects in picture, and the picture of second of flash of light shooting, identify all reference objects, choose shooting placed in the middle
Object sets object B;
According to the color information for setting object B in the picture of first time flash of light shooting, and the picture of second of flash of light shooting
The color information of middle setting object B, calibrates the white balance parameter of flash of light shooting.
Be averaged R/G value and B/G value according to the pixel for setting object B in the picture of first time flash of light shooting, second of flash of light
The average R/G value and B/G value that object B is set in the picture of shooting calculate flash of light shooting for the first time and second of flash of light shooting
Color information R/G difference and B/G difference;
Wherein, R/G difference be for the first time flash of light shooting picture in set object B pixel be averaged R/G value with for the second time
The difference of the average R/G value of object B is set in the picture of flash of light shooting;
B/G difference be flash of light shooting for the first time picture in set the pixel of object B and be averaged B/G value and second flash of light bat
The difference of the average B/G value of object B is set in the picture taken the photograph;
White balance parameter is R-gain (red gain) before calibrating, (blue increases by G-gain (green color gain) and B-gain
Benefit);White balance parameter is R-gain ', G-gain ' and B-gain ' after calibration
The picture of object B is set in R-gain '=R-gain- (R-gain) × B/G difference/first time flash of light shooting picture
The average R/G value × r of element;
The picture of object B is set in B-gain '=B-gain- (B-gain) × B/G difference/first time flash of light shooting picture
The average B/G value × r of element;
G-gain '=G-gain;
Wherein r is regulation coefficient;Optional r=0.8.
Optionally, step S304, comprising:
According to the color information of the picture of flash of light shooting for the first time, and the color information for the picture shot that glistens for second,
Calculate the color difference of the picture for shooting of glistening twice;
Whether the glisten twice color difference of picture of shooting of judgement is greater than given threshold;
If the color difference of the picture for shooting of glistening twice be greater than given threshold, to flash of light shooting white balance parameter into
Row calibration;Otherwise the white balance parameter of flash of light shooting is not calibrated.
Wherein, optionally, given threshold 0.15.
Photographic equipment calibration method described in third embodiment of the invention, can photographic equipment carry out flash of light shooting mistake
Cheng Zhong carries out the calibration of the white balance parameter of flash of light shooting automatically, effectively raises the white balance parameter calibration of flash of light shooting
Efficiency and accuracy rate;Avoid photographic equipment the production phase due to increase Test Engineer carry out flash of light shooting white balance
Parametric calibration effectively reduces the production cost of photographic equipment.
Fourth embodiment of the invention, a kind of photographic equipment, as shown in figure 4, including consisting of part:
Processor 501, memory 502 and flash lamp 503.In some embodiments of the invention, processor 501, storage
Device 502 can be connected with flash lamp 503 by bus or other way.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit,
CPU), can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (English:
Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention
One or more integrated circuits.Wherein, memory 502 is used for the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can
To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory,
RAM);Memory 502 also may include nonvolatile memory (Non-Volatile Memory), such as read-only memory
(Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid
State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store, performs the following operations:
1) when control flash lamp 503 carries out flash of light shooting, by carrying out within the set duration twice or more than twice
Flash of light shooting obtains the color information for the picture that flash of light shooting obtains every time.
In some embodiments of the invention, it before first time flash of light shooting within the set duration, carries out primary or more
Secondary shooting of not glistening;According to the light information for the picture that the first time flash of light shooting in setting duration is got, and bat of not glistening
The light information for taking the photograph the picture got calculates pair of other flash of light shootings except the first time flash of light shooting in setting duration
Burnt parameter, exposure parameter and white balance parameter;According to Focusing parameter, exposure parameter and white balance parameter, in setting duration into
Row other flash of light shootings in addition to first time flash of light shooting.
In some embodiments of the invention, the quantity of flash lamp 503 is not specifically limited.Flash lamp 503 can be
The flash lamp being arranged inside photographic equipment, is also possible to the flash lamp being arranged except photographic equipment.
Such as: when control flash lamp 503 carries out flash of light shooting, pass through bat of being glistened twice in setting duration 0.1s
It takes the photograph, obtains the color information for the picture that flash of light shooting obtains every time;
Wherein, before the first time flash of light shooting in setting duration 0.1s, shooting of not glistening once is carried out;According to setting
The light information for the picture that first time flash of light shooting in duration 0.1s is got, and do not glisten and shoot the light of the picture got
Line information calculates Focusing parameter, exposure parameter and the white balance parameter of second of flash of light shooting in setting duration;According to right
Burnt parameter, exposure parameter and white balance parameter are shot to remove flash of light for the second time in setting duration.
2) according to the color information for the picture that flash of light shooting obtains every time, school is carried out to the white balance parameter of flash of light shooting
It is quasi-.
By the white balance parameter for during photographic equipment carries out flash of light shooting every time, carrying out flash of light shooting automatically
Calibration effectively raises the efficiency and accuracy rate of the white balance parameter calibration of flash of light shooting.
Photographic equipment described in fourth embodiment of the invention, can be during photographic equipment carries out flash of light shooting, certainly
The calibration of the dynamic white balance parameter for carrying out flash of light shooting, effectively raise the white balance parameter calibration of flash of light shooting efficiency and
Accuracy rate;Avoid photographic equipment the production phase due to increase Test Engineer carry out flash of light shooting white balance parameter school
Standard effectively reduces the production cost of photographic equipment.
Fifth embodiment of the invention, a kind of photographic equipment, as shown in figure 4, including consisting of part:
Processor 501, memory 502 and flash lamp 503.In some embodiments of the invention, processor 501, storage
Device 502 can be connected with flash lamp 503 by bus or other way.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit,
CPU), can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (English:
Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention
One or more integrated circuits.Wherein, memory 502 is used for the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can
To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory,
RAM);Memory 502 also may include nonvolatile memory (Non-Volatile Memory), such as read-only memory
(Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid
State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store, performs the following operations:
1) when control flash lamp 503 carries out flash of light shooting, by carrying out within the set duration twice or more than twice
Flash of light shooting obtains the color information for the picture that flash of light shooting obtains every time.
In some embodiments of the invention, it before first time flash of light shooting within the set duration, carries out primary or more
Secondary shooting of not glistening;According to the light information for the picture that the first time flash of light shooting in setting duration is got, and bat of not glistening
The light information for taking the photograph the picture got calculates pair of other flash of light shootings except the first time flash of light shooting in setting duration
Burnt parameter, exposure parameter and white balance parameter;According to Focusing parameter, exposure parameter and white balance parameter, in setting duration into
Row other flash of light shootings in addition to first time flash of light shooting.
In some embodiments of the invention, the quantity of flash lamp 503 is not specifically limited.Flash lamp 503 can be
The flash lamp being arranged inside photographic equipment, is also possible to the flash lamp being arranged except photographic equipment.
Optionally, when controlling flash lamp 503 and carrying out flash of light shooting, by carry out within the set duration twice or twice with
On flash of light shooting, obtain the mode for the color information of picture that flash of light shooting obtains every time, comprising:
The color information of picture includes: the color for setting object in picture in the color information of setting regions and/or picture
Information.
When control flash lamp 503 carries out flash of light shooting, by carrying out sudden strain of a muscle twice or more than twice within the set duration
Photo-beat is taken the photograph, and the color that object is set in the color information of setting regions in the obtained picture of flash of light shooting every time and/or picture is obtained
Multimedia message.
Such as: when control flash lamp 503 carries out flash of light shooting, pass through bat of being glistened twice in setting duration 0.1S
It takes the photograph, obtains the color information (as shown in Figure 2) of setting regions A in the picture that flash of light shooting obtains every time.
For another example: when control flash lamp 503 carries out flash of light shooting, passing through bat of being glistened twice in setting duration 0.1S
It takes the photograph, obtains the color information (as shown in Figure 3) for setting object B in the picture that flash of light shooting obtains every time.
2) according to the color information for the picture that flash of light shooting obtains every time, school is carried out to the white balance parameter of flash of light shooting
It is quasi-.
Optionally, the color information of the picture obtained according to each flash of light shooting, to the white balance parameter of flash of light shooting into
The mode of row calibration, comprising:
It is compared by the color information of the picture obtained to flash of light shooting at least twice, obtains color information and compare
Value;
According to color information fiducial value, the white balance parameter of flash of light shooting is calibrated;
Wherein, according to color information fiducial value, the mode that the white balance parameter of flash of light shooting is calibrated, comprising:
Mode one, judges whether color information fiducial value is greater than the first given threshold;
If it is determined that color information fiducial value is greater than the first given threshold, then according to color information fiducial value, flash of light is shot
White balance parameter calibrated;Otherwise the white balance parameter of flash of light shooting is not calibrated.
Mode two, judges whether color information fiducial value is greater than the first given threshold;
If it is determined that color information fiducial value is greater than the first given threshold, then judge whether color information fiducial value is greater than second
Given threshold;Otherwise the white balance parameter of flash of light shooting is not calibrated.
If color information fiducial value is greater than the second given threshold, the white balance parameter to flash of light shooting is forbidden to carry out school
It is quasi-;Otherwise according to color information fiducial value, the white balance parameter of flash of light shooting is calibrated;
Wherein, the second given threshold is greater than the first given threshold.
According to the second given threshold judge set duration in picture in object whether quickly variation (such as to high speed move
Dynamic object carries out flash of light shooting), and/or whether light is unstable (such as to stage glazing in picture in setting duration
The fast-changing object of line carries out flash of light shooting).When whether the object in the picture in setting duration quickly changes, and/or set
When whether light unstable in picture in timing is long, according to color information fiducial value, to the white balance parameter of flash of light shooting into
Row calibration, the white balance parameter for obtaining flash of light shooting have serious deviation.If therefore color information fiducial value is greater than second and sets
Determine threshold value, then the white balance parameter to flash of light shooting is forbidden to calibrate.
By the white balance parameter for during photographic equipment carries out flash of light shooting every time, carrying out flash of light shooting automatically
Calibration effectively raises the efficiency and accuracy rate of the white balance parameter calibration of flash of light shooting.
Wherein, the color information of picture includes: to set object in the color information of setting regions and/or picture in picture
Color information.
Photographic equipment described in fifth embodiment of the invention, can be during photographic equipment carries out flash of light shooting, certainly
The calibration of the dynamic white balance parameter for carrying out flash of light shooting, effectively raise the white balance parameter calibration of flash of light shooting efficiency and
Accuracy rate;Avoid photographic equipment the production phase due to increase Test Engineer carry out flash of light shooting white balance parameter school
Standard effectively reduces the production cost of photographic equipment.
Sixth embodiment of the invention, a kind of computer readable storage medium.
Computer storage medium can be RAM memory, flash memory, ROM memory, eprom memory, EEPROM storage
Device, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art storage medium.
Computer-readable recording medium storage has one or more program, one or more program can by one or
The multiple processors of person execute, with realize first embodiment of the invention into third embodiment of the invention in any embodiment part or
Overall Steps.
Computer readable storage medium described in sixth embodiment of the invention is stored with one or more program, should
One or more program can be executed by one or more processor, can photographic equipment carry out flash of light shooting process
In, the calibration of the white balance parameter of flash of light shooting is carried out automatically, effectively raises the white balance parameter calibration of flash of light shooting
Efficiency and accuracy rate;Photographic equipment is avoided in the production phase since the white balance that increase Test Engineer carries out flash of light shooting is joined
Number calibration, effectively reduces the production cost of photographic equipment.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (11)
1. a kind of photographic equipment calibration method characterized by comprising
When control flash lamp carries out flash of light shooting, by carrying out flash of light shooting twice or more than twice within the set duration,
Obtain the color information for the picture that flash of light shooting obtains every time;
According to the color information, the white balance parameter of flash of light shooting is calibrated.
2. the method according to claim 1, wherein described according to the color information, to the white of flash of light shooting
Balance parameters carry out calibration white balance parameter, comprising:
It is compared by the color information of the picture obtained to flash of light shooting at least twice, obtains color information fiducial value;
According to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated.
3. according to the method described in claim 2, clapping flash of light it is characterized in that, described according to the color information fiducial value
The white balance parameter taken the photograph is calibrated, comprising:
Judge whether the color information fiducial value is greater than the first given threshold;
In the case where the color information fiducial value is greater than the first given threshold, according to the color information fiducial value, to sudden strain of a muscle
The white balance parameter that photo-beat is taken the photograph is calibrated.
4. according to the method described in claim 3, it is characterized in that, described be greater than the first setting in the color information fiducial value
In the case where threshold value, according to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated, comprising:
In the case where the color information fiducial value is greater than the first given threshold, judge whether the color information fiducial value is big
In the second given threshold;
If the color information fiducial value is greater than the second given threshold, the white balance parameter to flash of light shooting is forbidden to carry out school
It is quasi-;Otherwise according to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated;
Wherein, second given threshold is greater than first given threshold.
5. method according to claim 1 to 4, which is characterized in that the color information of the picture includes:
The color information of object is set in the picture in the color information of setting regions and/or the picture.
6. a kind of photographic equipment, which is characterized in that the photographic equipment includes processor, memory and flash lamp;
The processor is for executing the photographic equipment calibration procedure stored in memory, to perform the steps of
When the control flash lamp carries out flash of light shooting, by carrying out flash of light bat twice or more than twice within the set duration
It takes the photograph, obtains the color information for the picture that flash of light shooting obtains every time;
According to the color information, the white balance parameter of flash of light shooting is calibrated.
7. equipment according to claim 6, which is characterized in that it is described according to the color information, to the white of flash of light shooting
Balance parameters carry out calibration white balance parameter, comprising:
It is compared by the color information of the picture obtained to flash of light shooting at least twice, obtains color information fiducial value;
According to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated.
8. equipment according to claim 7, which is characterized in that it is described according to the color information fiducial value, flash of light is clapped
The white balance parameter taken the photograph is calibrated, comprising:
Judge whether the color information fiducial value is greater than the first given threshold;
In the case where the color information fiducial value is greater than the first given threshold, according to the color information fiducial value, to sudden strain of a muscle
The white balance parameter that photo-beat is taken the photograph is calibrated.
9. equipment according to claim 8, which is characterized in that described to be greater than the first setting in the color information fiducial value
In the case where threshold value, according to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated, comprising:
In the case where the color information fiducial value is greater than the first given threshold, judge whether the color information fiducial value is big
In the second given threshold;
If the color information fiducial value is greater than the second given threshold, the white balance parameter to flash of light shooting is forbidden to carry out school
It is quasi-;Otherwise according to the color information fiducial value, the white balance parameter of flash of light shooting is calibrated;
Wherein, second given threshold is greater than first given threshold.
10. according to the described in any item equipment of claim 6 to 9, which is characterized in that the color information of the picture includes:
The color information of object is set in the picture in the color information of setting regions and/or the picture.
11. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be executed by one or more processor, with realize according to claim 1~
Described in any one of 5 the step of photographic equipment calibration method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810022276.8A CN110022475B (en) | 2018-01-10 | 2018-01-10 | Camera calibration method, camera and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810022276.8A CN110022475B (en) | 2018-01-10 | 2018-01-10 | Camera calibration method, camera and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110022475A true CN110022475A (en) | 2019-07-16 |
CN110022475B CN110022475B (en) | 2021-10-15 |
Family
ID=67188019
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810022276.8A Expired - Fee Related CN110022475B (en) | 2018-01-10 | 2018-01-10 | Camera calibration method, camera and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110022475B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050151855A1 (en) * | 2004-01-14 | 2005-07-14 | Samsung Techwin Co., Ltd. | Method for setting and adapting preset white balance of digital photographing apparatus and digital photographing apparatus performing the same |
CN1846447A (en) * | 2003-09-04 | 2006-10-11 | 索尼株式会社 | Image processing method, image processing apparatus, and computer program |
CN101483717A (en) * | 2008-01-08 | 2009-07-15 | 三星Techwin株式会社 | Digital photographing apparatus and method for controlling the same |
CN101600121A (en) * | 2008-06-03 | 2009-12-09 | 亚洲光学股份有限公司 | A kind of computational methods of white balance correct value |
CN101889435A (en) * | 2007-12-21 | 2010-11-17 | 诺基亚公司 | Camera flash module and method for controlling same |
CN102316327A (en) * | 2010-07-06 | 2012-01-11 | 索尼公司 | Image processing device, imaging method, and image processing method |
CN104519204A (en) * | 2013-10-01 | 2015-04-15 | Lg电子株式会社 | Mobile terminal and control method thereof |
CN106604009A (en) * | 2015-10-16 | 2017-04-26 | 中兴通讯股份有限公司 | Method and device for achieving automatic white balance function |
US20170180692A1 (en) * | 2015-12-22 | 2017-06-22 | Adobe Systems Incorporated | Local white balance under mixed illumination using flash photography |
-
2018
- 2018-01-10 CN CN201810022276.8A patent/CN110022475B/en not_active Expired - Fee Related
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1846447A (en) * | 2003-09-04 | 2006-10-11 | 索尼株式会社 | Image processing method, image processing apparatus, and computer program |
US20050151855A1 (en) * | 2004-01-14 | 2005-07-14 | Samsung Techwin Co., Ltd. | Method for setting and adapting preset white balance of digital photographing apparatus and digital photographing apparatus performing the same |
CN101889435A (en) * | 2007-12-21 | 2010-11-17 | 诺基亚公司 | Camera flash module and method for controlling same |
CN101483717A (en) * | 2008-01-08 | 2009-07-15 | 三星Techwin株式会社 | Digital photographing apparatus and method for controlling the same |
CN101600121A (en) * | 2008-06-03 | 2009-12-09 | 亚洲光学股份有限公司 | A kind of computational methods of white balance correct value |
CN102316327A (en) * | 2010-07-06 | 2012-01-11 | 索尼公司 | Image processing device, imaging method, and image processing method |
CN104519204A (en) * | 2013-10-01 | 2015-04-15 | Lg电子株式会社 | Mobile terminal and control method thereof |
CN106604009A (en) * | 2015-10-16 | 2017-04-26 | 中兴通讯股份有限公司 | Method and device for achieving automatic white balance function |
US20170180692A1 (en) * | 2015-12-22 | 2017-06-22 | Adobe Systems Incorporated | Local white balance under mixed illumination using flash photography |
Also Published As
Publication number | Publication date |
---|---|
CN110022475B (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102053453B (en) | Imaging device, method for controlling imaging device | |
CN111182217B (en) | Image white balance processing method and device | |
US11050988B2 (en) | Device and method for shadow correction verification parameter determination and shadow correction verification | |
CN103581638B (en) | Image processing apparatus and image processing method | |
CN108551576B (en) | White balance method and device | |
CN104320593A (en) | Automatic exposure control method for digital photographic device | |
CN103647958B (en) | Image processing method, image processing apparatus and electronic equipment | |
US7706676B2 (en) | Automatic exposure control method | |
CN108419067B (en) | White balance parameter recording and adjusting method and device, storage medium, terminal and camera | |
US20120133781A1 (en) | System and method for identifying discrepancy of image of object | |
CN108881736B (en) | Aperture correction method and device | |
JP2005275265A5 (en) | ||
RU2599628C2 (en) | Image capturing device | |
CN105578062A (en) | Light metering mode selection method and image acquisition device utilizing same | |
WO2015135164A1 (en) | Method and system for dead pixel correction of digital image | |
JP2015026931A (en) | Imaging apparatus, imaging method, and imaging program | |
CN111373436A (en) | Image processing method, terminal device and storage medium | |
CN106604009A (en) | Method and device for achieving automatic white balance function | |
CN110022475A (en) | A kind of photographic equipment calibration method, photographic equipment and computer readable storage medium | |
JP2006025435A (en) | Photographing apparatus with automatic color correction function and method thereof | |
US8587714B2 (en) | Method for capturing image | |
CN110264402B (en) | Image fusion method, image fusion device, storage medium and electronic device | |
JP2004282782A (en) | Image database production method and image search method using methods for automatically extracting effective color of image and restoring original color of image | |
CN107643578A (en) | A kind of Atomatic focusing method, device and mobile terminal | |
CN113438473B (en) | Method and device for testing camera shutter lag time and terminal equipment |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20211015 |
|
CF01 | Termination of patent right due to non-payment of annual fee |