CN107948527A - The treating method and apparatus of image taking - Google Patents
The treating method and apparatus of image taking Download PDFInfo
- Publication number
- CN107948527A CN107948527A CN201711434150.3A CN201711434150A CN107948527A CN 107948527 A CN107948527 A CN 107948527A CN 201711434150 A CN201711434150 A CN 201711434150A CN 107948527 A CN107948527 A CN 107948527A
- Authority
- CN
- China
- Prior art keywords
- value
- color channel
- image
- ratio
- calibration
- 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.)
- Pending
Links
Classifications
-
- 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/60—Control of cameras or camera modules
-
- 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/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
The present invention provides a kind for the treatment of method and apparatus of image taking, wherein, this method includes:Obtain the image output calibration value stored in terminal;Image output calibration value is sent to the camera module of terminal, so that camera module exports calibration value generation image according to image.Terminal can export calibration value according to the image that prestores, wherein, image output calibration value characterizes the calibration information of each Color Channel, and control camera module exports calibration value according to image and captured image is handled, with the image after being calibrated;And then terminal need not use calibration calculation to go after calculating image to obtain image output calibration value, then go that captured image handle according to image output calibration value, the process of terminal processes image can be simplified;Complexity during terminal taking image is thereby reduced, terminal taking image is improved and generates the speed of image.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind for the treatment of method and apparatus of image taking.
Background technology
With the continuous development of society and scientific and technological continuous progress, terminal have become the important communication in people's life
Instrument and social tool.User can be communicated with using terminal, can be with the types of applications program in using terminal.In terminal
Camera can be generally provided with, the processor of terminal is connected with camera, and the processor of terminal can get camera shooting
Image.
In the prior art, after the camera of terminal have taken image, the processor of terminal can go to obtain the image.So
The processor of terminal carries out image calibration process, and then the image after being calibrated using pre-set calibration algorithm afterwards;
Then the processor meeting control terminal of terminal goes to store or shows the image after calibration.
But in the prior art, terminal calibration camera captured by image when, terminal needs to use school first
Quasi- algorithm calculates the information in image, and then obtains result of calculation, and result of calculation characterizes the letter of each Color Channel
Breath, then terminal goes after handling image to generate the image after calibration to be output using result of calculation again.So as to whole
The process of a generation image is complex, so terminal generate image to be output speed it is slower.
The content of the invention
The present invention provides a kind for the treatment of method and apparatus of image taking, to solve entirely to generate image in the prior art
Process it is complex, and then terminal generates the slow problem of image to be output.
It is an aspect of the present invention to provide a kind of processing method of image taking, including:
Obtain the image output calibration value stored in terminal;
Described image output calibration value is sent to the camera module of the terminal so that the camera module according to
Described image output calibration value generation image.
Further, before the image output calibration value stored in the acquisition terminal, further include:
The property parameters to prestore in the camera module are obtained, the property parameters include imaging parameters and calibration is joined
Number;
The property parameters are handled using default calibration algorithm, obtain described image output calibration value;
Store described image output calibration value.
Further, the imaging parameters include the first ratio and the second ratio, wherein, first ratio is the first face
The ratio of chrominance channel component and the 3rd Color Channel component, second ratio lead to for the second Color Channel component with the 3rd color
The ratio of road component;
The calibration parameter includes the 3rd ratio and the 4th ratio, wherein, the 3rd ratio compares at least one described first
The average of value, the 4th ratio are the average of at least one second ratio;
Described image output calibration value includes calibration value, the calibration value and the 3rd of the second Color Channel of the first Color Channel
The calibration value of Color Channel.
Further, it is described that the property parameters are handled using default calibration algorithm, it is defeated to obtain described image
Go out calibration value, including:
According to the yield value, first ratio and the 3rd ratio of default 3rd Color Channel, described is determined
The yield value x of one Color Channel1=(y3/y1)*x3, wherein, y1Represent first ratio, y3Represent the 3rd ratio, x3
Represent the yield value of the 3rd Color Channel;
According to yield value, the 4th ratio and second ratio of default 3rd Color Channel, institute is determined
State the yield value x of the second Color Channel2=(y4/y2)*x3, wherein, y2Represent second ratio, y4Represent the 4th ratio
Value;
Determine the yield value of first Color Channel, the yield value of second Color Channel and the 3rd color
Minimum gain value in the yield value of passage;
According to the yield value of first Color Channel and the minimum gain value, the school of first Color Channel is determined
Quasi- value m1=x1/ n, and the yield value according to second Color Channel and the minimum gain value, determine that second color is led to
The calibration value m in road2=x2/ n, and the yield value according to the 3rd Color Channel and the minimum gain value, determine the described 3rd
The calibration value m of Color Channel3=x3/ n, wherein, n represents the minimum gain value.
Further, described image output calibration value is sent to the camera module of the terminal, so that the shooting
Head mould group exports calibration value generation image according to described image, including:
By the calibration value of first Color Channel, the calibration value of second Color Channel and the 3rd Color Channel
Calibration value be sent to the camera module of the terminal so that the camera module is by the first face in the image photographed
The component value of chrominance channel is multiplied by the calibration value of first Color Channel, and by the second Color Channel in the image photographed
Component value is multiplied by the calibration value of second Color Channel, and the component value of the 3rd Color Channel in the image photographed is multiplied
To generate the image after calibration after the calibration value of the 3rd Color Channel.
Further, before the image output calibration value stored in the acquisition terminal, further include:
To the camera module send active configuration parameter, wherein, the active configuration parameter include operating voltage,
At least one of image output format and brightness of flash lamp information, so that the camera module is according to the active configuration
Parameter carries out configuration processing.
Another aspect of the present invention is to provide a kind of processing unit of image taking, including:
First acquisition module, calibration value is exported for obtaining the image stored in terminal;
First sending module, for described image output calibration value to be sent to the camera module of the terminal, so that
The camera module exports calibration value generation image according to described image.
Further, described device, further includes:
Second acquisition module, for first acquisition module obtain terminal in store image output calibration value it
Before, the property parameters to prestore in the camera module are obtained, the property parameters include imaging parameters and calibration parameter;
Processing module, for being handled using default calibration algorithm the property parameters, it is defeated to obtain described image
Go out calibration value;
Memory module, for storing described image output calibration value;
Wherein, the imaging parameters include the first ratio and the second ratio, and first ratio is the first Color Channel point
Amount and the ratio of the 3rd Color Channel component, second ratio are the second Color Channel component and the 3rd Color Channel component
Ratio;The calibration parameter includes the 3rd ratio and the 4th ratio, and the 3rd ratio is the average of at least one first ratio,
4th ratio is the average of at least one second ratio;Described image output calibration value includes the first Color Channel
The calibration value of calibration value, the calibration value of the second Color Channel and the 3rd Color Channel.
Further, the processing module, including:
First determination sub-module, for the yield value according to default 3rd Color Channel, first ratio and described
3rd ratio, determines the yield value x of first Color Channel1=(y3/y1)*x3, wherein, y1Represent first ratio, y3
Represent the 3rd ratio, x3Represent the yield value of the 3rd Color Channel;
Second determination sub-module, for the yield value according to default 3rd Color Channel, the 4th ratio and
Second ratio, determines the yield value x of second Color Channel2=(y4/y2)*x3, wherein, y2Represent second ratio
Value, y4Represent the 4th ratio;
3rd determination sub-module, the increasing of yield value, second Color Channel for determining first Color Channel
Minimum gain value in the yield value of benefit value and the 3rd Color Channel;
4th determination sub-module, for the yield value according to first Color Channel and the minimum gain value, determines
The calibration value m of first Color Channel1=x1/ n, and the yield value according to second Color Channel and the least gain
Value, determines the calibration value m of second Color Channel2=x2/ n, and according to the yield value of the 3rd Color Channel and it is described most
Small yield value, determines the calibration value m of the 3rd Color Channel3=x3/ n, wherein, n represents the minimum gain value;
First sending module, is specifically used for:
By the calibration value of first Color Channel, the calibration value of second Color Channel and the 3rd Color Channel
Calibration value be sent to the camera module of the terminal so that the camera module is by the first face in the image photographed
The component value of chrominance channel is multiplied by the calibration value of first Color Channel, and by the second Color Channel in the image photographed
Component value is multiplied by the calibration value of second Color Channel, and the component value of the 3rd Color Channel in the image photographed is multiplied
To generate the image after calibration after the calibration value of the 3rd Color Channel.
Further, described device, further includes:
Second sending module, for first acquisition module obtain terminal in store image output calibration value it
Before, active configuration parameter is sent to the camera module, wherein, the active configuration parameter includes operating voltage, image
At least one of output format and brightness of flash lamp information, so that the camera module is according to the active configuration parameter
Carry out configuration processing.
The solution have the advantages that:The image output calibration value stored by obtaining in terminal;Image is exported and is calibrated
Value is sent to the camera module of terminal, so that camera module exports calibration value generation image according to image;Wherein, image is defeated
Going out calibration value includes calibration value, the calibration value of the second Color Channel and the calibration value of the 3rd Color Channel of the first Color Channel.
So as to, terminal can export calibration value according to the image prestored, wherein, image output calibration value characterizes each color and leads to
The calibration information in road, control camera module exports calibration value according to image and captured image is handled, to obtain school
Image after standard;And then terminal need not use calibration calculation to go after calculating image to obtain image output calibration value, then
Go that captured image handle according to image output calibration value, the process of terminal processes image can be simplified;And then
Complexity during terminal taking image is reduced, terminal taking image is improved and generates the speed of image.
Brief description of the drawings
Fig. 1 is the flow chart of the processing method for the image taking that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the processing method of image taking provided by Embodiment 2 of the present invention;
Fig. 3 is the structure diagram of the processing unit for the image taking that the embodiment of the present invention three provides;
Fig. 4 is the structure diagram of the processing unit for the image taking that the embodiment of the present invention four provides.
Pass through above-mentioned attached drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These attached drawings
It is not intended to limit the scope of disclosure design by any mode with word description, but is by reference to specific embodiment
Those skilled in the art illustrate the concept of the disclosure.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
All other embodiments obtained without making creative work, belong to the scope of protection of the invention.
Noun according to the present invention is explained first:
Terminal:Also known as terminal device, user equipment, for example, the portable equipment with wireless connecting function, vehicle-mounted setting
It is standby etc..Common terminal device for example including:Mobile phone, tablet computer, laptop, palm PC, mobile internet device
(mobile internet device, MID), wearable device, wherein, wearable device for example including:Intelligent watch, intelligence
Bracelet, pedometer etc..
Now, after the camera of terminal have taken image, the processor of terminal can go to obtain the image.Then terminal
Processor calibration process, and then the image after being calibrated carry out image using pre-set calibration algorithm;Then eventually
The processor meeting control terminal at end goes to store or shows the image after calibration.But in the prior art, the calibration camera of terminal
When captured image, terminal needs first to calculate the information in image using calibration algorithm, and then is counted
Calculate as a result, result of calculation characterizes the information of each Color Channel, then terminal is gone at image using result of calculation again
The image after calibration to be output is generated after reason.It is hereby understood that terminal goes the process of generation image to need first using calibration
The information of image is calculated, obtains calibration parameter, then image is handled using calibration parameter again, whole generation figure
The process of picture is complex, so terminal generate image to be output speed it is slower.
The treating method and apparatus of image taking provided by the invention, it is intended to solve the as above technical problem of the prior art.
How the technical solution of technical scheme and the application is solved with specifically embodiment below above-mentioned
Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept
Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 1 is the flow chart of the processing method for the image taking that the embodiment of the present invention one provides, as shown in Figure 1, this implementation
The method of example includes:
Step 101, obtain the image output calibration value stored in terminal.
In a kind of optional embodiment, image output calibration value includes the calibration value of the first Color Channel, the second face
The calibration value of the calibration value of chrominance channel and the 3rd Color Channel.
In the present embodiment, specifically, the executive agent of the present embodiment can be the processor of terminal, or other can be with
The equipment for performing the method for the present embodiment.Processor of the present embodiment using executive agent as terminal illustrates.
The camera of the processor of terminal and terminal is electrically connected, wherein, camera is camera module;In terminal
Memory in be stored with image output calibration value, wherein, image output calibration value include the first Color Channel calibration value,
The calibration value of the calibration value of second Color Channel and the 3rd Color Channel.Wherein, when practical application, the first Color Channel
For red channel, the second Color Channel is blue channel, and the 3rd Color Channel is green channel.
And then the processor of terminal can get the calibration value of the first Color Channel from memory, the second color is led to
The calibration value of the calibration value in road and the 3rd Color Channel.
Image, is exported the camera module that calibration value is sent to terminal by step 102, so that camera module is according to image
Export calibration value generation image.
In a kind of optional embodiment, step 102 specifically includes:By the calibration value of the first Color Channel, the second face
The calibration value of the calibration value of chrominance channel and the 3rd Color Channel is sent to the camera module of terminal, so that camera module will clap
The component value of the first Color Channel in the image taken the photograph is multiplied by the calibration value of the first Color Channel, and by the image photographed
The component value of the second Color Channel be multiplied by the calibration value of the second Color Channel, and the 3rd color in the image photographed is led to
The component value in road generates the image after calibration after being multiplied by the calibration value of the 3rd Color Channel.
In the present embodiment, specifically, image is exported calibration value by the processor of terminal, it is sent to taking the photograph of being connected with terminal
As head mould group;Then, camera module receives the image output calibration value that the processor of terminal is sent, and then camera module
Calibration value is exported according to image to calibrate captured image, the image after generation calibration, the image after the calibration is to treat
The image of output.Then, the processor of terminal can get the image after the calibration that camera module is generated, processor control
Terminal processed shows or stores the image after the calibration.
Specifically, the processor of terminal by the calibration value of the first Color Channel, the second Color Channel calibration value and
The calibration value of 3rd Color Channel is sent to camera module;Camera module carries out shooting image, in captured image
Include the component value of the component value of the first Color Channel, the component value of the second Color Channel and the 3rd Color Channel;Then,
The component value of first Color Channel is multiplied by the calibration value of the first Color Channel by camera module, obtains treating for the first Color Channel
Output valve;Meanwhile the component value of the second Color Channel is multiplied by the calibration value of the second Color Channel by camera module, obtains second
The value to be output of Color Channel;Meanwhile the component value of the 3rd Color Channel is multiplied by the school of the 3rd Color Channel by camera module
Quasi- value, obtains the value to be output of the 3rd Color Channel;And then the value to be output of camera module the first Color Channel of foundation, second
Value to be output, the value to be output of the 3rd Color Channel of Color Channel, the image after generation calibration.
The image output calibration value that the present embodiment is stored by obtaining in terminal;Image output calibration value is sent to terminal
Camera module so that camera module according to image export calibration value generation image;Wherein, image output calibration value includes
The calibration value of the calibration value of first Color Channel, the calibration value of the second Color Channel and the 3rd Color Channel.So as to which, terminal can be with
Calibration value is exported according to the image prestored, wherein, image output calibration value characterizes the calibration information of each Color Channel,
Control camera module exports calibration value according to image and captured image is handled, with the image after being calibrated;Into
And terminal need not use calibration calculation to go after calculating image to obtain image output calibration value, then go to be exported according to image
Calibration value to captured image handle, and can simplify the process of terminal processes image;Thereby reduce terminal taking
Complexity during image, improves terminal taking image and generates the speed of image.
Fig. 2 is the flow chart of the processing method of image taking provided by Embodiment 2 of the present invention, as shown in Fig. 2, this implementation
The method of example includes:
Step 201, obtain the property parameters to prestore in camera module, and property parameters include imaging parameters and calibration is joined
Number.
Wherein, imaging parameters include the first ratio and the second ratio, wherein, the first ratio for the first Color Channel component with
The ratio of 3rd Color Channel component, the second ratio are the second Color Channel component and the ratio of the 3rd Color Channel component;School
Quasi- parameter includes the 3rd ratio and the 4th ratio, wherein, the 3rd ratio is the average of at least one first ratio, and the 4th ratio is
The average of at least one second ratio.
In the present embodiment, specifically, the executive agent of the present embodiment can be the processor of terminal, or other can be with
The equipment for performing the method for the present embodiment.Processor of the present embodiment using executive agent as terminal illustrates;By the place of terminal
Reason device and the camera of terminal are electrically connected, wherein, camera is camera module.
The property parameters of camera module are stored in the chip of camera module, the property parameters by imaging parameters and
Calibration parameter is formed.Specifically, imaging parameters are that the characteristic of camera module itself is determined, due to different suppliers
The technique that is used when generating camera module is different, selection is different, causes the imaging parameters of each camera module respectively not phase
Together;It is directed to for a camera module, an imaging parameters include the first Color Channel component and the 3rd Color Channel
The ratio of component, the ratio are properly termed as the first ratio;One imaging parameters further comprises the second Color Channel component and the 3rd
The ratio of Color Channel component, the ratio are properly termed as the second ratio.Calibration parameter is defined by the user, can be according to demand
Calibration parameter is set, a kind of mode for calculating calibration parameter is present embodiments provided, can go to calculate using multiple imaging parameters
Go out calibration parameter;The respective imaging parameters of multiple camera modules are gathered, then to the first ratio of multiple imaging parameters terminals
Mean value computation is carried out, and then obtains the 3rd ratio;Mean value computation is carried out to the second ratio of multiple imaging parameters terminals, and then is obtained
To the 4th ratio.
Step 202, using default calibration algorithm handled property parameters, obtains image output calibration value.
In a kind of optional embodiment, image output calibration value includes the calibration value of the first Color Channel, the second face
The calibration value of the calibration value of chrominance channel and the 3rd Color Channel.
Correspondingly, step 202 specifically includes following steps:
Step 2021, yield value, the first ratio and the 3rd ratio according to default 3rd Color Channel, determine the first face
The yield value x of chrominance channel1=(y3/y1)*x3, wherein, y1Represent the first ratio, y3Represent the 3rd ratio, x3Represent the 3rd color
The yield value of passage.
Step 2022, yield value, the 4th ratio and the second ratio according to default 3rd Color Channel, determine the second face
The yield value x of chrominance channel2=(y4/y2)*x3, wherein, y2Represent the second ratio, y4Represent the 4th ratio.
Step 2023, the yield value for determining the first Color Channel, the yield value of the second Color Channel and the 3rd color are led to
Minimum gain value in the yield value in road.
Step 2024, yield value and minimum gain value according to the first Color Channel, determine the calibration of the first Color Channel
Value m1=x1/ n, and according to the yield value and minimum gain value of the second Color Channel, determine the calibration value m of the second Color Channel2=
x2/ n, and according to the yield value and minimum gain value of the 3rd Color Channel, determine the calibration value m of the 3rd Color Channel3=x3/ n,
Wherein, n represents minimum gain value.
In the present embodiment, specifically, being provided with calibration algorithm in the processor of terminal, processor can use calibration
Algorithm handles imaging parameters and calibration parameter, to generate image output calibration value.
Specifically, pre-set the yield value of the 3rd Color Channel, using the yield value of the 3rd Color Channel as
The basis subsequently calculated.By the 3rd ratio y3Divided by the first ratio y1, obtain a numerical value;The numerical value is multiplied by the 3rd color again
The yield value x of passage3, and then obtain the yield value x of the first Color Channel1=(y3/y1)*x3.By the 4th ratio y4Divided by second
Ratio y2, obtain a numerical value;The numerical value is multiplied by the yield value x of the 3rd Color Channel again3, and then obtain the second Color Channel
Yield value x2=(y4/y2)*x3。
So as to be provided with the yield value x of pre-set 3rd Color Channel3, and calculated the first Color Channel
Yield value x1, the second Color Channel yield value x2.Then to the yield value x of the first Color Channel1, the second Color Channel increasing
Beneficial value x2, the 3rd Color Channel yield value x3It is compared, determines the minimum gain value n in three above yield value.
Then, by the yield value x of the first Color Channel1Divided by minimum gain value n, the school of the first Color Channel is calculated
Quasi- value m1=x1/n;By the yield value x of the second Color Channel2Divided by minimum gain value n, the school of the second Color Channel is calculated
Quasi- value m2=x2/n;By the yield value x of the 3rd Color Channel3Divided by minimum gain value n, the school of the 3rd Color Channel is calculated
Quasi- value m3=x3/n。
Wherein, during practical application, the first Color Channel is red channel, and the second Color Channel is blue channel, the 3rd face
Chrominance channel is green channel.So as to which the calibration value of red channel, blue channel by above calculating process, can be calculated
The calibration value of calibration value, green channel.
Step 203, storage image output calibration value.
In the present embodiment, specifically, yield value, the second face of the first Color Channel is being calculated in the processor of terminal
After the yield value of the yield value of chrominance channel and the 3rd Color Channel, the processor of terminal by the yield value of the first Color Channel,
The memory that the yield value of the yield value of second Color Channel and the 3rd Color Channel is sent to terminal is stored, with order to
Three above calibration value is used when being subsequently generated image.
Step 204, to camera module send active configuration parameter, wherein, active configuration parameter include operating voltage,
At least one of image output format and brightness of flash lamp information, so that camera module is carried out according to active configuration parameter
Configuration is handled.
In the present embodiment, specifically, being stored with active configuration parameter in the memory of terminal, active configuration parameter is for example
There is brightness of flash lamp information of the operating voltage of camera module, image output format and camera module etc.;Terminal
Processor obtains above active configuration parameter from memory, then, the above-mentioned active configuration that the processor of terminal will be got
Parameter is sent to the chip of camera module, so the chip of camera module according to above-mentioned active configuration parameter to imaging head mould
Group carries out configuration processing.And then so that camera module can carry out work when follow-up work with above-mentioned operating voltage
Make, and the form of image that camera module is exported is above-mentioned image output format;The sudden strain of a muscle of camera module is configured at the same time
The brightness of light lamp is within the scope of above-mentioned monochrome information characterizes.
Step 205, obtain the image output calibration value stored in terminal.
In the present embodiment, specifically, this step may refer to the step 101 in Fig. 1, repeat no more.
Image, is exported the camera module that calibration value is sent to terminal by step 206, so that camera module is according to image
Export calibration value generation image.
In a kind of optional embodiment, step 206 specifically includes:By the calibration value of the first Color Channel, the second face
The calibration value of the calibration value of chrominance channel and the 3rd Color Channel is sent to the camera module of terminal, so that camera module will clap
The component value of the first Color Channel in the image taken the photograph is multiplied by the calibration value of the first Color Channel, and by the image photographed
The component value of the second Color Channel be multiplied by the calibration value of the second Color Channel, and the 3rd color in the image photographed is led to
The component value in road generates the image after calibration after being multiplied by the calibration value of the 3rd Color Channel.
In the present embodiment, specifically, the processor of terminal is by the calibration value m of the first Color Channel1, the second Color Channel
Calibration value m2And the 3rd Color Channel calibration value m3It is sent to camera module;Camera module carries out shooting image,
Include the component value p of the first Color Channel in captured image1, the second Color Channel component value p2And the 3rd color
The component value p of passage3;Then, camera module is by the component value p of the first Color Channel1It is multiplied by the calibration value of the first Color Channel
m1, obtain the value q to be output of the first Color Channel1;Meanwhile camera module is by the component value p of the second Color Channel2It is multiplied by
The calibration value m of second colors passage2, obtain the value q to be output of the second Color Channel2;Meanwhile camera module leads to the 3rd color
The component value p in road3It is multiplied by the calibration value m of the 3rd Color Channel3, obtain the value q to be output of the 3rd Color Channel3;And then camera
To be output value q of the module according to the first Color Channel1, the second Color Channel value q to be output2, the 3rd Color Channel it is to be output
Value q3, the image after generation calibration.
The property parameters that the present embodiment is prestored by obtaining in camera module, property parameters include imaging parameters and calibration
Parameter;Property parameters are handled using default calibration algorithm, obtain image output calibration value;Store image output calibration
Value;Obtain the image output calibration value stored in terminal;Image output calibration value is sent to the camera module of terminal, so that
Camera module exports calibration value generation image according to image;Wherein, image output calibration value includes the school of the first Color Channel
The calibration value of quasi- value, the calibration value of the second Color Channel and the 3rd Color Channel.So as to which terminal can be according to the figure prestored
As output calibration value, wherein, image output calibration value characterizes the calibration information of each Color Channel, controls camera module root
Captured image is handled according to image output calibration value, with the image after being calibrated;And then terminal need not use
Calibration calculation goes after calculating image to obtain image output calibration value, then goes to export calibration value to captured according to image
Image handle, and can simplify the process of terminal processes image;Complexity during terminal taking image is thereby reduced, is carried
High terminal taking image and the speed for generating image.
Fig. 3 is the structure diagram of the processing unit for the image taking that the embodiment of the present invention three provides, as shown in figure 3, this
The device that embodiment provides, including:
First acquisition module 31, calibration value is exported for obtaining the image stored in terminal.
First sending module 32, for image output calibration value to be sent to the camera module of terminal, so that camera
Module exports calibration value generation image according to image.
The processing unit of the image taking of the present embodiment can perform the processing of the image taking of the offer of the embodiment of the present invention one
Method, its realization principle is similar, and details are not described herein again.
The image output calibration value that the present embodiment is stored by obtaining in terminal;Image output calibration value is sent to terminal
Camera module so that camera module according to image export calibration value generation image;Wherein, image output calibration value includes
The calibration value of the calibration value of first Color Channel, the calibration value of the second Color Channel and the 3rd Color Channel.So as to which, terminal can be with
Calibration value is exported according to the image prestored, wherein, image output calibration value characterizes the calibration information of each Color Channel,
Control camera module exports calibration value according to image and captured image is handled, with the image after being calibrated;Into
And terminal need not use calibration calculation to go after calculating image to obtain image output calibration value, then go to be exported according to image
Calibration value to captured image handle, and can simplify the process of terminal processes image;Thereby reduce terminal taking
Complexity during image, improves terminal taking image and generates the speed of image.
Fig. 4 is the structure diagram of the processing unit for the image taking that the embodiment of the present invention four provides, in implementation shown in Fig. 3
On the basis of example, as shown in figure 4, device provided in this embodiment, further includes:
Second acquisition module 41, for the first acquisition module 31 obtain terminal in store image output calibration value it
Before, the property parameters to prestore in camera module are obtained, property parameters include imaging parameters and calibration parameter.
Processing module 42, for being handled using default calibration algorithm property parameters, obtains image output calibration
Value.
Memory module 43, for storing image output calibration value.
Wherein, imaging parameters include the first ratio and the second ratio, and the first ratio is the first Color Channel component and the 3rd
The ratio of Color Channel component, the second ratio are the second Color Channel component and the ratio of the 3rd Color Channel component;Calibration ginseng
Number includes the 3rd ratio and the 4th ratio, and the 3rd ratio is the average of at least one first ratio, and the 4th ratio is at least one
The average of second ratio;The calibration value of image output calibration value including the first Color Channel, the calibration value of the second Color Channel and
The calibration value of 3rd Color Channel.
Processing module 42, including:
First determination sub-module 421, for the yield value according to default 3rd Color Channel, the first ratio and the 3rd ratio
Value, determines the yield value x of the first Color Channel1=(y3/y1)*x3, wherein, y1Represent the first ratio, y3Represent the 3rd ratio, x3
Represent the yield value of the 3rd Color Channel.
Second determination sub-module 422, for the yield value according to default 3rd Color Channel, the 4th ratio and the second ratio
Value, determines the yield value x of the second Color Channel2=(y4/y2)*x3, wherein, y2Represent the second ratio, y4Represent the 4th ratio.
3rd determination sub-module 423, for determine the yield value of the first Color Channel, the yield value of the second Color Channel with
And the 3rd Color Channel yield value in minimum gain value.
4th determination sub-module 424, for the yield value and minimum gain value according to the first Color Channel, determines the first face
The calibration value m of chrominance channel1=x1/ n, and according to the yield value and minimum gain value of the second Color Channel, determine the second Color Channel
Calibration value m2=x2/ n, and according to the yield value and minimum gain value of the 3rd Color Channel, determine the calibration of the 3rd Color Channel
Value m3=x3/ n, wherein, n represents minimum gain value.
First sending module 32, is specifically used for:
The calibration value of the calibration value of first Color Channel, the calibration value of the second Color Channel and the 3rd Color Channel is sent
To the camera module of terminal, so that the component value of the first Color Channel in the image photographed is multiplied by by camera module
The calibration value of one Color Channel, and the component value of the second Color Channel in the image photographed is multiplied by the second Color Channel
Calibration value, and the component value of the 3rd Color Channel in the image photographed is multiplied by raw after the calibration value of the 3rd Color Channel
Into the image after calibration.
Device provided in this embodiment, further includes:
Second sending module 44, for the first acquisition module 31 obtain terminal in store image output calibration value it
Before, active configuration parameter is sent to camera module, wherein, active configuration parameter includes operating voltage, image output format
And at least one of brightness of flash lamp information, so that camera module carries out configuration processing according to active configuration parameter.
The processing unit of the image taking of the present embodiment can perform the processing of image taking provided by Embodiment 2 of the present invention
Method, its realization principle is similar, and details are not described herein again.
The property parameters that the present embodiment is prestored by obtaining in camera module, property parameters include imaging parameters and calibration
Parameter;Property parameters are handled using default calibration algorithm, obtain image output calibration value;Store image output calibration
Value;Obtain the image output calibration value stored in terminal;Image output calibration value is sent to the camera module of terminal, so that
Camera module exports calibration value generation image according to image;Wherein, image output calibration value includes the school of the first Color Channel
The calibration value of quasi- value, the calibration value of the second Color Channel and the 3rd Color Channel.So as to which terminal can be according to the figure prestored
As output calibration value, wherein, image output calibration value characterizes the calibration information of each Color Channel, controls camera module root
Captured image is handled according to image output calibration value, with the image after being calibrated;And then terminal need not use
Calibration calculation goes after calculating image to obtain image output calibration value, then goes to export calibration value to captured according to image
Image handle, and can simplify the process of terminal processes image;Complexity during terminal taking image is thereby reduced, is carried
High terminal taking image and the speed for generating image.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used
To modify to the technical solution described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical solution spirit and
Scope.
Claims (10)
- A kind of 1. processing method of image taking, it is characterised in that including:Obtain the image output calibration value stored in terminal;Described image output calibration value is sent to the camera module of the terminal, so that the camera module is according to Image output calibration value generation image.
- 2. according to the method described in claim 1, it is characterized in that, the image stored in the acquisition terminal exports calibration value Before, further include:The property parameters to prestore in the camera module are obtained, the property parameters include imaging parameters and calibration parameter;The property parameters are handled using default calibration algorithm, obtain described image output calibration value;Store described image output calibration value.
- 3. according to the method described in claim 2, it is characterized in that, the imaging parameters include the first ratio and the second ratio, Wherein, first ratio is the ratio of the first Color Channel component and the 3rd Color Channel component, and second ratio is the Second colors channel components and the ratio of the 3rd Color Channel component;The calibration parameter includes the 3rd ratio and the 4th ratio, wherein, the 3rd ratio is at least one first ratio Average, the 4th ratio are the average of at least one second ratio;Described image output calibration value includes calibration value, the calibration value and the 3rd color of the second Color Channel of the first Color Channel The calibration value of passage.
- 4. according to the method described in claim 3, it is characterized in that, described use default calibration algorithm to the property parameters Handled, obtain described image output calibration value, including:According to the yield value, first ratio and the 3rd ratio of default 3rd Color Channel, first face is determined The yield value x of chrominance channel1=(y3/y1)*x3, wherein, y1Represent first ratio, y3Represent the 3rd ratio, x3Represent The yield value of 3rd Color Channel;According to yield value, the 4th ratio and second ratio of default 3rd Color Channel, described is determined The yield value x of second colors passage2=(y4/y2)*x3, wherein, y2Represent second ratio, y4Represent the 4th ratio;Determine the yield value of first Color Channel, the yield value of second Color Channel and the 3rd Color Channel Yield value in minimum gain value;According to the yield value of first Color Channel and the minimum gain value, the calibration value of first Color Channel is determined m1=x1/ n, and the yield value according to second Color Channel and the minimum gain value, determine second Color Channel Calibration value m2=x2/ n, and the yield value according to the 3rd Color Channel and the minimum gain value, determine the 3rd color The calibration value m of passage3=x3/ n, wherein, n represents the minimum gain value.
- 5. according to the method described in claim 3, it is characterized in that, described image output calibration value is sent to the terminal Camera module, so that the camera module exports calibration value generation image according to described image, including:By the school of the calibration value of first Color Channel, the calibration value of second Color Channel and the 3rd Color Channel Quasi- value is sent to the camera module of the terminal, so that the camera module leads to the first color in the image photographed The component value in road is multiplied by the calibration value of first Color Channel, and by the component of the second Color Channel in the image photographed Value is multiplied by the calibration value of second Color Channel, and the component value of the 3rd Color Channel in the image photographed is multiplied by institute The calibration value for stating the 3rd Color Channel generates the image after calibration afterwards.
- 6. according to claim 1-4 any one of them methods, it is characterised in that the image stored in the acquisition terminal is defeated Go out before calibration value, further include:Active configuration parameter is sent to the camera module, wherein, the active configuration parameter includes operating voltage, image At least one of output format and brightness of flash lamp information, so that the camera module is according to the active configuration parameter Carry out configuration processing.
- A kind of 7. processing unit of image taking, it is characterised in that including:First acquisition module, calibration value is exported for obtaining the image stored in terminal;First sending module, for described image output calibration value to be sent to the camera module of the terminal, so that described Camera module exports calibration value generation image according to described image.
- 8. device according to claim 7, it is characterised in that described device, further includes:Second acquisition module, for before first acquisition module obtains the image stored in terminal output calibration value, obtaining The property parameters to prestore in the camera module are taken, the property parameters include imaging parameters and calibration parameter;Processing module, for being handled using default calibration algorithm the property parameters, obtains described image output school Quasi- value;Memory module, for storing described image output calibration value;Wherein, the imaging parameters include the first ratio and the second ratio, first ratio for the first Color Channel component with The ratio of 3rd Color Channel component, second ratio are the second Color Channel component and the ratio of the 3rd Color Channel component Value;The calibration parameter includes the 3rd ratio and the 4th ratio, and the 3rd ratio is the average of at least one first ratio, institute State the average that the 4th ratio is at least one second ratio;Described image output calibration value includes the school of the first Color Channel The calibration value of quasi- value, the calibration value of the second Color Channel and the 3rd Color Channel.
- 9. device according to claim 8, it is characterised in that the processing module, including:First determination sub-module, for the yield value according to default 3rd Color Channel, first ratio and the described 3rd Ratio, determines the yield value x of first Color Channel1=(y3/y1)*x3, wherein, y1Represent first ratio, y3Represent 3rd ratio, x3Represent the yield value of the 3rd Color Channel;Second determination sub-module, for the yield value according to default 3rd Color Channel, the 4th ratio and described Second ratio, determines the yield value x of second Color Channel2=(y4/y2)*x3, wherein, y2Represent second ratio, y4 Represent the 4th ratio;3rd determination sub-module, for determining the yield value of the yield value of first Color Channel, second Color Channel And the minimum gain value in the yield value of the 3rd Color Channel;4th determination sub-module, for the yield value according to first Color Channel and the minimum gain value, determines described The calibration value m of first Color Channel1=x1/ n, and the yield value according to second Color Channel and the minimum gain value, really The calibration value m of fixed second Color Channel2=x2/ n, and the yield value according to the 3rd Color Channel and the minimum increasing Benefit value, determines the calibration value m of the 3rd Color Channel3=x3/ n, wherein, n represents the minimum gain value;First sending module, is specifically used for:By the school of the calibration value of first Color Channel, the calibration value of second Color Channel and the 3rd Color Channel Quasi- value is sent to the camera module of the terminal, so that the camera module leads to the first color in the image photographed The component value in road is multiplied by the calibration value of first Color Channel, and by the component of the second Color Channel in the image photographed Value is multiplied by the calibration value of second Color Channel, and the component value of the 3rd Color Channel in the image photographed is multiplied by institute The calibration value for stating the 3rd Color Channel generates the image after calibration afterwards.
- 10. according to claim 7-9 any one of them devices, it is characterised in that described device, further includes:Second sending module, before the image for being stored in first acquisition module acquisition terminal exports calibration value, to The camera module sends active configuration parameter, wherein, the active configuration parameter includes operating voltage, image output lattice At least one of formula and brightness of flash lamp information, so that the camera module is matched somebody with somebody according to the active configuration parameter Put processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711434150.3A CN107948527A (en) | 2017-12-26 | 2017-12-26 | The treating method and apparatus of image taking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711434150.3A CN107948527A (en) | 2017-12-26 | 2017-12-26 | The treating method and apparatus of image taking |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107948527A true CN107948527A (en) | 2018-04-20 |
Family
ID=61939272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711434150.3A Pending CN107948527A (en) | 2017-12-26 | 2017-12-26 | The treating method and apparatus of image taking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107948527A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102420995A (en) * | 2006-10-13 | 2012-04-18 | 苹果公司 | System and method for processing images using predetermined tone reproduction curves |
CN104079928A (en) * | 2014-07-07 | 2014-10-01 | 广东欧珀移动通信有限公司 | Consistency calibration method and device of camera and mobile device |
CN104298086A (en) * | 2013-07-18 | 2015-01-21 | 三星电子株式会社 | Image forming apparatus and method for colour registration correction |
CN104394325A (en) * | 2014-12-15 | 2015-03-04 | 上海鼎讯电子有限公司 | Imaging processing method and camera |
CN105338334A (en) * | 2015-10-30 | 2016-02-17 | 华勤通讯技术有限公司 | Calibration method and calibration system for cameras in mobile terminals |
CN106131526A (en) * | 2016-07-13 | 2016-11-16 | 凌云光技术集团有限责任公司 | A kind of white balancing treatment method based on rgb space and device |
CN106331661A (en) * | 2015-06-25 | 2017-01-11 | 西安中兴新软件有限责任公司 | White balance processing method and device |
-
2017
- 2017-12-26 CN CN201711434150.3A patent/CN107948527A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102420995A (en) * | 2006-10-13 | 2012-04-18 | 苹果公司 | System and method for processing images using predetermined tone reproduction curves |
CN104298086A (en) * | 2013-07-18 | 2015-01-21 | 三星电子株式会社 | Image forming apparatus and method for colour registration correction |
CN104079928A (en) * | 2014-07-07 | 2014-10-01 | 广东欧珀移动通信有限公司 | Consistency calibration method and device of camera and mobile device |
CN104394325A (en) * | 2014-12-15 | 2015-03-04 | 上海鼎讯电子有限公司 | Imaging processing method and camera |
CN106331661A (en) * | 2015-06-25 | 2017-01-11 | 西安中兴新软件有限责任公司 | White balance processing method and device |
CN105338334A (en) * | 2015-10-30 | 2016-02-17 | 华勤通讯技术有限公司 | Calibration method and calibration system for cameras in mobile terminals |
CN106131526A (en) * | 2016-07-13 | 2016-11-16 | 凌云光技术集团有限责任公司 | A kind of white balancing treatment method based on rgb space and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109919888B (en) | Image fusion method, model training method and related device | |
CN108364267B (en) | Image processing method, device and equipment | |
CN108491809B (en) | Method and apparatus for generating near infrared image generation model | |
CN109376852B (en) | Arithmetic device and arithmetic method | |
CN110135406A (en) | Image-recognizing method, device, computer equipment and storage medium | |
CN112164005B (en) | Image color correction method, device, equipment and storage medium | |
CN108604369A (en) | A kind of method, apparatus, equipment and the convolutional neural networks of removal picture noise | |
CN109166156A (en) | A kind of generation method, mobile terminal and the storage medium of camera calibration image | |
CN109978063A (en) | A method of generating the alignment model of target object | |
CN108509892A (en) | Method and apparatus for generating near-infrared image | |
CN112562019A (en) | Image color adjusting method and device, computer readable medium and electronic equipment | |
CN106815803B (en) | Picture processing method and device | |
CN110287836A (en) | Image classification method, device, computer equipment and storage medium | |
CN108833781A (en) | Image preview method, apparatus, terminal and computer readable storage medium | |
CN114360018B (en) | Rendering method and device of three-dimensional facial expression, storage medium and electronic device | |
CN112950640A (en) | Video portrait segmentation method and device, electronic equipment and storage medium | |
CN110321962A (en) | A kind of data processing method and device | |
CN106780359A (en) | A kind of data editing method, device and mobile terminal | |
CN109086871A (en) | Training method, device, electronic equipment and the computer-readable medium of neural network | |
CN107948527A (en) | The treating method and apparatus of image taking | |
CN113066020A (en) | Image processing method and device, computer readable medium and electronic device | |
CN108255995A (en) | A kind of method and device for exporting image | |
CN107423187A (en) | A kind of screen monitor method, apparatus and system | |
CN108681448A (en) | Network request method, storage medium, electronic equipment and the system of IOS systems | |
CN108629739A (en) | Generation method, device and the mobile terminal of HDR image |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180829 Address after: 518103 24 Longhua 101, Fuxing community, Fucheng street, Longhua District, Shenzhen, China Applicant after: SHENZHEN TAIHENGNUO TECHNOLOGY CO., LTD. Address before: 100085 A1103 11, A block 9, Shang di San Jie, Haidian District, Beijing. Applicant before: Beijing Chuan Jia Technology Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180420 |