Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
First embodiment
As shown in figure 1, a kind of method of camera parameter regulation is the embodiment of the invention provides, including:
Step 101, the photosignal intensity for obtaining the corresponding multiple photosensitive regions of camera.
In the embodiment, the photo-sensitive cell of camera, the optical signal that will be transmitted into camera eyeglass is converted into electric signal.Root
The transmission region of camera eyeglass is divided into many sub- transmission regions according to preset rules, photo-sensitive cell will each sub- printing opacity of correspondence
The optical signal in region is converted into electric signal.By to the multiple in the photosensitive region of each sub- transmission region of correspondence on photo-sensitive cell
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 pre-conditioned.
In the embodiment, camera scratch influences the finish of the finish on its surface, lens surface to influence its saturating
Light rate, light transmittance is higher, more clear depending on thing.In scratch, the reduction of local transparent rate then corresponds to the optical telecommunications of photosensitive region
Number intensity reduces.
The wherein photosensitive region in multiple photosensitive regions is chosen as central area, selected distance central area is default
Multiple photosensitive regions of distance are reference zone.The relative light with central area of photosignal intensity according to each reference zone
The deviation situation of electrical signal intensity, that is, determine the relative fluctuation situation with the photosignal intensity of reference zone in central area.When
When fluctuation situation is larger, the light transmittance reduction of the corresponding eyeglass transmission region in central area is determined, i.e., eyeglass is scratched.
Wherein, pre-conditioned photosignal intensity is determined based on experiment test.Specifically, different based on experimental evaluation
Scratch the corresponding effect of taking pictures of degree, under determining worst acceptable imaging effect the corresponding degree that scratches as critical condition,
Determine to scratch the corresponding photosignal intensity of degree as pre-conditioned under critical condition.
Step 103, when the photosignal intensity of the photosensitive region meets pre-conditioned, to the light of the photosensitive region
Electrical signal intensity is compensated.
In the embodiment, when the photosignal intensity of the photosensitive region meets pre-conditioned, that is, determine to feel correspondence
The lens area in light region is scratched, the reduction of its light transmittance.Compensated by the photosignal intensity to corresponding photosensitive region, i.e.,
Increase the intensity level of photosignal, realization carries out the purpose of luminosity compensation to shot image, so as to avoid due to shooting head mirror
Piece is scratched causes corresponding lens area light transmittance reduction, and unsharp problem is imaged when causing to take pictures.
In such scheme, sampled by the photosignal in the multiple photosensitive regions to camera, detect each sense
Whether the corresponding photosignal intensity in light region meets pre-conditioned, and is compensated to meeting pre-conditioned photosensitive region,
To improve the effect effect of image of taking pictures, it is to avoid because scratch causes the photosignal intensity of correspondence photosensitive region to subtract
It is weak, so that the inferior problem of picture quality of taking pictures.
Second embodiment
As shown in Fig. 2 a kind of method of camera parameter regulation is the embodiment of the invention provides, including:
Step 201, the photosignal intensity for obtaining the corresponding multiple photosensitive regions of camera.
In the embodiment, the photo-sensitive cell of camera, the optical signal that will be transmitted into camera eyeglass is converted into electric signal.Root
The transmission region of camera eyeglass is divided into many sub- transmission regions according to preset rules, photo-sensitive cell will each sub- printing opacity of correspondence
The optical signal in region is converted into electric signal.By to the multiple in the photosensitive region of each sub- transmission region of correspondence on photo-sensitive cell
Pixel is sampled, and determines the photosignal intensity of corresponding photosensitive region.
A wherein photosensitive region in step 202, the multiple photosensitive region of selection is used as center photosensitive region.
In the embodiment, each photosensitive region is chosen successively according to preset rules as center photosensitive region.Specifically, will
All photosensitive regions set up plane coordinate system, the coordinate in each photosensitive region corresponding flat coordinate system as an overall region
Point.Can be incremented by according to abscissa, then the incremental order of ordinate Selection Center photosensitive region successively.
Step 203, center photosensitive region described in the multiple photosensitive region middle-range of selection are multiple photosensitive for predeterminable range
Region is used as referring to photosensitive region.
In the embodiment, the multiple photosensitive region closest to center photosensitive region is chosen as referring to photosensitive region.Tool
Body, plane coordinate system is set up using all photosensitive regions as an overall region, determine a center photosensitive area in plane coordinate system
Domain.Choose manhatton distance away from center photosensitive region be 1 or predeterminable range in the range of multiple photosensitive regions as reference
Photosensitive region.
Step 204, the photosignal intensity according to the center photosensitive region and multiple reference photosensitive regions
Photosignal intensity, determines whether the photosignal intensity of the center photosensitive region meets pre-conditioned.
In the embodiment, photoelectricity of the photosignal intensity relative to center photosensitive region according to each reference photosensitive region
The deviation of signal intensity, calculates the dispersion between deviation.The photosignal of center photosensitive region is determined according to dispersion
It is pre-conditioned whether intensity meets, and when dispersion reaches predetermined threshold value, determines the photosignal intensity symbol of center photosensitive region
Close pre-conditioned.Wherein dispersion is bigger, represents that the fluctuation of photosignal intensity is bigger, represents the corresponding mirror of center photosensitive region
Panel region is scratched.
Step 205, when the photosignal intensity of the photosensitive region meets pre-conditioned, to the light of the photosensitive region
Electrical signal intensity is compensated.
In the embodiment, when the photosignal intensity of the photosensitive region meets pre-conditioned, that is, determine to feel correspondence
The lens area in light region is scratched, the reduction of its light transmittance.Mended by the photosignal intensity to respective center photosensitive region
Repay, that is, increase the intensity level of photosignal, realization carries out the purpose of luminosity compensation to shot image, so as to avoid due to shooting
Head scratch causes corresponding lens area translucent effect reduction, and unsharp problem is imaged when causing to take pictures.
Wherein, the photosignal intensity according to the center photosensitive region and multiple reference photosensitive regions
Photosignal intensity, determines whether the photosignal intensity of the center photosensitive region meets pre-conditioned step, including:
The photosignal of photosignal intensity and multiple reference photosensitive regions according to the center photosensitive region
Intensity, determines the photosignal intensity of the photosignal intensity relative to the center photosensitive region of each reference photosensitive region
Deviation.
In the embodiment, the photosignal intensity of each reference photosensitive region and the photoelectricity of center photosensitive region are calculated respectively
Difference between signal intensity, as deviation.Specifically, the computing formula of deviation is:
Δ1=| N1-N2|
Wherein, Δ1Represent deviation;N1The photosignal intensity of expression center photosensitive region;N2Wherein one is represented with reference to sense
The photosignal intensity in light region.
According to the deviation, the dispersion between the deviation is calculated.
In the embodiment, the computing formula of dispersion is:
Wherein, σ represents dispersion;Δ1、Δ2…ΔnRepresent the photosignal intensity of each reference photosensitive region relative to
The deviation of the photosignal intensity of center photosensitive region;N represents the number with reference to photosensitive region;Δ represents Δ1、Δ2…Δn
Average value.
When the dispersion is more than predetermined threshold value, determine that the photosignal intensity of the center photosensitive region meets default
Condition.
In the embodiment, dispersion represents the photosignal intensity of each reference photosensitive region relative to center photosensitive region
Fluctuation situation between the deviation of photosignal intensity.Dispersion is bigger, and the fluctuation represented 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 pre-conditioned, to the photoelectricity of the photosensitive region
The step of signal intensity is compensated, including:
When the photosignal intensity of the center photosensitive region meets pre-conditioned, the root mean square of the deviation is determined
The photosignal intensity of corresponding center photosensitive region is used as compensating parameter when value is minimum.
In the embodiment, when it is determined that the light of the photosignal intensity relative to center photosensitive region of each reference photosensitive region
When dispersion between the deviation of electrical signal intensity is more than predetermined threshold value, the electrical signal intensity of the center photosensitive region is set
For unknown, such as x is set to, obtains the light of the photosignal intensity relative to center photosensitive region of now each reference photosensitive region
The root mean square of the deviation of electrical signal intensity x.The value as compensating parameter of corresponding x when determining that the root-mean-square value is minimum.
In the case of not scratched in eyeglass, and the photosensitive region that is divided it is sufficiently small when, center photosensitive region with
And multiple corresponding photosignal Strength Changes amount very littles in region constituted with reference to photosensitive region.Root mean square represents center when minimum
The photosignal intensity of photosensitive region is minimum relative to the variable quantity of the photosignal intensity of each reference photosensitive region.Therefore,
Using the photosignal intensity of root mean square corresponding center photosensitive region when minimum as compensating parameter.
According to the compensating parameter, the photosignal intensity to the center photosensitive region is compensated.
In the embodiment, the photosignal intensity to center photosensitive region carries out luminosity compensation, that is, increase photosignal
Intensity level, so that the photosignal intensity of the center photosensitive region reaches compensating parameter value.
Wherein, when the photosignal intensity of the photosensitive region meets pre-conditioned, the optical telecommunications of the photosensitive region
The step of number intensity is compensated, including:
When the photosignal intensity of the center photosensitive region meets pre-conditioned, it is determined that the benefit of the correspondence dispersion
Repay grade.
In the embodiment, compensation grade represents the compensation intensity of the transmission loss caused relative to scratch.It is based on
Simulated test determine it is different scratch the corresponding transmission loss of degree, wherein different discrete of different transmission loss correspondences
Degree.It is right between dispersion and compensation grade that the multiple that dispersion data place according to default sign light transmittance is stored is preset
Should be related to, it is determined that the compensation grade of the correspondence dispersion.
Multiple predesigned compensation grades according to being stored in default adjustment tables of data correspond to photosignal intensity and mend respectively
The corresponding relation between parameter is repaid, it is determined that the compensating parameter of photosignal intensity corresponding with the compensation grade.
In the embodiment, adjustment tables of data is pre-build, predesigned compensation grade and photoelectricity are set up in default adjustment tables of data
Mapping relations between the compensating parameter of signal intensity, according to mapping relations, it is determined that the corresponding photosignal intensity of compensation grade
Compensating parameter.
According to the compensating parameter, the photosignal intensity to the center photosensitive region is compensated.
In the embodiment, the corresponding optical telecommunications of center photosensitive region according to compensating parameter to dispersion more than predetermined threshold value
Number intensity is compensated, that is, increase the intensity level of photosignal, so that the photosignal intensity of the center photosensitive region reaches benefit
Repay parameter value.Realization carries out the purpose of luminosity compensation to shot image, so as to avoid due to camera scratch cause it is right
The region translucent effect reduction answered, is imaged unsharp problem when causing to take pictures.
In such scheme, sampled by the photosignal in camera photo-sensitive cell region, set up the saturating of eyeglass
Relation between light effect and photosignal intensity, the change of translucent effect is replaced by photosignal Strength Changes, so that really
That determines camera eyeglass scratches degree.When the change fluctuation of the photosignal intensity for detecting photo-sensitive cell region is larger, i.e.,
Determine scratch, when its translucent effect is deteriorated, the photosignal intensity to corresponding photosensitive region is compensated.So, it is to avoid
Because scratch causes the inferior problem of picture quality of taking pictures.The imaging effect taken pictures is ensure that, Consumer's Experience is improve.
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, including:Acquisition module 310, detection module 320 and adjustment mould
Block 330.
Acquisition module 310, the photosignal intensity for obtaining the corresponding multiple photosensitive regions of camera.
In the embodiment, the photo-sensitive cell of camera, the optical signal that will be transmitted into camera eyeglass is converted into electric signal.Root
The transmission region of camera eyeglass is divided into many sub- transmission regions according to preset rules, acquisition module 310 obtains photo-sensitive cell
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 meets pre-conditioned.
In the embodiment, camera scratch influences the finish of the finish on its surface, lens surface to influence its saturating
Light rate, light transmittance is higher, more clear depending on thing.In scratch, the reduction of local transparent rate then corresponds to the optical telecommunications of photosensitive region
Number intensity reduces.
Wherein photosensitive region in multiple photosensitive regions is chosen as central area, selected distance central area for it is default away from
From multiple photosensitive regions be reference zone.Detection module 320 is relative with according to the photosignal intensity of each reference zone
The deviation situation of the photosignal intensity in heart district domain, that is, determine ripple of the central area relative to the photosignal intensity of reference zone
Emotionally condition.When the situation of fluctuation is larger, the light transmittance reduction of the corresponding eyeglass transmission region in central area is determined, i.e., eyeglass is scraped
Flower.
Wherein, pre-conditioned photosignal intensity is determined based on experiment test.Specifically, different based on experimental evaluation
Scratch the corresponding effect of taking pictures of degree, under determining worst acceptable imaging effect the corresponding degree that scratches as critical condition,
Determine to scratch the corresponding photosignal intensity of degree as pre-conditioned under critical condition.
Adjusting module 330, when the photosignal intensity of the photosensitive region meets pre-conditioned, to the photosensitive region
Photosignal intensity compensate.
In the embodiment, when the photosignal intensity of the photosensitive region meets pre-conditioned, that is, determine to feel correspondence
The lens area in light region is scratched, the reduction of its light transmittance.Adjusting module 330 is by the photosignal intensity to corresponding photosensitive region
Compensate, that is, increase the intensity level of photosignal, realization carries out the purpose of luminosity compensation to shot image, so as to avoid by
Cause corresponding region translucent effect reduction in camera scratch, unsharp problem is imaged when causing to take pictures.Ensure that
The imaging effect taken pictures, improves Consumer's Experience.
Wherein, the detection module 320 includes:First chooses submodule 321, second chooses at submodule 322 and first
Reason submodule 323.
First chooses submodule 321, for choosing the wherein photosensitive region in the multiple photosensitive region as center
Photosensitive region.
In the embodiment, the first selection submodule 321 chooses each photosensitive region according to preset rules as center successively
Photosensitive region.Specifically, setting up plane coordinate system using all photosensitive regions as an overall region, each photosensitive region correspondence is flat
A coordinate points in areal coordinate system.Can be incremented by according to abscissa, then the incremental order of ordinate Selection Center photosensitive area successively
Domain.
Second chooses submodule 322, is default for center photosensitive region described in choosing the multiple photosensitive region middle-range
Multiple photosensitive regions of distance are used as referring to photosensitive region.
In the embodiment, multiple photosensitive region that the second selection submodule 322 is chosen closest to center photosensitive region is made
It is to refer to photosensitive region.Specifically, setting up plane coordinate system using all photosensitive regions as an overall region, plane coordinates is determined
The center photosensitive regions of Xi Zhong mono-.Choose manhatton distance away from center photosensitive region be 1 or predeterminable range in the range of multiple
Photosensitive region is used as referring to photosensitive region.
First treatment submodule 323, for the photosignal intensity according to the center photosensitive region and multiple references
The photosignal intensity of photosensitive region, determines whether the photosignal intensity of the center photosensitive region meets pre-conditioned.
In the embodiment, the first treatment submodule 323 according to the photosignal intensity of each reference 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 pre-conditioned, when dispersion reaches predetermined threshold value, determines center photosensitive area
The photosignal intensity in domain meets pre-conditioned.Wherein dispersion is bigger, represents that the fluctuation of photosignal intensity is bigger, in expression
The corresponding lens area of heart photosensitive region is scratched.
Wherein, the first treatment submodule 323 includes:First computing unit 3231, the second computing unit 3232 and place
Reason unit 3233.
First computing unit 3231, for the photosignal intensity according to the center photosensitive region and multiple ginsengs
The photosignal intensity of photosensitive region is examined, determines that the photosignal intensity of each reference photosensitive region is photosensitive relative to the center
The deviation of the photosignal intensity in region.
In the embodiment, the photosignal intensity of each reference photosensitive region and the photoelectricity of center photosensitive region are calculated respectively
Difference between signal intensity, as deviation.Specifically, the computing formula of deviation is:
Δ1=| N1-N2|
Wherein, Δ1Represent deviation;N1The photosignal intensity of expression center photosensitive region;N2Wherein one is represented with reference to sense
The photosignal intensity in light region.
Second computing unit 3232, for according to the deviation, calculating the dispersion between the deviation.
In the embodiment, the computing formula of dispersion is:
Wherein, σ represents dispersion;Δ1、Δ2…ΔnRepresent the photosignal intensity of each reference photosensitive region relative to
The deviation of the photosignal intensity of center photosensitive region;N represents the number with reference to photosensitive region;Δ represents Δ1、Δ2…Δn
Average value.
Processing unit 3233, for when the dispersion is more than predetermined threshold value, determining the light of the center photosensitive region
Electrical signal intensity meets pre-conditioned.
In the embodiment, dispersion represents the photosignal intensity of each reference photosensitive region relative to center photosensitive region
Photosignal intensity deviation between fluctuation situation.Dispersion is bigger, and the fluctuation represented between the deviation is bigger,
That is the light transmittance of eyeglass is poorer, and scratch is serious.
Wherein, the adjusting module 330 includes:Calculating sub module 331 and first compensates submodule 332.
Calculating sub module 331, for when the photosignal intensity of the center photosensitive region meets pre-conditioned, it is determined that
The photosignal intensity of corresponding center photosensitive region is used as compensating parameter when the root-mean-square value of the deviation is minimum.
In the embodiment, when it is determined that the light of the photosignal intensity relative to center photosensitive region of each reference photosensitive region
When dispersion between the deviation of electrical signal intensity is more than predetermined threshold value, calculating sub module 331 is by the center photosensitive region
Photosignal intensity is set to unknown, such as be set to x, obtain the photosignal intensity of now each reference photosensitive region relative to
The root mean square of the deviation of the photosignal intensity x of center photosensitive region.Determine the value of corresponding x during root-mean-square value minimum i.e.
It is compensating parameter.
In the case of not scratched in eyeglass, and the photosensitive region that is divided it is sufficiently small when, center photosensitive region with
And multiple corresponding photosignal Strength Changes amount very littles in region constituted with reference to photosensitive region.Root mean square represents center when minimum
The photosignal intensity of photosensitive region is minimum relative to the variable quantity of the photosignal intensity of each reference photosensitive region.Therefore,
Using the photosignal intensity of root mean square corresponding center photosensitive region when minimum as compensating parameter.
First compensation submodule 332, for according to the compensating parameter, the photosignal to the center photosensitive region to be strong
Degree is compensated.
In the embodiment, the first compensation submodule 332 carries out luminosity compensation to the photosignal intensity of center photosensitive region,
Increase the intensity level of photosignal, so that the photosignal intensity of the center photosensitive region reaches compensating parameter value.
Wherein, the adjusting module 330 includes:The treatment submodule 334 and second of second processing submodule the 333, the 3rd is mended
Repay submodule 335.
Second processing submodule 333, for when the photosignal intensity of the center photosensitive region meets pre-conditioned,
It is determined that the compensation grade of the correspondence dispersion.
In the embodiment, compensation grade represents the compensation intensity of the transmission loss caused relative to scratch.It is based on
Simulated test determine it is different scratch the corresponding transmission loss of degree, wherein different discrete of different transmission loss correspondences
Degree.The default dispersion of multiple that second processing submodule 333 is stored according to the dispersion data place of default sign light transmittance
With the corresponding relation between compensation grade, it is determined that the compensation grade of the correspondence dispersion.
3rd treatment submodule 334, for according to the multiple predesigned compensation grade institutes stored in default adjustment tables of data
The corresponding relation between photosignal intensity compensation parameter is corresponded to respectively, it is determined that photosignal corresponding with the compensation grade is strong
The compensating parameter of degree.
In the embodiment, adjustment tables of data is pre-build, predesigned compensation grade and photoelectricity are set up in default adjustment tables of data
Mapping relations between signal intensity compensating parameter, the 3rd treatment submodule 334 determines compensation grade correspondence according to mapping relations
Photosignal intensity compensating parameter.
Second compensation submodule 335, for according to the compensating parameter, the photosignal to the center photosensitive region to be strong
Degree is compensated.
In the embodiment, the second compensation submodule 335 is felt to dispersion according to compensating parameter more than the center of predetermined threshold value
The corresponding photosignal intensity in light region is compensated, that is, increase the intensity level of photosignal, so that the center photosensitive region
Photosignal intensity reaches compensating parameter value.Realization carries out the purpose of luminosity compensation to shot image, so as to avoid due to taking the photograph
As head scratch causes corresponding region translucent effect reduction, unsharp problem is imaged when causing to take pictures.
In such scheme, the photosignal in camera photo-sensitive cell region is sampled by acquisition module 310.Build
Relation 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 the photosignal that detection module 320 detects photo-sensitive cell region is strong
The change fluctuation of degree is larger, that is, scratch is determined, when its translucent effect is deteriorated, by 330 pairs of corresponding photosensitive areas of adjusting module
The photosignal intensity in domain is compensated.So, it is to avoid because scratch causes the inferior problem of picture quality of taking pictures.Protect
The imaging effect taken pictures has been demonstrate,proved, Consumer's Experience has been improve.
Fourth embodiment
Fig. 5 is the block diagram of the mobile terminal 500 of another embodiment of the present invention, and mobile terminal as shown in Figure 5 includes:Extremely
Few processor 501, memory 502, take pictures component 503 and a user interface 504.Each component in mobile terminal 500 leads to
Bus system 505 is crossed to be coupled.It is understood that bus system 505 is used to realize the connection communication between these components.Bus
System 505 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But in order to clear
For the sake of explanation, various buses are all designated as bus system 505 in Figure 5.
Wherein, user interface 504 can be including 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,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(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 be intended to including but not limited to these and it is any its
It is adapted to the memory of type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for
Realize various basic businesses and process hardware based task.Application program 5022, comprising 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, by the program for calling memory 502 to store or instruction, specifically, can be should
With the program or instruction that are stored in program 5022.Wherein, processor 501 is used for:Obtain the corresponding multiple photosensitive regions of camera
Photosignal intensity;Detect whether the photosignal intensity of each photosensitive region meets pre-conditioned;In the photosensitive region
Photosignal intensity when meeting pre-conditioned, the photosignal intensity to the photosensitive region is compensated.
The method that the embodiments of the present invention are disclosed can apply in processor 501, or be realized by processor 501.
Processor 501 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 501 or software form.Above-mentioned treatment
Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 502, processor 501 reads the information in memory 502, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (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 performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize processor outside.
Wherein, processor 501 is additionally operable to:The wherein photosensitive region chosen in the multiple photosensitive region is felt as center
Light region;Choose center photosensitive region described in the multiple photosensitive region middle-range be predeterminable range multiple photosensitive regions as ginseng
Examine photosensitive region;The optical telecommunications of photosignal intensity and multiple reference photosensitive regions according to the center photosensitive region
Number intensity, determines whether the photosignal intensity of the center photosensitive region meets pre-conditioned.
Wherein, processor 501 is additionally operable to:Photosignal intensity and multiple ginsengs according to the center photosensitive region
The photosignal intensity of photosensitive region is examined, determines that the photosignal intensity of each reference 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 more than predetermined threshold value, determine that the photosignal intensity of the center photosensitive region meets pre-conditioned.
Wherein, processor 501 is additionally operable to:When the photosignal intensity of the center photosensitive region meets pre-conditioned,
The electrical signal intensity of corresponding center photosensitive region is used as compensating parameter when determining that the root-mean-square value of the deviation is minimum;According to
The compensating parameter, the photosignal intensity to the center photosensitive region is compensated.
Wherein, processor 501 is additionally operable to:When the photosignal intensity of the center photosensitive region meets pre-conditioned from
Divergence, it is determined that the compensation grade of the correspondence dispersion;According to multiple predesigned compensations stored in default adjustment tables of data etc.
Level corresponds to the corresponding relation between photosignal intensity compensation parameter respectively, it is determined that optical telecommunications corresponding with the compensation grade
The compensating parameter of number intensity;According to the compensating parameter, the photosignal intensity to the center photosensitive region is compensated.
The mobile terminal 500 of the embodiment of the present invention, adopts by the photosignal in camera photo-sensitive cell region
Sample, the relation set up between the translucent effect of eyeglass and photosignal intensity is imitated by photosignal Strength Changes instead of printing opacity
The change of fruit, so that it is determined that camera eyeglass scratches degree.When the photosignal intensity for detecting photo-sensitive cell region
Change fluctuation is larger, that is, determine scratch, and when its translucent effect is deteriorated, the photosignal intensity to corresponding photosensitive region is carried out
Compensation.So, it is to avoid because scratch causes the inferior problem of picture quality of taking pictures.
5th embodiment
Fig. 6 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 6
600 can be mobile phone, panel 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 block 630, display unit 640, treatment
Device 650, WIFI (Wireless Fidelity) module 660, voicefrequency circuit 670 and RF circuits 680.
Wherein, input block 630 can be used to receive the numeral or character information of user input, and produce and mobile terminal
600 user is set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 630 can
With including contact panel 631.Contact panel 631, also referred to as touch-screen, can collect user thereon or neighbouring touch operation
(such as user uses the operations of any suitable object or annex on contact panel 631 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 631 may include touch detecting apparatus and touch controller
Two parts.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 650 again, and the order sent of receiving processor 650 and can be performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 631.Except contact panel 631, input block
630 can also include other input equipments 632, and other input equipments 632 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 640 can be used for display by the information of user input or be supplied to information and the 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 contact panel 631 can cover display panel 641, touch display screen is formed, when touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 650 is sent to determine the type of touch event, with preprocessor
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 conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
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 element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 650 is the control centre of mobile terminal, using each of various interfaces and connection whole mobile phone
Individual part, by running or performing software program and/or module of the storage in first memory 621, and calls storage to exist
Data in second memory 622, perform the various functions and processing data of mobile terminal, so as to carry out entirety to mobile terminal
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;Detect whether the photosignal intensity of each photosensitive region meets pre-conditioned;It is strong in the photosignal of the photosensitive region
When degree meets pre-conditioned, the photosignal intensity to the photosensitive region is compensated.
Wherein, processor 650 is additionally operable to:The wherein photosensitive region chosen in the multiple photosensitive region is felt as center
Light region;Choose center photosensitive region described in the multiple photosensitive region middle-range be predeterminable range multiple photosensitive regions as ginseng
Examine photosensitive region;The optical telecommunications of photosignal intensity and multiple reference photosensitive regions according to the center photosensitive region
Number intensity, determines whether the photosignal intensity of the center photosensitive region meets pre-conditioned.
Wherein, processor 650 is additionally operable to:Photosignal intensity and multiple ginsengs according to the center photosensitive region
The photosignal intensity of photosensitive region is examined, determines that the photosignal intensity of each reference 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 more than predetermined threshold value, determine that the photosignal intensity of the center photosensitive region meets pre-conditioned.
Wherein, processor 650 is additionally operable to:When the photosignal intensity of the center photosensitive region meets pre-conditioned,
The electrical signal intensity of corresponding center photosensitive region is used as compensating parameter when determining that the root-mean-square value of the deviation is minimum;According to
The compensating parameter, the photosignal intensity to the center photosensitive region is compensated.
Wherein, processor 650 is additionally operable to:When the photosignal intensity of the center photosensitive region meets pre-conditioned from
Divergence, it is determined that the compensation grade of the correspondence dispersion;According to multiple predesigned compensations stored in default adjustment tables of data etc.
Level corresponds to the corresponding relation between photosignal intensity compensation parameter respectively, it is determined that optical telecommunications corresponding with the compensation grade
The compensating parameter of number intensity;According to the compensating parameter, the photosignal intensity to the center photosensitive region is compensated.
The mobile terminal 600 of the embodiment of the present invention, in such scheme, by the photoelectricity in camera photo-sensitive cell region
Signal is sampled, the relation set up between the translucent effect of eyeglass and photosignal intensity, by photosignal Strength Changes
Instead of the change of translucent effect, so that it is determined that camera eyeglass scratches degree.When the photoelectricity for detecting photo-sensitive cell region
The change fluctuation of signal intensity is larger, that is, scratch is determined, when its translucent effect is deteriorated, to the optical telecommunications of corresponding photosensitive region
Number intensity is compensated.So, it is to avoid because scratch causes the inferior problem of picture quality of taking pictures.Ensure that what is taken pictures
Imaging effect, improves Consumer's Experience.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
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, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, 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, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person for the art comes
Say, some improvements and modifications can also be made under the premise of principle of the present invention is not departed from, and these improvements and modifications also exist
In protection scope of the present invention.