A kind of projection brightness varitrol and method
Technical field
The present invention relates to shadow casting technique, what be specifically related to is a kind of projection brightness varitrol and method, and the projection brightness that is mainly used in the equipment such as mobile phone, projector of projecting function is regulated.
Background technology
Fast development along with electronic manufacturing technology and smart mobile phone, what mobile phone had a projecting function becomes possibility, present part smart mobile phone all has projecting function, can realize the displaying of interior of mobile phone data, picture, PPT and video etc. by projecting function, greatly convenient for users to use.
But the projector of the present mobile phone with projecting function and routine is when carrying out projection, and to having relatively high expectations of ambient brightness, the ambient brightness during projection has a great impact the effect of projection, if when surrounding environment is brighter, projection brightness must increase; And ambient brightness is when darker, and the brightness of projection will dim a little, and present projection mobile phone and projector all need by manual adjustments, and regulative mode is cumbersome, and effect is also undesirable, and user's experience sense is relatively poor.
Summary of the invention
For this reason, the object of the present invention is to provide a kind of projection brightness varitrol and method, need the existing adjusting trouble of manual adjustments brightness, effect bad to solve present projection mobile phone, projector, the problem that user's experience sense is relatively poor.
The objective of the invention is to be achieved through the following technical solutions.
A kind of projection brightness varitrol comprises CPU, microprocessor, projection module and projection lens, and described CPU is connected with microprocessor, and microprocessor is connected with projection lens by projection module, also includes a luminance sensor that is connected with microprocessor.
Preferably, this system also includes a storer that is connected with CPU, stores the ambient brightness backoff algorithm in this storer.
Preferably, described luminance sensor also is connected with CPU.
In addition, the present invention also provides a kind of projection brightness Automatic adjustment method, comprises step:
A, obtain the ambient brightness parameter value by luminance sensor, and its correspondence is sent to microprocessor;
B, microprocessor correspondence send to CPU with this ambient brightness parameter value;
C, CPU carry out luminance compensation according to this ambient brightness parameter value, and the luminance parameter after compensating sends to microprocessor;
D, the microprocessor luminance parameter controlling projection module drive projection lens after according to this compensation carries out projection.
Preferably, also comprise before steps A:
Ambient brightness backoff algorithm corresponding stored is set in storer.
Preferably, steps A comprises:
CPU controls luminance sensor and starts, and obtains ambient brightness parameter value when front projection by luminance sensor, and its correspondence is sent to microprocessor.
Preferably, step B comprises:
Microprocessor obtains above-mentioned ambient brightness parameter value, and converts thereof into digital format, and correspondence will send to CPU.
Preferably, step C comprises:
CPU calls the ambient brightness backoff algorithm in storer, and above-mentioned ambient brightness parameter value is compensated calculating, obtain the brightness value after compensation, and the luminance parameter after compensating sends to microprocessor.
The present invention compared with prior art, beneficial effect is: projection brightness varitrol provided by the invention and method, by luminance sensor, the ambient brightness that needs projection is detected, obtain the current environment brightness value, and this numerical value correspondence is sent to CPU, brightness compensates to current environment to call the luminance compensation algorithm by CPU, obtains the brightness value that needs compensation, and correspondence is carried out projection by microprocessor controlling projection module drive projection lens.The present invention has realized according to ambient brightness different, and the purpose of automatically regulating projection brightness has been avoided the existing weak effect of manual adjustments brightness, complex operation and the relatively poor problem of user's experience sense.
Description of drawings
Fig. 1 is system principle diagram of the present invention.
Fig. 2 is principle of work process flow diagram of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
See also shown in Figure 1ly, Fig. 1 is system principle diagram of the present invention.The present invention is to provide a kind of projection brightness varitrol, being mainly used in solving present projection mobile phone, projector needs the existing adjusting trouble of manual adjustments brightness, effect bad, the problem that user's experience sense is relatively poor.
Wherein this system includes CPU, microprocessor, storer, projection module and projection lens, described CPU is connected with microprocessor, microprocessor is connected with projection lens by projection module, also include a luminance sensor that is connected with microprocessor, this luminance sensor also is connected with CPU, stores the ambient brightness backoff algorithm in described storer.
this system can be applicable to projection mobile phone, projector etc. have in the equipment of projecting function, it is by being arranged on the luminance sensor in corresponding device, correspondence is obtained the projection brightness parameter, if this current ambient brightness is inconsistent with best projection brightness, need to calculate compensation by the CPU correspondence, its luminance compensation algorithm according to best projection effect and projection ambient brightness one by one corresponding calculating obtain, when the ambient brightness that obtains is darker, calculate under this ambient brightness by the backoff algorithm correspondence, need how much brightness of compensation just can reach best drop shadow effect, and drive projection module work according to result of calculation, the corresponding projection brightness of regulating projection lens, mated with realization and ambient brightness.
Native system can according to the brightness of projection environment, be adjusted the brightness of projection mobile phone or projector projection automatically.So just remove the trouble of the each manual adjustments of user from, satisfied very real demand of user, provide better user to experience.
Be more than the explanation to a kind of projection brightness varitrol of the present invention, be further described below in conjunction with a kind of projection brightness Automatic adjustment method of 2 couples of the present invention of accompanying drawing.
Shown in Figure 2, Fig. 2 is principle of work process flow diagram of the present invention.The present invention also provides a kind of projection brightness varitrol, and concrete steps are as follows:
At first ambient brightness backoff algorithm corresponding stored is set in storer, this ambient brightness backoff algorithm is used for current projection ambient brightness is compensated, regulate by the projection brightness to projection lens, itself and current environment brightness are mated, such as when ambient brightness is darker, correspondence dims projection brightness; If when ambient brightness is brighter, correspondence lightens projection brightness.
A, obtain the ambient brightness parameter value by luminance sensor, and its correspondence is sent to microprocessor;
CPU controls luminance sensor and starts, and obtains ambient brightness parameter value when front projection by luminance sensor, and its correspondence is sent to microprocessor.
B, microprocessor correspondence send to CPU with this ambient brightness parameter value;
Microprocessor obtains above-mentioned ambient brightness parameter value, and converts thereof into digital format, and correspondence will send to CPU.
C, CPU carry out luminance compensation according to this ambient brightness parameter value, and the luminance parameter after compensating sends to microprocessor;
CPU calls the ambient brightness backoff algorithm in storer, and above-mentioned ambient brightness parameter value is compensated calculating, obtain the brightness value after compensation, and the luminance parameter after compensating sends to microprocessor.
D, the microprocessor luminance parameter controlling projection module drive projection lens after according to this compensation carries out projection.
The present invention utilizes the luminance sensor of mobile phone or projector, when projecting function is opened, starts luminance sensor.When finding that ambient brightness is higher, heighten the brightness of projection; When finding that ambient brightness is relatively lower, turn down the brightness of projection, thereby make drop shadow effect automatically reach state preferably.
The above is only preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.