CN106375602A - Terminal photographing method and device - Google Patents
Terminal photographing method and device Download PDFInfo
- Publication number
- CN106375602A CN106375602A CN201610978386.2A CN201610978386A CN106375602A CN 106375602 A CN106375602 A CN 106375602A CN 201610978386 A CN201610978386 A CN 201610978386A CN 106375602 A CN106375602 A CN 106375602A
- Authority
- CN
- China
- Prior art keywords
- terminal
- photographic head
- threshold value
- pixel distribution
- brightness
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- 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
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a terminal photographing device and method. The terminal has two cameras. The device comprises a turning on module which is used for turning on the first camera of the terminal after the terminal camera function is turned on to acquire the viewfinder interface of the first camera in the current photographing environment, an acquisition module which is used for acquiring the histogram information of the viewfinder interface in the current photographing environment, an analysis module which is used for analyzing the histogram information in the current photographing environment to acquire brightness and pixel distribution in the histogram information, and a determining module which is used for determining whether the second camera of the terminal is turned on according to brightness and pixel distribution in the histogram information. According to the invention, the cameras are intelligently selected for photographing, which enhances the user experience.
Description
Technical field
The present invention relates to shooting technology field, more particularly, to a kind of terminal photographic method and device.
Background technology
Generally dual camera can increase light-inletting quantity when taking pictures under dark situation, lifts lightness, and when in normal light
When taking pictures under thread environment or under very bright environment, in fact do not need to be further added by light-inletting quantity, photo lithography also can meet user and clap
According to demand, now, if still being taken pictures using dual camera, producing unnecessary power consumption, the waste of resource can be caused.
Content of the invention
Present invention is primarily targeted at proposing a kind of terminal photographic method and device it is intended to realize the flexible choosing of photographic head
Select, reduce power consumption of taking pictures, economize on resources.
For achieving the above object, a kind of terminal camera arrangement that the present invention provides, described terminal has dual camera, described
Device includes:
Opening module, works as after the camera function that opens a terminal, opening wherein first photographic head of described terminal and obtaining
The interface of finding a view of described first photographic head under front photo environment;
Acquisition module, for obtaining the histogram information at described interface of finding a view under current photo environment;
Analysis module, for being analyzed to the histogram information under described current photo environment, obtains described rectangular histogram
Brightness in information and pixel distribution situation;
Judge module, for according to the brightness in described histogram information and pixel distribution situation, judging whether to open institute
State second photographic head of terminal.
Alternatively, described acquisition module, the brightness of the pixel in interface of being additionally operable to find a view described in analyzing, generate rectangular histogram, institute
State histogrammic abscissa and represent brightness, vertical coordinate represents pixel;Described histogrammic left part represents dark portion, and right part represents bright
Portion, centre represents middle tone.
Alternatively, described analysis module, is additionally operable to analyze histogrammic abscissa under described current photo environment and vertical
Coordinate, obtains the brightness in described histogram information and pixel distribution situation.
Alternatively, described judge module, if be additionally operable to described histogrammic left part and the pixel distribution of centre is highly all low
In the first predetermined threshold value, and the pixel distribution height of described histogrammic right part is higher than the second predetermined threshold value, then judge current bat
It is in overexposure luminous environment according to environment, second photographic head of described terminal need not be opened;If described histogrammic left part and centre
Pixel distribution be highly above the 3rd predetermined threshold value, and the pixel distribution height of described histogrammic right part be less than the 4th preset
Threshold value, then judge that current photo environment is in low-key or owes to expose environment, need to open second photographic head of described terminal, and open
Described second photographic head.
Alternatively, described judge module, if be additionally operable to described histogrammic left part and the pixel distribution height of centre is located at
Between first predetermined threshold value and the 3rd predetermined threshold value, and the pixel distribution height of described histogrammic right part is located at the second default threshold
Between value and the 4th predetermined threshold value, then judge that current photo environment is in home, second that described terminal need not be opened
Photographic head.
The embodiment of the present invention also proposes a kind of terminal photographic method, and described terminal has dual camera, and methods described includes:
After the camera function that opens a terminal, open wherein first photographic head of described terminal and obtain institute under current photo environment
State the interface of finding a view of first photographic head;
Obtain the histogram information at described interface of finding a view under current photo environment;
Histogram information under described current photo environment is analyzed, obtain described histogram information in brightness and
Pixel distribution situation;
According to the brightness in described histogram information and pixel distribution situation, judge whether to open second of described terminal
Photographic head.
Alternatively, the described step obtaining the histogram information at described interface of finding a view under current photo environment includes:
The brightness of the pixel in interface of finding a view described in analysis, generates rectangular histogram, described histogrammic abscissa represents brightness, indulges
Coordinate representation pixel;Described histogrammic left part represents dark portion, and right part represents highlights, and centre represents middle tone.
Alternatively, described histogram information under described current photo environment is analyzed, obtain described rectangular histogram letter
The step of the brightness in breath and pixel distribution situation includes:
Analyze the histogrammic abscissa under described current photo environment and vertical coordinate, obtain in described histogram information
Brightness and pixel distribution situation.
Alternatively, described according to the brightness in described histogram information and pixel distribution situation, judge whether to open described
The step of second photographic head of terminal includes:
If the pixel distribution of described histogrammic left part and centre is highly below the first predetermined threshold value, and described rectangular histogram
Right part pixel distribution height be higher than the second predetermined threshold value, then judge that current photo environment is in overexposure luminous environment, need not open
Open second photographic head of described terminal;
If the pixel distribution of described histogrammic left part and centre is highly above the 3rd predetermined threshold value, and described rectangular histogram
Right part pixel distribution height be less than the 4th predetermined threshold value, then judge current photo environment be in low-key or owe expose environment, need
Open second photographic head of described terminal, and open described second photographic head.
Alternatively, described according to the brightness in described histogram information and pixel distribution situation, judge whether to open described
The step of second photographic head of terminal includes:
If the pixel distribution height of described histogrammic left part and centre is located at the first predetermined threshold value and the 3rd predetermined threshold value
Between, and the pixel distribution height of described histogrammic right part be located between the second predetermined threshold value and the 4th predetermined threshold value, then sentence
The current photo environment that breaks is in home, need not open second photographic head of described terminal.
A kind of terminal photographic method proposed by the present invention and device, by photographic head find a view interface obtain current photo environment
Under histogram information, and judged with a photographic head or two by the distribution situation of brightness and pixel in histogram information
Photographic head is taken pictures.If thus, it is possible to realizing, under normal or bright ring border, being taken pictures using a photographic head, subtracting
Take pictures less power consumption, economize on resources, do not lose photograph quality simultaneously, if in compared with dark situation, then automatically entered using dual camera
Row is taken pictures, and is taken pictures by more intelligent selection photographic head, improves Consumer's Experience.
Brief description
Fig. 1 is the hardware architecture diagram of an optional mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the module diagram of terminal camera arrangement preferred embodiment of the present invention;
Fig. 4 is a kind of rectangular histogram exemplary plot being related in the embodiment of the present invention;
Fig. 5 a is the rectangular histogram exemplary plot of the overexposure luminous environment being related in the embodiment of the present invention;
Fig. 5 b is the rectangular histogram exemplary plot of the normal exposure environment being related in the embodiment of the present invention;
Fig. 5 c is the rectangular histogram exemplary plot of the under-exposed environment being related in the embodiment of the present invention;
Fig. 6 is the selection judge process schematic diagram in embodiment of the present invention scheme to photographic head;
Fig. 7 is the schematic flow sheet of terminal photographic method preferred embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Embodiment of the present invention scheme is related to the photographic head selection that terminal is taken pictures, and the terminal being directed to can be intelligent phase
Machine, there is the intelligent mobile terminals such as the mobile phone of camera function, the embodiment of the present invention is illustrated with the mobile phone with dual camera,
But the not restriction of structure paired terminal.
Realize the mobile terminal of each embodiment of the present invention referring now to Description of Drawings.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for being conducive to the explanation of the present invention, itself
Not specific meaning.Therefore, " module " and " part " can mixedly use.
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, pda (personal digital assistant), pad (panel computer), pmp
The mobile terminal of (portable media player), guider etc. and such as numeral tv, desk computer etc. consolidate
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for moving
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware architecture diagram of an optional mobile terminal realizing each embodiment of the present invention.
Mobile terminal 1 00 can include wireless communication unit 110, user input unit 130, output unit 150, memorizer
160th, interface unit 170, controller 180 and power subsystem 190 etc..Fig. 1 shows the mobile terminal with various assemblies, but
It is it should be understood that it is not required that implementing all assemblies illustrating.More or less of assembly can alternatively be implemented.Will under
Face describes the element of mobile terminal in detail.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, wireless Internet mould
At least one of block 113.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal generating before the server of broadcast singal and/or broadcast related information or reception and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include tv broadcast singal, radio signals, data broadcasting
Signal etc..And, broadcast singal may further include the broadcast singal combining with tv or radio signals.Broadcast phase
Pass information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is receiving.Broadcast singal can exist in a variety of manners, and for example, it can be with the electronics of DMB (dmb)
The form of program guide (epg), the electronic service guidebooks (esg) of digital video broadcast-handheld (dvb-h) etc. and exist.Broadcast
Receiver module 111 can be broadcasted by using various types of broadcast system receipt signals.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (dmb-t), DMB-satellite (dmb-s), digital video
Broadcast-hand-held (dvb-h), forward link media (mediaflo@) Radio Data System, received terrestrial digital broadcasting integrated service
Etc. (isdb-t) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and is adapted to provide for extensively
Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memorizer 160 (or other types of storage medium).
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include wlan (wireless lan) (wi-fi), wibro
(WiMAX), wimax (worldwide interoperability for microwave accesses), hsdpa (high-speed downlink packet access) etc..
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input
Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch
Plate (for example, detection due to touched and lead to resistance, pressure, the change of electric capacity etc. sensitive component), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Interface unit 170 is connected, with mobile terminal 1 00, the interface that can pass through as at least one external device (ED).For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port of device for connection with identification module, audio input/output (i/o) end
Mouth, video i/o port, ear port etc..Identification module can be storage for verifying that user uses each of mobile terminal 1 00
Kind of information and subscriber identification module (uim), client identification module (sim), Universal Subscriber identification module (usim) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected with mobile terminal 1 00 via port or other attachment means.Interface unit 170 can be used for reception and is derived from
The input (for example, data message, electric power etc.) of the external device (ED) and input receiving is transferred in mobile terminal 1 00
One or more elements or can be used for transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity
Power provides the path of mobile terminal 1 00 from base or can serve as allowing the various command signals from base input to pass through it
It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from the various command signals of base input or electric power
The no signal being accurately fitted within base.
Output unit 150 is configured to provide output signal (for example, audio frequency letter with vision, audio frequency and/or tactile manner
Number, video signal, alarm signal, vibration signal etc.).Output unit 150 can include display unit 151, audio output mould
Block 152 etc..
Display unit 151 may be displayed on the information processing in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
During words call mode, display unit 151 can show (for example, text messaging, the multimedia file that communicate with call or other
Download etc.) related user interface (ui) or graphic user interface (gui).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure
Ui or gui of picture and correlation function etc..
Meanwhile, when display unit 151 and the touch pad touch screen with formation superposed on one another as a layer, display unit
151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (lcd), thin film transistor (TFT)
In lcd (tft-lcd), Organic Light Emitting Diode (oled) display, flexible display, three-dimensional (3d) display etc. at least
A kind of.Some in these display may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent
Display, typical transparent display can be, for example, toled (transparent organic light emitting diode) display etc..According to specific
The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display device), for example, moves
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
When under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memorizer 160
The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide and move
The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation of terminal 100 execution.
Dio Output Modules 152 can include speaker, buzzer etc..
Memorizer 160 can store software program of the process being executed by controller 180 and control operation etc., or can
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And, memorizer 160 can be to store the vibration of various modes with regard to exporting and audio signal when touching and being applied to touch screen
Data.
Memorizer 160 can include the storage medium of at least one type, and described storage medium includes flash memory, hard disk, many
Media card, card-type memorizer (for example, sd or dx memorizer etc.), random access storage device (ram), static random-access storage
Device (sram), read only memory (rom), Electrically Erasable Read Only Memory (eeprom), programmable read only memory
(prom), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can execute memorizer with by network connection
The network storage device cooperation of 160 store function.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 execution and voice call, data
The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or it is so structured that and control
Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executing on the touchscreen or figure
Piece is drawn input and is identified as character or image.
Specifically, controller 180 can also include: opening module 181, acquisition module 182, analysis module 183 and sentence
Disconnected module 184, wherein:
Opening module 181, obtains for after the camera function that opens a terminal, opening wherein first photographic head of described terminal
The interface of finding a view of described first photographic head under current photo environment;
Acquisition module 182, for obtaining the histogram information at described interface of finding a view under current photo environment;
Analysis module 183, for being analyzed to the histogram information under described current photo environment, obtains described Nogata
Brightness in figure information and pixel distribution situation;
Judge module 184, for according to the brightness in described histogram information and pixel distribution situation, judging whether to open
Second photographic head of described terminal.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Suitable electric power needed for part and assembly.
Various embodiment described herein can be with using such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implementing.Hardware is implemented, embodiment described herein can be by using application-specific IC
(asic), digital signal processor (dsp), digital signal processing device (dspd), programmable logic device (pld), scene can
Program gate array (fpga), processor, controller, microcontroller, microprocessor, be designed to execute function described herein
At least one in electronic unit implementing, in some cases, can be implemented in controller 180 by such embodiment.
Software is implemented, the embodiment of such as process or function can with allow to execute the single of at least one function or operation
Software module is implementing.Software code can be come by the software application (or program) write with any suitable programming language
Implement, software code can be stored in memorizer 160 and be executed by controller 180.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data all if any
Line and wireless communication system and satellite-based communication system are operating.
The communication system being wherein operable to according to the mobile terminal of the present invention referring now to Fig. 2 description.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system
Air interface includes such as frequency division multiple access (fdma), time division multiple acess (tdma), CDMA (cdma) and universal mobile communications system
System (umts) (especially, Long Term Evolution (lte)), global system for mobile communications (gsm) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base station (bs) 270, base station
Controller (bsc) 275 and mobile switching centre (msc) 280.Msc280 is configured to and Public Switched Telephony Network (pstn)
290 formation interfaces.Msc280 is also structured to and can form interface via the bsc275 that back haul link is couple to base station 270.
If back haul link can construct according to any one in the interface that Ganji knows, described interface includes such as e1/t1, atm, ip,
Ppp, frame relay, hdsl, adsl or xdsl.It will be appreciated that system as shown in Figure 2 can include multiple bsc2750.
Each bs270 can service one or more subregions (or region), by the sky of multidirectional antenna or sensing specific direction
Each subregion that line covers is radially away from bs270.Or, each subregion can by for diversity reception two or more
Antenna covers.Each bs270 may be constructed such that support multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum
(for example, 1.25mhz, 5mhz etc.).
Intersecting that subregion and frequency are distributed can be referred to as cdma channel.Bs270 can also be referred to as base station transceiver
System (bts) or other equivalent terms.In this case, term " base station " can be used for broadly representing single
Bsc275 and at least one bs270.Base station can also be referred to as " cellular station ".Or, each subregion of specific bs270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal of operation in system by broadcsting transmitter (bt) 295
100.Broadcasting reception module 111 is arranged at mobile terminal 1 00 to receive the broadcast being sent by bt295 as shown in Figure 1
Signal.In fig. 2 it is shown that several global positioning system (gps) satellites 300.Satellite 300 helps position multiple mobile terminals
At least one of 100.
In fig. 2, depict multiple satellites 300, it is understood that be, it is possible to use any number of satellite obtains useful
Location information.As a typical operation of wireless communication system, bs270 receives reverse from various mobile terminal 1s 00
Link signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.It is every that certain base station 270 receives
Individual reverse link signal is processed in specific bs270.The data obtaining is forwarded to the bsc275 of correlation.Bsc provides
Call resource allocation and the mobile management function of including the coordination of soft switching process between bs270.Bsc275 also will receive
Data be routed to msc280, it provides the extra route service for forming interface with pstn290.Similarly, pstn290
Form interface with msc280, msc and bsc275 forms interface, and bsc275 correspondingly controls bs270 to believe forward link
Number it is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the present invention is proposed.
Due to, in prior art, when being taken pictures using the terminal with dual camera, not taking into account that working as of photo environment
Front brightness, when taking pictures under ordinary ray environment or under very bright environment, does not need to be further added by light-inletting quantity, photo lithography in fact
Also user can be met take pictures demand, now, if still taken pictures using dual camera, produce unnecessary power consumption, can make
Become the waste of resource.
For this reason, the present invention proposes a solution it is considered to the brightness case of current photo environment, realize the spirit of photographic head
Live and select, reduce power consumption of taking pictures, economize on resources.
Specifically, as shown in figure 3, present pre-ferred embodiments propose a kind of terminal camera arrangement, described terminal has double
Photographic head, described device includes: opening module 201, acquisition module 202, analysis module 203 and judge module 204, wherein:
Opening module 201, obtains for after the camera function that opens a terminal, opening wherein first photographic head of described terminal
The interface of finding a view of described first photographic head under current photo environment;
Acquisition module 202, for obtaining the histogram information at described interface of finding a view under current photo environment;
Analysis module 203, for being analyzed to the histogram information under described current photo environment, obtains described Nogata
Brightness in figure information and pixel distribution situation;
Judge module 204, for according to the brightness in described histogram information and pixel distribution situation, judging whether to open
Second photographic head of described terminal.
Further, described acquisition module 202, the brightness of the pixel in interface of being additionally operable to find a view described in analyzing, generate Nogata
Figure, described histogrammic abscissa represents brightness, and vertical coordinate represents pixel;Described histogrammic left part represents dark portion, right part generation
Table highlights, centre represents middle tone.
Described analysis module 203, is additionally operable to analyze the histogrammic abscissa under described current photo environment and vertical coordinate,
Obtain the brightness in described histogram information and pixel distribution situation.
Described judge module 204, if be additionally operable to described histogrammic left part and the pixel distribution of centre is highly below
One predetermined threshold value, and the pixel distribution height of described histogrammic right part is higher than the second predetermined threshold value, then judge ring of currently taking pictures
Border is in overexposure luminous environment, need not open second photographic head of described terminal;If described histogrammic left part and the picture of centre
Plain distribution height is above the 3rd predetermined threshold value, and the pixel distribution height of described histogrammic right part is less than the 4th default threshold
Value, then judge that current photo environment is in low-key or owes to expose environment, need to open second photographic head of described terminal, and open institute
State second photographic head.
Described judge module 204, if the pixel distribution height being additionally operable to described histogrammic left part and centre is located at first
Between predetermined threshold value and the 3rd predetermined threshold value, and the pixel distribution height of described histogrammic right part be located at the second predetermined threshold value with
Between 4th predetermined threshold value, then judge that current photo environment is in home, second shooting of described terminal need not be opened
Head
Specifically, the present embodiment terminal camera arrangement can be arranged on mobile phone etc. and have on the intelligent terminal of dual camera.
This embodiment scheme is related to the terminal with dual camera (can also be more multi-cam in other embodiments)
Selection to photographic head when taking pictures., existing smart mobile phone is usually mounted with camera applications software taking smart mobile phone as a example, uses
Family can start camera function by starting camera applications software.
Certainly, as another embodiment, photographing button or button can also be set in terminal, in order to trigger camera
Function.
In the present embodiment, after the camera function that opens a terminal, open the one of photographic head of terminal, i.e. first shooting
Head, and obtain this interface of finding a view under current photo environment for first photographic head, to be analyzed to this interface of finding a view, sentence
Disconnected another photographic head the need of unlatching terminal, i.e. second camera.
Further, in the present embodiment, terminal pass through obtain current photo environment under photographic head interface of finding a view straight
Square figure information, and calculated by the distribution situation of brightness in histogram information and pixel, judge with a photographic head still
Two photographic head are taken pictures.
Specifically, behind the interface of finding a view under obtaining current photo environment, obtain the histogram information at this interface of finding a view.
Wherein, rectangular histogram (histogram), also known as quality distribution diagram, is a kind of statistical report figure, by a series of height not
Deng longitudinal stripe or line segment form show the situation of data distribution.Typically represent data type with transverse axis, the longitudinal axis represents distribution situation.
In the present embodiment, specifically can analyze the brightness of pixel in interface of finding a view, rectangular histogram, wherein, Nogata are generated with this
The abscissa of figure represents brightness, and vertical coordinate represents pixel, as shown in Figure 4.
When being found a view in interface in analysis, analyze the brightness of all pixels in photo first, then calculate concrete numerical value, then
They are mapped on transverse axis.So, longitudinal stripe higher then it represents that the pixel in this brightness is more.
Therefore, the rectangular histogram reflection of photo is the pixel distribution amount from dark portion to highlights in photo, laterally represents brightness,
Longitudinally represent pixel quantity.
Then, analyze histogrammic abscissa and the vertical coordinate under described current photo environment, obtain described rectangular histogram letter
Brightness in breath and pixel distribution situation.
Specifically, when analyzing rectangular histogram, mainly watch histogrammic figure, histogrammic viewing rule is exactly " left
Black right white ", as shown in figure 4, the left side represents dark portion, the right represents highlights, and centre then represents middle tone.Height generation in longitudinal direction
Table pixel-intensive degree, higher, the pixel being just distributed across in this brightness of representative is more.
Finally, according to the brightness in described histogram information and pixel distribution situation, judge whether to open described terminal
Second photographic head.
According to the brightness in described histogram information and pixel distribution situation, judge whether to open the second of described terminal
During individual photographic head, specifically can adopt following scheme:
If the pixel distribution of described histogrammic left part and centre is highly below the first predetermined threshold value, and described rectangular histogram
Right part pixel distribution height be higher than the second predetermined threshold value, then judge that current photo environment is in overexposure luminous environment, need not open
Open second photographic head of described terminal;As shown in Figure 5 a.
If the pixel distribution of described histogrammic left part and centre is highly above the 3rd predetermined threshold value, and described rectangular histogram
Right part pixel distribution height be less than the 4th predetermined threshold value, then judge current photo environment be in low-key or owe expose environment, need
Open second photographic head of described terminal, as shown in Figure 5 c, and open described second photographic head.
If the pixel distribution height of described histogrammic left part and centre is located at the first predetermined threshold value and the 3rd predetermined threshold value
Between, and the pixel distribution height of described histogrammic right part be located between the second predetermined threshold value and the 4th predetermined threshold value, then sentence
The current photo environment that breaks is in home, need not open second photographic head of described terminal, as shown in Figure 5 b.
Wherein, above-mentioned first predetermined threshold value, the second predetermined threshold value, the 3rd predetermined threshold value and the 4th predetermined threshold value can roots
Set according to practical experience.
And it should be noted that in other embodiments, the sentencing of the pixel distribution height of histogrammic left part and centre
Disconnected threshold value can be different.
Specifically, in conjunction with shown in Fig. 5 a, Fig. 5 b and Fig. 5 c, from rectangular histogram as can be seen that first rectangular histogram photo several
There is no shade, because the leftmost side does not longitudinally have height, that is, there is no dark position information.Moreover, this photo even connects
Middle tone is all not much.And, the most important is: the rightmost pixel of this photo has directly pushed up highest point, and this says
There is substantial amounts of bloom in this photo bright, thus may determine that, this rectangular histogram is corresponding should to be lofty tone photo, or
Overexposure, it is therefore not necessary to be taken pictures using two photographic head.
Second rectangular histogram, belongs to high both sides in the middle of the photo of " normal ", rectangular histogram low.
3rd rectangular histogram, left side low-key has substantial amounts of shade, and the right bloom highlights has little pixel, does not almost have
Light position information, such photo is belonged to low-key or owes to expose, accordingly, it would be desirable to be taken pictures using two photographic head, to lift exposure.
Can be as shown in Figure 6 to the selection process of photographic head in this embodiment scheme.
The present embodiment pass through such scheme, by photographic head find a view interface obtain current photo environment under rectangular histogram letter
Breath, and judge to be clapped with a photographic head or two photographic head by the distribution situation of brightness in histogram information and pixel
According to.If thus, it is possible to realize, under normal or bright ring border, being taken pictures using a photographic head, reducing power consumption of taking pictures, section
About resource, does not lose photograph quality simultaneously, if in compared with dark situation, is then automatically taken pictures using dual camera, by more
The selection photographic head of intelligence is taken pictures, and improves Consumer's Experience.
Accordingly, terminal photographic method embodiment of the present invention is proposed.
As shown in fig. 7, present pre-ferred embodiments propose a kind of terminal photographic method, described terminal has dual camera,
Methods described includes:
Step s101, after the camera function that opens a terminal, opens wherein first photographic head of described terminal and obtains current bat
Interface of finding a view according to this first photographic head under environment;
It (can also be more shootings in other embodiments that the present embodiment terminal photographic method is related to dual camera
Head) terminal selection to photographic head when taking pictures., existing smart mobile phone is usually mounted with camera should taking smart mobile phone as a example
With software, user can be by starting camera applications software startup camera function.
Certainly, as another embodiment, photographing button or button can also be set in terminal, in order to trigger camera
Function.
In the present embodiment, after the camera function that opens a terminal, open the one of photographic head of terminal, i.e. first shooting
Head, and obtain this interface of finding a view under current photo environment for first photographic head, to be analyzed to this interface of finding a view, sentence
Disconnected another photographic head the need of unlatching terminal, i.e. second camera.
Step s102, obtains the histogram information at described interface of finding a view under current photo environment;
In the present embodiment, terminal is passed through to obtain the histogram information at the interface of finding a view of photographic head under current photo environment,
And calculated by the distribution situation of brightness in histogram information and pixel, judge with a photographic head or two photographic head
Taken pictures.
Specifically, behind the interface of finding a view under obtaining current photo environment, obtain the histogram information at this interface of finding a view.
Wherein, rectangular histogram (histogram), also known as quality distribution diagram, is a kind of statistical report figure, by a series of height not
Deng longitudinal stripe or line segment form show the situation of data distribution.Typically represent data type with transverse axis, the longitudinal axis represents distribution situation.
In the present embodiment, specifically can analyze the brightness of pixel in interface of finding a view, rectangular histogram, wherein, Nogata are generated with this
The abscissa of figure represents brightness, and vertical coordinate represents pixel, as shown in Figure 4.
When being found a view in interface in analysis, analyze the brightness of all pixels in photo first, then calculate concrete numerical value, then
They are mapped on transverse axis.So, longitudinal stripe higher then it represents that the pixel in this brightness is more.
Therefore, the rectangular histogram reflection of photo is the pixel distribution amount from dark portion to highlights in photo, laterally represents brightness,
Longitudinally represent pixel quantity.
Step s103, is analyzed to the histogram information under described current photo environment, obtains described histogram information
In brightness and pixel distribution situation;
Analyze the histogrammic abscissa under described current photo environment and vertical coordinate, obtain in described histogram information
Brightness and pixel distribution situation.
Specifically, when analyzing rectangular histogram, mainly watch histogrammic figure, histogrammic viewing rule is exactly " left
Black right white ", as shown in figure 4, the left side represents dark portion, the right represents highlights, and centre then represents middle tone.Height generation in longitudinal direction
Table pixel-intensive degree, higher, the pixel being just distributed across in this brightness of representative is more.
Step s104, according to the brightness in described histogram information and pixel distribution situation, judges whether to open described end
Second photographic head at end.
According to the brightness in described histogram information and pixel distribution situation, judge whether to open the second of described terminal
During individual photographic head, specifically can adopt following scheme:
If the pixel distribution of described histogrammic left part and centre is highly below the first predetermined threshold value, and described rectangular histogram
Right part pixel distribution height be higher than the second predetermined threshold value, then judge that current photo environment is in overexposure luminous environment, need not open
Open second photographic head of described terminal;As shown in Figure 5 a.
If the pixel distribution of described histogrammic left part and centre is highly above the 3rd predetermined threshold value, and described rectangular histogram
Right part pixel distribution height be less than the 4th predetermined threshold value, then judge current photo environment be in low-key or owe expose environment, need
Open second photographic head of described terminal, as shown in Figure 5 c, and open described second photographic head.
If the pixel distribution height of described histogrammic left part and centre is located at the first predetermined threshold value and the 3rd predetermined threshold value
Between, and the pixel distribution height of described histogrammic right part be located between the second predetermined threshold value and the 4th predetermined threshold value, then sentence
The current photo environment that breaks is in home, need not open second photographic head of described terminal, as shown in Figure 5 b.
Wherein, above-mentioned first predetermined threshold value, the second predetermined threshold value, the 3rd predetermined threshold value and the 4th predetermined threshold value can roots
Set according to practical experience.
And it should be noted that in other embodiments, the sentencing of the pixel distribution height of histogrammic left part and centre
Disconnected threshold value can be different.
Specifically, in conjunction with shown in Fig. 5 a, Fig. 5 b and Fig. 5 c, from rectangular histogram as can be seen that first rectangular histogram photo several
There is no shade, because the leftmost side does not longitudinally have height, that is, there is no dark position information.Moreover, this photo even connects
Middle tone is all not much.And, the most important is: the rightmost pixel of this photo has directly pushed up highest point, and this says
There is substantial amounts of bloom in this photo bright, thus may determine that, this rectangular histogram is corresponding should to be lofty tone photo, or
Overexposure, it is therefore not necessary to be taken pictures using two photographic head.
Second rectangular histogram, belongs to high both sides in the middle of the photo of " normal ", rectangular histogram low.
3rd rectangular histogram, left side low-key has substantial amounts of shade, and the right bloom highlights has little pixel, does not almost have
Light position information, such photo is belonged to low-key or owes to expose, accordingly, it would be desirable to be taken pictures using two photographic head, to lift exposure.
Can be as shown in Figure 6 to the selection process of photographic head in this embodiment scheme.
The present embodiment pass through such scheme, by photographic head find a view interface obtain current photo environment under rectangular histogram letter
Breath, and judge to be clapped with a photographic head or two photographic head by the distribution situation of brightness in histogram information and pixel
According to.If thus, it is possible to realize, under normal or bright ring border, being taken pictures using a photographic head, reducing power consumption of taking pictures, section
About resource, does not lose photograph quality simultaneously, if in compared with dark situation, is then automatically taken pictures using dual camera, by more
The selection photographic head of intelligence is taken pictures, and improves Consumer's Experience.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row
The comprising of his property, so that including a series of process of key elements, method, article or device not only include those key elements, and
And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or device institute
Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including being somebody's turn to do
Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by the mode of software plus necessary general hardware platform naturally it is also possible to pass through hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Go out partly can embodying in the form of software product of contribution, this computer software product is stored in a storage medium
In (as rom/ram, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, clothes
Business device, air-conditioner, or network equipment etc.) method described in execution each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this
Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. it is characterised in that described terminal has dual camera, described device includes a kind of terminal camera arrangement:
Opening module, obtains current bat for after the camera function that opens a terminal, opening wherein first photographic head of described terminal
Interface of finding a view according to first photographic head described under environment;
Acquisition module, for obtaining the histogram information at described interface of finding a view under current photo environment;
Analysis module, for being analyzed to the histogram information under described current photo environment, obtains described histogram information
In brightness and pixel distribution situation;
Judge module, for according to the brightness in described histogram information and pixel distribution situation, judging whether to open described end
Second photographic head at end.
2. device according to claim 1 it is characterised in that
Described acquisition module, the brightness of the pixel in interface of being additionally operable to find a view described in analyzing, generate rectangular histogram, described histogrammic horizontal stroke
Coordinate representation brightness, vertical coordinate represents pixel;Described histogrammic left part represents dark portion, and right part represents highlights, in middle representative
Between adjust.
3. device according to claim 2 it is characterised in that
Described analysis module, is additionally operable to analyze the histogrammic abscissa under described current photo environment and vertical coordinate, obtains institute
State the brightness in histogram information and pixel distribution situation.
4. device according to claim 3 it is characterised in that
Described judge module, if the pixel distribution being additionally operable to described histogrammic left part and centre is highly below the first default threshold
Value, and the pixel distribution height of described histogrammic right part is higher than the second predetermined threshold value, then judge that current photo environment was in
Exposure environment, need not open second photographic head of described terminal;If the pixel distribution of described histogrammic left part and centre is high
Degree is above the 3rd predetermined threshold value, and the pixel distribution height of described histogrammic right part is less than the 4th predetermined threshold value, then judge
Current photo environment is in low-key or owes to expose environment, need to open second photographic head of described terminal, and open described second
Photographic head.
5. device according to claim 3 it is characterised in that
Described judge module, if the pixel distribution height being additionally operable to described histogrammic left part and centre is located at the first predetermined threshold value
And the 3rd predetermined threshold value between, and the pixel distribution height of described histogrammic right part is located at the second predetermined threshold value and presets with the 4th
Between threshold value, then judge that current photo environment is in home, second photographic head of described terminal need not be opened.
6. it is characterised in that described terminal has dual camera, methods described includes a kind of terminal photographic method:
After the camera function that opens a terminal, open wherein first photographic head of described terminal and obtain described the under current photo environment
The interface of finding a view of one photographic head;
Obtain the histogram information at described interface of finding a view under current photo environment;
Histogram information under described current photo environment is analyzed, obtains the brightness in described histogram information and pixel
Distribution situation;
According to the brightness in described histogram information and pixel distribution situation, judge whether to open second shooting of described terminal
Head.
7. method according to claim 6 is it is characterised in that described interface of finding a view under the current photo environment of described acquisition
The step of histogram information includes:
The brightness of the pixel in interface of finding a view described in analysis, generates rectangular histogram, described histogrammic abscissa represents brightness, vertical coordinate
Represent pixel;Described histogrammic left part represents dark portion, and right part represents highlights, and centre represents middle tone.
8. method according to claim 7 it is characterised in that described to the histogram information under described current photo environment
It is analyzed, obtain the brightness in described histogram information and the step of pixel distribution situation includes:
Analyze the histogrammic abscissa under described current photo environment and vertical coordinate, obtain the brightness in described histogram information
And pixel distribution situation.
9. method according to claim 8 it is characterised in that described according to the brightness in described histogram information and pixel
Distribution situation, judges whether that the step opening second photographic head of described terminal includes:
If the pixel distribution of described histogrammic left part and centre is highly below the first predetermined threshold value, and the described histogrammic right side
The pixel distribution height in portion is higher than the second predetermined threshold value, then judge that current photo environment is in overexposure luminous environment, need not open institute
State second photographic head of terminal;
If the pixel distribution of described histogrammic left part and centre is highly above the 3rd predetermined threshold value, and the described histogrammic right side
The pixel distribution height in portion is less than the 4th predetermined threshold value, then judge that current photo environment is in low-key or owes to expose environment, need to open
Second photographic head of described terminal, and open described second photographic head.
10. method according to claim 8 it is characterised in that described according to the brightness in described histogram information and picture
Plain distribution situation, judges whether that the step opening second photographic head of described terminal includes:
If the pixel distribution height of described histogrammic left part and centre is located between the first predetermined threshold value and the 3rd predetermined threshold value,
And the pixel distribution height of described histogrammic right part is located between the second predetermined threshold value and the 4th predetermined threshold value, then judge current
Photo environment is in home, need not open second photographic head of described terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610978386.2A CN106375602B (en) | 2016-10-31 | 2016-10-31 | Terminal photographic method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610978386.2A CN106375602B (en) | 2016-10-31 | 2016-10-31 | Terminal photographic method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106375602A true CN106375602A (en) | 2017-02-01 |
CN106375602B CN106375602B (en) | 2019-09-20 |
Family
ID=57893297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610978386.2A Active CN106375602B (en) | 2016-10-31 | 2016-10-31 | Terminal photographic method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106375602B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106878625A (en) * | 2017-04-19 | 2017-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Dual camera synchronization exposure method and system |
CN106941588A (en) * | 2017-03-13 | 2017-07-11 | 联想(北京)有限公司 | A kind of data processing method and electronic equipment |
TWI640200B (en) * | 2017-08-11 | 2018-11-01 | 群邁通訊股份有限公司 | Electronic device and method for image capturing control thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040089903A (en) * | 2003-04-15 | 2004-10-22 | 삼성전자주식회사 | Method for displaying picture using histogram equalization in wireless terminal |
CN103458194A (en) * | 2013-08-28 | 2013-12-18 | 中国科学院深圳先进技术研究院 | Method and device for analyzing exposure degree of digital image and video and digital imaging system |
CN104601874A (en) * | 2013-10-31 | 2015-05-06 | 索尼公司 | Control method and control device for working mode as well as electronic equipment |
CN105049743A (en) * | 2015-08-21 | 2015-11-11 | 宇龙计算机通信科技(深圳)有限公司 | Backlight testing method, backlight testing system, picture taking device and terminal |
CN105611140A (en) * | 2015-07-31 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Photographing control method, photographing control device and terminal |
-
2016
- 2016-10-31 CN CN201610978386.2A patent/CN106375602B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040089903A (en) * | 2003-04-15 | 2004-10-22 | 삼성전자주식회사 | Method for displaying picture using histogram equalization in wireless terminal |
CN103458194A (en) * | 2013-08-28 | 2013-12-18 | 中国科学院深圳先进技术研究院 | Method and device for analyzing exposure degree of digital image and video and digital imaging system |
CN104601874A (en) * | 2013-10-31 | 2015-05-06 | 索尼公司 | Control method and control device for working mode as well as electronic equipment |
CN105611140A (en) * | 2015-07-31 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Photographing control method, photographing control device and terminal |
CN105049743A (en) * | 2015-08-21 | 2015-11-11 | 宇龙计算机通信科技(深圳)有限公司 | Backlight testing method, backlight testing system, picture taking device and terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106941588A (en) * | 2017-03-13 | 2017-07-11 | 联想(北京)有限公司 | A kind of data processing method and electronic equipment |
CN106941588B (en) * | 2017-03-13 | 2020-03-24 | 联想(北京)有限公司 | Data processing method and electronic equipment |
CN106878625A (en) * | 2017-04-19 | 2017-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Dual camera synchronization exposure method and system |
CN106878625B (en) * | 2017-04-19 | 2019-10-11 | 宇龙计算机通信科技(深圳)有限公司 | The synchronous exposure method of dual camera and system |
TWI640200B (en) * | 2017-08-11 | 2018-11-01 | 群邁通訊股份有限公司 | Electronic device and method for image capturing control thereof |
US10742875B2 (en) | 2017-08-11 | 2020-08-11 | Chiun Mai Communication Systems, Inc. | Electronic device and image capture control method for a dual camera assembly that fuses images if an ISO value of the camera assembly is greater than or equal to a first preset value |
Also Published As
Publication number | Publication date |
---|---|
CN106375602B (en) | 2019-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106572302B (en) | A kind of image information processing method and equipment | |
CN106201183B (en) | Split screen display available device, mobile terminal and method | |
CN106454121A (en) | Double-camera shooting method and device | |
CN106453538A (en) | Screen sharing apparatus and method | |
CN104820552A (en) | Split-screen display method for mobile terminal and mobile terminal | |
CN105704282A (en) | Detection method and apparatus for camera | |
CN106453382A (en) | Message pushing method and device | |
CN105183272A (en) | Desktop icon arrangement method and apparatus | |
CN106455010A (en) | Quick network search method and apparatus | |
CN105960003A (en) | Control method and terminal | |
CN105827866A (en) | Mobile terminal and control method | |
CN106375679A (en) | Exposure method and device | |
CN106447741A (en) | Picture automatic synthesis method and system | |
CN106803860A (en) | The storage processing method and device of a kind of terminal applies | |
CN106534552B (en) | Mobile terminal and its photographic method | |
CN106851113A (en) | A kind of photographic method and mobile terminal based on dual camera | |
CN105242483B (en) | The method and apparatus that a kind of method and apparatus for realizing focusing, realization are taken pictures | |
CN106375602B (en) | Terminal photographic method and device | |
CN106506364A (en) | A kind of cut-in method, client and routing server | |
CN106507185A (en) | A kind of information processing method and projection terminal | |
CN106534553A (en) | Mobile terminal and shooting method thereof | |
CN106357936A (en) | Control method of map application and mobile terminal | |
CN106161790A (en) | A kind of mobile terminal and control method thereof | |
CN107066289A (en) | A kind of method, device and mobile terminal for starting application according to associating policy | |
CN106412158A (en) | Character photographing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |