CN106547396B - A method of improving the anti-instantaneous strong light interference of optical touch control system - Google Patents

A method of improving the anti-instantaneous strong light interference of optical touch control system Download PDF

Info

Publication number
CN106547396B
CN106547396B CN201610900590.2A CN201610900590A CN106547396B CN 106547396 B CN106547396 B CN 106547396B CN 201610900590 A CN201610900590 A CN 201610900590A CN 106547396 B CN106547396 B CN 106547396B
Authority
CN
China
Prior art keywords
frame
foreground picture
present frame
strong light
gray
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
CN201610900590.2A
Other languages
Chinese (zh)
Other versions
CN106547396A (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.)
Nanjing Kernel Optoelectronics Technology Co Ltd
Original Assignee
Nanjing Kernel Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Kernel Optoelectronics Technology Co Ltd filed Critical Nanjing Kernel Optoelectronics Technology Co Ltd
Priority to CN201610900590.2A priority Critical patent/CN106547396B/en
Publication of CN106547396A publication Critical patent/CN106547396A/en
Application granted granted Critical
Publication of CN106547396B publication Critical patent/CN106547396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0425Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means using a single imaging device like a video camera for tracking the absolute position of a single or a plurality of objects with respect to an imaged reference surface, e.g. video camera imaging a display or a projection screen, a table or a wall surface, on which a computer generated image is displayed or projected

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)
  • Position Input By Displaying (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides a kind of methods improving the anti-instantaneous strong light interference of optical touch control system, including acquire first frame image and carry out gray processing processing, and the gray-scale map of acquisition is saved as Background;Background, which is subtracted, with the gray-scale map of n-th frame image obtains foreground picture;Luminance mean value calculating is carried out to foreground picture;Difference operation is made to the luminance mean value of the foreground picture of two frame of former frame of present frame and present frame and quotient is asked to the luminance mean value difference of acquisition, obtains the diversity factor of the former frame two field pictures brightness change of present frame and present frame;It is used in combination the diversity factor obtained and preset threshold value to compare, if diversity factor is less than preset threshold value, it indicates to interfere without instantaneous strong light, otherwise indicates instantaneous strong light interference, and be replaced to the foreground picture of two frame of the former frame of present frame and present frame;Export normal foreground picture;Binary conversion treatment is carried out to foreground picture, the profile of foreground picture is sought according to the binary map of acquisition, obtains the position of normal contact, the information of area.

Description

A method of improving the anti-instantaneous strong light interference of optical touch control system
Technical field
The invention belongs to the technical fields of infrared touch-control, and in particular to a kind of anti-instantaneous strong light of raising optical touch control system is dry The method disturbed.
Background technology
Anti-interference skill in the core link of the existing touch-control system formed based on optical technology means-contact identification Art, since the optical touch control system is that the infrared light got using a wordline laser device is covered in screen surface, then with red Outer camera acquires touch-control of the user to screen, to identify simultaneously set feeler.Due to the optical touch control system depend only on it is red The reflection of outer light, so if there is instantaneous strong illumination in normal identification process, such as the flash lamp of camera, the flicker of light with And the moment acute variation of surrounding environment light, the optical touch control system can be made to generate unexpected " jump point ", generation " is jumped Point " can cause greatly to interfere to the stable operation of optical touch control system.
Invention content
The present invention provides a kind of methods of the anti-instantaneous strong light interference of raising optical touch control system, apply in optical touch system In system, solve interference problem of the instantaneous strong light to the optical touch control system normal operation when.
The present invention provides a kind of methods of the anti-instantaneous strong light interference of raising optical touch control system, include the following steps:
S1, camera is opened, acquires first frame image;
S2, gray processing processing is carried out to collected first frame image, obtains the gray-scale map of first frame image;
S3, the gray-scale map of the first frame image of acquisition is saved as Background;
S4, the Background acquisition foreground picture is subtracted with the gray-scale map of collected n-th frame image, wherein n is natural number And n >=2;
S5, luminance mean value calculating is carried out to the foreground picture of acquisition;
S6, difference operation is made to the luminance mean value of the foreground picture of the former frame of present frame and present frame;
S7, quotient is asked with the luminance mean value difference of acquisition, obtain the former frame two field pictures brightness change of present frame and present frame Diversity factor;
S8, the diversity factor with the two field pictures of the former frame of the present frame and present frame of acquisition and preset threshold value It compares, if the diversity factor is less than preset threshold value, indicates to interfere without instantaneous strong light, if the diversity factor is big In the threshold value, instantaneous strong light interference is indicated, and carry out to the foreground picture of two frames of the former frame of present frame and present frame It replaces;The two field pictures brightness of the former frame of present frame and present frame becomes when wherein threshold value is optical touch control system normal operation The diversity factor of change;
S9, the normal foreground picture of output;The normal foreground picture is, the nothing instantaneously strong light interference when present frame Foreground picture and have the present frame that the foreground picture of present frame is replaced when instantaneous strong light interference former frame foreground picture;
S10, binary conversion treatment is carried out to the foreground picture of output, the profile of foreground picture is sought according to the binary map of acquisition, is obtained Obtain the position of normal contact, the information of area.
Preferably, the step S10 further includes obtaining connected domain by minimum circumscribed circle diameter according to above-mentioned binary map Information.
Preferably, further include after the step S10:
S11, the luminance information for obtaining normal contact.
The step S11 is specially that binary map and gray-scale map are masked operation, is obtained according to the result of mask operation The luminance information of normal contact, wherein the binary map and gray-scale map all obtains same frame image procossing.
As can be seen from the above technical solution, the method is applied in optical touch control system, with the present frame of acquisition and The diversity factor of the two field pictures of the former frame of present frame and preset threshold value compare, if the diversity factor is less than in advance The threshold value first set indicates to interfere without instantaneous strong light, if the diversity factor is more than the threshold value, indicates instantaneous strong light Interference, and the foreground picture of two frame of the former frame of present frame and present frame is replaced;Export normal foreground picture;Solves wink Interference problem when Shi Qiangguang is to optical touch control system normal operation, especially to the flash lamp of camera, the flicker of light and week The moment acute variation for enclosing ambient light has good anti-interference ability.
Description of the drawings
Fig. 1 is a kind of flow of method improving the anti-instantaneous strong light interference of optical touch control system provided in an embodiment of the present invention Figure.
Specific implementation mode
Below in conjunction with the specific implementation mode technical solution that present invention be described in more detail.It should be appreciated that being described herein as Specific implementation mode be only used to explain the present invention, be not intended to limit the present invention.
An embodiment of the present invention provides a kind of methods of the anti-instantaneous strong light interference of raising optical touch control system, as shown in Figure 1, Include the following steps:
S1, camera is opened, acquires first frame image;
S2, gray processing processing is carried out to collected first frame image, obtains the gray-scale map of first frame image;
S3, the gray-scale map of the first frame image of acquisition is saved as Background;
S4, the Background acquisition foreground picture is subtracted with the gray-scale map of collected n-th frame image, wherein n is natural number And n >=2;
S5, luminance mean value calculating is carried out to the foreground picture of acquisition;
S6, difference operation is made to the luminance mean value of the foreground picture of the former frame of present frame and present frame;
S7, quotient is asked with the luminance mean value difference of acquisition, obtain the former frame two field pictures brightness change of present frame and present frame Diversity factor;
S8, the diversity factor with the two field pictures of the former frame of the present frame and present frame of acquisition and preset threshold value It compares, if the diversity factor is less than preset threshold value, indicates to interfere without instantaneous strong light, if the diversity factor is big In the threshold value, instantaneous strong light interference is indicated, and carry out to the foreground picture of two frames of the former frame of present frame and present frame It replaces;The two field pictures brightness of the former frame of present frame and present frame becomes when wherein threshold value is optical touch control system normal operation The diversity factor of change;
S9, the normal foreground picture of output;The normal foreground picture is, the nothing instantaneously strong light interference when present frame Foreground picture and have the present frame that the foreground picture of present frame is replaced when instantaneous strong light interference former frame foreground picture;
S10, binary conversion treatment is carried out to the foreground picture of output, the profile of foreground picture is sought according to the binary map of acquisition, is obtained Obtain the position of normal contact, the information of area.
Preferably, the step S10 further includes obtaining connected domain by minimum circumscribed circle diameter according to above-mentioned binary map Information.
Preferably, further include after the step S10:
S11, the luminance information for obtaining normal contact.
The step S11 is specially that binary map and gray-scale map are masked operation, is obtained according to the result of mask operation The luminance information of normal contact, wherein the binary map and gray-scale map all obtains same frame image procossing, certainly The luminance information that other methods obtain normal contact may be used.
It can be with the position of auxiliary judgment normal contact, according to connection domain information according to the luminance information of the normal contact of acquisition The contact that can be obtained with auxiliary judgment is normal contact.
If the integrated environment of optical touch control system changes, just need to redefine Background, to collected Current frame image carries out gray processing processing, and the gray-scale map of obtained present frame is saved as Background, other methods step It is rapid all identical with above-mentioned method.
As can be seen from the above technical solution, the method described in the embodiment of the present invention is applied in optical touch control system, with obtaining The diversity factor of the two field pictures of the former frame of the present frame and present frame that take and preset threshold value compare, if described Diversity factor is less than preset threshold value, indicates to interfere without instantaneous strong light, if the diversity factor is more than the threshold value, table It is shown with instantaneous strong light interference, and the foreground picture of two frame of the former frame of present frame and present frame is replaced;Before output is normal Jing Tu;The normal foreground picture is, the nothing instantaneously strong light interference when present frame foreground picture and have instantaneous strong light The foreground picture of the former frame for the present frame that the foreground picture of present frame is replaced when interference;It solves instantaneous strong light to touch optics Interference problem when control system normal operation, especially to the flash lamp of camera, the flicker of light and the moment of surrounding environment light Acute variation has good anti-interference ability.
In conclusion the method provided by the invention for providing the anti-instantaneous strong light interference of optical touch control system, solves instantaneous Interference problem when strong light is to optical touch control system normal operation.
Above embodiment is the preferred embodiment of the present invention, is not intended to limit the patent protection model of the present invention It encloses.Those skilled in the art belonging to any present invention, in the premise for not departing from spirit and scope disclosed in this invention Under, the transformation of the equivalent structure and equivalent steps that done to present disclosure each falls within claimed the scope of the claims Within.

Claims (4)

1. a kind of method improving the anti-instantaneous strong light interference of optical touch control system, which is characterized in that include the following steps:
S1, camera is opened, acquires first frame image;
S2, gray processing processing is carried out to collected first frame image, obtains the gray-scale map of first frame image;
S3, the gray-scale map of the first frame image of acquisition is saved as Background;
S4, subtract the Background with the gray-scale map of collected n-th frame image and obtain foreground picture, wherein n be natural number and
n≥2;
S5, luminance mean value calculating is carried out to the foreground picture of acquisition;
S6, difference operation is made to the luminance mean value of the foreground picture of the former frame of present frame and present frame;
S7, quotient is asked with the luminance mean value difference of acquisition, obtain the difference of the former frame two field pictures brightness change of present frame and present frame Different degree;
S8, ratio is done with the diversity factor of the two field pictures of the former frame of the present frame of acquisition and present frame and preset threshold value Compared with if the diversity factor less than preset threshold value, indicates to interfere without instantaneous strong light, if the diversity factor is more than institute Threshold value is stated, indicates instantaneous strong light interference, and be replaced to the foreground picture of two frames of the former frame of present frame and present frame; The two field pictures brightness change of the former frame of present frame and present frame when wherein threshold value is optical touch control system normal operation Diversity factor;
S9, the normal foreground picture of output;The normal foreground picture is, the nothing instantaneously strong light interference when present frame before Scape figure and have the present frame that the foreground picture of present frame is replaced when instantaneous strong light interference former frame foreground picture;
S10, binary conversion treatment is carried out to the foreground picture of output, the profile of foreground picture is sought according to the binary map of acquisition, is obtained just The position of normal contact, the information of area.
2. according to the method described in claim 1, it is characterized in that, the step S10 further includes outer according to the minimum of binary map It connects circular diameter and obtains connection domain information.
3. according to the method described in claim 1, it is characterized in that, further including after the step S10:
S11, the luminance information for obtaining normal contact.
4. according to the method described in claim 3, it is characterized in that, the step S11 be specially by binary map and gray-scale map into Row mask operation obtains the luminance information of normal contact according to the result of mask operation, wherein the binary map and gray-scale map All same frame image procossing is obtained.
CN201610900590.2A 2016-10-14 2016-10-14 A method of improving the anti-instantaneous strong light interference of optical touch control system Active CN106547396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610900590.2A CN106547396B (en) 2016-10-14 2016-10-14 A method of improving the anti-instantaneous strong light interference of optical touch control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610900590.2A CN106547396B (en) 2016-10-14 2016-10-14 A method of improving the anti-instantaneous strong light interference of optical touch control system

Publications (2)

Publication Number Publication Date
CN106547396A CN106547396A (en) 2017-03-29
CN106547396B true CN106547396B (en) 2018-09-14

Family

ID=58368844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610900590.2A Active CN106547396B (en) 2016-10-14 2016-10-14 A method of improving the anti-instantaneous strong light interference of optical touch control system

Country Status (1)

Country Link
CN (1) CN106547396B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122083B (en) * 2017-04-25 2020-02-18 上海唱风信息科技有限公司 Touch detection method of projection surface
US11493615B2 (en) * 2018-09-11 2022-11-08 Velodyne Lidar Usa, Inc. Systems and methods for detecting an electromagnetic signal in a constant interference environment
CN109493828B (en) * 2018-12-13 2020-08-04 惠科股份有限公司 Driving device, driving method thereof and display device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930541A (en) * 2012-10-29 2013-02-13 深圳市开天源自动化工程有限公司 Background extracting and updating method of video images
CN104427210A (en) * 2013-08-23 2015-03-18 浙江大华技术股份有限公司 A method and device for detecting a random abnormal blinking dot

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI559236B (en) * 2012-06-20 2016-11-21 原相科技股份有限公司 Background model update method for image process

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930541A (en) * 2012-10-29 2013-02-13 深圳市开天源自动化工程有限公司 Background extracting and updating method of video images
CN104427210A (en) * 2013-08-23 2015-03-18 浙江大华技术股份有限公司 A method and device for detecting a random abnormal blinking dot

Also Published As

Publication number Publication date
CN106547396A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
CN108280822A (en) The detection method and device of screen cut
US10063789B2 (en) Enhanced brightness image acquisition devices and methods
CN106547396B (en) A method of improving the anti-instantaneous strong light interference of optical touch control system
CN104657648B (en) Head-mounted display device and login method thereof
CN104766590B (en) Head-mounted display device and backlight adjusting method thereof
CN105373223A (en) Lighting equipment capable of automatically adjusting luminous intensity and method
CN103310422B (en) Obtain the method and device of image
CN104505002B (en) Based on display packing and the device of OLED screen
JPH11288459A (en) Method and device for detecting area such as face and observer tracking display
CN104160692A (en) Lighting system and method for image and object enhancement
CN104021527B (en) Rain and snow removal method in image
CN106650614A (en) Dynamic calibration method and apparatus
CN101937505B (en) Target detection method and equipment and used image acquisition device thereof
CN105472361A (en) Method and system for image fluorescence processing of projector
WO2022218082A1 (en) Image processing method and apparatus based on artificial intelligence, and electronic device, computer-readable storage medium and computer program product
CN108288289A (en) A kind of LED visible detection methods and its system for visible light-seeking
CN106845438A (en) A kind of face identification method, device and electronic equipment
CN105007439A (en) Projector and method for avoiding projecting projected image on human body
CN116051439A (en) Method, equipment and storage medium for removing rainbow-like glare of under-screen RGB image by utilizing infrared image
CN109472767B (en) Stage lamp missing state analysis system
CN105263008A (en) Method and device for improving color image quality under low ambient light illumination
CN105092589B (en) A kind of capsule head defect inspection method
CN107123108B (en) Machine vision-based automatic detection method for honeycomb defects of remote sensor lens hood
CN107145217A (en) Intelligent interactive system and intelligent interactive method
JP2008232837A (en) Method and system of defective enhancement, and detection of defect, and program

Legal Events

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