Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, by the following examples and with reference to attached drawing, right
The present invention is further described.
Fig. 1 shows the photographic method of mobile intelligent terminal provided in an embodiment of the present invention, as shown in Figure 1, the method
Include the following steps:
Step 101, when receiving photographing instruction input by user, judge the mobile intelligent terminal flash lamp whether
In intelligent mode;
Step 102, when the flash lamp is in intelligent mode, according to environment illumination intensity, the flash lamp is adjusted
Brightness.
Here, intensity of illumination refers to the luminous flux that light source is irradiated on unit area, is usually indicated with E, intensity of illumination
Unit is lux (Lux);Environment illumination intensity refers to the intensity of illumination of mobile intelligent terminal current ambient environmental, ordinary circumstance
Under, under conditions of indoor weak illumination, environment illumination intensity is in 200Lux or less;Under conditions of indoor daytime or strong illumination, environment
Intensity of illumination is 200 between 2600Lux;Outdoor fine day or it is cloudy under conditions of, environment illumination intensity generally 2600Lux with
On;Such as under the strong light direct beam in summer, outdoor intensity of illumination is up to 80000Lux.Therefore, environment illumination intensity difference needs
Flash lamp is adjusted to different brightness preferably to be taken pictures.
Here, universal input/output (General Purpose Input Output, GPIO) interface can specifically be passed through
Or driving current size is arranged to adjust the brightness of the flash lamp in I2C (Inter-Integrated Circuit) interface;It drives
Streaming current is bigger, and the brightness of flash lamp is bigger.
The photographic method of mobile intelligent terminal provided in an embodiment of the present invention, by the flash lamp for judging mobile intelligent terminal
When in intelligent mode, the brightness of flash lamp is adjusted according to environment illumination intensity, can realize brightness of flash lamp and ambient enviroment
Auto-matching, can intelligently adjust the brightness of flash lamp, improve the effect of taking pictures of mobile intelligent terminal.
Fig. 2 shows the realization streams of the embodiment one of the photographic method of mobile intelligent terminal provided in an embodiment of the present invention
Journey, as shown in Fig. 2, the embodiment one includes the following steps:
Step 201, when receiving photographing instruction input by user, judge the mobile intelligent terminal flash lamp whether
In intelligent mode;
Step 202, when the flash lamp is in intelligent mode, compare environment illumination intensity and preset first environment light
According to intensity threshold, the size of second environment intensity of illumination threshold value;When environment illumination intensity be more than first environment intensity of illumination threshold value,
When less than second environment intensity of illumination threshold value, step 203 is executed;When environment illumination intensity is strong less than or equal to first environment illumination
When spending threshold value, step 207 is executed;When environment illumination intensity is greater than or equal to second environment intensity of illumination threshold value, step is executed
210。
Wherein, first environment intensity of illumination threshold value is less than second environment intensity of illumination threshold value, for example, the first environment light
Can be 200Lux according to intensity threshold, the second environment intensity of illumination threshold value can be 2600Lux.
Step 203, when the environment illumination intensity be more than first environment intensity of illumination threshold value, be less than second environment illumination it is strong
When spending threshold value, the luminous flux of the camera of the mobile intelligent terminal and the first luminous flux threshold value, the second luminous flux threshold value
Size;When the luminous flux is more than the first luminous flux threshold value, is less than the second luminous flux threshold value, step 204 is executed, when described
When luminous flux is less than or equal to the first luminous flux threshold value, step 205 is executed, when the luminous flux is greater than or equal to the second luminous flux
When threshold value, step 206 is executed;
Wherein, luminous flux is the luminous power projected from light source to all directions, i.e., the light energy that the per unit time is projected,
WithIt indicates, unit is lumen (lumen, abbreviation lm).Aperture is to enter photosurface in fuselage through camera lens for controlling light
Light quantity device, be usually located in camera lens, the physical quantity for expressing aperture size is f values, and the camera lens that has manufactured is come
Say, the diameter of camera lens have determined it is constant, can only be by the way that polygon or circle be added inside camera lens, and area can
The poroid grating become controls the luminous flux of camera lens, this device is aperture.Under normal conditions, the diameter of camera lens is bigger, light
Flux also can be bigger, but luminous flux depends not only on the diameter of camera lens, also related with aperture and eyeglass, luminous flux and aperture-coefficient
It is inversely proportional directly proportional with the light transmittance of eyeglass.
The camera of mobile intelligent terminal is typically camera module, and camera lens, aperture, eyeglass have all been fixed, therefore, together
The luminous flux of camera under one light source is also substantially stationary.Under different light, the luminous flux of camera is different, therefore, each
When taking pictures, mobile intelligent terminal can read the luminous flux of camera at this time by bus.
Wherein, the first luminous flux threshold value is less than the second luminous flux threshold value.
Step 204, when the luminous flux is more than the first luminous flux threshold value, is less than the second luminous flux threshold value, pass through setting
The brightness of flash lamp described in the drive current adjustment of the flash lamp is to meet frontlighting photographical condition;
In this step, the brightness of flash lamp is adjusted mainly according to the luminous flux size of camera, the luminous flux is bigger, right
The driving current for the flash lamp answered is arranged smaller, and the brightness of flash lamp is lower at this time;Luminous flux is smaller, corresponding flash lamp
Driving current is arranged bigger, and the brightness of flash lamp is higher at this time.
Step 205, when the luminous flux is less than or equal to the first luminous flux threshold value, by the drive that the flash lamp is arranged
The brightness that streaming current adjusts the flash lamp is maximum;
Step 206, when the luminous flux is greater than or equal to the second luminous flux threshold value, by the drive that the flash lamp is arranged
Streaming current closes the flash lamp;
Step 207, when the environment illumination intensity is less than or equal to first environment intensity of illumination threshold value, the shifting
The size of the luminous flux and third luminous flux threshold value of the camera of dynamic intelligent terminal;When the luminous flux is more than third luminous flux threshold
When value, step 208 is executed, when the luminous flux is less than or equal to third luminous flux threshold value, executes step 209;
Here, the third luminous flux threshold value can be more than the first luminous flux threshold value, be less than the second luminous flux threshold value.
Step 208, when the luminous flux is more than third luminous flux threshold value, by the driving current that the flash lamp is arranged
The brightness of the flash lamp is adjusted to meet backlight photographical condition;
Here, the ambient light sensor of mobile intelligent terminal is usually with display screen in homonymy, and rear camera is inverse in the other side
Light time, ambient light sensor facing away from light source, and the environment illumination intensity detected is little, and rear camera faces light source, light
Flux is larger, and the photo taken at this time can be because of under-exposure, and shade is heavier, therefore needs the driving current tune by the way that flash lamp is arranged
The brightness for saving flash lamp, makes brightness of flash lamp moderate, a dynamic equilibrium point is found between environment illumination intensity and luminous flux;
Further, the brightness of flash lamp at this time is to automatically control, and during closely taking pictures, may there is barrier
Object is hindered to block light, the backlight scene that causes to take pictures would also vary from, and can pass through increase intelligent continuous shooting at this time
Function is set, and camera is under flash lamp difference brightness case, and a few Zhang Jinhang cachings of continuous shooting are for selection by the user.
Step 209, when the luminous flux is less than or equal to third luminous flux threshold value, by the drive that the flash lamp is arranged
The brightness that streaming current adjusts the flash lamp is maximum.
Step 210, when the environment illumination intensity is greater than or equal to second environment intensity of illumination threshold value, by the way that institute is arranged
The driving current for stating flash lamp closes the flash lamp.
Fig. 3 shows the realization of the embodiment two of the photographic method of mobile intelligent terminal provided in an embodiment of the present invention, institute
The overall flow of taking pictures that embodiment two is mobile terminal of the embodiment of the present invention is stated, as shown in figure 3, the embodiment two includes following
Step:
Step 301, mobile intelligent terminal is switched on, into the preview mode of camera;
Step 302, it is loaded into the Setting pattern of last flash lamp;
Step 303, it detects whether to receive flash lamp Setting pattern input by user;If so, executing step 304, otherwise
Execute step 305;
Step 304, the flash lamp Setting pattern received is preserved;Execute step 305;
Step 305, user is waited for take pictures in the preview mode of camera;
Step 306, it detects whether to receive photographing instruction input by user, if so, otherwise executing step 307 executes step
Rapid 303;
Step 307, judge whether flash lamp is in intelligent mode;If so, executing step 308;It is no to then follow the steps 309;
In the embodiment of the present invention, there are three types of Setting patterns for the Flash lamps and lanterns of the mobile terminal:It must on-mode, closing mould
Formula, intelligent mode;Wherein, must on-mode, refer to it is any under the conditions of take pictures, flash lamp is all the state fully opened;Close mould
Formula, refer to it is any under the conditions of take pictures, flash lamp is all completely closed state;Intelligent mode refers to then according to light when taking pictures
According to condition, intelligence adjusts the luminance state of flash lamp, and specific adjustment process is as described above, details are not described herein.
Step 308, into the intelligent mode of flash lamp;Execute step 312;
Step 309, judge the flash lamp setting whether be must on-mode, if so, execute step 310, otherwise, execute
Step 311;
Step 310, into flash lamp must on-mode;Execute step 312;
Step 311, into the close pattern of flash lamp;Execute step 312;
Step 312, start to take pictures according to the respective pattern of flash lamp.
Each functional unit of a kind of camera arrangement for mobile intelligent terminal that the embodiment of the present invention also provides, the device is available
In the flow of above method embodiment, Fig. 4 is specifically referred to, including:Flash Mode judging unit 41, flash lamp driving unit
42;Wherein,
The Flash Mode judging unit 41, for when receiving photographing instruction input by user, judging the shifting
Whether the flash lamp of dynamic intelligent terminal is in intelligent mode;
The flash lamp driving unit 42, for when the flash lamp is in intelligent mode, according to ambient light illumination, adjusting
Save the brightness of the flash lamp.
Optionally, the flash lamp driving unit 42 is specifically used for being more than first environment light when the environment illumination intensity
According to intensity threshold, be less than second environment intensity of illumination threshold value when, the luminous flux of the camera of the mobile intelligent terminal with
The size of first luminous flux threshold value, the second luminous flux threshold value;When the luminous flux is more than the first luminous flux threshold value, less than the second light
When flux threshold, the brightness of flash lamp described in the drive current adjustment of the flash lamp is set to meet frontlighting photographical condition;When
When the luminous flux is less than or equal to the first luminous flux threshold value, glistened described in the drive current adjustment of the flash lamp by being arranged
The brightness of lamp is maximum;When the luminous flux is greater than or equal to the second luminous flux threshold value, by the drive that the flash lamp is arranged
Streaming current closes the flash lamp;Wherein, first environment intensity of illumination threshold value is less than second environment intensity of illumination threshold value, the first light
Flux threshold is less than the second luminous flux threshold value.
Optionally, the flash lamp driving unit 42 is specifically used for being less than or equal to first when the environment illumination intensity
When environment illumination intensity threshold value, the luminous flux of the camera of the mobile intelligent terminal is big with third luminous flux threshold value
It is small;When the luminous flux is more than third luminous flux threshold value, glistened described in the drive current adjustment of the flash lamp by being arranged
The brightness of lamp is to meet backlight photographical condition;When the luminous flux is less than or equal to third luminous flux threshold value, by the way that institute is arranged
The brightness for stating flash lamp described in the drive current adjustment of flash lamp is maximum.
Optionally, the flash lamp driving unit 42 is specifically used for being greater than or equal to second when the environment illumination intensity
When environment illumination intensity threshold value, the driving current by the way that the flash lamp is arranged closes the flash lamp.Optionally, the flash of light
Lamp driving unit 42 adjusts the flash lamp specifically for driving current size is arranged by GPIO interface or I2C interface
Brightness;Further, driving current is point that some are different grades of, and bigger grade, and driving current is bigger, and the brightness of flash lamp is got over
Greatly;
In the embodiment of the present invention, the whole flash lamp driving unit 42 of current adjustment, 1A can be reached by generally referring to driving current
Above flash lamp drives IC.In the embodiment of the present invention, flash lamp drives IC, carries a GPIO interface or I2C interface, can be with
Drive the register writing commands of the control unit inside IC a variety of to be arranged to flash lamp by GPIO interface or I2C interface
Flash lamp driving current can also read flash lamp by GPIO interface or I2C interface and some register values of IC is driven to obtain
Know the current driving currents of flash lamp driving IC.
The camera arrangement of mobile intelligent terminal provided by the invention, each unit course of work and above method embodiment class
Seemingly, details are not described herein.
The present invention also provides a kind of mobile intelligent terminals, include the camera arrangement of above-mentioned mobile intelligent terminal, wherein mobile
The baseband chip of intelligent terminal is connected with flash lamp driving unit, realizes the brightness regulation of the flash lamp of mobile intelligent terminal,
Specifically, the baseband I C inside mobile intelligent terminal drives IC to be connected by GPIO interface or I2C interface with flash lamp,
Brightness regulation to mobile intelligent terminal flash lamp is exactly to adjust flash lamp by the GPIO interface or I2C interface of baseband I C
Drive the driving stream of IC come what is realized, specific adjustment process is similar with above method embodiment, and details are not described herein.
The photographic method and device of mobile intelligent terminal provided in an embodiment of the present invention, by judging mobile intelligent terminal
When flash lamp is in intelligent mode, the brightness of flash lamp is adjusted according to environment illumination intensity, can realize brightness of flash lamp and week
The Auto-matching in collarette border can intelligently adjust the brightness of flash lamp, improve the effect of taking pictures of mobile intelligent terminal.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.