CN103455214B - Touch frame method for adjusting brightness of light source and device - Google Patents

Touch frame method for adjusting brightness of light source and device Download PDF

Info

Publication number
CN103455214B
CN103455214B CN201310373538.2A CN201310373538A CN103455214B CN 103455214 B CN103455214 B CN 103455214B CN 201310373538 A CN201310373538 A CN 201310373538A CN 103455214 B CN103455214 B CN 103455214B
Authority
CN
China
Prior art keywords
touch
duty cycle
value
voltage
current voltage
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
CN201310373538.2A
Other languages
Chinese (zh)
Other versions
CN103455214A (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.)
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Priority to CN201310373538.2A priority Critical patent/CN103455214B/en
Publication of CN103455214A publication Critical patent/CN103455214A/en
Application granted granted Critical
Publication of CN103455214B publication Critical patent/CN103455214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a kind of touch frame method for adjusting brightness of light source and device, judge that the gray-scale value of image captured by camera is whether in OK range by the optical characteristics touching frame and touch-screen, thus show whether the current voltage dutycycle of light source occurs mistake, if make mistakes, the correct data of last time is adopted to proceed adjustment as current voltage dutycycle, thus in the process of brightness adjustment Timeliness coverage correcting a mistake, improve the accuracy and efficiency of brightness adjustment.

Description

Touch frame method for adjusting brightness of light source and device
Technical field
The present invention relates to optical imagery touching technique field, particularly relate to a kind of touch frame method for adjusting brightness of light source and device.
Background technology
In optical imagery touching technique field, the light intensity signal waveform of camera collection must just can make touch frame normally use in certain scope.For this reason, by adjusting voltage or the electric current of light source, the waveform of the light intensity signal of camera collection is adjusted.
Traditional method of adjustment is, the light intensity signal waveform transfer arrived by camera collection by MCU, to after PC, PC process, issues voltage duty cycle value to MCU, then the voltage duty cycle value of MCU more new light sources, then by the present light intensity signal waveform transfer of camera collection to PC.Repeat above step, till the signal adjusting to collection meets the requirements.And the communication between PC and MCU is if there is exception, then by incorrect for the dutyfactor value causing issuing, thus to cause adjusting the rear intensity of light source signal waveform gathered incorrect next time, the result that impact adjusts below.
In the past waveform adjustment error correction algorithm be to PC and MCU between communication do some simple communication error correction, the debugging of the communication aspects such as such as parity checking.But the exception for some MCU self is made mistakes and cannot be found, the read-write error etc. of such as MCU.
Summary of the invention
Based on above-mentioned situation, the present invention proposes a kind of touch frame method for adjusting brightness of light source and device, to reduce the error of transmission of voltage duty cycle, improve the accuracy of brightness adjustment.
A kind of touch frame method for adjusting brightness of light source, comprises step:
By touching the camera collection image of frame, extract the gray-scale value of pixel in image;
Read the current voltage dutyfactor value touching frame light source, according to the optical environment residing for this current voltage duty cycle value and touch-screen, judge described gray-scale value whether in suitable scope;
If described gray-scale value is in suitable scope, then continue adjustment current voltage dutycycle, if described gray-scale value is not in suitable scope, then using last time in OK range time voltage duty cycle as current voltage dutycycle, and continue adjustment.
A kind of touch frame light-source brightness adjusting gear, is characterized in that, comprising:
Gray-scale value extraction module, for the camera collection image by touching frame, extracts the gray-scale value of pixel in image;
Current duty cycle judge module, for reading the current voltage dutyfactor value touching frame light source, according to the optical environment residing for this current voltage duty cycle value and touch-screen, judges described gray-scale value whether in suitable scope;
Current duty cycle adjusting module, for when described gray-scale value is in suitable scope, continue adjustment current voltage dutycycle, when described gray-scale value is not in suitable scope, voltage duty cycle during using last time in OK range as current voltage dutycycle, and continues adjustment.
Inventive touch frame method for adjusting brightness of light source and device, judge that the gray-scale value of image captured by camera is whether in OK range by the optical characteristics touching frame and touch-screen, thus show whether the current voltage dutycycle of light source occurs mistake, if make mistakes, the correct data of last time is adopted to proceed adjustment as current voltage dutycycle, thus in the process of brightness adjustment Timeliness coverage correcting a mistake, improve the accuracy and efficiency of brightness adjustment.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of inventive touch frame method for adjusting brightness of light source;
Fig. 2 is the structural representation of inventive touch frame light-source brightness adjusting gear.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is described in further detail.Should be appreciated that embodiment described herein only in order to explain the present invention, do not limit protection scope of the present invention.
Inventive touch frame method for adjusting brightness of light source, as shown in Figure 1, comprises step:
Step S101, by touching the camera collection image of frame, extract the gray-scale value of pixel in image;
Step S102, read the current voltage dutyfactor value touching frame light source, according to the optical environment residing for this current voltage duty cycle value and touch-screen, judge described gray-scale value whether in suitable scope;
If the described gray-scale value of step S103 is in suitable scope, then continue adjustment current voltage dutycycle, if described gray-scale value is not in suitable scope, then using last time in OK range time voltage duty cycle as current voltage dutycycle, and continue adjustment.
In the process of adjustment light source voltage dutycycle, MCU exports a voltage duty cycle value according to predetermined rule at every turn, and the voltage duty cycle touching frame light source is adjusted to this value.Such as predetermined rule is dichotomy, and namely each voltage duty cycle value is the half of last time, according to the method adjustment light-source brightness, if certain voltage duty cycle value exported of MCU is made mistakes, then follow-up adjustment may be caused to continue mistake, even enter endless loop.
In order to avoid the transmission of above-mentioned situation, this method is by each light source voltage dutycycle, and touch-screen touches optical characteristics corresponding an intensity value ranges, the i.e. above-mentioned suitable scope of frame, and whether drop in suitable scope as judging the foundation whether voltage duty cycle makes mistakes with current grayvalue.If the gray-scale value of the present image that camera photographs does not drop in intensity value ranges corresponding to conditions present, then think that MCU occurs mistake when controlling the voltage duty cycle of light source, voltage duty cycle when therefore being dropped in OK range last time is as current voltage dutycycle, if drop in suitable scope, then think and do not make mistakes, continue according to former method adjustment light source voltage dutycycle.
As a preferred embodiment, the present invention also comprises step:
The voltage duty cycle value that current voltage dutycycle and MCU received last time contrasted, if inconsistent, then the voltage duty cycle value received last time by MCU is as current voltage dutyfactor value.
Described MCU receives PC to hold the voltage duty cycle value sent, and touches the MCU of frame light source voltage by the voltage duty cycle value adjustment received.If find, the voltage duty cycle value that current voltage dutycycle and MCU received last time is inconsistent; then illustrate that PC and MCU communication abnormality or MCU have exception when storage voltage dutycycle; therefore hold the voltage duty cycle issued as current voltage dutycycle last PC, participate in step S102 and S103.
As a preferred embodiment, the optical environment residing for touch-screen comprises touch-screen and touches material, thickness, the reflection angle of frame, and the illumination condition in the touch-screen external world etc. affects all environmental factors that source light propagates into camera.
Inventive touch frame light-source brightness adjusting gear is the device corresponding with said method, as shown in Figure 2, comprising:
Gray-scale value extraction module, for the camera collection image by touching frame, extracts the gray-scale value of pixel in image;
Current duty cycle judge module, for reading the current voltage dutyfactor value touching frame light source, according to the optical environment residing for this current voltage duty cycle value and touch-screen, judges described gray-scale value whether in suitable scope;
Current duty cycle adjusting module, for when described gray-scale value is in suitable scope, continue adjustment current voltage dutycycle, when described gray-scale value is not in suitable scope, voltage duty cycle during using last time in OK range as current voltage dutycycle, and continues adjustment.
As a preferred embodiment, this device also comprises:
Current duty cycle determination module, contrasts for voltage duty cycle value current voltage dutycycle and MCU received last time, if inconsistent, then the voltage duty cycle value received last time by MCU is as current voltage dutyfactor value.
Described MCU receives PC to hold the voltage duty cycle value sent, and touches the MCU of frame light source voltage by the voltage duty cycle value adjustment received.
As a preferred embodiment, the optical environment residing for touch-screen comprises touch-screen and the material, thickness, the reflection angle that touch frame, and the illumination condition in the touch-screen external world.
As a preferred embodiment, the mode of what described current duty cycle adjusting module continued that adjustment current voltage dutycycle adopts is dichotomy carries out adjusting.
The above embodiment only have expressed several embodiment 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, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (8)

1. touch a frame method for adjusting brightness of light source, it is characterized in that, comprise step:
By touching the camera collection image of frame, extract the gray-scale value of pixel in image;
Read the current voltage dutyfactor value touching frame light source, according to the optical environment residing for this current voltage duty cycle value and touch-screen, judge described gray-scale value whether in suitable scope; Wherein, described optical environment comprises touch-screen and the material, thickness, the reflection angle that touch frame, and the illumination condition in the touch-screen external world;
If described gray-scale value is in suitable scope, then continue adjustment current voltage dutycycle, if described gray-scale value is not in suitable scope, then using last time in OK range time voltage duty cycle as current voltage dutycycle, and continue adjustment.
2. touch frame method for adjusting brightness of light source according to claim 1, is characterized in that, also comprise step:
The voltage duty cycle value that current voltage dutycycle and MCU received last time is contrasted, if inconsistent, then voltage duty cycle value MCU received last time as current voltage dutyfactor value,
Described MCU receives PC to hold the voltage duty cycle value sent, and touches the MCU of frame light source voltage by the voltage duty cycle value adjustment received.
3. touch frame method for adjusting brightness of light source according to claim 1 and 2, is characterized in that,
Optical environment residing for touch-screen comprises touch-screen and the material, thickness, the reflection angle that touch frame, and the illumination condition in the touch-screen external world.
4. touch frame method for adjusting brightness of light source according to claim 1 and 2, is characterized in that,
What continue that adjustment current voltage dutycycle adopts is that the mode of dichotomy carries out adjusting.
5. touch a frame light-source brightness adjusting gear, it is characterized in that, comprising:
Gray-scale value extraction module, for the camera collection image by touching frame, extracts the gray-scale value of pixel in image;
Current duty cycle judge module, for reading the current voltage dutyfactor value touching frame light source, according to the optical environment residing for this current voltage duty cycle value and touch-screen, judges described gray-scale value whether in suitable scope; Wherein, described optical environment comprises touch-screen and the material, thickness, the reflection angle that touch frame, and the illumination condition in the touch-screen external world;
Current duty cycle adjusting module, for when described gray-scale value is in suitable scope, continue adjustment current voltage dutycycle, when described gray-scale value is not in suitable scope, voltage duty cycle during using last time in OK range as current voltage dutycycle, and continues adjustment.
6. touch frame light-source brightness adjusting gear according to claim 5, is characterized in that, also comprise:
Current duty cycle determination module, contrasts for voltage duty cycle value current voltage dutycycle and MCU received last time, if inconsistent, then voltage duty cycle value MCU received last time as current voltage dutyfactor value,
Described MCU receives PC to hold the voltage duty cycle value sent, and touches the MCU of frame light source voltage by the voltage duty cycle value adjustment received.
7. the touch frame light-source brightness adjusting gear according to claim 5 or 6, is characterized in that,
Optical environment residing for touch-screen comprises touch-screen and the material, thickness, the reflection angle that touch frame, and the illumination condition in the touch-screen external world.
8. the touch frame light-source brightness adjusting gear according to claim 5 or 6, is characterized in that,
The mode of what described current duty cycle adjusting module continued that adjustment current voltage dutycycle adopts is dichotomy carries out adjusting.
CN201310373538.2A 2013-08-23 2013-08-23 Touch frame method for adjusting brightness of light source and device Active CN103455214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310373538.2A CN103455214B (en) 2013-08-23 2013-08-23 Touch frame method for adjusting brightness of light source and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310373538.2A CN103455214B (en) 2013-08-23 2013-08-23 Touch frame method for adjusting brightness of light source and device

Publications (2)

Publication Number Publication Date
CN103455214A CN103455214A (en) 2013-12-18
CN103455214B true CN103455214B (en) 2016-03-30

Family

ID=49737658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310373538.2A Active CN103455214B (en) 2013-08-23 2013-08-23 Touch frame method for adjusting brightness of light source and device

Country Status (1)

Country Link
CN (1) CN103455214B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111665249B (en) * 2019-03-06 2021-08-31 深圳中科飞测科技股份有限公司 Light intensity adjusting method and system and optical detection equipment
CN113156674B (en) * 2021-04-26 2023-03-31 长沙惠科光电有限公司 Color film substrate repairing method, color film substrate and display panel

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163103A (en) * 2010-02-22 2011-08-24 宏碁股份有限公司 Touch input method and touch input device
CN102841710A (en) * 2011-05-09 2012-12-26 林宏宇 Sensing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8154532B2 (en) * 2008-10-15 2012-04-10 Au Optronics Corporation LCD display with photo sensor touch function

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163103A (en) * 2010-02-22 2011-08-24 宏碁股份有限公司 Touch input method and touch input device
CN102841710A (en) * 2011-05-09 2012-12-26 林宏宇 Sensing method and device

Also Published As

Publication number Publication date
CN103455214A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN102523395B (en) Television system having multi-point touch function, touch positioning identification method and system thereof
CN104468912A (en) Method for controlling luminance of screen of mobile terminal and display terminal
CN103218085B (en) Optical touch display panel
EA201301071A1 (en) METHOD AND SYSTEM OF AUTHENTICATION OF THE PROTECTED DOCUMENT
CN102637096B (en) Light sensing device and adjusting method thereof
CN103455214B (en) Touch frame method for adjusting brightness of light source and device
CN102750520A (en) Capacitive fingerprint detection device
CN103809815A (en) Image sensing device, optical touch control device and motion tracking device
CN116156708A (en) Desk lamp illumination control method and device, electronic equipment and storage medium
CN103885647A (en) Self-adapting restoring method for touch screen device and touch screen device
CN103809818A (en) Method for judging whether lens device deviates and optical touch system thereof
KR102219981B1 (en) Laser projection display and method for aligning color of the same
CN103019478B (en) The contactor control device and the touch control detecting method that show based on curved surface
CN103870063A (en) Optical touch system, touch detection method and correction method
CN105373262A (en) Method and device for identifying invalid light paths of infrared touch screen
KR102279817B1 (en) Input System and Method for Detecting Touch Using the Same
CN102830855B (en) A kind of optical multi-point touch screen controller and control method with anti-dewing function
CN102236475B (en) Touch positioning method and device, touch screen and display
CN102929442B (en) Method for correcting optical sensing signal
CN102692182A (en) Optical detection system used for screen touch control input device
CN108985258A (en) Optical detection device and detection method thereof
CN103064560B (en) A kind of multi-point touch panel
CN103970476B (en) Screen touch method and system
US9207809B2 (en) Optical touch system and optical touch control method
CN102253756B (en) Light source and mounting method thereof, touch screen, touch system and display

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