CN105094466A - Environmental light measurement method and device - Google Patents

Environmental light measurement method and device Download PDF

Info

Publication number
CN105094466A
CN105094466A CN201510493146.9A CN201510493146A CN105094466A CN 105094466 A CN105094466 A CN 105094466A CN 201510493146 A CN201510493146 A CN 201510493146A CN 105094466 A CN105094466 A CN 105094466A
Authority
CN
China
Prior art keywords
operating area
failed areas
optical sensor
described operating
area
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.)
Granted
Application number
CN201510493146.9A
Other languages
Chinese (zh)
Other versions
CN105094466B (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.)
Beijing Xiaomi Technology Co Ltd
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 invention discloses and relates to an environmental light measurement method and device, and belongs to the field of economics. The method includes the steps of evenly distributing optical sensors on a touch screen in an electronic device containing the touch screen, obtaining the operation area of the touch operation conducted by an operation body on the touch screen, determining the invalid area containing the operation area, shielding the environmental light, emitted into the optical sensors in the invalid area through the operation body, and measuring the brightness value of the environmental light according to all the optical sensors outside the invalid area. By means of the environmental light measurement method and device, the optical sensors shielded by the operation body can be confirmed, and therefore the optical sensors inaccurate in measured value are excluded, the rest of the optical sensors are used for calculating the brightness value of the environmental light, the problem that due to the fact that an optical sensor arranged in a small hole is prone to be shielded, the measured brightness value of the environmental light is not accurate is solved, and the effect of improving the measurement accuracy of the environmental light is achieved.

Description

Ambient light measurement method and device
Technical field
The disclosure relates to electronic applications, particularly a kind of ambient light measurement method and device.
Background technology
Optical sensor is a kind of common sensor, and it is widely used in the electronic equipment of mobile phone, panel computer and notebook computer and so on.
Usually, offer an aperture in the top edge in the front of the housing of electronic equipment, be arranged at by optical sensor in this aperture, when the surround lighting that light source produces enters optical sensor through aperture, electronic equipment can by the brightness value of optical sensor measure ambient light.
Summary of the invention
For solving the problem in correlation technique, present disclose provides a kind of ambient light measurement method and device.
According to the first aspect of disclosure embodiment, provide a kind of ambient light measurement method, for comprising in the electronic equipment of touch-screen, described touch-screen is evenly distributed with optical sensor, described method comprises:
Obtain the operating area that operating body acts on the touch control operation on described touch-screen;
Determine the failed areas comprising described operating area, the surround lighting injecting the optical sensor in described failed areas is blocked by described operating body;
According to the brightness value of each optical sensor measure ambient light outside described failed areas.
Optionally, describedly determine the failed areas comprising described operating area, comprising:
According to the area detecting of described operating area, operating body is the finger of user or the palm of user;
When described operating body is the finger of described user, determine according to the first shadow algorithm the failed areas comprising described operating area;
When described operating body is the palm of described user, determine according to the second shadow algorithm the failed areas comprising described operating area.
Optionally, describedly determine according to the first shadow algorithm the failed areas comprising described operating area, comprising:
Obtain the first predetermined length, described first predetermined length is greater than the distance of any point in described operating area to the center of described operating area; Centered by described center, determine according to described first predetermined length the failed areas comprising described operating area; Or,
Obtain the operating force that described touch control operation acts on each contact in described operating area, the fastest direction of described operating force decline is defined as long axis direction and generates oval failed areas, described long axis direction is that the first end points on major axis points to double-pointed direction, and the distance of described first end points and described operating area is less than the distance of described second end points and described operating area, the failed areas of described ellipse comprises described operating area.
Optionally, describedly determine according to the second shadow algorithm the failed areas comprising described operating area, comprising:
Obtain the second predetermined length; With the borderline contact of described operating area be starting point, stretch out along predetermined direction described second predetermined length, the region that each contact obtained surrounds is defined as the failed areas comprising described operating area, and described predetermined direction is the direction that described contact is pointed in the center of described operating area.
Optionally, the brightness value of each the optical sensor measure ambient light of described basis outside described failed areas, comprising:
Obtain the measured value of each optical sensor outside described failed areas;
From all measured values, delete a maximum i measured value and a minimum j measured value, i and j is positive integer;
Calculate the mean value of each measured value remaining, using the brightness value of described mean value as described surround lighting.
According to the second aspect of disclosure embodiment, provide a kind of ambient light measurement device, for comprising in the electronic equipment of touch-screen, described touch-screen is evenly distributed with optical sensor, described device comprises:
Region acquisition module, is configured to obtain the operating area that operating body acts on the touch control operation on described touch-screen;
Area determination module, be configured to the failed areas determining to comprise the described operating area that described region acquisition module obtains, the surround lighting injecting the optical sensor in described failed areas is blocked by described operating body;
Brightness value measurement module, is configured to the brightness value according to each optical sensor measure ambient light outside the described failed areas obtained at described area determination module.
Optionally, described area determination module, comprising:
Operation detection submodule, being configured to operating body according to the area detecting of described operating area is the finger of user or the palm of user;
First determines submodule, is configured to, when described operation detection submodule detects that described operating body is the finger of described user, determine according to the first shadow algorithm the failed areas comprising described operating area;
Second determines submodule, is configured to, when described operation detection submodule detects that described operating body is the palm of described user, determine according to the second shadow algorithm the failed areas comprising described operating area.
Optionally, described first determines submodule, is also configured to:
Obtain the first predetermined length, described first predetermined length is greater than the distance of any point in described operating area to the center of described operating area; Centered by described center, determine according to described first predetermined length the failed areas comprising described operating area; Or,
Obtain the operating force that described touch control operation acts on each contact in described operating area, the fastest direction of described operating force decline is defined as long axis direction and generates oval failed areas, described long axis direction is that the first end points on major axis points to double-pointed direction, and the distance of described first end points and described operating area is less than the distance of described second end points and described operating area, the failed areas of described ellipse comprises described operating area.
Optionally, described second determines submodule, is also configured to:
Obtain the second predetermined length; With the borderline contact of described operating area be starting point, stretch out along predetermined direction described second predetermined length, the region that each contact obtained surrounds is defined as the failed areas comprising described operating area, and described predetermined direction is the direction that described contact is pointed in the center of described operating area.
Optionally, described brightness value measurement module, comprising:
Measured value obtains submodule, is configured to the measured value of each optical sensor obtained outside described failed areas;
Submodule deleted by measured value, and be configured to from all measured values, delete a maximum i measured value and a minimum j measured value, i and j is positive integer;
Brightness value calculating sub module, is configured to the mean value calculating each measured value remaining, using the brightness value of described mean value as described surround lighting.
According to the third aspect of disclosure embodiment, provide a kind of ambient light measurement device, described device comprises:
Touch-screen, described touch-screen is evenly distributed with optical sensor;
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the operating area that operating body acts on the touch control operation on described touch-screen;
Determine the failed areas comprising described operating area, the surround lighting injecting the optical sensor in described failed areas is blocked by described operating body;
According to the brightness value of each optical sensor measure ambient light outside described failed areas.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
The operating area of the touch control operation on touch-screen is acted on by obtaining operating body; Determine the failed areas comprising operating area, the surround lighting operated member injecting the optical sensor in failed areas is blocked; According to the brightness value of each optical sensor measure ambient light outside failed areas, the optical sensor that operated member is blocked can be determined, thus inaccurate for this part measured value optical sensor is got rid of, use the brightness value of remaining optical sensor computing environment light, solve the optical sensor be arranged in aperture to be easily blocked, the inaccurate problem of brightness value of the surround lighting recorded, reaches the effect of the measurement accuracy improving surround lighting.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form a part for present disclosure specification, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of a kind of ambient light measurement method according to an exemplary embodiment.
Fig. 2 A is the process flow diagram of a kind of ambient light measurement method according to another exemplary embodiment.
Fig. 2 B is the distribution schematic diagram of the optical sensor according to another exemplary embodiment.
Fig. 2 C is the schematic diagram of the first failed areas according to another exemplary embodiment.
Fig. 2 D is the schematic diagram of the second failed areas according to another exemplary embodiment.
Fig. 2 E is the schematic diagram of the third failed areas according to another exemplary embodiment.
Fig. 3 is the block diagram of a kind of ambient light measurement device according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of ambient light measurement device according to an exemplary embodiment.
Fig. 5 is the block diagram of a kind of device for ambient light measurement according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of a kind of ambient light measurement method according to an exemplary embodiment, this ambient light measurement method is applied to and comprises in the electronic equipment of touch-screen, touch-screen is evenly distributed with optical sensor, and as shown in Figure 1, this ambient light measurement method comprises the following steps.
In a step 101, the operating area that operating body acts on the touch control operation on touch-screen is obtained.
In a step 102, determine the failed areas comprising operating area, the surround lighting operated member injecting the optical sensor in failed areas is blocked.
In step 103, according to the brightness value of each optical sensor measure ambient light outside failed areas.
In sum, the ambient light measurement method that the disclosure provides, acts on the operating area of the touch control operation on touch-screen by obtaining operating body; Determine the failed areas comprising operating area, the surround lighting operated member injecting the optical sensor in failed areas is blocked; According to the brightness value of each optical sensor measure ambient light outside failed areas, the optical sensor that operated member is blocked can be determined, thus inaccurate for this part measured value optical sensor is got rid of, use the brightness value of remaining optical sensor computing environment light, solve the optical sensor be arranged in aperture to be easily blocked, the inaccurate problem of brightness value of the surround lighting recorded, reaches the effect of the measurement accuracy improving surround lighting.
Fig. 2 A is the process flow diagram of a kind of ambient light measurement method according to another exemplary embodiment, this ambient light measurement method is applied to and comprises in the electronic equipment of touch-screen, touch-screen is evenly distributed with optical sensor, and as shown in Figure 2 A, this ambient light measurement method comprises the steps.
In step 201, the operating area that operating body acts on the touch control operation on touch-screen is obtained.
Wherein, operating body can be the finger of user, also can be the palm of user, and can also be other positions of user, the present embodiment be not construed as limiting.
Touch-screen is evenly distributed with multiple touch control unit, when touch control operation effect on the touchscreen time, the capacitance of the touch control unit covered by touch control operation can change, and the region that the touch control unit that capacitance changes by electronic equipment forms is defined as the operating area of touch control operation.In the present embodiment, the touch control unit that capacitance changes is called contact.
In the present embodiment, touch-screen is evenly distributed with optical sensor.Please refer to the distribution schematic diagram of the optical sensor shown in Fig. 2 B, optical sensor 210 is represented with round dot, control chip 220 is represented with the rectangle of the top, wire 230 is represented with lines, pixel color block 240 is represented with each rectangle of below distribution, wherein, each optical sensor 210 is connected to control chip 220 by wire 230.
Because operating body contacts with operating area, therefore, for the optical sensor being positioned at operating area, originally the surround lighting operated member should injecting these optical sensors is blocked, the measured value that these optical sensors record not is the intrinsic brilliance value of surround lighting, thus affects the accuracy of the brightness value of measure ambient light.In addition, when light source is positioned at the top of electronic equipment, the operating body irradiated through surround lighting can form shade on the touchscreen, and the measured value that the optical sensor being arranged in shade records not is the intrinsic brilliance value of surround lighting, can affect the accuracy of the brightness value of measure ambient light yet.Therefore, when the brightness value of measure ambient light, the measured value getting rid of these optical sensors is needed.
In the present embodiment, the region formed by the optical sensor that the surround lighting operated member injected is blocked is as failed areas, and this failed areas comprises operating area and shadow region.Because operating body may be finger, also may be palm, and the shade that finger and palm produce when operating is different, the present embodiment chooses different shadow algorithms according to finger is different with the shade that palm produces when operating, solve and calculate finger and the failed areas that produces of palm according to identical shadow algorithm, cause the inaccurate problem of the determination of failed areas, reach the effect improving and determine the accuracy of failed areas.Below the defining method of failed areas is described.
In step 202., be the finger of user or the palm of user according to the area detecting operating body of operating area; When operating body is the finger of user, perform step 203; When operating body is the palm of user, perform step 204.
Because finger is less with the contact area of touch-screen, and the contact area of palm and touch-screen is comparatively large, and therefore, it is finger or palm that electronic equipment can carry out determination operation body according to the area of operating area.When actual realization, first can arrange predetermined area, when the area of operating area is less than this predetermined area, determination operation body is finger, performs step 203; When the area of operating area is greater than this predetermined area, determination operation body is palm, performs step 204.
In step 203, determine according to the first shadow algorithm the failed areas comprising operating area, perform step 205.
When operating body is finger, because user is usually by the finger-tip operated touch-screen of finger, and finger is longer, makes to point the shadow region produced comparatively large, therefore, and the failed areas that can arrange according to this feature.Present embodiments provide two kinds are determined to comprise the failed areas of operating area implementation according to the first shadow algorithm, respectively these two kinds of implementations be introduced below:
In the first implementation, obtain the first predetermined length, this first predetermined length is greater than the distance of any point in operating area to the center of operating area; Centered by center, determine according to the first predetermined length the failed areas comprising operating area.
Wherein, the first predetermined length needs to be greater than the distance of any point in operating area to the center of operating area, and the institute in such guarantee operating area is a little all arranged in failed areas.Usually, the first predetermined length can arrange larger, such as, is set to 20mm, or is set to other numerical value, and the present embodiment is not construed as limiting the numerical value of the first predetermined length.
In the present embodiment, the shape of failed areas can also be set.Such as, the shape of failed areas can be circle, ellipse, regular polygon, irregularly shaped etc.When the shape of failed areas is circle, the first predetermined length is the length of radius; When the shape of failed areas is regular polygon, the first predetermined length is the length of cornerwise half.
Please 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 as 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, and centered by this center, with the first predetermined length for radius, can obtain region b, region b is failed areas.
In the second implementation, obtain the operating force that touch control operation acts on each contact in operating area, the fastest direction of operating force decline is defined as long axis direction and generates oval failed areas, this long axis direction is that the first end points on major axis points to double-pointed direction, and the distance of the first end points and operating area is less than the distance of the second end points and operating area, the failed areas of this ellipse comprises operating area.
Because the shade of finger is strip, therefore, oval failed areas can also be set.When realizing, shadow region can be determined according to the direction of finger, then according to shadow region and operating area determination failed areas.Wherein, the direction of finger can be embodied by operating force.
Please refer to the schematic diagram of the second failed areas shown in Fig. 2 D, in the view on the left of Fig. 2 D, the finger of user as 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 that the fastest direction of known operating force decline, the direction of finger is the straight line at the first end points D1 and the second end points D2 place, after determining long axis direction, generate oval failed areas b.
In step 204, determine according to the second shadow algorithm the failed areas comprising operating area.
When operating body is palm, because user normally uses the part pressure of palm on the touchscreen, make shadow region less, therefore, the failed areas that can arrange according to this feature.
In the present embodiment, determine according to the second shadow algorithm the failed areas comprising operating area, comprising: obtain the second predetermined length; With the borderline contact of operating area be starting point, stretch out along predetermined direction the second predetermined length, the region that each contact obtained surrounds is defined as comprising the failed areas of operating area, predetermined direction is the direction of the sensing contact, center of operating area.
Wherein, the second predetermined length can arrange less, and such as, the second predetermined length is less than the first predetermined length.When the first predetermined length is 10mm, the second predetermined length can be set to 20mm, and certainly, the second predetermined length can also be set to other numerical value, the present embodiment is not construed as limiting the numerical value of the second predetermined length.
Please 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 as operating body effect on the touchscreen; In view on the right side of Fig. 2 E, region a is the operating area of palm, stain in a of region is the center of operating area, for borderline each contact of operating area, the direction pointing to this contact from center is defined as the predetermined direction corresponding with this contact, to be stretched out the second predetermined length d along this predetermined direction this contact, the region b that the contact obtained after being extended each contact surrounds is defined as failed areas.
In step 205, the measured value of each optical sensor outside failed areas is obtained; From all measured values, delete a maximum i measured value and a minimum j measured value, i and j is positive integer; Calculate the mean value of each measured value remaining, using the brightness value of mean value as surround lighting.
Because light source is natural light mostly, the surround lighting that natural light produces evenly is injected into each optical sensor, and therefore, the measured value of each optical sensor should be equal or close.When the measured value that some optical sensors record is too high or too low, may be that problem has appearred in this optical sensor, measured value now be also inaccurate, therefore, when the brightness value of measure ambient light, needs the measured value getting rid of these optical sensors.
In the present embodiment, first can screen measured value, delete i wherein maximum measured value and a minimum j measured value, then calculate the mean value of remaining measured value, thus improve the accuracy of the brightness value calculated.
Wherein, when deleting i maximum measured value and minimum j measured value, a kind of possible implementation is: sorted according to order from big to small by each measured value, obtains measured value sequence; Delete front i measured value in this measured value sequence and rear j measured value in this measured value sequence.
For the ease of simplifying computation process, comprise 5 optical sensors for touch-screen and be described, when actual realization, the quantity of optical sensor is far longer than 5.Suppose that the measured value that 5 optical sensors record is respectively N1, N2, N3, N4 and N5, and N3 > N5 > N2 > N4 > N1, i=j=1, then brightness value=(N2+N4+N5)/3 of surround lighting.
In sum, the ambient light measurement method that the disclosure provides, acts on the operating area of the touch control operation on touch-screen by obtaining operating body; Determine the failed areas comprising operating area, the surround lighting operated member injecting the optical sensor in failed areas is blocked; According to the brightness value of each optical sensor measure ambient light outside failed areas, the optical sensor that operated member is blocked can be determined, thus inaccurate for this part measured value optical sensor is got rid of, use the brightness value of remaining optical sensor computing environment light, solve the optical sensor be arranged in aperture to be easily blocked, the inaccurate problem of brightness value of the surround lighting recorded, reaches the effect of the measurement accuracy improving surround lighting.
In addition, during by being finger at operating body, according to the first shadow algorithm determination failed areas; When operating body is palm, according to the second shadow algorithm determination failed areas, different shadow algorithms can be chosen according to finger is different with the shade that palm produces when operating, solve and calculate finger and the failed areas that produces of palm according to identical shadow algorithm, cause the inaccurate problem of the determination of failed areas, reach the effect improving and determine the accuracy of failed areas.
Fig. 3 is the block diagram of a kind of ambient light measurement device according to an exemplary embodiment, this ambient light measurement application of installation is in the electronic equipment comprising touch-screen, touch-screen is evenly distributed with optical sensor, as shown in Figure 3, this ambient light measurement device comprises: region acquisition module 310, area determination module 320 and brightness value measurement module 330.
This region acquisition module 310, is configured to obtain the operating area that operating body acts on the touch control operation on touch-screen;
This area determination module 320, is configured to the failed areas determining the operating area that inclusion region acquisition module 310 obtains, and the surround lighting operated member injecting the optical sensor in failed areas is blocked;
This brightness value measurement module 330, is configured to the brightness value according to each optical sensor measure ambient light outside the failed areas obtained at area determination module 320.
In sum, the ambient light measurement device that the disclosure provides, acts on the operating area of the touch control operation on touch-screen by obtaining operating body; Determine the failed areas comprising operating area, the surround lighting operated member injecting the optical sensor in failed areas is blocked; According to the brightness value of each optical sensor measure ambient light outside failed areas, the optical sensor that operated member is blocked can be determined, thus inaccurate for this part measured value optical sensor is got rid of, use the brightness value of remaining optical sensor computing environment light, solve the optical sensor be arranged in aperture to be easily blocked, the inaccurate problem of brightness value of the surround lighting recorded, reaches the effect of the measurement accuracy improving surround lighting.
Fig. 4 is the block diagram of a kind of ambient light measurement device according to an exemplary embodiment, this ambient light measurement application of installation is in the electronic equipment comprising touch-screen, touch-screen is evenly distributed with optical sensor, as shown in Figure 4, this ambient light measurement device comprises: region acquisition module 410, area determination module 420 and brightness value measurement module 430.
This region acquisition module 410, is configured to obtain the operating area that operating body acts on the touch control operation on touch-screen;
This area determination module 420, is configured to the failed areas determining the operating area that inclusion region acquisition module 410 obtains, and the surround lighting operated member injecting the optical sensor in failed areas is blocked;
This brightness value measurement module 430, is configured to the brightness value according to each optical sensor measure ambient light outside the failed areas obtained at area determination module 420.
Optionally, area determination module 420, comprising: operation detection submodule 421, first determines that submodule 422 and second determines submodule 423;
This operation detection submodule 421, being configured to according to the area detecting operating body of operating area is the finger of user or the palm of user;
This first determines submodule 422, is configured to, when operation detection submodule 421 detects that operating body is the finger of user, determine according to the first shadow algorithm the failed areas comprising operating area;
This second determines submodule 423, is configured to, when operation detection submodule 421 detects that operating body is the palm of user, determine according to the second shadow algorithm the failed areas comprising operating area.
Optionally, first determines submodule 422, is also configured to:
Obtain the first predetermined length, the first predetermined length is greater than the distance of any point in operating area to the center of operating area; Centered by center, determine according to the first predetermined length the failed areas comprising operating area; Or,
Obtain the operating force that touch control operation acts on each contact in operating area, the fastest direction of operating force decline is defined as long axis direction and generates oval failed areas, long axis direction is that the first end points on major axis points to double-pointed direction, and the distance of the first end points and operating area is less than the distance of the second end points and operating area, oval failed areas comprises operating area.
Optionally, second determines submodule 423, is also configured to:
Obtain the second predetermined length; With the borderline contact of operating area be starting point, stretch out along predetermined direction the second predetermined length, the region that each contact obtained surrounds is defined as comprising the failed areas of operating area, predetermined direction is the direction of the sensing contact, center of operating area.
Optionally, it is characterized in that, brightness value measurement module 430, comprising: measured value obtains submodule 431, measured value deletes submodule 432 and brightness value calculating sub module 433;
This measured value obtains submodule 431, is configured to the measured value of each optical sensor obtained outside failed areas;
Submodule 432 deleted by this measured value, and be configured from all measured values, delete a maximum i measured value and a minimum j measured value, i and j is positive integer;
This brightness value calculating sub module 433, is configured to the mean value calculating each measured value remaining, using the brightness value of mean value as surround lighting.
In sum, the ambient light measurement device that the disclosure provides, acts on the operating area of the touch control operation on touch-screen by obtaining operating body; Determine the failed areas comprising operating area, the surround lighting operated member injecting the optical sensor in failed areas is blocked; According to the brightness value of each optical sensor measure ambient light outside failed areas, the optical sensor that operated member is blocked can be determined, thus inaccurate for this part measured value optical sensor is got rid of, use the brightness value of remaining optical sensor computing environment light, solve the optical sensor be arranged in aperture to be easily blocked, the inaccurate problem of brightness value of the surround lighting recorded, reaches the effect of the measurement accuracy improving surround lighting.
In addition, during by being finger at operating body, according to the first shadow algorithm determination failed areas; When operating body is palm, according to the second shadow algorithm determination failed areas, different shadow algorithms can be chosen according to finger is different with the shade that palm produces when operating, solve and calculate finger and the failed areas that produces of palm according to identical shadow algorithm, cause the inaccurate problem of the determination of failed areas, reach the effect improving and determine the accuracy of failed areas.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
The disclosure one exemplary embodiment provides a kind of ambient light measurement device, can realize the ambient light measurement method that the disclosure provides, this ambient light measurement device comprises: touch-screen, this touch-screen are evenly distributed with optical sensor, processor, storer for storage of processor executable instruction;
Wherein, processor is configured to:
Obtain the operating area that operating body acts on the touch control operation on touch-screen;
Determine the failed areas comprising operating area, the surround lighting operated member injecting the optical sensor in failed areas is blocked;
According to the brightness value of each optical sensor measure ambient light outside failed areas.
Fig. 5 is the block diagram of a kind of device 500 for ambient light measurement according to an exemplary embodiment.Such as, device 500 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 5, device 500 can comprise following one or more assembly: processing components 502, storer 504, power supply module 506, multimedia groupware 508, audio-frequency assembly 510, the interface 512 of I/O (I/O), sensor module 514, and communications component 516.
The integrated operation of the usual control device 500 of processing components 502, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 502 can comprise one or more processor 518 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 502 can comprise one or more module, and what be convenient between processing components 502 and other assemblies is mutual.Such as, processing components 502 can comprise multi-media module, mutual with what facilitate between multimedia groupware 508 and processing components 502.
Storer 504 is configured to store various types of data to be supported in the operation of device 500.The example of these data comprises the instruction of any application program for operating on device 500 or method, contact data, telephone book data, message, picture, video etc.Storer 504 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 506 is device 500 provide electric power.Power supply module 506 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 500 and be associated.
Multimedia groupware 508 is included in the screen providing an output interface between described device 500 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 508 comprises a front-facing camera and/or post-positioned pick-up head.When device 500 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 510 is configured to export and/or input audio signal.Such as, audio-frequency assembly 510 comprises a microphone (MIC), and when device 500 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 504 further or be sent via communications component 516.In certain embodiments, audio-frequency assembly 510 also comprises a loudspeaker, for output audio signal.
I/O interface 512 is for providing interface between processing components 502 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 514 comprises one or more sensor, for providing the state estimation of various aspects for device 500.Such as, sensor module 514 can detect the opening/closing state of device 500, the relative positioning of assembly, such as described assembly is display and the keypad of device 500, the position of all right pick-up unit 500 of sensor module 514 or device 500 1 assemblies changes, the presence or absence that user contacts with device 500, the temperature variation of device 500 orientation or acceleration/deceleration and device 500.Sensor module 514 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 514 can also comprise distribution optical sensor on the touchscreen, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 514 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 516 is configured to the communication being convenient to wired or wireless mode between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 516 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 516 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 500 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 504 of instruction, above-mentioned instruction can perform said method by the processor 518 of device 500.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Those skilled in the art, at consideration instructions and after putting into practice disclosure herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. an ambient light measurement method, is characterized in that, for comprising in the electronic equipment of touch-screen, described touch-screen is evenly distributed with optical sensor, described method comprises:
Obtain the operating area that operating body acts on the touch control operation on described touch-screen;
Determine the failed areas comprising described operating area, the surround lighting injecting the optical sensor in described failed areas is blocked by described operating body;
According to the brightness value of each optical sensor measure ambient light outside described failed areas.
2. method according to claim 1, is characterized in that, describedly determines the failed areas comprising described operating area, comprising:
According to the area detecting of described operating area, operating body is the finger of user or the palm of user;
When described operating body is the finger of described user, determine according to the first shadow algorithm the failed areas comprising described operating area;
When described operating body is the palm of described user, determine according to the second shadow algorithm the failed areas comprising described operating area.
3. method according to claim 2, is characterized in that, describedly determines according to the first shadow algorithm the failed areas comprising described operating area, comprising:
Obtain the first predetermined length, described first predetermined length is greater than the distance of any point in described operating area to the center of described operating area; Centered by described center, determine according to described first predetermined length the failed areas comprising described operating area; Or,
Obtain the operating force that described touch control operation acts on each contact in described operating area, the fastest direction of described operating force decline is defined as long axis direction and generates oval failed areas, described long axis direction is that the first end points on major axis points to double-pointed direction, and the distance of described first end points and described operating area is less than the distance of described second end points and described operating area, the failed areas of described ellipse comprises described operating area.
4. method according to claim 2, is characterized in that, describedly determines according to the second shadow algorithm the failed areas comprising described operating area, comprising:
Obtain the second predetermined length; With the borderline contact of described operating area be starting point, stretch out along predetermined direction described second predetermined length, the region that each contact obtained surrounds is defined as the failed areas comprising described operating area, and described predetermined direction is the direction that described contact is pointed in the center of described operating area.
5., according to the arbitrary described method of Claims 1-4, it is characterized in that, the brightness value of each the optical sensor measure ambient light of described basis outside described failed areas, comprising:
Obtain the measured value of each optical sensor outside described failed areas;
From all measured values, delete a maximum i measured value and a minimum j measured value, i and j is positive integer;
Calculate the mean value of each measured value remaining, using the brightness value of described mean value as described surround lighting.
6. an ambient light measurement device, is characterized in that, for comprising in the electronic equipment of touch-screen, described touch-screen is evenly distributed with optical sensor, described device comprises:
Region acquisition module, is configured to obtain the operating area that operating body acts on the touch control operation on described touch-screen;
Area determination module, be configured to the failed areas determining to comprise the described operating area that described region acquisition module obtains, the surround lighting injecting the optical sensor in described failed areas is blocked by described operating body;
Brightness value measurement module, is configured to the brightness value according to each optical sensor measure ambient light outside the described failed areas obtained at described area determination module.
7. device according to claim 6, is characterized in that, described area determination module, comprising:
Operation detection submodule, being configured to operating body according to the area detecting of described operating area is the finger of user or the palm of user;
First determines submodule, is configured to, when described operation detection submodule detects that described operating body is the finger of described user, determine according to the first shadow algorithm the failed areas comprising described operating area;
Second determines submodule, is configured to, when described operation detection submodule detects that described operating body is the palm of described user, determine according to the second shadow algorithm the failed areas comprising described operating area.
8. device according to claim 7, is characterized in that, described first determines submodule, is also configured to:
Obtain the first predetermined length, described first predetermined length is greater than the distance of any point in described operating area to the center of described operating area; Centered by described center, determine according to described first predetermined length the failed areas comprising described operating area; Or,
Obtain the operating force that described touch control operation acts on each contact in described operating area, the fastest direction of described operating force decline is defined as long axis direction and generates oval failed areas, described long axis direction is that the first end points on major axis points to double-pointed direction, and the distance of described first end points and described operating area is less than the distance of described second end points and described operating area, the failed areas of described ellipse comprises described operating area.
9. device according to claim 7, is characterized in that, described second determines submodule, is also configured to:
Obtain the second predetermined length; With the borderline contact of described operating area be starting point, stretch out along predetermined direction described second predetermined length, the region that each contact obtained surrounds is defined as the failed areas comprising described operating area, and described predetermined direction is the direction that described contact is pointed in the center of described operating area.
10., according to the arbitrary described device of claim 6 to 9, it is characterized in that, described brightness value measurement module, comprising:
Measured value obtains submodule, is configured to the measured value of each optical sensor obtained outside described failed areas;
Submodule deleted by measured value, and be configured from all measured values, delete a maximum i measured value and a minimum j measured value, i and j is positive integer;
Brightness value calculating sub module, is configured to the mean value calculating each measured value remaining, using the brightness value of described mean value as described surround lighting.
11. 1 kinds of ambient light measurement devices, is characterized in that, described device comprises:
Touch-screen, described touch-screen is evenly distributed with optical sensor;
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the operating area that operating body acts on the touch control operation on described touch-screen;
Determine the failed areas comprising described operating area, the surround lighting injecting the optical sensor in described failed areas is blocked by described operating body;
According to the brightness value of each optical sensor measure ambient light outside described failed areas.
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 true CN105094466A (en) 2015-11-25
CN105094466B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017024723A1 (en) * 2015-08-12 2017-02-16 小米科技有限责任公司 Touch screen control method and apparatus
CN109309761A (en) * 2018-10-30 2019-02-05 努比亚技术有限公司 Emergent calling method, mobile terminal and computer readable storage medium

Citations (4)

* 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
US20120075191A1 (en) * 2009-03-27 2012-03-29 Lenovo (Beijing) Co., Ltd. Optical Touch System and Method for Optical Touch Location

Patent Citations (4)

* 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
US20120075191A1 (en) * 2009-03-27 2012-03-29 Lenovo (Beijing) Co., Ltd. Optical Touch System and Method for Optical Touch Location
CN102073421A (en) * 2010-11-18 2011-05-25 友达光电股份有限公司 Photoinduction touch unit and touch display panel

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017024723A1 (en) * 2015-08-12 2017-02-16 小米科技有限责任公司 Touch screen control method and apparatus
US10067594B2 (en) 2015-08-12 2018-09-04 Xiaomi Inc. Method and device for controlling touch screen
CN109309761A (en) * 2018-10-30 2019-02-05 努比亚技术有限公司 Emergent calling method, mobile terminal and computer readable storage medium
CN109309761B (en) * 2018-10-30 2021-06-15 努比亚技术有限公司 Emergency call method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN105094466B (en) 2018-03-20

Similar Documents

Publication Publication Date Title
CN104991789B (en) Application program open method and device
KR102045232B1 (en) Gesture identification methods, devices, programs and recording media
CN104700816A (en) Method and device for setting screen brightness
CN105488464A (en) Fingerprint identification method and fingerprint identification apparatus
CN103885588B (en) Automatic switching method and device
WO2015176484A1 (en) Method and device for touch input control
CN105094616A (en) Touch screen control method and device
CN105528606A (en) Region identification method and device
CN105094465A (en) Environmental light measurement method and device
JP6431911B2 (en) Method and apparatus for setting a threshold
CN105426741A (en) Screen unlocking method, device and terminal
CN104899610A (en) Picture classification method and device
CN104536684A (en) Interface displaying method and device
CN105279499A (en) Age recognition method and device
US10061497B2 (en) Method, device and storage medium for interchanging icon positions
US10936707B2 (en) Fingerprint circuit, force touch control method and device and computer-readable storage medium
CN105718056A (en) Gesture recognition method and device
CN105159496A (en) Touch event response method and mobile terminal
CN104571709B (en) The processing method of mobile terminal and virtual key
CN105139378A (en) Card boundary detection method and apparatus
US10885298B2 (en) Method and device for optical fingerprint recognition, and computer-readable storage medium
CN105511777A (en) Session display method and device of touch display screen
CN104299582A (en) Backlight adjusting method and device
CN104461366A (en) Method and device for activating operation state of mobile terminal
CN105551047A (en) Picture content detecting 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