A kind of auto heterodyne light compensation method and its system
Technical field
The present invention relates to mobile terminal technical field of image processing, and in particular to a kind of auto heterodyne light compensation method and its system.
Background technology
General mobile terminal camera application program, in self-timer mode, is no automatic light filling function so that in light
The photo autodyned under the inadequate environment of line is more gloomy.Although the camera application program of some mobile terminals is when autodyning, mirror
Headband has flashing light function to be used to carry out light filling, can be again excessively strong based on flashing light lamplight brightness, so that photo effect excessively becomes clear,
The individual demand of user can not be met.
The content of the invention
The purpose of the present invention, exactly overcomes the deficiencies in the prior art, there is provided a kind of auto heterodyne for meeting users ' individualized requirement
Light compensation method and its system.
In order to achieve the above object, adopt the following technical scheme that:A kind of auto heterodyne light compensation method, methods described includes following step
Suddenly:
Whether S1, the camera application program of monitoring mobile terminal are opened, if so, into step S2, if it is not, then circulation prison
Listen;
S2, the suspension button in the ejection auto heterodyne light filling prompting of Current camera Application Program Interface;
S3, when user click on suspension button when, into auto heterodyne light filling pattern;
S4, the self-timer button position data for obtaining Current camera Application Program Interface;
S5, in addition to the self-timer button position at camera application program interface, on camera application program interface add one layer
Transperent suspension layer view;
Whether S6, monitoring trigger the self-timer button at camera application program interface, if so, into step S7, if it is not, circulation prison
Listen;
S7, on transperent suspension layer view the picture that background is white is ejected, and mobile terminal screen brightness adjustment extremely
Most bright value, to realize the light filling when autodyning.
Further, methods described is further comprising the steps of before step S1:
The bag list of file names of default mobile terminal camera application program, monitors the bag of the application program for mobile terminal of current operation
Name whether be in bag list of file names bag name, if so, be then considered as listen to mobile terminal camera application program open, if it is not, then
It is considered as and is not switched on, circulation is monitored.
Further, methods described is further comprising the steps of:
In step s 6, when interface of user's click in addition to the self-timer button of camera application program interface is listened to, it is considered as
Terminate auto heterodyne light filling, exit current auto heterodyne light filling pattern, be back to step S2.
In order to realize another object of the present invention, the present invention is also adopted the following technical scheme that:A kind of auto heterodyne light filling realized
System, the system includes:
Whether camera application program monitoring unit, the camera application program for monitoring mobile terminal is opened;
Ejection suspension pushbutton unit, for being pressed in the suspension of Current camera Application Program Interface ejection auto heterodyne light filling prompting
Button;
Auto heterodyne light filling mode unit, for when user clicks on suspension button, into auto heterodyne light filling pattern;Obtain current phase
The self-timer button position data of machine Application Program Interface;In addition to the self-timer button position at camera application program interface,
Layer of transparent superposed layer view is added on camera application program interface;The auto heterodyne whether monitoring triggers camera application program interface is pressed
Button, if triggering, the picture that background is white is ejected on transperent suspension layer view, and mobile terminal screen brightness adjustment extremely
Most bright value, to realize the light filling when autodyning.
Further, the bag list of file names of the default mobile terminal camera application program of the camera application program monitoring unit, prison
Whether the bag name for listening the application program for mobile terminal of current operation is bag name in bag list of file names, if so, be then considered as listening to shifting
The camera application program of dynamic terminal is opened, if it is not, be then considered as being not switched on, circulation is monitored.
Further, the auto heterodyne light filling mode unit ought listen to user and click on except camera application program interface self-timer button
During outer interface, current auto heterodyne light filling pattern is exited, be back to ejection suspension button mode.
Compared with prior art, the beneficial effects of the present invention are:Camera applications by monitoring mobile terminal of the invention
The opening of program, in the suspension button of Current camera Application Program Interface ejection auto heterodyne light filling prompting;Pressed when user clicks on suspension
During button, into auto heterodyne light filling pattern;Obtain the self-timer button position data of Current camera Application Program Interface;Except camera
Outside the self-timer button position of Application Program Interface, layer of transparent superposed layer view is added on camera application program interface;Monitor
The self-timer button at camera application program interface is triggered, the picture that background is white is ejected on transperent suspension layer view, and shifting
Dynamic screen luminance of terminal is adjusted to most bright value, to realize the light filling when autodyning.The present invention in order that function more light weight and versatility,
For the camera applications of third party and system are adapted to rather than one new camera applications of exploitation, entering these camera applications
When, the behavior that " monitoring " user takes pictures, and " blank " view of maximum is transferred in one full frame brightness of ejection, so as to realize mending
Light Self-timer, meets the individual demand of user.
In order to be fully understood from the purpose of the present invention, feature and effect, below with reference to accompanying drawing to design of the invention, tool
Body structure and the technique effect of generation are described further.
Brief description of the drawings
Fig. 1 is the module diagram of the system that the present invention realizes auto heterodyne light filling;
Fig. 2 is the flow chart of auto heterodyne light compensation method of the present invention.
Specific embodiment
Describe the present invention in detail below in conjunction with accompanying drawing and specific implementation method, it is of the invention it is schematic implementation and
Illustrate for explaining the present invention but not as a limitation of the invention.
As shown in figure 1, a kind of system for realizing auto heterodyne light filling, the system includes:
Whether camera application program monitoring unit, the camera application program for monitoring mobile terminal is opened, specially:Institute
The bag list of file names of the default mobile terminal camera application program of camera application program monitoring unit is stated, the mobile end of current operation is monitored
Hold application program bag name whether be in bag list of file names bag name, if so, being then considered as the camera applications journey for listening to mobile terminal
Sequence is opened, if it is not, be then considered as being not switched on, circulation is monitored;
Ejection suspension pushbutton unit, for being pressed in the suspension of Current camera Application Program Interface ejection auto heterodyne light filling prompting
Button;
Auto heterodyne light filling mode unit, for when user clicks on suspension button, into auto heterodyne light filling pattern;Obtain current phase
The self-timer button position data of machine Application Program Interface;In addition to the self-timer button position at camera application program interface,
Layer of transparent superposed layer view is added on camera application program interface;The auto heterodyne whether monitoring triggers camera application program interface is pressed
Button, if triggering, the picture that background is white is ejected on transperent suspension layer view, and mobile terminal screen brightness adjustment extremely
Most bright value, to realize the light filling when autodyning.
The auto heterodyne light filling mode unit works as the boundary for listening to user's click in addition to the self-timer button of camera application program interface
During face, current auto heterodyne light filling pattern is exited, be back to ejection suspension button mode.
As shown in Fig. 2 a kind of auto heterodyne light compensation method, the described method comprises the following steps:
S101:The bag list of file names of default mobile terminal camera application program;
S102:Whether the camera application program for monitoring mobile terminal is opened, specially:Monitor the mobile terminal of current operation
Whether the bag name of application program is bag name in bag list of file names, if so, into step S103;If it is not, then circulation is monitored;
S103:In the suspension button of Current camera Application Program Interface ejection auto heterodyne light filling prompting;
S104:When user clicks on suspension button, into auto heterodyne light filling pattern;
S105:Obtain the self-timer button position data of Current camera Application Program Interface;
S106:In addition to the self-timer button position at camera application program interface, one is added on camera application program interface
Layer transperent suspension layer view;
S107:Whether monitoring triggers the self-timer button at camera application program interface, if so, into step S109, if it is not, following
Ring is monitored;
S108:When listening to interface of user's click in addition to the self-timer button of camera application program interface, it is considered as end and autodynes
Light filling, exits current auto heterodyne light filling pattern, is back to step S103;
S109:The picture that background is white is ejected on transperent suspension layer view, and mobile terminal screen brightness adjustment
To most bright value, to realize the light filling when autodyning.
Auto heterodyne light filling function of the present invention needs to obtain suspended window on some mobile terminals and checks equipment service condition
Authority, is respectively used to add specific view on other application and assists to read the bag name of current foreground application, works as judgement
In the case of being camera application program (system, third-party) to user's current foreground application, the light filling prompting of ejection auto heterodyne
Suspension button, clicks on the suspension button and then enters auto heterodyne light filling pattern, now adds in other regions in addition to button of taking pictures
Plus the superposed layer view of layer of transparent, it is to exit auto heterodyne light filling pattern, such as fruit dot if the region beyond clicking on button of taking pictures
What is hit is button of taking pictures, and is adjusted in the superposed layer view that one background of user's auto heterodyne horse back ejection simultaneously is white and screen intensity
It is whole to most bright, realize the function of auto heterodyne light filling.
If function described in the present embodiment using realize in the form of SFU software functional unit and as independent production marketing or
When using, can store in a computing device read/write memory medium.Based on such understanding, the embodiment of the present invention is to existing
Having part that technology contributes or the part of the technical scheme can be embodied in the form of software product, and the software is produced
Product are stored in a storage medium, including some instructions are used to so that a computing device (can be personal computer, service
Device, mobile computing device or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.And
Foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory
Device (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.This explanation
Each embodiment is described by the way of progressive in book, what each embodiment was stressed be it is different from other embodiments it
Place, between each embodiment same or similar part mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention.
Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The scope most wide for causing.