CN106302912B - The characteristic method of mobile terminal alignment light sensation and mobile terminal - Google Patents

The characteristic method of mobile terminal alignment light sensation and mobile terminal Download PDF

Info

Publication number
CN106302912B
CN106302912B CN201610682850.3A CN201610682850A CN106302912B CN 106302912 B CN106302912 B CN 106302912B CN 201610682850 A CN201610682850 A CN 201610682850A CN 106302912 B CN106302912 B CN 106302912B
Authority
CN
China
Prior art keywords
mobile terminal
image data
brightness value
readings
light sensation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610682850.3A
Other languages
Chinese (zh)
Other versions
CN106302912A (en
Inventor
张倩倩
王�琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610682850.3A priority Critical patent/CN106302912B/en
Publication of CN106302912A publication Critical patent/CN106302912A/en
Application granted granted Critical
Publication of CN106302912B publication Critical patent/CN106302912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0693Calibration of display systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure discloses a kind of characteristic method and device of mobile terminal alignment light sensation.The described method includes: determining the readings of light sensor in mobile terminal, and image data corresponding with the readings is obtained by the front camera of the mobile terminal, described image data are handled to obtain the brightness value of described image data, according to the calibration factor that the light sensation characteristic curve of the readings, the brightness value of described image data and the mobile terminal obtains, the light sensation characteristic curve is calibrated according to the calibration factor.The characteristic method of above-mentioned mobile terminal alignment light sensation and mobile terminal can according in mobile terminal in front camera image data brightness calibration light sensation characteristic curve, to enable the brightness for accurately reflecting mobile terminal local environment.

Description

The characteristic method of mobile terminal alignment light sensation and mobile terminal
Technical field
This disclosure relates to light sensation process field, in particular to the characteristic method of a kind of mobile terminal alignment light sensation and Mobile terminal.
Background technique
As performance requirement of the user to mobile terminal is higher and higher, the cruising ability and screen intensity of mobile terminal are more next More by the concern of user.Light sensor is typically provided in mobile terminal, mobile terminal under the action of light sensor Screen intensity is adjusted according to the brightness of local environment, makes the screen intensity for improving mobile terminal in bright luminous environment, The screen intensity of mobile terminal is reduced in dark environment.On the one hand the clarity that can guarantee screen, protects the eyes of user; On the other hand energy content of battery consumption can be saved, the cruising ability of mobile terminal is improved.
However in the practical application of mobile terminal, the detection angles of light sensor are smaller, cause to pass through light level The brightness of brightness and mobile terminal local environment that device detects has differences.
And mobile terminal can generate PCB (Printed Circuit Board, printed circuit in patch and assembling process Plate) contour tolerance, patch tolerance, sensor gum cover tolerance, touch screen cover plate contour tolerance, cover board loophole positions and dimensions tolerance And various errors such as light transmittance, in turn resulting in the obtained complete machine of assembly, there is very big errors.In addition, due to object The presence of the factors such as batch and the structure design of material not can guarantee light especially so that being lack of consistency between mobile terminal The consistency of line sensor detection brightness.Even if under same environment, the brightness that different mobile terminals detects is also Not exactly the same.Therefore unified preset light sensation characteristic curve is not able to satisfy the demand of each Product Terminal.
If the sharp poundings such as mobile terminal falling in use also result in the positional shift of sensor gum cover, So that the brightness that light sensor detects changes.At this point, can be produced if being executed according to original light sensation characteristic curve Raw biggish error, is not able to satisfy the demand of Product Terminal.
It follows that there are when deviation in the hardware of mobile terminal for the light sensation characteristic curve for the fixation being arranged in mobile terminal There is luminance errors, and can not accurately reflect the brightness of mobile terminal local environment.
Summary of the invention
In order to solve in the related technology in the hardware of mobile terminal there are when deviation, fixed light sensation characteristic curve can not be quasi- Really the problem of the brightness of reflection mobile terminal local environment, it is bent that present disclose provides a kind of mobile terminal alignment light sensation characteristics The method and mobile terminal of line.
A kind of characteristic method of mobile terminal alignment light sensation characterized by comprising
It determines the readings of light sensor in mobile terminal, and passes through the acquisition of the front camera of the mobile terminal and institute State the corresponding image data of readings;
Described image data are handled to obtain the brightness value of described image data;
It is obtained according to the light sensation characteristic curve of the readings, the brightness value of described image data and the mobile terminal described The characteristic calibration factor of light sensation;
The light sensation characteristic curve is calibrated according to the calibration factor.
A kind of mobile terminal characterized by comprising
Data acquisition module for determining the readings of light sensor in mobile terminal, and passes through the mobile terminal Front camera obtains image data corresponding with the readings;
Brightness of image obtains module, obtains the brightness value of described image data for being handled described image data;
Calibration factor obtains module, for the brightness value and the mobile terminal according to the readings, described image data Light sensation characteristic curve obtain the characteristic calibration factor of the light sensation;
Calibration module, for calibrating the light sensation characteristic curve according to the calibration factor.
The technical scheme provided by this disclosed embodiment can include the following benefits:
To when light sensation characteristic curve is calibrated in mobile terminal, the readings of light sensor in mobile terminal is determined, and Image data corresponding with readings is obtained by the front camera of mobile terminal, image data is handled to obtain picture number According to brightness value, light sensation characteristic curve is obtained according to the light sensation characteristic curve of readings, the brightness value of image data and mobile terminal Calibration factor, according to calibration factor calibrate light sensation characteristic curve, since front camera and light sensor are respectively positioned on movement The same side of terminal, therefore front camera is consistent with the environmental light brightness of light sensor, to ensure that according to after calibration Light sensation characteristic curve can accurately reflect the brightness of local environment, improve the standard of the brightness of mobile terminal perception environment True property.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and in specification together principle for explaining the present invention.
Fig. 1 is a kind of characteristic method flow of mobile terminal alignment light sensation shown according to an exemplary embodiment Figure;
Fig. 2 be Fig. 1 corresponding embodiment image data is handled obtain the process of the brightness value step of image data Figure;
Fig. 3 is the light sensation characteristic curve according to readings, the brightness value of image data and mobile terminal of Fig. 1 corresponding embodiment Obtain the flow chart of the characteristic calibration factor step of light sensation;
Fig. 4 is a kind of block diagram of mobile terminal shown according to an exemplary embodiment;
Fig. 5 is the block diagram of the brightness of image acquisition module shown in Fig. 4 corresponding embodiment;
Fig. 6 is the block diagram of the calibration factor acquisition module shown in Fig. 4 corresponding embodiment.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of characteristic method flow of mobile terminal alignment light sensation shown according to an exemplary embodiment Figure.As shown in Figure 1, the characteristic method of mobile terminal alignment light sensation may comprise steps of.
In step s 110, it determines the readings of light sensor in mobile terminal, and passes through the preposition camera shooting of mobile terminal Head obtains image data corresponding with readings.
Mobile terminal is the computer equipment that can be used on the move, such as smart phone, tablet computer.
Mobile terminal is usually installed with light sensor, and light sensor is used to detect the light of mobile terminal local environment Degree.
The readings of light sensor is the value of electrical signals that the brightness of detection obtains after conversion, the reading of light sensor Value is by light sensation characteristic curve and specific brightness values phase mapping, thus the readings characterization light sensor inspection of light sensor Survey obtained brightness values.It is calibrated to light sensation characteristic curve, to be applied to the process of the scenes such as screen intensity adjusting In, the light sensor in mobile terminal is run, and to perceive the brightness of place environment, and then exports corresponding readings.
Wherein it should be noted that acquired readings is when the readings of light sensor in mobile terminal is multiple Several readings for referring to light sensor Sequential output, for example, several readings exported according to certain time interval.
The detection angles of light sensor are smaller, and the error as caused by patch and assembling process, and use Enter the reasons such as dust, the practical light of the brightness for causing light sensor to detect and mobile terminal local environment in the process Degree has certain deviation.Therefore, it is necessary to realize light in mobile terminal by the readings for obtaining light sensor in mobile terminal Feel characteristic calibration.
Mobile terminal is also installed with front camera.Front camera and light sensor are respectively positioned on the same face of mobile phone, Therefore the ambient light conditions that the two faces are consistent;Generally, front camera and light sensor are being respectively positioned on mobile phone just Face, under normal circumstances, in most of mobile phone, front camera and light sensor are located at the top of mobile phone front simultaneously, because The ambient light conditions that both this faces are nearly identical.But front camera preposition is taken the photograph since its wide-angle detects characteristic Picture head has Seal Design, and therefore, the light sensor in front camera after the brightness ratio hardware deviation of image detects bright Degree is more close to the practical brightness of mobile terminal local environment.
The image data of the readings and front camera of light sensor acquisition sequence can be and meanwhile.Obtaining certain Under one environment while light sensor readings, the image data of front camera is obtained;The scheduled time interval passed through Afterwards, then automatically the image data of the readings of light sensor and front camera under next environment is obtained.
The acquisition sequence of the image data of the readings and front camera of light sensor is also possible to have sequencing. Specifically, the scheduled time interval of process obtains the figure of front camera again after obtaining the readings of light sensor As data.The acquisition sequence of light sensor readings and front camera image data is not defined herein.
For example, at a time, obtaining the readings A1 of mobile terminal light sensor, while obtaining the figure of front camera As data B1;After scheduled time interval, the readings A2 of mobile terminal light sensor is obtained, while obtaining preposition camera shooting The image data B2 of head.
In another example at a time, obtaining the readings A1 of mobile terminal light sensor, then successively obtaining mobile terminal Readings A2, A3 of light sensor;After scheduled time interval, the image data of front camera in mobile terminal is obtained Then B1 successively obtains image data B2, B3 of front camera in mobile terminal.
In the step s 120, image data is handled to obtain the brightness value of image data.
For each image data, the brightness value of each pixel in image data can be extracted, and then is calculated all The average value of the brightness value of pixel, this average value are the brightness value of the image data;It can also extract in front camera The corresponding image data in middle position predefined size region of image, and then the brightness value in the particular size region is obtained, as The brightness value of the image data;It can also be that other methods obtain the brightness value of image data.
In the image of front camera, because photosensitive effect is relatively poor, the brightness of image may be with movement for the edge of image The brightness of terminal local environment has certain deviation.And the photosensitive effect of image middle position is more preferable, is more nearly movement The brightness of terminal local environment, therefore the brightness values characterized are also more accurate.
In step s 130, light is obtained according to the light sensation characteristic curve of readings, the brightness value of image data and mobile terminal Feel characteristic calibration factor.
Light sensation characteristic curve is the mapping between the brightness value of light sensor readings characterization and the readings of light sensor Relation curve.
Calibration factor is according to the brightness value of the readings phase mapping of light sensation characteristic curve and light sensor and preposition camera shooting Average proportions coefficient between the brightness of head perception.
Since the brightness of front camera perception is to greatest extent close to the practical brightness of local environment, because This, will carry out the calculating of calibration factor, and calibration factor obtained is applied to the characteristic calibration of light sensation.
When readings and brightness value distinguish only one, by light sensation characteristic curve, the reading with light sensor is found It is worth the brightness value of phase mapping, and then calculates between the brightness value of the readings phase mapping and the brightness value of correspondence image data Proportionality coefficient, as calibration factor.
When readings and brightness value are respectively present multiple, by light sensation characteristic curve, find every with light sensor The brightness value of one readings phase mapping, calculate the sum of these brightness values and corresponding multiple images data brightness value it With, and then calculate the proportionality coefficient of the two sums, as calibration factor;It is also possible to find by light sensation characteristic curve After multiple brightness values of each readings phase mapping of light sensor, to brightness value with each readings phase mapping and right It answers the brightness value of image data to carry out scale operation, obtains multiple proportionality coefficients, then seek the average value of this multiple proportionality coefficient, i.e., For calibration factor;The characteristic calibration factor of light sensation can also be obtained by other methods.
In step S140, light sensation characteristic curve is calibrated according to calibration factor.
Since the brightness value of light sensor readings characterization and the brightness value of mobile terminal local environment are there are relatively large deviation, The brightness values of mobile terminal local environment can accurately not be obtained by the intrinsic light sensation characteristic curve of mobile terminal, therefore Light sensation characteristic curve that need to be intrinsic to mobile terminal is calibrated, so as to can accurately be obtained by the light sensation characteristic curve after calibration Know the brightness of mobile terminal local environment.
According to the relationship between the brightness value of light sensor readings characterization and the brightness value of correspondence image data, school is obtained After quasi- coefficient, with the calibration factor to the mapping relations between the readings and brightness value of light sensor in light sensation characteristic curve into Row adjustment, to calibrate light sensation characteristic curve.That is, being calibrated using calibration factor to existing light sensation characteristic curve.Pass through Light sensation characteristic curve after calibration, mobile terminal can accurately obtain the brightness values of local environment.Subsequent in use, root The readings of light sensor is calibrated according to the light sensation characteristic curve after calibration, and then the screen that mobile terminal is adjusted is bright The application such as degree.
Ring locating for mobile terminal is detected since the wide-angle of front camera detects characteristic by method as described above Accurate brightness values in border, and the readings of the brightness value and light sensor detected according to front camera, obtain The characteristic calibration factor of light sensation, and then light sensation characteristic curve is calibrated, in the use process of subsequent movement terminal, according to school The readings of light sensation characteristic curve and light sensor after standard can accurately obtain the brightness of mobile terminal local environment.
Fig. 2 is the description of the details shown according to an exemplary embodiment to step S120.Step S120 can wrap Include following steps.
In step S121, in image data, the brightness for acquiring each pixel in image data of brightness value is carried out Value.
Pixel is the basic unit of image.For each image data, all pixels in image data are extracted, and to institute There is pixel to carry out the acquisition of brightness value, obtains the brightness value of all pixels in image data.
The brightness value for obtaining each pixel in image data can be the color-values for obtaining pixel, obtain picture by color conversion The brightness value of element;The brightness value of pixel can also be extracted from image data;It can also be that other methods obtain each pixel Brightness value.
In step S122, processing is averaged to brightness value and obtains the brightness value of image data.
It in each image data, is averaged to the brightness value of all pixels, obtains being averaged for each image data Brightness value.
For example, there are 10000 pixels in image data B1, brightness value b1, b2, b3 ... of this 10000 pixels are extracted B10000, and to b1, b2, b3 ... b10000 averages processing, obtains average brightness value b0, then b0 is image data B1 Brightness value.
Preferably, it is obviously inclined to brightness before the luminance signal of each pixel averages processing in image data The biggish pixel of difference is deleted, and certain bright spots and stain in image data is avoided to influence the brightness value of image data.
Specifically, it is maximum a part of and bright to delete brightness value in the brightness value of all pixels of an image data Then the smallest a part of angle value calculates average value to brightness value remaining after deletion;It can also be deletion and all pixels Average brightness value deviation larger portion brightness value, and then average value is calculated to brightness value remaining after deletion again.
For example, there are 10000 pixels in image data B1, brightness value b1, b2, b3 ... of this 10000 pixels are extracted This 10000 brightness values are sized in b10000, delete maximum 1000 brightness of brightness and brightness is 1000 the smallest Brightness value, and then calculate the average value of remaining 8000 brightness values;In another example there are 10000 pixels in image data B1, count The average brightness value for calculating this 10000 pixels is 100, deletes brightness value of the deviation average brightness value 100 more than 5% or more, Deleting brightness value is more than 105 and the brightness value less than 95, and then remaining brightness value calculates average value after again to deletion.
By method as described above, by extracting all pixels in image data, and all pixels brightness value is calculated Average value, the brightness value of image data is obtained, to make the brightness value of image data more close to the brightness of external environment Value, improves the accuracy of the calibration factor of light sensor.
Fig. 3 is the description of the details shown according to an exemplary embodiment to step S130.Step S130 can wrap Include following steps.
In step S131, according to the brightness for the mobile terminal that the light sensation characteristic curve of readings and light sensor obtains Value.
Because light sensation characteristic curve is between the brightness value of light sensor readings characterization and the readings of light sensor Mapping relations curve.Therefore by light sensation characteristic curve, each readings of light sensor has brightness corresponding thereto Value.
In step S132, proportionality coefficient is obtained according to the brightness value of the brightness value of light sensor and image data.
Proportionality coefficient is the brightness value and respective image number by light sensation characteristic curve and light sensor readings phase mapping According to brightness value between proportionality coefficient.
For example, the readings of light sensor shares 3, the readings of light sensor is A1, A2, A3, with readings A1, A2, The brightness value of the corresponding image data of A3 is B1, B2, B3, by light sensation characteristic curve, with the readings A1 of light sensor, The brightness value of A2, A3 phase mapping is respectively a1, a2, a3, carries out scale operation and obtains proportionality coefficient C1=B1/a1, proportionality coefficient C2=B2/a2, proportionality coefficient C3=B3/a3.
In step S133, the characteristic calibration factor of light sensation is obtained according to proportionality coefficient.
Proportionality coefficient only one when, using the proportionality coefficient as the characteristic calibration factor of light sensation;Work as proportionality coefficient There are it is multiple when, processing is averaged to these proportionality coefficients, obtains the average value of these proportionality coefficients, which is made For the characteristic calibration factor of light sensation.
PCB contour tolerance, patch tolerance, sensor gum cover tolerance, touching are generated when actual design, in patch and assembling process Situations such as shielding cover board contour tolerance, cover board loophole positions and dimensions tolerance and light transmittance, and these situation bring errors are only It will affect the characteristic linearity of light sensation, therefore, for mobile terminal specific for one, each different size of light Spending under environment is also linear to the decaying of brightness, according to the readings of light sensor, light sensation characteristic curve and corresponding figure As multiple proportionality coefficients that the brightness value of data obtains should be equal.But the practical readings for obtaining light sensor and corresponding figure As data brightness value during, more or less there are some errors, there is also one for the multiple proportionality coefficients caused Fixed error.And error it is excessive when, it will influence the accuracy of calibration factor, and then influence the accurate of light sensation characteristic curve calibration Property.
Based on this, when proportionality coefficient there are it is multiple when, it is necessary to before to this multiple proportionality coefficient handling averagely, row Except abnormal proportionality coefficient.The characteristic method of mobile terminal alignment light sensation is further comprising the steps of.
In step S151, comparative example coefficient carries out the exclusion of unnatural proportions coefficient.
Unnatural proportions coefficient is the excessive proportionality coefficient of all proportionality coefficient large deviations.
When excluding unnatural proportions coefficient, the excessive proportionality coefficient of deviation can be excluded according to preset exclusion criteria.
Preset exclusion criteria, which can be, excludes maximum proportionality coefficient and the smallest proportionality coefficient, is also possible to exclude inclined The biggish proportionality coefficient of average value from all proportions coefficient, can also be other exclusion criterias.
For example, share 6 according to proportionality coefficient is calculated, be respectively as follows: 1.24,1.21,1.27,1.18,1.14, 1.19, preset exclusion criteria is to exclude maximum proportionality coefficient and the smallest proportionality coefficient.Thus be excluded that proportionality coefficient 1.14 With 1.27, and then calculating average proportions coefficient is 1.205.
In another example share 6 according to proportionality coefficient is calculated, be respectively as follows: 1.24,1.21,1.27,1.18,1.14, 1.19, preset exclusion criteria is the proportionality coefficient that the average value of exclusion deviation all proportions coefficient reaches 5%.By calculating, The average value of all proportions coefficient is 1.205, therefore, excludes proportionality coefficient 1.27 and 1.14, and then calculate proportionality coefficient Average value is 1.205.
By method as described above, according to the readings of light sensor, light sensation characteristic curve and respective image data After brightness value obtains proportionality coefficient, processing is averaged to using the calculated proportionality coefficient of same procedure, so as to avoid Some proportion system errors are excessive and the case where influencing calibration factor accuracy, and multiple proportionality coefficients handle To before calibration factor, the biggish unnatural proportions coefficient of deviation is excluded, the calibration factor made is more accurate, improves calibration The characteristic accuracy of light sensation.
Optionally, the characteristic method stream of a kind of mobile terminal alignment light sensation shown according to an exemplary embodiment Cheng Tu.This method may also comprise the following steps:.
In step S210, differentiate whether mobile terminal is horizontally arranged, if it is, S110 is thened follow the steps, if it has not, then Continue to differentiate whether mobile terminal is horizontally arranged.
Mobile terminal is also installed with acceleration transducer.Acceleration transducer is for differentiating mobile terminal whether put by level It sets, is differentiating to horizontal positioned and then carry out in acquisition mobile terminal in the readings of light sensor and front camera Image data.If differentiation is not horizontally arranged to mobile terminal, continue to differentiate whether mobile terminal is horizontally arranged, until differentiating After being horizontally arranged to mobile terminal, the readings and the picture number in front camera of light sensor in mobile terminal are just obtained According to.
By method as described above, light in mobile terminal is obtained again after differentiation is horizontal positioned to mobile terminal and is passed The readings of sensor, making the readings of light sensor is obtained under horizontal positioned state in mobile terminal, is horizontally arranged state It is the state for being easiest to keep, and the environment light that light sensor is got under horizontal positioned state is more uniform, detects Ambient light value it is more accurate, the calibration factor obtained from is also more accurate, and the light sensation characteristic curve after making calibration is also more Accurately.
Following is disclosure mobile terminal embodiment, and it is bent to can be used for executing this above-mentioned mobile terminal alignment light sensation characteristic The embodiment of the method for line.For undisclosed details in disclosure mobile terminal embodiment, please refer in disclosure mobile terminal Calibrate the characteristic embodiment of the method for light sensation.
Fig. 4 is a kind of block diagram of mobile terminal shown according to an exemplary embodiment, which includes but unlimited In: readings obtains module 110, brightness of image obtains module 120, calibration factor obtains module 130 and calibration module 140.
Data acquisition module 110, for determining the readings of light sensor in mobile terminal, and by before mobile terminal It sets camera and obtains image data corresponding with readings;
Brightness of image obtains module 120, obtains the brightness value of image data for being handled image data;
Calibration factor obtains module 130, for according to the brightness value of readings, image data and the light sensation characteristic of mobile terminal Curve obtains the characteristic calibration factor of light sensation;
Calibration module 140, for calibrating light sensation characteristic curve according to calibration factor.
The function of modules and the realization process of effect are specifically detailed in above-mentioned mobile terminal lieutenant colonel in above-mentioned mobile terminal The realization process of step is corresponded in the quasi-optical characteristic method of sense, details are not described herein.
Optionally, as shown in figure 5, brightness of image acquisition module 120 includes but is not limited to: pixel intensity acquisition submodule 121 and luminance acquisition submodule 122.
Pixel intensity acquisition submodule 121, for carrying out acquiring in image data for brightness value in image data The brightness value of each pixel;
Luminance acquisition submodule 122 obtains the brightness value of image data for averaging processing to brightness value.
Optionally, as shown in fig. 6, calibration factor acquisition module 130 includes but is not limited to: light sensation luminance acquisition submodule 131, proportionality coefficient acquisition submodule 132 and calibration factor acquisition submodule 133.
Light sensation luminance acquisition submodule 131;It is passed for obtaining light according to the light sensation characteristic curve of readings and mobile terminal The brightness value of sensor;
Proportionality coefficient acquisition submodule 132, for being obtained according to the brightness value of light sensor and the brightness value of image data To proportionality coefficient;
Calibration factor acquisition submodule 133, for obtaining the characteristic calibration factor of light sensation according to proportionality coefficient.
Optionally, when proportionality coefficient is multiple, mobile terminal further includes Abnormality remove submodule, the Abnormality remove submodule For carrying out the exclusion of unnatural proportions coefficient to the obtained proportionality coefficient of comparison operation.
Optionally, the disclosure also provides a kind of mobile terminal, which further includes discrimination module.
Discrimination module is for differentiating whether mobile terminal is horizontally arranged, if it has, then obtaining light level in mobile terminal The readings of device, if it has not, then continuing to differentiate whether mobile terminal is horizontally arranged.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.

Claims (8)

1. a kind of characteristic method of mobile terminal alignment light sensation characterized by comprising
It determines the readings of light sensor in mobile terminal, and is obtained and the reading by the front camera of the mobile terminal It is worth corresponding image data;
Described image data are handled to obtain the brightness value of described image data;
The light sensation is obtained according to the light sensation characteristic curve of the readings, the brightness value of described image data and the mobile terminal Characteristic calibration factor;
The light sensation characteristic curve is calibrated according to the calibration factor;
The light sensation characteristic curve according to the readings, the brightness value of described image data and the mobile terminal obtains described The step of light sensation characteristic calibration factor includes:
According to the brightness value for the light sensor that the light sensation characteristic curve of the readings and the mobile terminal obtains;
Proportionality coefficient is obtained according to the brightness value of the brightness value of the light sensor and described image data;
The characteristic calibration factor of the light sensation is obtained according to the proportionality coefficient.
2. the method according to claim 1, wherein described handle described image data to obtain the figure As data brightness value the step of include:
In described image data, the brightness value for acquiring each pixel in image data of brightness value is carried out;
Processing is averaged to the brightness value and obtains the brightness value of described image data.
3. the method according to claim 1, wherein the proportionality coefficient be it is multiple when, it is described according to the ratio Before the step of example coefficient obtains the light sensation characteristic calibration factor, the method also includes:
The exclusion of unnatural proportions coefficient is carried out to the proportionality coefficient.
4. the method according to claim 1, wherein the method also includes:
Differentiate whether the mobile terminal is horizontally arranged, if it has, then
The readings of light sensor in the determining mobile terminal is executed, and is obtained by the front camera of the mobile terminal The step of image data corresponding with the readings.
5. a kind of mobile terminal characterized by comprising
Data acquisition module for determining the readings of light sensor in mobile terminal, and passes through the preposition of the mobile terminal Camera obtains image data corresponding with the readings;
Brightness of image obtains module, obtains the brightness value of described image data for being handled described image data;
Calibration factor obtains module, for according to the brightness value of the readings, described image data and the light of the mobile terminal Sense characteristic curve obtains the characteristic calibration factor of the light sensation;
Calibration module, for calibrating the light sensation characteristic curve according to the calibration factor;
The calibration factor obtains module
Light sensation luminance acquisition submodule, described in being obtained according to the light sensation characteristic curve of the readings and the mobile terminal The brightness value of light sensor;
Proportionality coefficient acquisition submodule, for being obtained according to the brightness value of the light sensor and the brightness value of described image data To proportionality coefficient;
Calibration factor acquisition submodule, for obtaining the characteristic calibration factor of the light sensation according to the proportionality coefficient.
6. mobile terminal according to claim 5, which is characterized in that described image luminance acquisition module includes:
Pixel intensity acquisition submodule, it is each in image data in described image data, carrying out acquiring for brightness value The brightness value of pixel;
Luminance acquisition submodule obtains the brightness value of described image data for averaging processing to the brightness value.
7. mobile terminal according to claim 5, which is characterized in that the proportionality coefficient there are it is multiple when, the movement Terminal further include:
Abnormality remove submodule, for carrying out the exclusion of unnatural proportions coefficient to the proportionality coefficient.
8. mobile terminal according to claim 5, which is characterized in that the mobile terminal further include:
Discrimination module, for differentiating whether the mobile terminal is horizontally arranged.
CN201610682850.3A 2016-08-17 2016-08-17 The characteristic method of mobile terminal alignment light sensation and mobile terminal Active CN106302912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610682850.3A CN106302912B (en) 2016-08-17 2016-08-17 The characteristic method of mobile terminal alignment light sensation and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610682850.3A CN106302912B (en) 2016-08-17 2016-08-17 The characteristic method of mobile terminal alignment light sensation and mobile terminal

Publications (2)

Publication Number Publication Date
CN106302912A CN106302912A (en) 2017-01-04
CN106302912B true CN106302912B (en) 2019-06-04

Family

ID=57679753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610682850.3A Active CN106302912B (en) 2016-08-17 2016-08-17 The characteristic method of mobile terminal alignment light sensation and mobile terminal

Country Status (1)

Country Link
CN (1) CN106302912B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600736B (en) * 2018-03-01 2020-04-17 Oppo广东移动通信有限公司 Terminal light sensation calibration method and device, terminal and storage medium
CN110660087B (en) * 2019-08-16 2022-05-13 深圳市万普拉斯科技有限公司 Light sensation correction method and device, electronic equipment and storage medium
CN111292703A (en) * 2019-12-20 2020-06-16 深圳光启空间技术有限公司 Screen brightness adjusting method and device
CN113447064A (en) * 2021-06-30 2021-09-28 东莞市小精灵教育软件有限公司 Calibration method and electronic equipment
WO2023272603A1 (en) * 2021-06-30 2023-01-05 东莞市小精灵教育软件有限公司 Calibration method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005181602A (en) * 2003-12-18 2005-07-07 Nec Corp Mobile terminal with twin cameras
CN102265707A (en) * 2011-04-29 2011-11-30 华为终端有限公司 Method for controlling light-emitting device in terminal equipment, apparatus thereof and terminal equipment
CN102546916A (en) * 2010-12-29 2012-07-04 富泰华工业(深圳)有限公司 Electronic device with function for detecting ambient brightness and method for detecting ambient brightness
CN104754134A (en) * 2015-03-31 2015-07-01 酷派软件技术(深圳)有限公司 Screen brightness adjusting method and screen brightness adjusting system
CN105049602A (en) * 2015-06-05 2015-11-11 广东小天才科技有限公司 Method and apparatus for calibrating mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3791586B2 (en) * 2000-05-25 2006-06-28 セイコーエプソン株式会社 Image display system, image processing method, and information storage medium
JP4582166B2 (en) * 2008-03-19 2010-11-17 ソニー株式会社 Display device
JP2010212814A (en) * 2009-03-06 2010-09-24 Sharp Corp Calibration device, calibration method, calibration program, computer-readable recording medium, and image input device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005181602A (en) * 2003-12-18 2005-07-07 Nec Corp Mobile terminal with twin cameras
CN102546916A (en) * 2010-12-29 2012-07-04 富泰华工业(深圳)有限公司 Electronic device with function for detecting ambient brightness and method for detecting ambient brightness
CN102265707A (en) * 2011-04-29 2011-11-30 华为终端有限公司 Method for controlling light-emitting device in terminal equipment, apparatus thereof and terminal equipment
CN104754134A (en) * 2015-03-31 2015-07-01 酷派软件技术(深圳)有限公司 Screen brightness adjusting method and screen brightness adjusting system
CN105049602A (en) * 2015-06-05 2015-11-11 广东小天才科技有限公司 Method and apparatus for calibrating mobile terminal

Also Published As

Publication number Publication date
CN106302912A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106302912B (en) The characteristic method of mobile terminal alignment light sensation and mobile terminal
US11503275B2 (en) Camera calibration system, target, and process
US20200184733A1 (en) Generating an Augmented Reality Image Using a Blending Factor
US20190132584A1 (en) Method and device for calibration
US20200043157A1 (en) Inspection Apparatus, Inspection Method, And Program
US10504244B2 (en) Systems and methods to improve camera intrinsic parameter calibration
EP1781017B1 (en) Methods and devices for image signal processing
CN113838141B (en) External parameter calibration method and system for single-line laser radar and visible light camera
CN109345467B (en) Imaging distortion correction method, imaging distortion correction device, computer equipment and storage medium
CN111031311B (en) Imaging quality detection method and device, electronic equipment and readable storage medium
KR20090101356A (en) Defect detecting device, and defect detecting method
US9945724B2 (en) Method and device for determining yellowish level of screen caused by pressing
CN109003312B (en) Camera calibration method based on nonlinear optimization
CN105180836A (en) Control apparatus, robot, and control method
CN116990993B (en) LCD display panel quality detection method
JP5660861B2 (en) Foreign matter inspection method and foreign matter inspection apparatus on substrate
KR101583423B1 (en) Method for calibrating distortion of image in camera
US20190191108A1 (en) Systems and methods for simultaneous capture of two or more sets of light images
CN109040724B (en) Light spot distortion detection method and device of structured light projector and readable storage medium
CN104159102A (en) Detection method and detection device for gray-scale pictures
CN111857623A (en) Calibration apparatus, calibration system, and display apparatus calibration method
CN115457055A (en) Illuminance meter value identification method, electronic device, and storage medium
CN111524107B (en) Defect detection method, defect detection apparatus, and computer-readable storage medium
CN107316293B (en) LED fuzzy picture identification and judgment method and system
JP2009017158A (en) Camera inspection device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant