CN105094466B - Ambient light measurement method and device - Google Patents

Ambient light measurement method and device Download PDF

Info

Publication number
CN105094466B
CN105094466B CN201510493146.9A CN201510493146A CN105094466B CN 105094466 B CN105094466 B CN 105094466B CN 201510493146 A CN201510493146 A CN 201510493146A CN 105094466 B CN105094466 B CN 105094466B
Authority
CN
China
Prior art keywords
operating
operating area
failed areas
area
optical sensor
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
CN201510493146.9A
Other languages
Chinese (zh)
Other versions
CN105094466A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510493146.9A priority Critical patent/CN105094466B/en
Publication of CN105094466A publication Critical patent/CN105094466A/en
Application granted granted Critical
Publication of CN105094466B publication Critical patent/CN105094466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Position Input By Displaying (AREA)

Abstract

The disclosure belongs to electronic applications on a kind of ambient light measurement method and device.Methods described to contain in the electronic equipment of touch-screen, being evenly distributed with optical sensor on the touch-screen, including:Obtain the operating area for the touch control operation that operating body is acted on the touch-screen;It is determined that including the failed areas of the operating area, the ambient light for the optical sensor injected in the failed areas is blocked by the operating body;According to the brightness value of each optical sensor measuring environment light outside the failed areas.The disclosure can determine the optical sensor that operated member is blocked, so as to which the inaccurate optical sensor of this part measured value be excluded, use the brightness value of remaining optical sensor computing environment light, solve an optical sensor being arranged in aperture to be easily blocked, the problem of brightness value inaccuracy of the ambient light measured, the effect for the measurement accuracy for improving ambient light is reached.

Description

Ambient light measurement method and device
Technical field
This disclosure relates to electronic applications, more particularly to a kind of ambient light measurement method and device.
Background technology
Optical sensor is a kind of common sensor, and it sets in the electronics of mobile phone, tablet personal computer and notebook computer etc It is widely used in standby.
Generally, an aperture is opened up in the positive top edge of the housing of electronic equipment, it is small that optical sensor is arranged at into this In hole, when ambient light caused by light source enters optical sensor through aperture, electronic equipment can measure ring by optical sensor The brightness value of border light.
The content of the invention
To solve the problems, such as in correlation technique, present disclose provides a kind of ambient light measurement method and device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of ambient light measurement method, to contain the electricity of touch-screen In sub- equipment, optical sensor is evenly distributed with the touch-screen, methods described includes:
Obtain the operating area for the touch control operation that operating body is acted on the touch-screen;
It is determined that the failed areas of the operating area is included, the ambient light quilt for the optical sensor injected in the failed areas The operating body blocks;
According to the brightness value of each optical sensor measuring environment light outside the failed areas.
Optionally, the failed areas for determining to include the operating area, including:
It is the finger of user or the palm of user according to operating body described in the area detecting of the operating area;
When the operating body is the finger of the user, determined according to the first shadow algorithm comprising the operating area Failed areas;
When the operating body is the palm of the user, determined according to the second shadow algorithm comprising the operating area Failed areas.
Optionally, the failed areas for determining to include the operating area according to the first shadow algorithm, including:
The first predetermined length is obtained, first predetermined length is more than any point in the operating area to the behaviour Make the distance of the center in region;Centered on the center, determined according to first predetermined length comprising described The failed areas of operating area;Or,
The operating force for each contact that the touch control operation is acted in the operating area is obtained, by the operating physical force Degree declines the failed areas that most fast direction is defined as long axis direction generation ellipse, and the long axis direction is first on major axis End points points to double-pointed direction, and the first end point and the distance of the operating area are less than second end points and institute The distance of operating area is stated, the oval failed areas includes the operating area.
Optionally, the failed areas for determining to include the operating area according to the second shadow algorithm, including:
Obtain the second predetermined length;Using the borderline contact of the operating area as starting point, along predetermined direction to extension Second predetermined length is stretched, obtained each contact area defined is defined as including to the failure area of the operating area Domain, the predetermined direction are that the direction of the contact is pointed in the center of the operating area.
Optionally, the brightness value of each optical sensor measuring environment light of the basis outside the failed areas, including:
Obtain the measured value of each optical sensor outside the failed areas;
I measured value of maximum and j minimum measured value are deleted from all measured values, i and j are positive integer;
The average value of remaining each measured value is calculated, the brightness value using the average value as the ambient light.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of ambient light measurement device, to contain the electricity of touch-screen In sub- equipment, optical sensor is evenly distributed with the touch-screen, described device includes:
Region acquisition module, it is configured as obtaining the operating space for the touch control operation that operating body is acted on the touch-screen Domain;
Area determination module, it is configured to determine that the failure of the operating area obtained comprising the region acquisition module Region, the ambient light for the optical sensor injected in the failed areas are blocked by the operating body;
Brightness value measurement module, it is configured as according to each outside the failed areas that the area determination module obtains The brightness value of individual optical sensor measuring environment light.
Optionally, the area determination module, including:
Detection sub-module is operated, is configured as the hand that the operating body according to the area detecting of the operating area is user Finger or the palm of user;
First determination sub-module, it is configured as the operation detection sub-module and detects that the operating body is the user Finger when, determined to include the failed areas of the operating area according to the first shadow algorithm;
Second determination sub-module, it is configured as the operation detection sub-module and detects that the operating body is the user Palm when, determined to include the failed areas of the operating area according to the second shadow algorithm.
Optionally, first determination sub-module, is additionally configured to:
The first predetermined length is obtained, first predetermined length is more than any point in the operating area to the behaviour Make the distance of the center in region;Centered on the center, determined according to first predetermined length comprising described The failed areas of operating area;Or,
The operating force for each contact that the touch control operation is acted in the operating area is obtained, by the operating physical force Degree declines the failed areas that most fast direction is defined as long axis direction generation ellipse, and the long axis direction is first on major axis End points points to double-pointed direction, and the first end point and the distance of the operating area are less than second end points and institute The distance of operating area is stated, the oval failed areas includes the operating area.
Optionally, second determination sub-module, is additionally configured to:
Obtain the second predetermined length;Using the borderline contact of the operating area as starting point, along predetermined direction to extension Second predetermined length is stretched, obtained each contact area defined is defined as including to the failure area of the operating area Domain, the predetermined direction are that the direction of the contact is pointed in the center of the operating area.
Optionally, the brightness value measurement module, including:
Measured value acquisition submodule, it is configured as obtaining the measured value of each optical sensor outside the failed areas;
Measured value deletes submodule, is configured as deleting i measured value of maximum and minimum j from all measured values Individual measured value, i and j are positive integer;
Brightness value calculating sub module, it is configured as calculating the average value of remaining each measured value, the average value is made For the brightness value of the ambient light.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of ambient light measurement device, described device include:
Touch-screen, optical sensor is evenly distributed with the touch-screen;
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Obtain the operating area for the touch control operation that operating body is acted on the touch-screen;
It is determined that the failed areas of the operating area is included, the ambient light quilt for the optical sensor injected in the failed areas The operating body blocks;
According to the brightness value of each optical sensor measuring environment light outside the failed areas.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The operating area of the touch control operation acted on by obtaining operating body on touch-screen;It is determined that the mistake comprising operating area Region is imitated, the ambient light operated member for the optical sensor injected in failed areas is blocked;According to each light outside failed areas The brightness value of sensor measuring environment light, it may be determined that the optical sensor that operated member is blocked, so that by this part measured value not Accurate optical sensor is excluded, and using the brightness value of remaining optical sensor computing environment light, is solved and is arranged at aperture An interior optical sensor is easily blocked, and the problem of the brightness value inaccuracy of the ambient light measured, has reached raising ambient light Measurement accuracy effect.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms a part for present disclosure specification, shows and meets the disclosure Embodiment, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of ambient light measurement method according to an exemplary embodiment.
Fig. 2A is a kind of flow chart of ambient light measurement method according to another exemplary embodiment.
Fig. 2 B are the distribution schematic diagrams of the optical sensor according to another exemplary embodiment.
Fig. 2 C are the schematic diagrames of the first failed areas according to another exemplary embodiment.
Fig. 2 D are the schematic diagrames of second of failed areas according to another exemplary embodiment.
Fig. 2 E are the schematic diagrames of the third failed areas according to another exemplary embodiment.
Fig. 3 is a kind of block diagram of ambient light measurement device according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of ambient light measurement device according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of device for ambient light measurement according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of ambient light measurement method according to an exemplary embodiment, the ambient light measurement Method is applied in the electronic equipment comprising touch-screen, optical sensor is evenly distributed with touch-screen, as shown in figure 1, the environment Photo measure method comprises the following steps.
In a step 101, the operating area for the touch control operation that operating body is acted on touch-screen is obtained.
In a step 102, it is determined that the failed areas comprising operating area, the environment for the optical sensor injected in failed areas Light operated member is blocked.
In step 103, according to the brightness value of each optical sensor measuring environment light outside failed areas.
In summary, the ambient light measurement method that the disclosure provides, touching on touch-screen is acted on by obtaining operating body Control the operating area of operation;It is determined that the failed areas comprising operating area, the ambient light for the optical sensor injected in failed areas Operated member is blocked;According to the brightness value of each optical sensor measuring environment light outside failed areas, it may be determined that operated The optical sensor that body blocks, so as to which the inaccurate optical sensor of this part measured value be excluded, use remaining light sensing The brightness value of device computing environment light, solve an optical sensor being arranged in aperture and be easily blocked, the ambient light measured Brightness value inaccuracy the problem of, reached improve ambient light measurement accuracy effect.
Fig. 2A is a kind of flow chart of ambient light measurement method according to another exemplary embodiment, the environment flash ranging Amount method is applied in the electronic equipment comprising touch-screen, and optical sensor is evenly distributed with touch-screen, as shown in Figure 2 A, the ring Border photo measure method comprises the following steps.
In step 201, the operating area for the touch control operation that operating body is acted on touch-screen is obtained.
Wherein, operating body can be the finger of user or the palm of user, can also be other portions of user Position, the present embodiment are not construed as limiting.
Multiple touch control units are evenly distributed with touch-screen, when touch control operation acts on the touchscreen, by touch control operation The capacitance of the touch control unit of covering can change, the area that the touch control unit that electronic equipment changes capacitance is formed Domain is defined as the operating area of touch control operation.The touch control unit that capacitance changes in the present embodiment is referred to as contact.
In the present embodiment, optical sensor is evenly distributed with touch-screen.It refer to the distribution of the optical sensor shown in Fig. 2 B Schematic diagram, optical sensor 210 is represented with round dot, and control chip 220 is represented with the rectangle of the top, and wire 230 is represented with lines, Pixel color lump 240 is represented with each rectangle that lower section is distributed, wherein, each optical sensor 210 is connected to control by wire 230 Chip 220.
Because operating body is in contact with operating area, therefore, for the optical sensor in operating area, originally The ambient light operated member that these optical sensors should be injected is blocked, and the measured value that these optical sensors measure not is ambient light Intrinsic brilliance value, so as to influence the accuracy of the brightness value of measuring environment light.In addition, when light source is located at the top of electronic equipment When, the operating body irradiated through ambient light can form shade on the touchscreen, the measured value that the optical sensor in shade measures It is not the intrinsic brilliance value of ambient light, can influences the accuracy of the brightness value of measuring environment light yet.Therefore, in measuring environment light Brightness value when, it is necessary to exclude the measured value of these optical sensors.
In the present embodiment, the region that optical sensor that the ambient light operated member of injection is blocked is formed is as failure area Domain, the failed areas include operating area and shadow region.Because operating body is probably finger, it is also possible to palm, and finger In operation, caused shade is different with palm, and shade is not according to caused by finger and palm in operation for the present embodiment With different shadow algorithm is chosen, solve according to identical shadow algorithm come area of failing caused by calculating finger and palm Domain, the problem of causing the determination inaccuracy of failed areas, the effect for improving the accuracy for determining failed areas is reached.It is right below The determination method of failed areas illustrates.
In step 202, it is the finger of user or the palm of user according to the area detecting operating body of operating area;When When operating body is the finger of user, step 203 is performed;When operating body is the palm of user, step 204 is performed.
Because the contact area of finger and touch-screen is smaller, and the contact area of palm and touch-screen is larger, therefore, electronics Equipment can determine that operating body is finger or palm according to the area of operating area.When actually realizing, can first set Predetermined area, when the area of operating area is less than the predetermined area, it is finger to determine operating body, performs step 203;Work as operation When the area in region is more than the predetermined area, it is palm to determine operating body, performs step 204.
In step 203, the failed areas for including operating area is determined according to the first shadow algorithm, performs step 205.
When operating body is finger, because user is generally by the finger tip operation touch-screen of finger, and finger is longer so that Shadow region is larger caused by finger, therefore, the failed areas that can be set according to this feature.Present embodiments provide two Kind determines the implementation of the failed areas comprising operating area according to the first shadow algorithm, separately below to both realization sides Formula is introduced:
In the first implementation, the first predetermined length is obtained, first predetermined length is more than appointing in operating area Meaning is a little to the distance of the center of operating area;Centered on center, determined according to the first predetermined length comprising behaviour Make the failed areas in region.
Wherein, the first predetermined length need be more than operating area in any point to the center of operating area away from From so just can guarantee that and be all located in operating area in failed areas a little.Generally, the first predetermined length can be set It is larger, such as, 20mm is arranged to, or other numerical value are arranged to, the present embodiment is not construed as limiting to the numerical value of the first predetermined length.
In the present embodiment, the shape of failed areas can also be set.For example the shape of failed areas can be circular, ellipse Circle, regular polygon, irregular shape etc..When the shape of failed areas is circle, the first predetermined length is the length of radius Degree;When the shape of failed areas is regular polygon, the first predetermined length is the length of cornerwise half.
It refer to the schematic diagram of the first failed areas shown in Fig. 2 C, in the view on the left of Fig. 2 C, the finger of user is made For operating body effect on the touchscreen;In view on the right side of Fig. 2 C, region a is the operating area of finger, and the stain in a of region is The center of operating area, centered on the center, using the first predetermined length as radius, region b, region can be obtained B is failed areas.
In second of implementation, the operating force for each contact that touch control operation is acted in operating area is obtained, Operating force is declined into most fast direction and is defined as the oval failed areas of long axis direction generation, the long axis direction is on major axis First end point point to double-pointed direction, and first end point and the distance of operating area are less than the second end points and operating area Distance, the oval failed areas includes operating area.
Because the shade of finger is strip, and hence it is also possible to set the failed areas of ellipse., can when realizing Shadow region is determined with the direction according to finger, failed areas is determined further according to shadow region and operating area.Wherein, finger Direction can be embodied by operating force.
It refer to the schematic diagram of second of failed areas shown in Fig. 2 D, in the view on the left of Fig. 2 D, the finger of user is made For operating body effect on the touchscreen;In view on the right side of Fig. 2 D, region a is the operating area of finger, according to the direction of finger Understand that operating force declines the direction that most fast direction is the straight line where first end point D1 and the second end points D2, length is being determined After direction of principal axis, the failed areas b of ellipse is generated.
In step 204, the failed areas for including operating area is determined according to the second shadow algorithm.
When operating body is palm, because user is typically to be pressed on the touchscreen with a part for palm so that shadow region Domain is smaller, therefore, the failed areas that can be set according to this feature.
In the present embodiment, the failed areas of operating area is included according to the determination of the second shadow algorithm, including:It is pre- to obtain second Measured length;Using the borderline contact of operating area as starting point, stretch out the second predetermined length along predetermined direction, by what is obtained Each contact area defined is defined as including the failed areas of operating area, and predetermined direction is the center of operating area Point to the direction of contact.
Wherein, the second predetermined length can set smaller, such as, the second predetermined length is less than the first predetermined length.When When first predetermined length is 10mm, the second predetermined length could be arranged to 20mm, it is, of course, also possible to which the second predetermined length is set For other numerical value, the present embodiment is not construed as limiting to the numerical value of the second predetermined length.
It refer to the schematic diagram of the third failed areas shown in Fig. 2 E, in the view on the left of Fig. 2 E, the palm of user is made For operating body effect on the touchscreen;In view on the right side of Fig. 2 E, region a is the operating area of palm, and the stain in a of region is The center of operating area, for borderline each contact of operating area, the side of the contact will be pointed to from the central position To being defined as predetermined direction corresponding with the contact, the contact is stretched out the second predetermined length d along the predetermined direction, will be every The contact area defined b obtained after individual contact extension is defined as failed areas.
In step 205, the measured value of each optical sensor outside failed areas is obtained;Deleted from all measured values I measured value and j minimum measured value except maximum, i and j are positive integer;Calculate being averaged for remaining each measured value Value, the brightness value using average value as ambient light.
Because light source is natural light mostly, ambient light caused by natural light is uniformly to be injected into each optical sensor, Therefore, the measured value of each optical sensor should be equal or close.When measured value that some optical sensor measures is too high or mistake When low, it may be possible to which the optical sensor there is a problem that measured value now is also inaccurate, therefore, in measuring environment light , it is necessary to exclude the measured value of these optical sensors during brightness value.
In the present embodiment, first measured value can be screened, delete i measured value of maximum of which and minimum j Measured value, then the average value of remaining measured value is calculated, so as to improve the accuracy for the brightness value being calculated.
Wherein, when deleting i maximum measured value and j minimum measured value, one kind is possible to be achieved in that:Will Each measured value is ranked up according to order from big to small, obtains measuring value sequence;Delete preceding i in the measurement value sequence Rear j measured value in measured value and the measurement value sequence.
For the ease of simplifying calculating process, illustrated so that touch-screen includes 5 optical sensors as an example, in actual realization When, the quantity of optical sensor is far longer than 5.Assuming that the measured value that 5 optical sensors measure is respectively N1, N2, N3, N4 and N5, And N3 > N5 > N2 > N4 > N1, i=j=1, then the brightness value of ambient light=(N2+N4+N5)/3.
In summary, the ambient light measurement method that the disclosure provides, touching on touch-screen is acted on by obtaining operating body Control the operating area of operation;It is determined that the failed areas comprising operating area, the ambient light for the optical sensor injected in failed areas Operated member is blocked;According to the brightness value of each optical sensor measuring environment light outside failed areas, it may be determined that operated The optical sensor that body blocks, so as to which the inaccurate optical sensor of this part measured value be excluded, use remaining light sensing The brightness value of device computing environment light, solve an optical sensor being arranged in aperture and be easily blocked, the ambient light measured Brightness value inaccuracy the problem of, reached improve ambient light measurement accuracy effect.
In addition, by the way that when operating body is finger, failed areas is determined according to the first shadow algorithm;It is palm in operating body When, failed areas is determined according to the second shadow algorithm, can according to finger with palm in operation caused by shade is different chooses Different shadow algorithms, solve according to identical shadow algorithm come failed areas caused by calculating finger and palm, cause The problem of determination inaccuracy of failed areas, the effect for improving the accuracy for determining failed areas is reached.
Fig. 3 is a kind of block diagram of ambient light measurement device according to an exemplary embodiment, and the ambient light measurement fills Put applied in the electronic equipment comprising touch-screen, optical sensor is evenly distributed with touch-screen, as shown in figure 3, the ambient light Measurement apparatus includes:Region acquisition module 310, area determination module 320 and brightness value measurement module 330.
The region acquisition module 310, it is configured as obtaining the operating space for the touch control operation that operating body is acted on touch-screen Domain;
The area determination module 320, it is configured to determine that the failure for the operating area that inclusion region acquisition module 310 obtains Region, the ambient light operated member for the optical sensor injected in failed areas are blocked;
The brightness value measurement module 330, it is configured as according to each outside the failed areas that area determination module 320 obtains The brightness value of individual optical sensor measuring environment light.
In summary, the ambient light measurement device that the disclosure provides, touching on touch-screen is acted on by obtaining operating body Control the operating area of operation;It is determined that the failed areas comprising operating area, the ambient light for the optical sensor injected in failed areas Operated member is blocked;According to the brightness value of each optical sensor measuring environment light outside failed areas, it may be determined that operated The optical sensor that body blocks, so as to which the inaccurate optical sensor of this part measured value be excluded, use remaining light sensing The brightness value of device computing environment light, solve an optical sensor being arranged in aperture and be easily blocked, the ambient light measured Brightness value inaccuracy the problem of, reached improve ambient light measurement accuracy effect.
Fig. 4 is a kind of block diagram of ambient light measurement device according to an exemplary embodiment, and the ambient light measurement fills Put applied in the electronic equipment comprising touch-screen, optical sensor is evenly distributed with touch-screen, as shown in figure 4, the ambient light Measurement apparatus includes:Region acquisition module 410, area determination module 420 and brightness value measurement module 430.
The region acquisition module 410, it is configured as obtaining the operating space for the touch control operation that operating body is acted on touch-screen Domain;
The area determination module 420, it is configured to determine that the failure for the operating area that inclusion region acquisition module 410 obtains Region, the ambient light operated member for the optical sensor injected in failed areas are blocked;
The brightness value measurement module 430, it is configured as according to each outside the failed areas that area determination module 420 obtains The brightness value of individual optical sensor measuring environment light.
Optionally, area determination module 420, including:Operate detection sub-module 421, the first determination sub-module 422 and second Determination sub-module 423;
The operation detection sub-module 421, be configured as be according to the area detecting operating body of operating area user finger Or the palm of user;
First determination sub-module 422, it is configured as operation detection sub-module 421 and detects that operating body is the hand of user During finger, the failed areas of operating area is included according to the determination of the first shadow algorithm;
Second determination sub-module 423, it is configured as operation detection sub-module 421 and detects that operating body is the hand of user During the palm, the failed areas of operating area is included according to the determination of the second shadow algorithm.
Optionally, the first determination sub-module 422, is additionally configured to:
The first predetermined length is obtained, the first predetermined length is more than any point to the center of operating area in operating area The distance of position;Centered on center, the failed areas of operating area is included according to the determination of the first predetermined length;Or,
The operating force for each contact that touch control operation is acted in operating area is obtained, operating force is declined most fast Direction is defined as the failed areas of long axis direction generation ellipse, and long axis direction is that the first end point on major axis points to the second end points Direction, and first end point and the distance of operating area are less than the distance of the second end points and operating area, oval failure area Domain includes operating area.
Optionally, the second determination sub-module 423, is additionally configured to:
Obtain the second predetermined length;Stretch out using the borderline contact of operating area as starting point, along predetermined direction Two predetermined lengths, obtained each contact area defined is defined as including to the failed areas of operating area, predetermined direction It is that the direction of contact is pointed in the center of operating area.
Optionally, it is characterised in that brightness value measurement module 430, including:Measured value acquisition submodule 431, measured value are deleted Except submodule 432 and brightness value calculating sub module 433;
The measured value acquisition submodule 431, it is configured as obtaining the measured value of each optical sensor outside failed areas;
The measured value deletes submodule 432, is configured to delete the i measured value and minimum of maximum from all measured values J measured value, i and j are positive integer;
The brightness value calculating sub module 433, it is configured as calculating the average value of remaining each measured value, average value is made For the brightness value of ambient light.
In summary, the ambient light measurement device that the disclosure provides, touching on touch-screen is acted on by obtaining operating body Control the operating area of operation;It is determined that the failed areas comprising operating area, the ambient light for the optical sensor injected in failed areas Operated member is blocked;According to the brightness value of each optical sensor measuring environment light outside failed areas, it may be determined that operated The optical sensor that body blocks, so as to which the inaccurate optical sensor of this part measured value be excluded, use remaining light sensing The brightness value of device computing environment light, solve an optical sensor being arranged in aperture and be easily blocked, the ambient light measured Brightness value inaccuracy the problem of, reached improve ambient light measurement accuracy effect.
In addition, by the way that when operating body is finger, failed areas is determined according to the first shadow algorithm;It is palm in operating body When, failed areas is determined according to the second shadow algorithm, can according to finger with palm in operation caused by shade is different chooses Different shadow algorithms, solve according to identical shadow algorithm come failed areas caused by calculating finger and palm, cause The problem of determination inaccuracy of failed areas, the effect for improving the accuracy for determining failed areas is reached.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
The exemplary embodiment of the disclosure one provides a kind of ambient light measurement device, can realize the environment that the disclosure provides Photo measure method, the ambient light measurement device include:Optical sensor, processor, use are evenly distributed with touch-screen, the touch-screen In the memory of storage processor-executable instruction;
Wherein, processor is configured as:
Obtain the operating area for the touch control operation that operating body is acted on touch-screen;
It is determined that the failed areas comprising operating area, the ambient light operated member for the optical sensor injected in failed areas hides Gear;
According to the brightness value of each optical sensor measuring environment light outside failed areas.
Fig. 5 is a kind of block diagram of device 500 for ambient light measurement according to an exemplary embodiment.For example, Device 500 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, cure Treat equipment, body-building equipment, personal digital assistant etc..
Reference picture 5, device 500 can include following one or more assemblies:Processing component 502, memory 504, power supply Component 506, multimedia groupware 508, audio-frequency assembly 510, the interface 512 of input/output (I/O), sensor cluster 514, and Communication component 516.
The integrated operation of the usual control device 500 of processing component 502, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 502 can refer to including one or more processors 518 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 502 can include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 can include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown Example includes the instruction of any application program or method for operating on device 500, contact data, telephone book data, disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 500.
Multimedia groupware 508 is included in the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 510 is configured as output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when device 500 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 504 or via communication set Part 516 is sent.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor cluster 514 can detect opening/closed mode of device 500, and the relative positioning of component, for example, it is described Component is the display and keypad of device 500, and sensor cluster 514 can be with 500 1 components of detection means 500 or device Position change, the existence or non-existence that user contacts with device 500, the orientation of device 500 or acceleration/deceleration and device 500 Temperature change.Sensor cluster 514 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 514 can also include the optical sensor of distribution on the touchscreen, as CMOS or CCD schemes As sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 514 can also include acceleration Sensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 518 of device 500.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art will readily occur to other realities of the disclosure after considering specification and putting into practice disclosure herein Apply scheme.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or suitable The change of answering property follows the general principle of the disclosure and including the undocumented common knowledge or used in the art of the disclosure Use technological means.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following right It is required that point out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (9)

  1. A kind of 1. ambient light measurement method, it is characterised in that to contain in the electronic equipment of touch-screen, on the touch-screen Even that optical sensor is distributed with, methods described includes:
    Obtain the operating area for the touch control operation that operating body is acted on the touch-screen;
    It is determined that including the failed areas of the operating area, the ambient light for the optical sensor injected in the failed areas is described Operating body blocks;
    According to the brightness value of each optical sensor measuring environment light outside the failed areas,
    The failed areas for determining to include the operating area, including:
    It is the finger of user or the palm of user according to operating body described in the area detecting of the operating area;
    When the operating body is the finger of the user, the failure of the operating area is included according to the determination of the first shadow algorithm Region, including:
    The first predetermined length is obtained, first predetermined length is more than any point to the operating space in the operating area The distance of the center in domain;Centered on the center, determined to include the operation according to first predetermined length The failed areas in region;Or,
    The operating force for each contact that the touch control operation is acted in the operating area is obtained, by under the operating force The most fast direction of drop is defined as the failed areas of long axis direction generation ellipse, and the long axis direction is the first end point on major axis Double-pointed direction is pointed to, and the first end point and the distance of the operating area are less than second end points and the behaviour Make the distance in region, the oval failed areas includes the operating area.
  2. 2. according to the method for claim 1, it is characterised in that the failed areas for determining to include the operating area, Also include:
    When the operating body is the palm of the user, the failure of the operating area is included according to the determination of the second shadow algorithm Region.
  3. 3. according to the method for claim 2, it is characterised in that described to be determined to include the operation according to the second shadow algorithm The failed areas in region, including:
    Obtain the second predetermined length;Using the borderline contact of the operating area as starting point, stretch out institute along predetermined direction The second predetermined length is stated, obtained each contact area defined is defined as including to the failed areas of the operating area, The predetermined direction is that the direction of the contact is pointed in the center of the operating area.
  4. 4. method according to any one of claims 1 to 3, it is characterised in that the basis is each outside the failed areas The brightness value of individual optical sensor measuring environment light, including:
    Obtain the measured value of each optical sensor outside the failed areas;
    I measured value of maximum and j minimum measured value are deleted from all measured values, i and j are positive integer;
    The average value of remaining each measured value is calculated, the brightness value using the average value as the ambient light.
  5. 5. a kind of ambient light measurement device, it is characterised in that to contain in the electronic equipment of touch-screen, on the touch-screen Even that optical sensor is distributed with, described device includes:
    Region acquisition module, it is configured as obtaining the operating area for the touch control operation that operating body is acted on the touch-screen;
    Area determination module, it is configured to determine that the failure area of the operating area obtained comprising the region acquisition module Domain, the ambient light for the optical sensor injected in the failed areas are blocked by the operating body;
    Brightness value measurement module, it is configured as according to each light outside the failed areas that the area determination module obtains The brightness value of sensor measuring environment light,
    The area determination module, including:
    Operate detection sub-module, be configured as the operating body according to the area detecting of the operating area be the finger of user also It is the palm of user;
    First determination sub-module, it is configured as the operation detection sub-module and detects that the operating body is the hand of the user During finger, the failed areas of the operating area is included according to the determination of the first shadow algorithm,
    First determination sub-module, is additionally configured to:
    The first predetermined length is obtained, first predetermined length is more than any point to the operating space in the operating area The distance of the center in domain;Centered on the center, determined to include the operation according to first predetermined length The failed areas in region;Or,
    The operating force for each contact that the touch control operation is acted in the operating area is obtained, by under the operating force The most fast direction of drop is defined as the failed areas of long axis direction generation ellipse, and the long axis direction is the first end point on major axis Double-pointed direction is pointed to, and the first end point and the distance of the operating area are less than second end points and the behaviour Make the distance in region, the oval failed areas includes the operating area.
  6. 6. device according to claim 5, it is characterised in that the area determination module, in addition to:
    Second determination sub-module, it is configured as the operation detection sub-module and detects that the operating body is the hand of the user During the palm, the failed areas of the operating area is included according to the determination of the second shadow algorithm.
  7. 7. device according to claim 6, it is characterised in that second determination sub-module, be additionally configured to:
    Obtain the second predetermined length;Using the borderline contact of the operating area as starting point, stretch out institute along predetermined direction The second predetermined length is stated, obtained each contact area defined is defined as including to the failed areas of the operating area, The predetermined direction is that the direction of the contact is pointed in the center of the operating area.
  8. 8. according to any described device of claim 5 to 7, it is characterised in that the brightness value measurement module, including:
    Measured value acquisition submodule, it is configured as obtaining the measured value of each optical sensor outside the failed areas;
    Measured value deletes submodule, is configured to delete i measured value of maximum and minimum j measurement from all measured values Value, i and j are positive integer;
    Brightness value calculating sub module, it is configured as calculating the average value of remaining each measured value, using the average value as institute State the brightness value of ambient light.
  9. 9. a kind of ambient light measurement device, it is characterised in that described device includes:
    Touch-screen, optical sensor is evenly distributed with the touch-screen;
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    Obtain the operating area for the touch control operation that operating body is acted on the touch-screen;
    It is determined that including the failed areas of the operating area, the ambient light for the optical sensor injected in the failed areas is described Operating body blocks;
    According to the brightness value of each optical sensor measuring environment light outside the failed areas,
    The failed areas for determining to include the operating area, including:
    It is the finger of user or the palm of user according to operating body described in the area detecting of the operating area;
    When the operating body is the finger of the user, the failure of the operating area is included according to the determination of the first shadow algorithm Region, including:
    The first predetermined length is obtained, first predetermined length is more than any point to the operating space in the operating area The distance of the center in domain;Centered on the center, determined to include the operation according to first predetermined length The failed areas in region;Or,
    The operating force for each contact that the touch control operation is acted in the operating area is obtained, by under the operating force The most fast direction of drop is defined as the failed areas of long axis direction generation ellipse, and the long axis direction is the first end point on major axis Double-pointed direction is pointed to, and the first end point and the distance of the operating area are less than second end points and the behaviour Make the distance in region, the oval failed areas includes the operating area.
CN201510493146.9A 2015-08-12 2015-08-12 Ambient light measurement method and device Active CN105094466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510493146.9A CN105094466B (en) 2015-08-12 2015-08-12 Ambient light measurement method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510493146.9A CN105094466B (en) 2015-08-12 2015-08-12 Ambient light measurement method and device

Publications (2)

Publication Number Publication Date
CN105094466A CN105094466A (en) 2015-11-25
CN105094466B true CN105094466B (en) 2018-03-20

Family

ID=54575072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510493146.9A Active CN105094466B (en) 2015-08-12 2015-08-12 Ambient light measurement method and device

Country Status (1)

Country Link
CN (1) CN105094466B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094616B (en) * 2015-08-12 2019-02-12 小米科技有限责任公司 Touch screen control method and device
CN109309761B (en) * 2018-10-30 2021-06-15 努比亚技术有限公司 Emergency call method, mobile terminal and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101498976A (en) * 2008-12-26 2009-08-05 深圳华为通信技术有限公司 Touch display unit and its fabrication method and electronic equipment
CN102073421A (en) * 2010-11-18 2011-05-25 友达光电股份有限公司 Photoinduction touch unit and touch display panel
CN102232210A (en) * 2009-01-20 2011-11-02 夏普株式会社 Liquid crystal display device provided with light intensity sensor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847060B (en) * 2009-03-27 2012-10-10 联想(北京)有限公司 Optical touch system and optical touch positioning method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101498976A (en) * 2008-12-26 2009-08-05 深圳华为通信技术有限公司 Touch display unit and its fabrication method and electronic equipment
CN102232210A (en) * 2009-01-20 2011-11-02 夏普株式会社 Liquid crystal display device provided with light intensity sensor
CN102073421A (en) * 2010-11-18 2011-05-25 友达光电股份有限公司 Photoinduction touch unit and touch display panel

Also Published As

Publication number Publication date
CN105094466A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN104991789B (en) Application program open method and device
CN104700816B (en) Method and device for setting screen brightness
CN103885588B (en) Automatic switching method and device
CN104536684B (en) interface display method and device
CN105094465B (en) Ambient light measurement method and device
CN104636065A (en) Method and device for awakening terminal
CN104020878A (en) Touch input control method and device
CN105511631A (en) Gesture recognition method and device
CN105094616B (en) Touch screen control method and device
CN104020924B (en) Label creation method, device and terminal
CN104571709B (en) The processing method of mobile terminal and virtual key
CN106547466A (en) Display control method and device
CN103995666A (en) Method and device for setting work mode
CN105159496A (en) Touch event response method and mobile terminal
CN105139378A (en) Card boundary detection method and apparatus
CN107340996A (en) Screen lights method and device
CN104299582B (en) backlight adjusting method and device
CN107368280A (en) Method for controlling volume, device and the interactive voice equipment of interactive voice
CN104461366A (en) Method and device for activating operation state of mobile terminal
CN105094466B (en) Ambient light measurement method and device
CN106774802A (en) The reminding method of terminal power, device and terminal
CN106293184A (en) Can the terminal of side touch-control and touch control method thereof
CN104035578A (en) Method and device for controlling capacitance touch screen terminal
CN106778125A (en) unlocking method, device and equipment
CN105607850A (en) Gripping way determination method and 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