Specific embodiment
Further more detailed description is made to technical solution of the present invention With reference to embodiment.Obviously, it is retouched
The embodiment stated is only a part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention,
Those of ordinary skill in the art's every other embodiment obtained without creative labor, all should belong to
The scope of protection of the invention.
Refering to fig. 1, Fig. 1 is the structural schematic diagram of the first embodiment of the device of self-timer light filling provided by the invention.
The device 100 of the self-timer light filling includes: image collection module 110, color analysis module 120 and display control module
130。
Wherein, image collection module 110, for obtaining the picture signal of user's self-timer environment.
Specifically, the preposition of terminal will be opened first when the self-timer program on user's starting mobile terminal, such as mobile phone
Camera obtains the image of current environment, common, can pass through liquid crystal display (the Liquid Crystal of terminal
Display, LCD) screen shows the picture signal got in a manner of preview.
Color analysis module 120 obtains the color letter for the picture signal that module 110 is got for analyzing described image
Breath.
Only a wherein frame image signal is analyzed specifically, can be, it can also be to continuous multiple image signal
It is analyzed, to obtain the colouring information of current environment.
Wherein, the colouring information got can be by way of tri- parameters of R, G, B and indicate, wherein R parameter table
Show that the number of pixels of red (RED) light component, G parameter indicate the number of pixels of green (GREEN) light component, B parameter indicates blue
The number of pixels of color (BLUE) light component.For example, the table 1 of following example is some standard colors tri- parameters of corresponding R, G, B
Value.
R, G of 1 standard color of table, B parameter value example
Color designation |
R parameter value |
G parameter value |
B parameter value |
It is red |
255 |
0 |
0 |
It is orange |
255 |
127 |
0 |
Yellow |
255 |
255 |
0 |
Green |
0 |
255 |
0 |
Cyan |
0 |
255 |
255 |
Blue |
0 |
0 |
255 |
Purple |
127 |
0 |
255 |
… |
… |
… |
… |
For any one color, the maximum value of tri- parameters of R, G, B is 255, minimum value 0;When R parameter value is obvious
Light is partially red when greater than other two parameter values, and light is partially green when G parameter value is significantly greater than other two parameter values, B parameter value
Significantly greater than other two parameter values when light it is partially blue.
Display control module 130 is shown for controlling display screen with the picture with the complementary colors color, the figure
The light of piece is used to carry out Contrary compensation to face.
In table 1 above, if there is two colors, they tri- parameters of R, G, B and be all 255, by them
Referred to as complementary color, such as red complementary color are cyans, and the complementary color of yellow is blue.When ambient light be it is non-from
When right light, i.e., when its color is non-white, it can be compensated by the light of its complementary color, such as when ambient light color
When partially red, Contrary compensation can be carried out by cyan ray, avoid the photo cross-color shot under the partially red environment.
Therefore, after the colouring information for obtaining current environment image, the parameter of its complementary color is calculated, is shown by control
Screen shows that the picture of the complementary hue effectively can reversely mend ambient light to provide the light of complementary color
It repays, avoids the photo cross-color shot.Common, in self-timer, screen irradiates model relatively close to face, the light of screen
It is with limit, can be good at the control for carrying out color compensation to face.
Specifically, the picture with complementary hue shown in display screen can be a pure color picture, such as pure blue
Picture, be also possible to self-timer preview picture, should be display self-timer preview picture, and the preview under optimal user experience
Picture has the color complementary with the environmental colors.
It is different from the prior art, the device of self-timer light filling of the invention, obtains the picture signal of user's self-timer environment;Analysis
The colouring information of described image signal;Control display screen shows the picture having with the complementary colors color, the picture
Light is used to carry out Contrary compensation to face;So as to avoid self-timer photographic quality caused by ambient light from being distorted, promoted certainly
The shooting effect of bat.
Referring to Fig.2, Fig. 2 is the structural schematic diagram of the second embodiment of panorama image shooting apparatus provided by the invention.
The device 200 of the self-timer light filling includes: image collection module 210, color analysis module 220 and display control module
230。
Wherein, image collection module 210 is used to obtain the picture signal of user's self-timer environment.
Specifically, the preposition of terminal will be opened first when the self-timer program on user's starting mobile terminal, such as mobile phone
Camera obtains the image of current environment, can also usually show the image letter in a manner of preview on the LCD of terminal
Number.
Color analysis module 220 includes pixels statistics unit 221 and color analysis unit 222;Wherein, the pixels statistics
Unit 221 is used to count the number of R, G, B pixel in described image signal, specifically, can be only to image collection module
The 210 frame images got are counted, and are also possible to count the continuous multiple frames image got, to obtain more
Accurately data;Color analysis unit 222 is used for the ratio according to R, G, B pixel, analyzes described image signal
Colouring information.
Specifically, since any one colouring information can be indicated by way of tri- parameters of R, G, B, and three
The maximum value of a parametric component is all 255, minimum value 0.For example, the corresponding R, G of common standard color, B parameter value as
In Fig. 1 corresponding embodiment shown in table 1.After pixels statistics unit 221 counts R, G, B pixel number of image, color point
The ratio that unit 222 calculates three kinds of pixels is analysed, the parameter value being then converted between 0~255 may thereby determine that the image
Which kind of color signal belongs to.
Display control module 230 includes the first display control unit 231 or the second display control unit 232;Wherein, first
Display control unit 231 is used to control the display screen and shows with the self-timer preview picture with the complementary colors color;The
Two display control units 232 are used to control the display screen and show with the pure color picture with the complementary colors color.
When there are two different colours, tri- parameters of their R, G, B are added respectively, it is obtaining and be all 255, by them
Referred to as complementary color, such as red complementary color are cyans, and the complementary color of yellow is blue.When ambient light be it is non-from
When right light, i.e., when its color is non-white, it can be compensated by the light of its complementary color, such as when ambient light color
When partially red, Contrary compensation can be carried out by cyan ray, avoid the photo cross-color shot under the partially red environment.
Therefore, after the colouring information for obtaining current environment image, the parameter of its complementary color is calculated, is shown by control
Screen shows that the picture of the complementary hue effectively can reversely mend ambient light to provide the light of complementary color
It repays, avoids the photo cross-color shot.Common, in self-timer, screen irradiates model relatively close to face, the light of screen
It is with limit, can be good at the control for carrying out color compensation to face.
Specifically, the picture with complementary hue shown in display screen can be a pure color picture, such as pure blue
Picture, be also possible to self-timer preview picture, should be display self-timer preview picture, and the preview under optimal user experience
Picture has the color complementary with the environmental colors.
Optionally, the device 200 of the self-timer light filling further includes light intensity analysis module 240, is obtained for analyzing image
The luminous intensity for the picture signal that module 210 is got, and the intensity for compensating light is calculated according to the luminous intensity of described image signal;
Display control module 230 includes luminous intensity control unit 233, for controlling the luminous intensity for the picture that the display screen is shown
For the intensity of the compensation light.By controlling the power of compensation light according to the power of ambient light, to avoid compensating
Light it is too strong or excessively weak, optimal light compensation effect can be obtained.
Optionally, there is preposition flash lamp for the equipment of self-timer, which further comprises flash lamp control mould
Block 250 shows that the color for having and analyzing with color analysis module 220 is mutual for controlling display screen in display control module 230
After the picture of complementary color coloured silk, controls the preposition flash lamp and issue the light having with the complementary colors color.Because of screen
Light exposure intensity than relatively limited, when user distance screen is slightly remote may compensation effect it is bad, such as using self-shooting bar into
The occasion of row self-timer can further carry out the compensation of light color by preposition flash lamp at this time.
It is different from the prior art, the device of self-timer light filling of the invention, obtains the picture signal of user's self-timer environment;Analysis
The colouring information of described image signal;Control display screen shows the picture having with the complementary colors color, the picture
Light is used to carry out Contrary compensation to face;So as to avoid self-timer photographic quality caused by ambient light from being distorted, promoted certainly
The shooting effect of bat.
It is the flow diagram of the method first embodiment of panoramic picture shooting provided by the invention refering to Fig. 3, Fig. 3.
The step of this method includes:
S301: the picture signal of user's self-timer environment is obtained.
Specifically, the preposition of terminal will be opened first when the self-timer program on user's starting mobile terminal, such as mobile phone
Camera obtains the image of current environment, common, described obtain can be shown in a manner of preview the LCD screen of terminal
The picture signal got.
S302: the colouring information of analysis described image signal.
The realization of the step specifically may is that the number of R, G, B pixel in statistics described image signal;According to the R,
G, the ratio of B pixel analyzes the colouring information of described image signal.
For example, it may be only the frame image signal got in step S301 is analyzed, it can also be to step
The continuous multiple frames picture signal that S301 is got is analyzed, to obtain the colouring information of current environment.
Any one colouring information, which can be by way of tri- parameters of R, G, B, to be indicated, wherein R parameter indicates
The number of pixels of red (RED) light component, G parameter indicate the number of pixels of green (GREEN) light component, and B parameter indicates blue
(BLUE) number of pixels of light component;For example, the table 1 of Fig. 1 corresponding embodiment provides corresponding R, G, the B tri- of some standard colors
A parameter value.For any one color, the maximum value of tri- parameters of R, G, B is 255, minimum value 0;When R parameter value is bright
Aobvious light when being greater than other two parameter values is partially red, and light is partially green when G parameter value is significantly greater than other two parameter values, B parameter
Light is partially blue when value is significantly greater than other two parameter values.
S303: control display screen show the picture with the complementary colors color, and the light of the picture is used for pair
Face carries out Contrary compensation.
It shows specifically, the step can be the control display screen with the self-timer preview with the complementary colors color
Picture;Or the control display screen is shown with the pure color picture with the complementary colors color, such as the picture of pure blue.
It should be display self-timer preview picture under optimal user experience, and the preview picture is with complementary with the environmental colors
Color.
If there is two colors, they tri- parameters of R, G, B and be all 255, they are known as to complementary color,
Such as red complementary color is cyan, the complementary color of yellow is blue.When ambient light is non-natural smooth, i.e. its color
When for non-white, it can be compensated by the light of its complementary color, such as when ambient light color is partially red, can pass through
Cyan ray carries out Contrary compensation, avoids the photo cross-color shot under the partially red environment.
Therefore, after the colouring information for obtaining current environment image, the parameter of its complementary color is calculated, is shown by control
Screen shows that the picture of the complementary hue effectively can reversely mend ambient light to provide the light of complementary color
It repays, avoids the photo cross-color shot.Common, in self-timer, screen irradiates model relatively close to face, the light of screen
It is with limit, can be good at the control for carrying out color compensation to face.
Optionally, further comprise after the colouring information of analysis picture signal in step S302: analysis described image
The luminous intensity of signal calculates the intensity of compensation light according to the luminous intensity of described image signal.Step S303 is in control display screen
Show and further comprise after having the picture with the complementary colors color: the luminous intensity for controlling the picture is the compensation
The intensity of light.By controlling the power of compensation light according to the power of ambient light, to avoid the light of compensation too strong
Or it is excessively weak, optimal light compensation effect can be obtained.
Optionally, there is preposition flash lamp for the equipment of self-timer, the control display screen display tool described in step S303
Have and further comprise after the picture of the complementary colors color: the control preposition flash lamp, which issues, to be had and the color
The light of complementary hue.Because the light exposure intensity of screen may compensate effect when user distance screen is slightly remote than relatively limited
Fruit is bad, such as the occasion of self-timer is carried out using self-shooting bar, further can carry out light face by preposition flash lamp at this time
The compensation of color.
It is different from the prior art, the method for self-timer light filling of the invention, obtains the picture signal of user's self-timer environment;Analysis
The colouring information of described image signal;Control display screen shows the picture having with the complementary colors color, the picture
Light is used to carry out Contrary compensation to face;So as to avoid self-timer photographic quality caused by ambient light from being distorted, promoted certainly
The shooting effect of bat.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize this
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field is included within the scope of the present invention.