Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
First embodiment
As shown in Figure 1, the embodiment of the invention provides a kind of methods of camera parameter regulation, comprising:
Step 101, the photosignal intensity for obtaining the corresponding multiple photosensitive regions of camera.
In the embodiment, the optical signal for transmiting into camera eyeglass is converted into electric signal by the photosensitive element of camera.Root
The transmission region of camera eyeglass is divided into multiple sub- transmission regions according to preset rules, photosensitive element will corresponding each sub- light transmission
The optical signal in region is converted into electric signal.By to multiple in the photosensitive region for corresponding to each sub- transmission region on photosensitive element
Pixel is sampled, and determines the photosignal intensity of corresponding photosensitive region.
Whether step 102, the photosignal intensity of each photosensitive region of detection meet preset condition.
In the embodiment, camera scratch influences the finish on its surface, and the finish of lens surface influences it thoroughly
Light rate, light transmittance is higher, more clear depending on object.In scratch, local transparent rate is reduced, then corresponds to the optical telecommunications of photosensitive region
Number intensity reduces.
Region centered on the wherein photosensitive region in multiple photosensitive regions is chosen, selected distance central area is default
Multiple photosensitive regions of distance are reference zone.According to the opposite light with central area of the photosignal intensity of each reference zone
The deviation situation of electrical signal intensity determines the opposite fluctuation situation with the photosignal intensity of reference zone in central area.When
When fluctuation situation is larger, determine that the light transmittance of the corresponding eyeglass transmission region in central area reduces, i.e., eyeglass is scratched.
Wherein, the photosignal intensity of preset condition is determined based on experiment test.Specifically, different based on experimental evaluation
The corresponding effect of taking pictures of degree is scratched, determines that the corresponding degree that scratches is as critical condition under worst acceptable imaging effect,
It determines and scratches the corresponding photosignal intensity of degree as preset condition under critical condition.
Step 103, when the photosignal intensity of the photosensitive region meets preset condition, to the light of the photosensitive region
Electrical signal intensity compensates.
In the embodiment, when the photosignal intensity of the photosensitive region meets preset condition, that is, determines and feel to corresponding
The lens area in light region scratches, and light transmittance reduces.It is compensated by the photosignal intensity to corresponding photosensitive region, i.e.,
Increase the intensity value of photosignal, realize the purpose for carrying out luminosity compensation to shot image, so as to avoid due to imaging head mirror
The problem of piece, which scratches, causes corresponding lens area light transmittance to reduce, and the imaging is not clear when causing to take pictures.
It in above scheme, is sampled by the photosignal in multiple photosensitive regions to camera, detects each sense
Whether the corresponding photosignal intensity in light region meets preset condition, and compensates to the photosensitive region for meeting preset condition,
To improve the effect effect for image of taking pictures, avoid since scratch causes the photosignal intensity of corresponding photosensitive region to subtract
It is weak, so that the problem that picture quality of taking pictures is inferior.
Second embodiment
As shown in Fig. 2, the embodiment of the invention provides a kind of methods of camera parameter regulation, comprising:
Step 201, the photosignal intensity for obtaining the corresponding multiple photosensitive regions of camera.
In the embodiment, the optical signal for transmiting into camera eyeglass is converted into electric signal by the photosensitive element of camera.Root
The transmission region of camera eyeglass is divided into multiple sub- transmission regions according to preset rules, photosensitive element will corresponding each sub- light transmission
The optical signal in region is converted into electric signal.By to multiple in the photosensitive region for corresponding to each sub- transmission region on photosensitive element
Pixel is sampled, and determines the photosignal intensity of corresponding photosensitive region.
Photosensitive region centered on a wherein photosensitive region in step 202, the multiple photosensitive region of selection.
In the embodiment, photosensitive region centered on each photosensitive region is successively chosen according to preset rules.Specifically, will
All photosensitive regions establish plane coordinate system as an overall region, the coordinate in each photosensitive region corresponding flat coordinate system
Point.It can be incremented by according to abscissa, then the incremental sequence of ordinate successively Selection Center photosensitive region.
Step 203, to choose in the multiple photosensitive region away from the center photosensitive region be the multiple photosensitive of pre-determined distance
Region, which is used as, refers to photosensitive region.
In the embodiment, the multiple photosensitive regions chosen closest to center photosensitive region are used as with reference to photosensitive region.Tool
Body, plane coordinate system is established using all photosensitive regions as an overall region, determines a center photosensitive area in plane coordinate system
Domain.Choosing the manhatton distance away from center photosensitive region is that multiple photosensitive regions within the scope of 1 or pre-determined distance are used as reference
Photosensitive region.
Step 204, according to the photosignal intensity of the center photosensitive region and multiple described with reference to photosensitive region
Photosignal intensity, determines whether the photosignal intensity of the center photosensitive region meets preset condition.
In the embodiment, according to each photoelectricity with reference to the photosignal intensity of photosensitive region relative to center photosensitive region
The deviation of signal strength calculates the dispersion between deviation.The photosignal of center photosensitive region is determined according to dispersion
Whether intensity meets preset condition, when dispersion reaches preset threshold, determines the photosignal intensity symbol of center photosensitive region
Close preset condition.Wherein dispersion is bigger, indicates that the fluctuation of photosignal intensity is bigger, indicates the corresponding mirror of center photosensitive region
Panel region scratches.
Step 205, when the photosignal intensity of the photosensitive region meets preset condition, to the light of the photosensitive region
Electrical signal intensity compensates.
In the embodiment, when the photosignal intensity of the photosensitive region meets preset condition, that is, determines and feel to corresponding
The lens area in light region scratches, and light transmittance reduces.It is mended by the photosignal intensity to respective center photosensitive region
It repays, that is, increases the intensity value of photosignal, realize the purpose for carrying out luminosity compensation to shot image, so as to avoid due to camera shooting
The problem of head scratch causes corresponding lens area translucent effect to reduce, and the imaging is not clear when causing to take pictures.
Wherein, the photosignal intensity according to the center photosensitive region and multiple described with reference to photosensitive region
Photosignal intensity determines the step of whether the photosignal intensity of the center photosensitive region meets preset condition, comprising:
According to the photosignal intensity of the center photosensitive region and multiple photosignals with reference to photosensitive region
Intensity determines the photosignal intensity of each photosignal intensity with reference to photosensitive region relative to the center photosensitive region
Deviation.
In the embodiment, the photoelectricity of each the photosignal intensity with reference to photosensitive region and center photosensitive region is calculated separately
Difference between signal strength, as deviation.Specifically, the calculation formula of deviation are as follows:
Δ1=| N1-N2|
Wherein, Δ1Indicate deviation;N1The photosignal intensity of expression center photosensitive region;N2Indicate a wherein reference sense
The photosignal intensity in light region.
According to the deviation, the dispersion between the deviation is calculated.
In the embodiment, the calculation formula of dispersion are as follows:
Wherein, σ indicates dispersion;Δ1、Δ2…ΔnIndicate each photosignal intensity with reference to photosensitive region relative to
The deviation of the photosignal intensity of center photosensitive region;N indicates to refer to the number of photosensitive region;Δ indicates Δ1、Δ2…Δn
Average value.
When the dispersion is greater than preset threshold, it is default to determine that the photosignal intensity of the center photosensitive region meets
Condition.
In the embodiment, dispersion indicates each photosignal intensity with reference to photosensitive region relative to center photosensitive region
Fluctuation situation between the deviation of photosignal intensity.Dispersion is bigger to indicate that the fluctuation between the deviation is bigger, i.e.,
The light transmittance of eyeglass is poorer, and scratch is serious.
Wherein, when the photosignal intensity of the photosensitive region meets preset condition, to the photoelectricity of the photosensitive region
The step of signal strength compensates, comprising:
When the photosignal intensity of the center photosensitive region meets preset condition, the root mean square of the deviation is determined
The photosignal intensity of value corresponding center photosensitive region when minimum is as compensating parameter.
In the embodiment, when determining each light with reference to the photosignal intensity of photosensitive region relative to center photosensitive region
When dispersion between the deviation of electrical signal intensity is greater than preset threshold, the electrical signal intensity of the center photosensitive region is arranged
It is unknown, for example is set as x, finds out the light with reference to the photosignal intensity of photosensitive region relative to center photosensitive region each at this time
The root mean square of the deviation of electrical signal intensity x.The value for determining corresponding x when the root-mean-square value minimum is compensating parameter.
Due in the case where eyeglass does not scratch, and when the photosensitive region that is divided is sufficiently small, center photosensitive region with
And multiple corresponding photosignal Strength Changes amount very littles in region constituted with reference to photosensitive region.Center is indicated when root mean square minimum
The photosignal intensity of photosensitive region is minimum relative to the variable quantity of each photosignal intensity with reference to photosensitive region.Therefore,
The photosignal intensity of corresponding center photosensitive region is as compensating parameter when using root mean square minimum.
According to the compensating parameter, the photosignal intensity of the center photosensitive region is compensated.
In the embodiment, luminosity compensation is carried out to the photosignal intensity of center photosensitive region, that is, increases photosignal
Intensity value, so that the photosignal intensity of the center photosensitive region reaches compensating parameter value.
Wherein, when the photosignal intensity of the photosensitive region meets preset condition, the optical telecommunications of the photosensitive region
The step of number intensity compensates, comprising:
When the photosignal intensity of the center photosensitive region meets preset condition, the benefit of the corresponding dispersion is determined
Repay grade.
In the embodiment, compensation grade indicates the compensation intensity relative to transmission loss caused by scratch.It is based on
Simulation test determine it is different scratch the corresponding transmission loss of degree, wherein different transmission loss correspond to it is different discrete
Degree.According to pair between the dispersion database multiple default dispersions stored and compensation grade of preset characterization light transmittance
It should be related to, determine the compensation grade of the corresponding dispersion.
It is mended according to the respectively corresponded photosignal intensity of multiple predesigned compensation grades stored in default adjustment tables of data
Repay the corresponding relationship between parameter, the compensating parameter of determining photosignal intensity corresponding with the compensation grade.
In the embodiment, adjustment tables of data is pre-established, establishes predesigned compensation grade and photoelectricity in default adjustment tables of data
Mapping relations between the compensating parameter of signal strength determine the corresponding photosignal intensity of compensation grade according to mapping relations
Compensating parameter.
According to the compensating parameter, the photosignal intensity of the center photosensitive region is compensated.
In the embodiment, it is greater than the corresponding optical telecommunications of center photosensitive region of preset threshold to dispersion according to compensating parameter
Number intensity compensates, that is, increases the intensity value of photosignal, so that the photosignal intensity of the center photosensitive region reaches benefit
Repay parameter value.It realizes the purpose for carrying out luminosity compensation to shot image, causes pair so as to avoid due to camera scratch
The problem of region translucent effect answered reduces, and the imaging is not clear when causing to take pictures.
In above scheme, by sampling to the photosignal in camera photosensitive element region, the saturating of eyeglass is established
Relationship between light effect and photosignal intensity replaces the variation of translucent effect by photosignal Strength Changes, thus really
That determines camera eyeglass scratches degree.When the photosignal intensity for detecting photosensitive element region variation fluctuation it is larger, i.e.,
Determine that scratch compensates the photosignal intensity of corresponding photosensitive region when translucent effect is deteriorated.In this way, avoiding
Since scratch leads to the inferior problem of picture quality of taking pictures.It ensure that the imaging effect taken pictures, improve user experience.
3rd embodiment
First embodiment above and second embodiment describe the Bu Tong real of the method for camera parameter regulation in detail respectively
Mode is applied, corresponding mobile terminal is described further below in conjunction with Fig. 3 and Fig. 4.
Specifically, the mobile terminal 300 of the embodiment of the present invention, comprising: obtain module 310, detection module 320 and adjustment mould
Block 330.
Module 310 is obtained, for obtaining the photosignal intensity of the corresponding multiple photosensitive regions of camera.
In the embodiment, the optical signal for transmiting into camera eyeglass is converted into electric signal by the photosensitive element of camera.Root
The transmission region of camera eyeglass is divided into multiple sub- transmission regions according to preset rules, module 310 is obtained and obtains photosensitive element
The electric signal that the optical signal of each sub- transmission region of correspondence is converted into.
Whether detection module 320, the photosignal intensity for detecting each photosensitive region meet preset condition.
In the embodiment, camera scratch influences the finish on its surface, and the finish of lens surface influences it thoroughly
Light rate, light transmittance is higher, more clear depending on object.In scratch, local transparent rate is reduced, then corresponds to the optical telecommunications of photosensitive region
Number intensity reduces.
Choose region centered on the wherein photosensitive region in multiple photosensitive regions, selected distance central area be it is default away from
From multiple photosensitive regions be reference zone.Detection module 320 is opposite with according to the photosignal intensity of each reference zone
The deviation situation of the photosignal intensity in heart district domain determines wave of the central area relative to the photosignal intensity of reference zone
Emotionally condition.When fluctuation situation is larger, determine that the light transmittance of the corresponding eyeglass transmission region in central area reduces, i.e., eyeglass is scraped
Flower.
Wherein, the photosignal intensity of preset condition is determined based on experiment test.Specifically, different based on experimental evaluation
The corresponding effect of taking pictures of degree is scratched, determines that the corresponding degree that scratches is as critical condition under worst acceptable imaging effect,
It determines and scratches the corresponding photosignal intensity of degree as preset condition under critical condition.
Module 330 is adjusted, when the photosignal intensity of the photosensitive region meets preset condition, to the photosensitive region
Photosignal intensity compensate.
In the embodiment, when the photosignal intensity of the photosensitive region meets preset condition, that is, determines and feel to corresponding
The lens area in light region scratches, and light transmittance reduces.Adjustment module 330 passes through the photosignal intensity to corresponding photosensitive region
Compensate, that is, increase photosignal intensity value, realize to shot image carry out luminosity compensation purpose, so as to avoid by
Corresponding region translucent effect is caused to reduce in camera scratch, the problem of the imaging is not clear when causing to take pictures.It ensure that
The imaging effect taken pictures, improves user experience.
Wherein, the detection module 320 includes: that the first selection submodule 321, second is chosen at submodule 322 and first
Manage submodule 323.
First chooses submodule 321, for centered on choosing the wherein photosensitive region in the multiple photosensitive region
Photosensitive region.
In the embodiment, the first selection submodule 321 is successively chosen according to preset rules centered on each photosensitive region
Photosensitive region.Specifically, establishing plane coordinate system for all photosensitive regions as an overall region, each photosensitive region is corresponding flat
A coordinate points in areal coordinate system.It can be incremented by according to abscissa, then the incremental sequence of ordinate successively Selection Center photosensitive area
Domain.
Second chooses submodule 322, away from the center photosensitive region is default for choosing in the multiple photosensitive region
Multiple photosensitive regions of distance, which are used as, refers to photosensitive region.
In the embodiment, second, which chooses multiple photosensitive regions that submodule 322 is chosen closest to center photosensitive region, makees
For with reference to photosensitive region.Specifically, establishing plane coordinate system for all photosensitive regions as an overall region, plane coordinates is determined
A center photosensitive region in system.It is multiple within the scope of 1 or pre-determined distance for choosing the manhatton distance away from center photosensitive region
Photosensitive region, which is used as, refers to photosensitive region.
First processing submodule 323, for the photosignal intensity and multiple references according to the center photosensitive region
The photosignal intensity of photosensitive region, determines whether the photosignal intensity of the center photosensitive region meets preset condition.
In the embodiment, first processing submodule 323 according to each photosignal intensity with reference to photosensitive region relative to
The deviation of the photosignal intensity of center photosensitive region calculates the dispersion between deviation.Center is determined according to dispersion
Whether the photosignal intensity of photosensitive region meets preset condition, when dispersion reaches preset threshold, determines center photosensitive area
The photosignal intensity in domain meets preset condition.Wherein dispersion is bigger, indicates that the fluctuation of photosignal intensity is bigger, in expression
The corresponding lens area of heart photosensitive region scratches.
Wherein, the first processing submodule 323 includes: the first computing unit 3231, the second computing unit 3232 and place
Manage unit 3233.
First computing unit 3231, for the photosignal intensity and multiple ginsengs according to the center photosensitive region
The photosignal intensity for examining photosensitive region determines that each photosignal intensity with reference to photosensitive region is photosensitive relative to the center
The deviation of the photosignal intensity in region.
In the embodiment, the photoelectricity of each the photosignal intensity with reference to photosensitive region and center photosensitive region is calculated separately
Difference between signal strength, as deviation.Specifically, the calculation formula of deviation are as follows:
Δ1=| N1-N2|
Wherein, Δ1Indicate deviation;N1The photosignal intensity of expression center photosensitive region;N2Indicate a wherein reference sense
The photosignal intensity in light region.
Second computing unit 3232, for calculating the dispersion between the deviation according to the deviation.
In the embodiment, the calculation formula of dispersion are as follows:
Wherein, σ indicates dispersion;Δ1、Δ2…ΔnIndicate each photosignal intensity with reference to photosensitive region relative to
The deviation of the photosignal intensity of center photosensitive region;N indicates to refer to the number of photosensitive region;Δ indicates Δ1、Δ2…Δn
Average value.
Processing unit 3233, for determining the light of the center photosensitive region when the dispersion is greater than preset threshold
Electrical signal intensity meets preset condition.
In the embodiment, dispersion indicates each photosignal intensity with reference to photosensitive region relative to center photosensitive region
Photosignal intensity deviation between fluctuation situation.Dispersion is bigger to indicate that the fluctuation between the deviation is bigger,
That is the light transmittance of eyeglass is poorer, and scratch is serious.
Wherein, the adjustment module 330 includes: computational submodule 331 and the first compensation submodule 332.
Computational submodule 331, for determining when the photosignal intensity of the center photosensitive region meets preset condition
The photosignal intensity of corresponding center photosensitive region is as compensating parameter when the root-mean-square value minimum of the deviation.
In the embodiment, when determining each light with reference to the photosignal intensity of photosensitive region relative to center photosensitive region
When dispersion between the deviation of electrical signal intensity is greater than preset threshold, computational submodule 331 is by the center photosensitive region
Photosignal intensity is set as unknown, for example is set as x, find out the photosignal intensity with reference to photosensitive region each at this time relative to
The root mean square of the deviation of the photosignal intensity x of center photosensitive region.Determine the value of corresponding x when the root-mean-square value minimum i.e.
For compensating parameter.
Due in the case where eyeglass does not scratch, and when the photosensitive region that is divided is sufficiently small, center photosensitive region with
And multiple corresponding photosignal Strength Changes amount very littles in region constituted with reference to photosensitive region.Center is indicated when root mean square minimum
The photosignal intensity of photosensitive region is minimum relative to the variable quantity of each photosignal intensity with reference to photosensitive region.Therefore,
The photosignal intensity of corresponding center photosensitive region is as compensating parameter when using root mean square minimum.
First compensation submodule 332, is used for according to the compensating parameter, strong to the photosignal of the center photosensitive region
Degree compensates.
In the embodiment, the first compensation submodule 332 carries out luminosity compensation to the photosignal intensity of center photosensitive region,
The intensity value for increasing photosignal, so that the photosignal intensity of the center photosensitive region reaches compensating parameter value.
Wherein, the adjustment module 330 includes: second processing submodule 333, third processing submodule 334 and the second benefit
Repay submodule 335.
Second processing submodule 333, for when the photosignal intensity of the center photosensitive region meets preset condition,
Determine the compensation grade of the corresponding dispersion.
In the embodiment, compensation grade indicates the compensation intensity relative to transmission loss caused by scratch.It is based on
Simulation test determine it is different scratch the corresponding transmission loss of degree, wherein different transmission loss correspond to it is different discrete
Degree.Multiple default dispersions that second processing submodule 333 is stored according to the dispersion database of preset characterization light transmittance
With the corresponding relationship between compensation grade, the compensation grade of the corresponding dispersion is determined.
Third handles submodule 334, for according to the multiple predesigned compensation grade institutes stored in default adjustment tables of data
The corresponding relationship between photosignal intensity compensation parameter is respectively corresponded, determines that photosignal corresponding with the compensation grade is strong
The compensating parameter of degree.
In the embodiment, adjustment tables of data is pre-established, establishes predesigned compensation grade and photoelectricity in default adjustment tables of data
Mapping relations between signal strength compensating parameter, third handle submodule 334 and determine that compensation grade is corresponding according to mapping relations
Photosignal intensity compensating parameter.
Second compensation submodule 335, is used for according to the compensating parameter, strong to the photosignal of the center photosensitive region
Degree compensates.
In the embodiment, the second compensation submodule 335 is felt according to the center that compensating parameter is greater than preset threshold to dispersion
The corresponding photosignal intensity in light region compensates, that is, increases the intensity value of photosignal, so that the center photosensitive region
Photosignal intensity reaches compensating parameter value.The purpose that luminosity compensation is carried out to shot image is realized, so as to avoid due to taking the photograph
As the problem of head scratch causes corresponding region translucent effect to reduce, and the imaging is not clear when causing to take pictures.
In above scheme, the photosignal in camera photosensitive element region is sampled by obtaining module 310.It builds
Relationship between the translucent effect and photosignal intensity of vertical eyeglass, the change of translucent effect is replaced by photosignal Strength Changes
Change, so that it is determined that camera eyeglass scratches degree.When detection module 320 detects that the photosignal in photosensitive element region is strong
The variation fluctuation of degree is larger, that is, scratch is determined, when translucent effect is deteriorated, by adjusting module 330 to corresponding photosensitive area
The photosignal intensity in domain compensates.In this way, avoiding since scratch leads to the inferior problem of picture quality of taking pictures.It protects
The imaging effect taken pictures has been demonstrate,proved, user experience is improved.
Fourth embodiment
Fig. 5 is the block diagram of the mobile terminal 500 of another embodiment of the present invention, mobile terminal as shown in Figure 5 include: to
Few a processor 501, memory 502, take pictures component 503 and user interface 504.Various components in mobile terminal 500 are logical
Bus system 505 is crossed to be coupled.It is understood that bus system 505 is for realizing the connection communication between these components.Bus
System 505 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But in order to clear
For the sake of explanation, various buses are all designated as bus system 505 in Fig. 5.
Wherein, user interface 504 may include display or pointing device (such as touch-sensitive plate or touch screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 502 of system and method described herein is intended to include but is not limited to these and arbitrarily its
It is suitble to the memory of type.
In some embodiments, memory 502 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 5021 and application program 5022.
Wherein, operating system 5021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 5022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 5022.
In an embodiment of the present invention, specifically it can be and answer by the program or instruction of calling memory 502 to store
With the program or instruction stored in program 5022.Wherein, processor 501 is used for: obtaining the corresponding multiple photosensitive regions of camera
Photosignal intensity;Whether the photosignal intensity for detecting each photosensitive region meets preset condition;In the photosensitive region
Photosignal intensity when meeting preset condition, the photosignal intensity of the photosensitive region is compensated.
The method that the embodiments of the present invention disclose can be applied in processor 501, or be realized by processor 501.
Processor 501 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing
Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 502, processor 501 reads the information in memory 502, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Wherein, processor 501 is also used to: being chosen and is felt centered on the wherein photosensitive region in the multiple photosensitive region
Light region;It chooses in the multiple photosensitive region away from multiple photosensitive regions that the center photosensitive region is pre-determined distance as ginseng
Examine photosensitive region;According to the photosignal intensity of the center photosensitive region and multiple optical telecommunications with reference to photosensitive region
Number intensity, determines whether the photosignal intensity of the center photosensitive region meets preset condition.
Wherein, processor 501 is also used to: according to the photosignal intensity of the center photosensitive region and multiple ginsengs
The photosignal intensity for examining photosensitive region determines that each photosignal intensity with reference to photosensitive region is photosensitive relative to the center
The deviation of the photosignal intensity in region;According to the deviation, the dispersion between the deviation is calculated;It is described from
When divergence is greater than preset threshold, determine that the photosignal intensity of the center photosensitive region meets preset condition.
Wherein, processor 501 is also used to: when the photosignal intensity of the center photosensitive region meets preset condition,
Determine the electrical signal intensity of corresponding center photosensitive region when the root-mean-square value minimum of the deviation as compensating parameter;According to
The compensating parameter compensates the photosignal intensity of the center photosensitive region.
Wherein, processor 501 is also used to: when the photosignal intensity of the center photosensitive region meets preset condition from
Divergence determines the compensation grade of the corresponding dispersion;According to the multiple predesigned compensations etc. stored in default adjustment tables of data
Corresponding relationship between the respectively corresponded photosignal intensity compensation parameter of grade, determines optical telecommunications corresponding with the compensation grade
The compensating parameter of number intensity;According to the compensating parameter, the photosignal intensity of the center photosensitive region is compensated.
The mobile terminal 500 of the embodiment of the present invention, by being adopted to the photosignal in camera photosensitive element region
Sample establishes the relationship between the translucent effect of eyeglass and photosignal intensity, is imitated by photosignal Strength Changes instead of light transmission
The variation of fruit, so that it is determined that camera eyeglass scratches degree.When the photosignal intensity for detecting photosensitive element region
Variation fluctuation is larger, that is, determines scratch, when translucent effect is deteriorated, carries out to the photosignal intensity of corresponding photosensitive region
Compensation.In this way, avoiding since scratch leads to the inferior problem of picture quality of taking pictures.
5th embodiment
Fig. 6 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 6
600 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 600 in Fig. 6 includes power supply 610, memory 620, input unit 630, display unit 640, processing
Device 650, WIFI (Wireless Fidelity) module 660, voicefrequency circuit 670 and RF circuit 680.
Wherein, input unit 630 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 600 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 631.Touch panel 631, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 631 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 631 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 650 is given again, and can be received order that processor 650 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 631.In addition to touch panel 631, input unit
630 can also include other input equipments 632, other input equipments 632 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 640 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal.Display unit 640 may include display panel 641, optionally, can use LCD or organic light emission
The forms such as diode (Organic Light-Emitting Diode, OLED) configure display panel 641.
It should be noted that touch panel 631 can cover display panel 641, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 650 is sent to determine the type of touch event, is followed by subsequent processing device
650 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 650 is the control centre of mobile terminal, utilizes each of various interfaces and connection whole mobile phone
A part by running or execute the software program and/or module that are stored in first memory 621, and is called and is stored in
Data in second memory 622 execute the various functions and processing data of mobile terminal, to carry out to mobile terminal whole
Monitoring.Optionally, processor 650 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/
To the data in second memory 622, the photosignal that processor 650 is used to obtain the corresponding multiple photosensitive regions of camera is strong
Degree;Whether the photosignal intensity for detecting each photosensitive region meets preset condition;It is strong in the photosignal of the photosensitive region
When degree meets preset condition, the photosignal intensity of the photosensitive region is compensated.
Wherein, processor 650 is also used to: being chosen and is felt centered on the wherein photosensitive region in the multiple photosensitive region
Light region;It chooses in the multiple photosensitive region away from multiple photosensitive regions that the center photosensitive region is pre-determined distance as ginseng
Examine photosensitive region;According to the photosignal intensity of the center photosensitive region and multiple optical telecommunications with reference to photosensitive region
Number intensity, determines whether the photosignal intensity of the center photosensitive region meets preset condition.
Wherein, processor 650 is also used to: according to the photosignal intensity of the center photosensitive region and multiple ginsengs
The photosignal intensity for examining photosensitive region determines that each photosignal intensity with reference to photosensitive region is photosensitive relative to the center
The deviation of the photosignal intensity in region;According to the deviation, the dispersion between the deviation is calculated;It is described from
When divergence is greater than preset threshold, determine that the photosignal intensity of the center photosensitive region meets preset condition.
Wherein, processor 650 is also used to: when the photosignal intensity of the center photosensitive region meets preset condition,
Determine the electrical signal intensity of corresponding center photosensitive region when the root-mean-square value minimum of the deviation as compensating parameter;According to
The compensating parameter compensates the photosignal intensity of the center photosensitive region.
Wherein, processor 650 is also used to: when the photosignal intensity of the center photosensitive region meets preset condition from
Divergence determines the compensation grade of the corresponding dispersion;According to the multiple predesigned compensations etc. stored in default adjustment tables of data
Corresponding relationship between the respectively corresponded photosignal intensity compensation parameter of grade, determines optical telecommunications corresponding with the compensation grade
The compensating parameter of number intensity;According to the compensating parameter, the photosignal intensity of the center photosensitive region is compensated.
The mobile terminal 600 of the embodiment of the present invention, in above scheme, by the photoelectricity in camera photosensitive element region
Signal is sampled, and the relationship between the translucent effect of eyeglass and photosignal intensity is established, and passes through photosignal Strength Changes
Instead of the variation of translucent effect, so that it is determined that camera eyeglass scratches degree.When the photoelectricity for detecting photosensitive element region
The variation fluctuation of signal strength is larger, that is, scratch is determined, when translucent effect is deteriorated, to the optical telecommunications of corresponding photosensitive region
Number intensity compensates.In this way, avoiding since scratch leads to the inferior problem of picture quality of taking pictures.It ensure that and take pictures
Imaging effect improves user experience.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come
It says, can also make several improvements and retouch under the premise of not departing from principle of the present invention, these improvements and modifications also exist
In protection scope of the present invention.