CN103237177B - Method for adjusting brightness of light source and device - Google Patents
Method for adjusting brightness of light source and device Download PDFInfo
- Publication number
- CN103237177B CN103237177B CN201310146842.3A CN201310146842A CN103237177B CN 103237177 B CN103237177 B CN 103237177B CN 201310146842 A CN201310146842 A CN 201310146842A CN 103237177 B CN103237177 B CN 103237177B
- Authority
- CN
- China
- Prior art keywords
- light source
- intensity value
- value ranges
- adjusting
- dutycycle
- 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
Links
Abstract
The invention discloses a kind of method for adjusting brightness of light source and device, first the initial value of light source voltage dutycycle is set, state before making light source using predetermined luminance as adjustment, two way classification is adopted progressively to adjust voltage duty cycle again, often adjust once, the intensity value ranges of present image or current grayvalue average are compared with predetermined intensity value ranges, determine that according to comparative result adjusting next time is increase or reduce light source voltage dutycycle, the value every time increased or reduce is all the half of the value increasing last time or reducing, until the intensity value ranges of present image or current grayvalue average drop in predetermined intensity value ranges, complete light-source brightness adjustment.Owing to have employed two way classification, quick lock in adjusts interval, progressively reduces and adjusts variable, improves efficiency and the accuracy of brightness regulation, take picture clearly for photographic head and provide condition.
Description
Technical field
The present invention relates to optical imagery touching technique field, particularly relate to a kind of method for adjusting brightness of light source and device.
Background technology
Optical imaging touch screen is a kind of to install photographic head on two angles of screen, is calculated the touch screen of position, touch point by touch objects positional information in two photographic head.Specifically, the light shooting touch screen that the photographic head being arranged on two angles of screen sends by light source, the image of shooting is analyzed, so that it is determined that the position of touch objects.It is whether image is clear to a touch objects location whether accurate key point, and whether the brightness of light source properly directly affects the definition of image.Therefore, light-source brightness adjustment is most important to touching location.
Traditional method for adjusting brightness of light source is to be incrementally adjusted by control source current one constant of plus-minus so that the waveform of light intensity signal is in a suitable scope.In order to improve Adjusting accuracy, the constant in this method is generally less, causes and regulates the speed not soon, consuming time longer.
Summary of the invention
Based on above-mentioned situation, the present invention proposes a kind of method for adjusting brightness of light source and device, to improve the efficiency of brightness adjustment.
A kind of method for adjusting brightness of light source, including:
The initial value of light source voltage dutycycle is set to predetermined percentage;
The current grayvalue scope of light source irradiation area image or current grayvalue average being compared with predetermined intensity value ranges, determining the need for adjusting light source voltage duty according to comparative result when needs adjustment direction when adjusting;
Adjusting light source voltage dutycycle according to determined adjustment direction, amplitude modulation is the half of previous amplitude modulation, and amplitude modulation first is the half of described predetermined percentage;
Return step current grayvalue scope or the current grayvalue average of light source irradiation area image compared with predetermined intensity value ranges, circulation performs step current grayvalue scope or the current grayvalue average of light source irradiation area image compared and the step adjusting light source voltage dutycycle according to determined adjustment direction with predetermined intensity value ranges, until the current grayvalue scope of light source irradiation area image or current grayvalue average drop in predetermined intensity value ranges.
A kind of light-source brightness adjusting apparatus, including:
Dutycycle initial value arranges module, for the initial value of light source voltage dutycycle is set to predetermined percentage, and compares notice to intensity value ranges comparison module transmission intensity value ranges;
Described intensity value ranges comparison module, notice is compared for receiving described intensity value ranges, judge whether current grayvalue scope or the current grayvalue average of light source irradiation area image drop in predetermined intensity value ranges, then determine the adjustment direction of light source voltage dutycycle if not, and send dutycycle adjustment notice to dutycycle adjusting module;
Described dutycycle adjusting module, for receiving dutycycle adjustment notice, light source voltage dutycycle is adjusted according to the up-to-date adjustment direction determined of described intensity value ranges comparison module, amplitude modulation is the half of previous amplitude modulation, amplitude modulation first is the half of described predetermined percentage, and compares notice to the described intensity value ranges comparison module described intensity value ranges of transmission.
Method for adjusting brightness of light source of the present invention and device, first the initial value of light source voltage dutycycle is set, state before making light source using predetermined luminance as adjustment, two way classification is adopted progressively to adjust voltage duty cycle again, often adjust once, the intensity value ranges of present image or current grayvalue average are compared with predetermined intensity value ranges, determine that according to comparative result adjusting next time is increase or reduce light source voltage dutycycle, the value every time increased or reduce is all the half of the value increasing last time or reducing, until the intensity value ranges of present image or current grayvalue average drop in predetermined intensity value ranges, complete light-source brightness adjustment.Owing to have employed two way classification, quick lock in adjusts interval, progressively reduces and adjusts variable, improves efficiency and the accuracy of brightness regulation, take picture clearly for photographic head and provide condition.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method for adjusting brightness of light source of the present invention;
Fig. 2 is the structural representation of light-source brightness adjusting apparatus of the present invention.
Detailed description of the invention
The present invention is explained in detail below in conjunction with accompanying drawing.
Method for adjusting brightness of light source of the present invention, as it is shown in figure 1, comprise the steps:
Step S101, the initial value of light source voltage dutycycle is set to predetermined percentage;
Step S102, current grayvalue scope or the current grayvalue average of light source irradiation area image being compared with predetermined intensity value ranges, determining the need for adjusting light source voltage duty according to comparative result when needs adjustment direction when adjusting;
Step S103, according to determined adjustment direction adjust light source voltage dutycycle, amplitude modulation is the half of previous amplitude modulation, amplitude modulation first is the half of described predetermined percentage, return step S102, circulation performs, until the current grayvalue scope of light source irradiation area image or current grayvalue average drop in predetermined intensity value ranges.
As described in above-mentioned steps, this method adjusts light-source brightness by regulating light source voltage dutycycle, determine the effect of brightness adjustment by analyzing image intensity value, carry out the object brightness of corresponding light source with predetermined intensity value ranges, and adopt two way classification to improve the efficiency of brightness adjustment.
Light source voltage dutycycle is more big, and light-source brightness is more high, and the gray value of the image in light source irradiation region is also more high, and namely light source voltage dutycycle is directly proportional to the gray value of image, but proportionate relationship cannot be predicted.Therefore, first this method arranges the initial value of light source voltage dutycycle in step S101, and initial value is set to predetermined percentage, this predetermined percentage can rule of thumb and be configured with reference to predetermined intensity value ranges, in the hope of the intensity value ranges of present intensity hypograph or current grayvalue average closer to predetermined intensity value ranges.When lacking experience, it is preferred that described predetermined percentage is set to 50%, i.e. intermediate value.
Step S102 and step S103 is the process of a circulation, and step S102 compares current grayvalue scope and predetermined intensity value ranges, if the former drops on outside the latter or partial intersection, then enters step S103 and adjusts light source voltage, until the former falls completely within inside the latter.Current grayvalue average that what step S102 compared can also be and predetermined intensity value ranges, if the former drops on outside the latter or when the former is the end value of the latter, then enter step S103 and adjust light source voltage, until the former falls completely within inside the latter.When the brightness of light source is in preset range, the image of photographic head shooting is just clear and legible, could be more accurate to the location of touch objects.
As described in step S102, this method is in order to accelerate to regulate the speed, and employing has high efficiency two way classification and progressively adjusts light source voltage dutycycle.The amplitude modulation every time adjusted is all the half of amplitude modulation last time, and the amplitude modulation of first adjustment is the half of initial value.
This light source adjustment method is applicable to the occasion that be there is a need to light source is adjusted, as a preferred embodiment, this method is applied to optical imagery touching technique field, then described light source is the light source providing light for the photographic head touching on frame, and the irradiation area of the light source paid close attention to is the region at touch screen place.
The initial value of light source voltage dutycycle is set to 50%, under 50% duty cycle condition, the image of photographic light sources irradiation area, the gray value of statistical picture, and compare with predetermined intensity value ranges.Method relatively, can be that the gray value of each for present image pixel is compared with predetermined intensity value ranges, can also be first determine the interval that current picture point gray value is distributed, compare with two end values of predetermined intensity value ranges with two interval end values, can also is that the average adding up all pixel gray values, compare with predetermined intensity value ranges by average.As compared by end value, the maximum of present image gray value less than the lower limit of predetermined gray value, then needs to adjust light source voltage dutycycle, and the direction adjusted is to increase, the amplitude adjusted first is half that is 25% of initial value, and the amplitude adjusted afterwards is the half of previous amplitude modulation.After increasing light-source brightness dutycycle, repeat abovementioned steps and compare whether present image gray value under present intensity drops in the scope of predetermined gray value, if the minima of present image gray value is more than the upper limit of predetermined gray value, or although the minima of present image gray value is more than the upper limit of predetermined gray value, but the maximum of present image gray value is more than the upper limit of predetermined gray value, then the direction that next time adjusts is light source voltage dutycycle to be turned down.Being sequentially carried out, until the maximum of present image gray value is less than the upper limit of predetermined gray value, and the minima of present image gray value is more than the lower limit of predetermined gray value.
Described light source voltage dutycycle has a lot of representation, it is preferable that adopt the mode of above-mentioned percentage ratio.In the process progressively adjusting light source voltage dutycycle, if certain amplitude modulation is less than 1%, then by 1% process, to further speed up processing speed.
Light-source brightness adjusting apparatus of the present invention is the device corresponding with above-mentioned method of adjustment, as in figure 2 it is shown, include:
Dutycycle initial value arranges module, for the initial value of light source voltage dutycycle is set to predetermined percentage, and compares notice to intensity value ranges comparison module transmission intensity value ranges;
Described intensity value ranges comparison module, notice is compared for receiving described intensity value ranges, judge whether current grayvalue scope or the current grayvalue average of light source irradiation area image drop in predetermined intensity value ranges, then determine the adjustment direction of light source voltage dutycycle if not, and send dutycycle adjustment notice to dutycycle adjusting module;
Described dutycycle adjusting module, for receiving dutycycle adjustment notice, light source voltage dutycycle is adjusted according to the up-to-date adjustment direction determined of described intensity value ranges comparison module, amplitude modulation is the half of previous amplitude modulation, amplitude modulation first is the half of described predetermined percentage, and compares notice to the described intensity value ranges comparison module described intensity value ranges of transmission.
As shown in Figure 2, dutycycle initial value arranges module and is connected with intensity value ranges comparison module, comparing notice for transmitting intensity value ranges, intensity value ranges comparison module is connected with dutycycle adjusting module, is used for transmitting dutycycle adjustment notice and intensity value ranges compares notice.
As a preferred embodiment, described predetermined percentage is 50%, and correspondingly, amplitude modulation first is 25%.
As a preferred embodiment, this device can also include gray value acquisition module, is used for obtaining the described current grayvalue scope in light source irradiation region or current grayvalue average and being supplied to intensity value ranges comparison module.
As a preferred embodiment, described intensity value ranges comparison module adopts the method that end value compares with end value to judge whether the current grayvalue scope in light source irradiation region drops in predetermined intensity value ranges.
As a preferred embodiment, described dutycycle initial value arranges module and adopts the mode of percentage ratio to represent light source voltage dutycycle, described dutycycle adjusting module is adopting two way classification progressively to adjust in the process of light source voltage dutycycle, if certain amplitude modulation is less than 1%, then by 1% process.
As a preferred embodiment, described light source is that described light source irradiation region is touch screen region in order to be arranged at the light source that the photographic head touching frame provides.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for the person of ordinary skill of the art, without departing from the inventive concept of the premise, it is also possible to making some deformation and improvement, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.
Claims (10)
1. a method for adjusting brightness of light source, it is characterised in that including:
The initial value of light source voltage dutycycle is set to predetermined percentage;
The current grayvalue scope of light source irradiation area image or current grayvalue average being compared with predetermined intensity value ranges, determining the need for adjusting light source voltage duty according to comparative result when needs adjustment direction when adjusting;
Adjusting light source voltage dutycycle according to determined adjustment direction, amplitude modulation is the half of previous amplitude modulation, and amplitude modulation first is the half of described predetermined percentage;
Return step current grayvalue scope or the current grayvalue average of light source irradiation area image compared with predetermined intensity value ranges, circulation performs step current grayvalue scope or the current grayvalue average of light source irradiation area image compared and the step adjusting light source voltage dutycycle according to determined adjustment direction with predetermined intensity value ranges, until the current grayvalue scope of light source irradiation area image or current grayvalue average drop in predetermined intensity value ranges.
2. method for adjusting brightness of light source according to claim 1, it is characterised in that described predetermined percentage is 50%.
3. method for adjusting brightness of light source according to claim 1 and 2, it is characterised in that adopt the method that end value compares with end value to realize the current grayvalue scope in light source irradiation region and the comparison of predetermined intensity value ranges.
4. method for adjusting brightness of light source according to claim 1 and 2, it is characterised in that in the process adjusting light source voltage dutycycle, if amplitude modulation is less than 1%, then by 1% process.
5. method for adjusting brightness of light source according to claim 1 and 2, it is characterised in that described light source is that described light source irradiation region is touch screen region in order to be arranged at the light source that the photographic head touching frame provides.
6. a light-source brightness adjusting apparatus, it is characterised in that including:
Dutycycle initial value arranges module, for the initial value of light source voltage dutycycle is set to predetermined percentage, and compares notice to intensity value ranges comparison module transmission intensity value ranges;
Described intensity value ranges comparison module, notice is compared for receiving described intensity value ranges, judge whether current grayvalue scope or the current grayvalue average of light source irradiation area image drop in predetermined intensity value ranges, then determine the adjustment direction of light source voltage dutycycle if not, and send dutycycle adjustment notice to dutycycle adjusting module;
Described dutycycle adjusting module, for receiving dutycycle adjustment notice, light source voltage dutycycle is adjusted according to the up-to-date adjustment direction determined of described intensity value ranges comparison module, amplitude modulation is the half of previous amplitude modulation, amplitude modulation first is the half of described predetermined percentage, and compares notice to the described intensity value ranges comparison module described intensity value ranges of transmission.
7. light-source brightness adjusting apparatus according to claim 6, it is characterised in that described predetermined percentage is 50%.
8. the light-source brightness adjusting apparatus according to claim 6 or 7, it is characterised in that also include gray value acquisition module, for obtaining described current grayvalue scope or the current grayvalue average of light source irradiation area image.
9. the light-source brightness adjusting apparatus according to claim 6 or 7, it is characterised in that described intensity value ranges comparison module adopts the method that end value compares with end value to judge whether the current grayvalue scope in light source irradiation region drops in predetermined intensity value ranges.
10. the light-source brightness adjusting apparatus according to claim 6 or 7, it is characterised in that
Described dutycycle adjusting module is in the process adjusting light source voltage dutycycle, if amplitude modulation is less than 1%, then by 1% process;
And/or
Described light source is that described light source irradiation region is touch screen region in order to be arranged at the light source that the photographic head touching frame provides.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310146842.3A CN103237177B (en) | 2013-04-24 | 2013-04-24 | Method for adjusting brightness of light source and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310146842.3A CN103237177B (en) | 2013-04-24 | 2013-04-24 | Method for adjusting brightness of light source and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103237177A CN103237177A (en) | 2013-08-07 |
CN103237177B true CN103237177B (en) | 2016-07-06 |
Family
ID=48885191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310146842.3A Active CN103237177B (en) | 2013-04-24 | 2013-04-24 | Method for adjusting brightness of light source and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103237177B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092953B (en) | 2014-07-10 | 2018-09-04 | 北京智谷睿拓技术服务有限公司 | Dimming controlling method and device and equipment with camera function |
TWI526683B (en) * | 2014-07-10 | 2016-03-21 | Machvision Inc | Method of setting parameters for common setting between optical inspection units |
CN106506980A (en) * | 2016-11-04 | 2017-03-15 | 天津大学 | A kind of based on the light source self-adaptation control method for judging image pixel intensity |
CN108088680B (en) * | 2016-11-22 | 2020-09-01 | 上海汽车集团股份有限公司 | Engine bench calibration test system |
CN107317498A (en) * | 2017-07-07 | 2017-11-03 | 华南理工大学 | A kind of many level based on dichotomy simplify SVPWM modulation strategies |
CN107391923A (en) * | 2017-07-18 | 2017-11-24 | 华南理工大学 | Based on the three-level inverter error current analysis method for simplifying SVPWM strategies |
CN111665249B (en) * | 2019-03-06 | 2021-08-31 | 深圳中科飞测科技股份有限公司 | Light intensity adjusting method and system and optical detection equipment |
CN115035851B (en) * | 2022-08-10 | 2022-10-28 | 深圳精智达技术股份有限公司 | Gamma white balance rapid adjustment method and related device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1665278A (en) * | 2004-03-02 | 2005-09-07 | Lg电子有限公司 | Image processing apparatus |
CN102355561A (en) * | 2011-09-20 | 2012-02-15 | 青岛海信电器股份有限公司 | Method and device for improving image contrast, LCD TV (liquid crystal display television) set |
CN102472903A (en) * | 2009-07-03 | 2012-05-23 | 夏普株式会社 | Liquid crystal display device and light source control method |
CN102472904A (en) * | 2009-07-03 | 2012-05-23 | 夏普株式会社 | Liquid crystal display device and light source control method |
CN102543024A (en) * | 2012-02-03 | 2012-07-04 | 福州瑞芯微电子有限公司 | Control circuit for dynamic backlight balance |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201039320A (en) * | 2009-04-16 | 2010-11-01 | Chunghwa Picture Tubes Ltd | Driving circuit and gray insertion method of liquid crystal display |
-
2013
- 2013-04-24 CN CN201310146842.3A patent/CN103237177B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1665278A (en) * | 2004-03-02 | 2005-09-07 | Lg电子有限公司 | Image processing apparatus |
CN102472903A (en) * | 2009-07-03 | 2012-05-23 | 夏普株式会社 | Liquid crystal display device and light source control method |
CN102472904A (en) * | 2009-07-03 | 2012-05-23 | 夏普株式会社 | Liquid crystal display device and light source control method |
CN102355561A (en) * | 2011-09-20 | 2012-02-15 | 青岛海信电器股份有限公司 | Method and device for improving image contrast, LCD TV (liquid crystal display television) set |
CN102543024A (en) * | 2012-02-03 | 2012-07-04 | 福州瑞芯微电子有限公司 | Control circuit for dynamic backlight balance |
Also Published As
Publication number | Publication date |
---|---|
CN103237177A (en) | 2013-08-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103237177B (en) | Method for adjusting brightness of light source and device | |
US10490137B2 (en) | Backlight brightness adjustment method and apparatus | |
JP4787654B2 (en) | Image illumination device, image display device, and imaging device | |
JP5438414B2 (en) | Brightness detection system and lighting system using the same | |
US8710746B2 (en) | Lighting control device and lighting control method | |
US9439261B2 (en) | Light compensating system and method thereof | |
US20180136719A1 (en) | Image brightness adjusting method and image brightness adjusting device | |
US9432588B2 (en) | Method and control unit for controlling exposure of a camera | |
CN103929598A (en) | Automatic exposure method and camera module detection method | |
CN102573239A (en) | Method and device for intelligently controlling brightness of flash of camera | |
WO2016037454A1 (en) | Method and apparatus for adjusting brightness of indoor light, and intelligent home control system | |
US8115417B2 (en) | Color management system and method for LED backlights | |
CN108172156A (en) | A kind of projector intelligent projection control system and method | |
DE102012222292A1 (en) | Method and device for operating a laser light source | |
US20180011675A1 (en) | Electronic display illumination | |
KR102608147B1 (en) | Display apparatus and driving method thereof | |
CN105070251A (en) | Backlight control method and device | |
CN102968177B (en) | Gesture method for sensing | |
US8451211B2 (en) | Dimming control apparatus and method for generating dimming control signal by referring to distribution information/multiple characteristic values derived from pixel values | |
US8811810B2 (en) | Monitoring camera and operation method thereof | |
EP2827590A3 (en) | Projector, projector control method, and recording medium storing projector control program | |
CN103973992A (en) | Automatic exposure method and device for LED white-light source | |
CN103940829A (en) | Cotton foreign fiber online detection illumination uniformity regulating method and device | |
CN110072090B (en) | Projector-based control method and projector | |
KR101336096B1 (en) | Face recognition apparatus and method using infrared illumination |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |