[go: up one dir, main page]

CN110989873B - Optical imaging system for simulating touch screen - Google Patents

Optical imaging system for simulating touch screen Download PDF

Info

Publication number
CN110989873B
CN110989873B CN201911080074.XA CN201911080074A CN110989873B CN 110989873 B CN110989873 B CN 110989873B CN 201911080074 A CN201911080074 A CN 201911080074A CN 110989873 B CN110989873 B CN 110989873B
Authority
CN
China
Prior art keywords
array
row
camera
screen
checksum
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
CN201911080074.XA
Other languages
Chinese (zh)
Other versions
CN110989873A (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN201911080074.XA priority Critical patent/CN110989873B/en
Publication of CN110989873A publication Critical patent/CN110989873A/en
Application granted granted Critical
Publication of CN110989873B publication Critical patent/CN110989873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Position Input By Displaying (AREA)

Abstract

一种用于模拟触摸屏的光学成像系统,包括光学成像组件、图像预处理模块,警戒线上的校验和计算模块、获取指尖位置模块、判断操作类型机制及执行操作模块和下次采样时采样开始行数回退机制模块;光学成像组件由固定夹和光学结构组件组成;所述图像预处理模块中,CPU每隔一定时间调取一次摄像头画面;将原本需要用24bit的存储空间来表示的像素点所在位置所对应的相应颜色的信息用1个bit来表示;判断操作类型机制及执行操作模块中,当数组行数等于3时,表明3行2列的数组已经存满,则开始执行所述判断操作类型机制,判断3行2列数组中的元素。本发明在不使用触摸屏的情况下,就可以为显示屏实现触控效果。

Figure 201911080074

An optical imaging system for simulating a touch screen, including an optical imaging component, an image preprocessing module, a checksum calculation module on the warning line, a module for obtaining fingertip positions, a mechanism for judging the type of operation, and a module for performing operations and the next sampling Sampling start line number fallback mechanism module; the optical imaging component is composed of a fixing clip and an optical structure component; in the image preprocessing module, the CPU calls the camera image at regular intervals; the original 24bit storage space is used to represent The information of the corresponding color corresponding to the position of the pixel is represented by 1 bit; in the judgment operation type mechanism and execution operation module, when the number of array rows is equal to 3, it indicates that the array of 3 rows and 2 columns is full, and then starts Execute the mechanism for judging the operation type to judge the elements in the array of 3 rows and 2 columns. The present invention can realize the touch effect for the display screen without using the touch screen.

Figure 201911080074

Description

一种用于模拟触摸屏的光学成像系统An optical imaging system for simulating a touch screen

技术领域technical field

本发明涉及光学成像系统和图像处理领域,特别是一种用于模拟触摸屏的光学成像系统。The invention relates to the field of optical imaging system and image processing, in particular to an optical imaging system for simulating a touch screen.

背景技术Background technique

随着时代的飞速发展,越来越多的电子设备走进千家万户,走进大街小巷,而显示屏作为人与机器交互的媒介更是在人们的日常生活中扮演着举足轻重的地位,无论是车里,商场里,教室里,就连大街小巷上都随处可见显示屏的身影。大到几百平米的户外显示屏,小到手机智能手表,可以说正是因为有了显示屏的存在,人们才可以真正地享受到科技的发展给人们的生活带来的舒适与便捷。With the rapid development of the times, more and more electronic devices have entered thousands of households and entered the streets and alleys, and the display screen, as a medium for human-machine interaction, plays a pivotal role in people's daily life. No matter in the car, in the shopping mall, in the classroom, or even in the streets and alleys, the display screen can be seen everywhere. Outdoor display screens as large as hundreds of square meters, as small as smart watches for mobile phones, it can be said that it is precisely because of the existence of display screens that people can truly enjoy the comfort and convenience brought by the development of technology to people's lives.

但是有两个概念很容易让人混淆,那就是显示屏和触摸屏的区别。之所以有人对这两个概念傻傻分不清很大程度是因为触摸屏和显示屏通常都是叠加在一起使用的。就拿手机为例,手机屏幕分内屏和外屏,内屏是真正呈现出不同画面的显示屏,外屏是负责感受手指操作的触摸屏,由于触摸屏通常都要求极高的透明度,所以很多人都会忽视它的存在,错误地以为触摸屏就是显示屏。But there are two concepts that are easy to confuse, that is, the difference between the display screen and the touch screen. The reason why some people are confused about these two concepts is largely because the touch screen and display screen are usually superimposed and used together. Take a mobile phone as an example. The screen of a mobile phone is divided into an inner screen and an outer screen. The inner screen is a display screen that truly presents different images. People will ignore its existence and mistakenly think that the touch screen is the display screen.

触摸屏有一个很重要的衡量指标,那就是透光率。好的触摸屏透光率能达到99%以上,但同时成本也非常的高,普通一点的触摸屏透光率只能达到70%到80%。传统意义上显示屏很大一部分作用是用来和人进行交互的。所以触摸屏通常是和显示屏叠加在一起来使用的,与此同时也就产生了一种矛盾。如果选择质量好的触摸屏,虽然可以真实地展现显示屏所显示的画面,但成本过于昂贵;如果选用价格适中的触摸屏,则会很大程度影响显示屏的显示效果。因此很多市面上见到的用于交互的屏幕如ATM取款机的屏幕,火车站自助取票机的屏幕,自助售卖机的屏幕等都有一种灰蒙蒙的感觉,其实并不是因为显示屏的质量不好,而是因为触摸屏的透光性太差了,从而影响了显示屏的显示效果。A touch screen has a very important measure, that is light transmittance. The light transmittance of a good touch screen can reach more than 99%, but at the same time the cost is very high, and the light transmittance of a common touch screen can only reach 70% to 80%. In the traditional sense, a large part of the display screen is used to interact with people. Therefore, the touch screen is usually used superimposed with the display screen, and at the same time, a contradiction arises. If you choose a good-quality touch screen, although you can truly display the screen displayed on the screen, the cost is too expensive; if you choose a moderately priced touch screen, it will greatly affect the display effect of the screen. Therefore, many screens used for interaction on the market, such as the screens of ATM cash machines, the screens of self-service ticket machines at railway stations, and the screens of self-service vending machines, all have a gray feeling, which is not because of the quality of the display screens. Not good, but because the light transmission of the touch screen is too poor, which affects the display effect of the display.

笔记本电脑在人们日常生活中的作用不言而喻,无论是学习,工作,生活还是娱乐都离不开笔记本电脑,毫无疑问,笔记本电脑为人们的生活方式带来了极大的改变,但是美中不足的是绝大多数笔记本电脑都不支持触控屏功能。只有极少数厂家的品牌的顶配级电脑才有触控屏功能。但是这些电脑的普遍价格在8000元以上,因此仅靠厂家在生产的时候在笔记本电脑的显示屏上面叠加触控屏的方式来为笔记本电脑实现触控功能无法满足普通用户对笔记本电脑触控功能的需求。The role of laptops in people's daily life is self-evident. Whether it is study, work, life or entertainment, laptops are inseparable. There is no doubt that laptops have brought great changes to people's lifestyles, but The fly in the ointment is that most notebook computers do not support touch screen functions. Only a very small number of top-end computers of the brands of manufacturers have touch screen functions. However, the general price of these computers is more than 8,000 yuan, so only relying on the manufacturer to superimpose the touch screen on the display screen of the notebook computer to realize the touch function for the notebook computer cannot satisfy the ordinary user's touch function of the notebook computer. demand.

发明内容Contents of the invention

为了克服现有触控屏笔记本电脑价格昂贵无法满足普通用户对笔记本电脑触控屏功能的需求。本发明提供一种用于模拟触摸屏的光学成像系统,在不使用触摸屏的情况下,就可以为显示屏实现触控效果。In order to overcome the fact that the existing touch screen notebook computer is expensive and cannot meet the needs of ordinary users for the touch screen function of the notebook computer. The invention provides an optical imaging system for simulating a touch screen, which can realize a touch effect for a display screen without using the touch screen.

本发明解决其技术问题所采用的技术方案是:The technical solution adopted by the present invention to solve its technical problems is:

一种用于模拟触摸屏的光学成像系统,包括光学成像组件、图像预处理模块,警戒线上的校验和计算模块、获取指尖位置模块、判断操作类型机制及执行操作模块和下次采样时采样开始行数回退机制模块;An optical imaging system for simulating a touch screen, including an optical imaging component, an image preprocessing module, a checksum calculation module on the warning line, a module for obtaining fingertip positions, a mechanism for judging the type of operation, and a module for performing operations and the next sampling Sampling start line number fallback mechanism module;

所述光学成像组件由有一个可以夹在笔记本电脑屏幕摄像头位置上的固定夹,以及可以通过螺纹的方式或磁力的方式与固定夹结合的光学结构组件组成;The optical imaging component is composed of a fixing clip that can be clamped at the position of the camera on the screen of the notebook computer, and an optical structural component that can be combined with the fixing clip in a threaded way or a magnetic way;

所述图像预处理模块中,CPU每隔一定时间调取一次摄像头画面,即进行一次采样;将原本需要用24bit的存储空间来表示的像素点所在位置所对应的相应颜色的信息用1个bit来表示;In the image preprocessing module, the CPU calls the camera picture at regular intervals, that is, performs a sampling; the information of the corresponding color corresponding to the position of the pixel that needs to be represented by the storage space of 24bit is used by 1 bit To represent;

所述警戒线上的校验和计算模块中,初始状态下摄像头观测范围内无肤色近似颜色或选定作为触控笔主体颜色的颜色,所以经预处理过程之后摄像头视野范围内的所有像素点的输出值均为零,当有手指或者触控笔进入摄像头观测范围时视野顶部第一行的1920个像素元素的校验和首先开始不为零,第一行1920个像素点即为警戒线,警戒线校验和的结果即为是否有手指要来操控屏幕的判据,如果校验和为零,说明没有手指伸过来;当警戒线上的校验和非零时则开始进行指尖位置的识别以及操作类型的识别;否则在经过0.02秒的延时后继续进行下一次采样,继续判断警戒线上的校验和是否为零;In the checksum calculation module on the warning line, in the initial state, there is no approximate color of skin color or the color selected as the main body color of the stylus in the camera observation range, so after the preprocessing process, all pixels in the camera field of view The output values are all zero. When a finger or stylus enters the observation range of the camera, the checksum of the 1920 pixel elements in the first row at the top of the field of view is not zero at first, and the 1920 pixel points in the first row are the warning line , the result of the checksum of the warning line is the criterion for whether there is a finger to manipulate the screen. If the checksum is zero, it means that no finger is stretched out; when the checksum on the warning line is non-zero, the fingertip Identification of the position and identification of the operation type; otherwise, after a delay of 0.02 seconds, proceed to the next sampling, and continue to judge whether the checksum on the warning line is zero;

所述获取指尖位置模块中,首先将k的值传给j,开始计算第j行元素的校验和,k初始化为1,j为显示屏像素行数,最大值为1080,当计算到第j行第i个元素时校验和开始不为零时则记录下此时i的值,i为显示屏像素列数,在开始每行校验和的计算的时候都会初始化为1,最大值为1920,然后再去计算第j+1行的校验和;当计算到第j行全部1920个元素校验和仍为0时,则表示第j行暂时还没有容差范围内颜色的物体(为后续方便描述容差范围内颜色的物体后续描述中直接用“物体”描述),则记录下此时j-1的值;此时i中的值和j-1中的值就表示“物体”当前所在位置的x坐标和y坐标。将这两个值存放在所述3行2列数组的第一行,然后数组行数加一表示指向数组的下一行用于存放下一次采样时物体所在位置的x,y坐标;In the module of obtaining the fingertip position, first pass the value of k to j, and start to calculate the checksum of the element in the jth row, k is initialized to 1, and j is the number of pixel rows of the display screen, and the maximum value is 1080. When the checksum of the i-th element in the j-th row is not zero, record the value of i at this time, i is the number of pixel columns on the display screen, and it will be initialized to 1 when the checksum calculation of each row is started, the maximum The value is 1920, and then calculate the checksum of the j+1th row; when the checksum of all 1920 elements in the jth row is still 0, it means that the jth row has no color within the tolerance range for the time being Objects (for subsequent descriptions of objects with colors within the tolerance range are directly described as "objects" in subsequent descriptions), record the value of j-1 at this time; at this time, the value in i and the value in j-1 represent The x-coordinate and y-coordinate of the current position of the "object". Store these two values in the first row of the array of 3 rows and 2 columns, and then add one to the row number of the array to indicate that the next row of the array is used to store the x and y coordinates of the object's position during the next sampling;

所述下次采样时采样开始行数回退机制模块中,在每次采样将“物体”当前所在位置的x坐标和y坐标存放在所述3行2列数组中,然后将j-20的值赋值给k作为下一次采样时开始的行数,由于此时物体已经在第j行了,所以下次再取样的时候就不用从第1行开始计算校验和,直接可以从上次物体所在的第j行开始计算校验和,但同时为了避免“物体”在下次采样时出现折返的现象因此设定了20作为回退值,所以选择j-20做为下一次采样开始的行数,该值可通过后续优化进行调整,同时,当j-20的值小于1时,k还等于1。至此就与本段首行的描述“首先将k的值传给j开始计算第j行元素的校验和”形成循环采样过程的闭环;In the next sampling, in the sampling start row number fallback mechanism module, the x coordinate and y coordinate of the current position of the "object" are stored in the array of 3 rows and 2 columns in each sampling, and then the j-20 The value is assigned to k as the number of lines starting from the next sampling. Since the object is already in the jth line at this time, it is not necessary to calculate the checksum from the first line when sampling next time, and the object can be directly calculated from the last line. The jth line where it is located starts to calculate the checksum, but at the same time, in order to avoid the phenomenon of "object" turning back in the next sampling, 20 is set as the fallback value, so j-20 is selected as the number of lines to start the next sampling , this value can be adjusted through subsequent optimization, and at the same time, when the value of j-20 is less than 1, k is still equal to 1. At this point, the description in the first line of this paragraph "first pass the value of k to j to start calculating the checksum of the elements in row j" forms a closed loop of the cyclic sampling process;

所述判断操作类型机制及执行操作模块中,当数组行数等于3时,表明3行2列的数组已经存满,则开始执行所述判断操作类型机制,判断3行2列数组中的元素。In the mechanism for judging the type of operation and the module for executing the operation, when the number of rows in the array is equal to 3, it indicates that the array of 3 rows and 2 columns is full, and then the mechanism for judging the type of operation is started to judge the elements in the array of 3 rows and 2 columns .

进一步,所述判断操作类型机制及执行操作模块中,所述数组每一行的第一列数据分别用a1,a2,a3表示,数组每一行的第二列数据分别用b1,b2,b3表示,所述判断操作类型机制如下:Further, in the mechanism for judging the type of operation and the module for executing the operation, the data in the first column of each row of the array is represented by a1, a2, and a3 respectively, and the data in the second column of each row of the array is represented by b1, b2, and b3 respectively, The mechanism for determining the operation type is as follows:

(1)当b1<b2<b3时,说明物体还在向前移动;(1) When b1<b2<b3, it means that the object is still moving forward;

(2)当b1<b2且b3<b2时,说明物体已经到达触控位置,并开始折返,此时b2即为折返点,数组中第二行元素的信息a2,b2就代表触控位置的坐标信息,此时需接着判断此次操作是否为双击;(2) When b1<b2 and b3<b2, it means that the object has reached the touch position and starts to turn back. At this time, b2 is the turnback point. The information a2 and b2 of the second row element in the array represent the touch position Coordinate information, at this time, it is necessary to judge whether the operation is a double-click;

(2.1)在限定时间内出现情况(4)则判定此次操作操作类型为双击;(2.1) If the situation (4) occurs within the limited time, it is determined that the operation type of this operation is double-click;

(2.2)限定时间内没有出现情况(4)则判定此次操作操作类型为单击;(2.2) If there is no situation within the limited time (4), it is determined that the operation type of this operation is single click;

(3)当b1>b2>b3时,说明物体在远离;(3) When b1>b2>b3, it means that the object is moving away;

(4)当b1>b2且b3>b2时,说明物体开始反向折返,准备再次触控屏幕;(4) When b1>b2 and b3>b2, it means that the object starts to turn back and is ready to touch the screen again;

(5)当b1=b2=b3时(b1,b2,b3差值很小时视为相等)进行进一步判断;(5) When b1=b2=b3 (b1, b2, b3 are regarded as equal when the difference is very small), further judgment is carried out;

(5.1)当a1=a2=a3时(a1,a2,a3差值很小时视为相等)说明物体在进行鼠标右键操作;(5.1) When a1=a2=a3 (a1, a2, a3 are regarded as equal when the difference is very small), it means that the object is performing the right mouse button operation;

(5.2)当a1<a2<a3时或a1>a2>a3时说明物体在进行滚轮向上翻页的操作;(5.2) When a1<a2<a3 or a1>a2>a3, it means that the object is turning the page up with the scroll wheel;

(5.3)当a1>a2>a3时或a1<a2<a3时说明物体在进行滚轮向下翻页的操作;(5.3) When a1>a2>a3 or a1<a2<a3, it means that the object is turning the scroll wheel down;

出现情况(2)之后,数组第二行代表触控位置横纵坐标信息的两个数据a2,b2会被分别存储到X,Y中,然后会去判断此次操作是否为双击;判断此次操作是否为双击的判断方式跟判断“物体”是否出现情况(2)原理类似,即在限定时间内循环采样,将采样数据存放在3行2列的数组中,通过所述数组中数据比对机制判断数组的第二列信息,若在有限时间内出现情况(4)则说明物体在出现情况(2)的折返点后,在限定时间内出现反向折返的情况,即表明“物体”即将再次触控屏幕,则判定此次操作操作类型为双击,则会向CPU发送双击指令,位置信息在X,Y中;若在限定时间内没有出现情况(4)则限定时间截止后会判定此次操作操作类型为单击,则会向CPU发送单击指令,位置信息在X,Y中;再发送完单击或者双击的指令后,程序会返回主函数继续以50hz的采样频率计算警戒线上的校验和,完成全过程操作闭环;After the situation (2) occurs, the two data a2 and b2 representing the horizontal and vertical coordinate information of the touch position in the second row of the array will be stored in X and Y respectively, and then it will be judged whether the operation is a double-click; The method of judging whether the operation is a double-click is similar to the principle of judging whether the "object" appears (2), that is, the sample is cyclically sampled within a limited time, and the sampled data is stored in an array of 3 rows and 2 columns, and the data in the array is compared The mechanism judges the information in the second column of the array. If the situation (4) occurs within a limited time, it means that the object will turn back within a limited time after the turning point of the situation (2), which means that the "object" is about to Touch the screen again, it is determined that the type of operation is a double-click, and a double-click command will be sent to the CPU, and the position information is in X, Y; if there is no situation (4) within the limited time, it will be determined after the limited time expires If the operation type of the second operation is click, a click command will be sent to the CPU, and the position information is in X, Y; after sending the single-click or double-click command, the program will return to the main function and continue to calculate the warning line at a sampling frequency of 50hz The checksum on the above completes the closed-loop operation of the whole process;

出现情况(5)之后进行进一步判断;Make further judgments after the situation (5) occurs;

当a1=a2=a3时(a1,a2,a3差值很小时视为相等)说明物体在进行鼠标右键操作。则会向CPU发送右键指令位置坐标在a1,b1(或a2,b2或a3,b3)中;When a1=a2=a3 (a1, a2, a3 are regarded as equal when the difference is very small), it means that the object is operating the right button of the mouse. It will send the right button command to the CPU, and the position coordinates are in a1, b1 (or a2, b2 or a3, b3);

当a1<a2<a3时或a1>a2>a3时说明物体在进行滚轮向上翻页的操作。则会向CPU发送向上翻页的操作;When a1<a2<a3 or a1>a2>a3, it means that the object is turning the page up with the scroll wheel. The page-up operation will be sent to the CPU;

当a1>a2>a3时或a1<a2<a3时说明物体在进行滚轮向下翻页的操作。则会向CPU发送向下翻页的操作;When a1>a2>a3 or a1<a2<a3, it means that the object is turning the scroll wheel down. A page-down operation will be sent to the CPU;

完成指令发送后程序会返回主函数继续以50hz的采样频率计算警戒线上的校验和,完成全过程操作闭环;After the instruction is sent, the program will return to the main function to continue to calculate the checksum on the warning line with a sampling frequency of 50hz, and complete the closed loop operation of the whole process;

若出现情况(2)情况(5)以外的情况时,则将第二行的数据赋值给第一行,将第三行的数据赋值给第二行,同时数组行数减一表示下次采样时获取到的“物体”位置信息会存放在数组的第三行;下次采样过后数组行数再次加一之后等于三,则会再次进入所述循环采样和进行操作类型判定的闭环直至出现情况(2)或情况(5);If there is a situation other than case (2) and case (5), the data in the second row is assigned to the first row, and the data in the third row is assigned to the second row. At the same time, the number of rows in the array is reduced by one to indicate the next sampling The "object" position information obtained at the time will be stored in the third row of the array; after the next sampling, the number of rows in the array will be increased by one and then equal to three, and it will enter the closed loop of cyclic sampling and operation type judgment again until a situation occurs (2) or case (5);

通过上述流程步骤即可实现利用笔记本电脑自身的摄像头为笔记本电脑后天增加单击、双击、右键、上下翻页功能的效果,除此之外还可以在此基础上通过代码的设计实现更加复杂的手势操作如放大缩小、拖拽、三指下滑截屏、指关节双击屏幕截图等。Through the above process steps, you can use the laptop's own camera to add the effect of clicking, double-clicking, right-clicking, and page-turning functions to the laptop. In addition, you can also implement more complex functions through code design on this basis. Gesture operations such as zooming in and out, dragging, sliding down with three fingers to take screenshots, double-tapping with knuckles to take screenshots, etc.

再进一步,所述光学结构组件由3个倾斜45度的平面镜以及观测视角为160度的广角镜头组成,平面镜1位于笔记本电脑摄像头正前方,且与电脑屏幕平面成45度夹角,用于将电脑摄像头视野方向转成平行于屏幕方向向上;平面镜2位于平面镜1沿屏幕方向向上,且与平面镜1平行,用于将电脑摄像头视野方向转回垂直于电脑屏幕方向;平面镜3位于平面镜2沿垂直于屏幕方向向前,且与平面镜2垂直,用于将电脑摄像头视野方向转成平行于屏幕方向向下;广角镜头位于平面镜3沿平行于屏幕方向向下,用于增大观测视角。Still further, the optical structure assembly is composed of three flat mirrors inclined at 45 degrees and a wide-angle lens with an observation angle of 160 degrees. The direction of view of the camera is turned to be parallel to the direction of the screen upwards; the plane mirror 2 is located at the direction of the plane mirror 1 upwards along the direction of the screen, and is parallel to the plane mirror 1, and is used to turn the direction of view of the computer camera back to be perpendicular to the direction of the computer screen; the plane mirror 3 is located at the direction of the plane mirror 2 and is perpendicular to The direction of the screen is forward and perpendicular to the plane mirror 2, which is used to turn the direction of view of the computer camera to be parallel to the direction of the screen downward; the wide-angle lens is located on the plane mirror 3 and is parallel to the direction of the screen downward to increase the viewing angle of view.

平面镜1和平面镜2用于抬升摄像头的视野高度,平面镜3用于将摄像头的观测范围转折90度由垂直于电脑屏幕方向转为平行于电脑屏幕方向向下,广角镜头用于增大观测视角。平面镜1与平面镜2之间的距离取决于广角镜头的观测角度的选择,广角镜头的观测视角角度越大,则平面镜1与平面镜2之间的距离也就越短。平面镜2与平面镜3之间的距离是为了使摄像头视野方向与屏幕平面成一定夹角,便于后续对触控位置的识别。该光学组件的设计即可实现调取摄像头画面时可以通过摄像头观察到整个显示屏面板,进而可以通过一定的图像处理方法对摄像头获取到的触屏操作的位置和类型做出识别并向CPU发出相应响应。Plane mirror 1 and plane mirror 2 are used to elevate the viewing angle of the camera. Plane mirror 3 is used to turn the observation range of the camera by 90 degrees from perpendicular to the direction of the computer screen to parallel to the direction of the computer screen. The wide-angle lens is used to increase the viewing angle of view. The distance between the plane mirror 1 and the plane mirror 2 depends on the selection of the observation angle of the wide-angle lens. The larger the observation angle of the wide-angle lens, the shorter the distance between the plane mirror 1 and the plane mirror 2. The distance between the plane mirror 2 and the plane mirror 3 is to make the viewing direction of the camera form a certain angle with the screen plane, so as to facilitate subsequent recognition of the touch position. The design of the optical component can realize that the entire display panel can be observed through the camera when the camera picture is called, and then the position and type of the touch screen operation obtained by the camera can be identified through a certain image processing method and sent to the CPU. Respond accordingly.

更进一步,所述固定夹的其中一个夹持面上面有一个圆形过孔。所述圆形过孔用以辅助使用者判断固定夹夹持位置是否正确,所述圆形过孔即为笔记本电脑摄像头与光学组件连接的光路孔,固定夹与光学组件分开的设计可以避免固定夹夹持位置不当挡到摄像头或者摄像头与光学组件连接的角度有偏差的情况。Furthermore, a circular via hole is formed on one of the clamping surfaces of the fixing clip. The circular via hole is used to assist the user to judge whether the clamping position of the fixing clip is correct. The circular via hole is the optical path hole connecting the camera of the notebook computer with the optical component, and the design of separating the fixing clip from the optical component can avoid fixing Improper clamping position blocks the camera or the angle between the camera and the optical assembly is deviated.

所述图像预处理模块中,选定皮肤或触控笔颜色为基准色,并设置容差范围,若摄像头获取到画面的像素点的颜色信息在这个容差范围内则输出结果1,如果不在这个容差值范围内则输出结果0;判断方法为读取像素点对应内存地址,取出对应内存地址中代表像素点颜色信息的24个bit位,通过位运算的方式获取24个bit位中红色、绿色、蓝色三原色相应数值,然后根据设定的基准色容差范围得出RGB三原色相应数值范围,并判断像素点的24个bit位中红色、绿色、蓝色三原色相应数值是否在容差范围内从而完成判定。In the image preprocessing module, select the color of the skin or the stylus as the reference color, and set the tolerance range, if the camera obtains the color information of the pixels of the picture within the tolerance range, then output the result 1, if not Within this tolerance value range, the output result is 0; the judgment method is to read the memory address corresponding to the pixel point, take out the 24 bits representing the color information of the pixel point in the corresponding memory address, and obtain the red color in the 24 bits by bit operation. , green, blue three primary colors corresponding values, and then get the corresponding value range of RGB three primary colors according to the set reference color tolerance range, and judge whether the corresponding values of red, green, blue three primary colors in the 24 bits of the pixel are within the tolerance within the range to complete the judgment.

所述图像预处理模块中,采样频率可人为设定,在此以采样频率为50hz为例进行说明。笔记本电脑摄像头工作时会向CPU申请一段内存区域用以存放获取到的画面信息,申请到的内存区域的首地址用指针*p表示。以1920×1080分辨率的电脑为例,摄像头获取到的数据为1920*1080个像素点。每个像素点是按照RGB888的编码方式进行编码的,即每个像素点需要24bit的存储空间用来存放获取到的颜色信息。In the image preprocessing module, the sampling frequency can be set manually, and the sampling frequency is 50 Hz as an example for illustration. When the laptop camera is working, it will apply for a memory area from the CPU to store the acquired image information, and the first address of the applied memory area is indicated by the pointer *p. Taking a computer with a resolution of 1920×1080 as an example, the data obtained by the camera is 1920*1080 pixels. Each pixel is encoded according to the RGB888 encoding method, that is, each pixel requires 24bit storage space to store the acquired color information.

本发明提供了一种虚拟触摸屏的方式,以达到通过光学成像系统以及相应使用场景下的图像处理方法,在不使用触摸屏的情况下,就可以为显示屏实现触控效果。在节约了触摸屏自身成本的情况下,彻底避免了因使用触摸屏对显示屏显示效果造成的负面影响。本发明可广泛应用于教室一体机,商场导购显示屏,自助售卖机等需要额外添加触摸屏以达到人机交互功能的屏幕。在此突出展示其中的一种使用场景,即利用本发明提出的一种用于模拟触摸屏的光学成像系统及图像处理方法来为笔记本电脑的显示屏添加虚拟触控屏的功能。The present invention provides a method of virtual touch screen, so as to realize the touch effect for the display screen without using the touch screen through the optical imaging system and the image processing method in the corresponding use scene. In the case of saving the cost of the touch screen itself, the negative impact on the display effect of the display screen due to the use of the touch screen is completely avoided. The present invention can be widely used in all-in-one machines in classrooms, display screens for shopping guides in shopping malls, self-service vending machines, and other screens that require an additional touch screen to achieve human-computer interaction. One of the usage scenarios is highlighted here, that is, using an optical imaging system and an image processing method for simulating a touch screen proposed by the present invention to add a virtual touch screen function to the display screen of a notebook computer.

本发明的有益效果主要表现在:在不使用触摸屏的情况下,就可以为显示屏实现触控效果,节约了触摸屏自身成本的情况下,彻底避免了因使用触摸屏对显示屏显示效果造成的负面影响。The beneficial effects of the present invention are mainly manifested in: without using the touch screen, the touch effect can be realized for the display screen, and the negative effects caused by the use of the touch screen on the display effect of the display screen can be completely avoided while saving the cost of the touch screen itself. Influence.

附图说明Description of drawings

图1为图像处理方法的流程图。FIG. 1 is a flowchart of an image processing method.

图2为光学成像系统设计图,其中,1为平面镜1,2为平面镜2,3为平面镜3,4为广角镜头,5为固定夹,6为笔记本电脑摄像头。2 is a design diagram of the optical imaging system, wherein, 1 is a plane mirror 1, 2 is a plane mirror 2, 3 is a plane mirror 3, 4 is a wide-angle lens, 5 is a fixing clip, and 6 is a notebook computer camera.

图3为判断操作类型机制流程图。Fig. 3 is a flow chart of the mechanism for judging the operation type.

具体实施方式Detailed ways

下面结合附图对本发明作进一步描述。The present invention will be further described below in conjunction with the accompanying drawings.

参照图1~图3,一种用于模拟触摸屏的光学成像系统,包括光学成像组件、图像预处理模块,警戒线上的校验和计算模块、获取指尖位置模块、判断操作类型机制及执行操作模块和下次采样时采样开始行数回退机制模块;Referring to Figures 1 to 3, an optical imaging system for simulating a touch screen, including an optical imaging component, an image preprocessing module, a checksum calculation module on the warning line, a module for obtaining fingertip positions, a mechanism for judging the type of operation, and execution The operation module and the sampling start line number fallback mechanism module at the next sampling;

所述光学成像组件由有一个可以夹在笔记本电脑屏幕摄像头位置上的固定夹,以及可以通过螺纹的方式或磁力的方式与固定夹结合的光学结构组件组成;The optical imaging component is composed of a fixing clip that can be clamped at the position of the camera on the screen of the notebook computer, and an optical structural component that can be combined with the fixing clip in a threaded way or a magnetic way;

所述图像预处理模块中,CPU每隔一定时间调取一次摄像头画面,即进行一次采样;将原本需要用24bit的存储空间来表示的像素点所在位置所对应的相应颜色的信息用1个bit来表示;In the image preprocessing module, the CPU calls the camera picture at regular intervals, that is, performs a sampling; the information of the corresponding color corresponding to the position of the pixel that needs to be represented by the storage space of 24bit is used by 1 bit To represent;

所述警戒线上的校验和计算模块中,初始状态下摄像头观测范围内无肤色近似颜色或选定作为触控笔主体颜色的颜色,所以经预处理过程之后摄像头视野范围内的所有像素点的输出值均为零,当有手指或者触控笔进入摄像头观测范围时视野顶部第一行的1920个像素元素的校验和首先开始不为零,第一行1920个像素点即为警戒线,警戒线校验和的结果即为是否有手指要来操控屏幕的判据,如果校验和为零,说明没有手指伸过来;当警戒线上的校验和非零时则开始进行指尖位置的识别以及操作类型的识别;否则在经过0.02秒的延时后继续进行下一次采样,继续判断警戒线上的校验和是否为零;In the checksum calculation module on the warning line, in the initial state, there is no approximate color of skin color or the color selected as the main body color of the stylus in the camera observation range, so after the preprocessing process, all pixels in the camera field of view The output values are all zero. When a finger or stylus enters the observation range of the camera, the checksum of the 1920 pixel elements in the first row at the top of the field of view is not zero at first, and the 1920 pixel points in the first row are the warning line , the result of the checksum of the warning line is the criterion for whether there is a finger to manipulate the screen. If the checksum is zero, it means that no finger is stretched out; when the checksum on the warning line is non-zero, the fingertip Identification of the position and identification of the operation type; otherwise, after a delay of 0.02 seconds, proceed to the next sampling, and continue to judge whether the checksum on the warning line is zero;

所述获取指尖位置模块中,首先将k的值传给j,开始计算第j行元素的校验和,k初始化为1,j为显示屏像素行数,最大值为1080,当计算到第j行第i个元素时校验和开始不为零时则记录下此时i的值,i为显示屏像素列数,在开始每行校验和的计算的时候都会初始化为1,最大值为1920,然后再去计算第j+1行的校验和;当计算到第j行全部1920个元素校验和仍为0时,则表示第j行暂时还没有容差范围内颜色的物体(为后续方便描述容差范围内颜色的物体后续描述中直接用“物体”描述),则记录下此时j-1的值;此时i中的值和j-1中的值就表示“物体”当前所在位置的x坐标和y坐标。将这两个值存放在所述3行2列数组的第一行,然后数组行数加一表示指向数组的下一行用于存放下一次采样时物体所在位置的x,y坐标;In the module of obtaining the fingertip position, first pass the value of k to j, and start to calculate the checksum of the element in the jth row, k is initialized to 1, and j is the number of pixel rows of the display screen, and the maximum value is 1080. When the checksum of the i-th element in the j-th row is not zero, record the value of i at this time, i is the number of pixel columns on the display screen, and it will be initialized to 1 when the checksum calculation of each row is started, the maximum The value is 1920, and then calculate the checksum of the j+1th row; when the checksum of all 1920 elements in the jth row is still 0, it means that the jth row has no color within the tolerance range for the time being Objects (for subsequent descriptions of objects with colors within the tolerance range are directly described as "objects" in subsequent descriptions), record the value of j-1 at this time; at this time, the value in i and the value in j-1 represent The x-coordinate and y-coordinate of the current position of the "object". Store these two values in the first row of the array of 3 rows and 2 columns, and then add one to the row number of the array to indicate that the next row of the array is used to store the x and y coordinates of the object's position during the next sampling;

所述下次采样时采样开始行数回退机制模块中,在每次采样将“物体”当前所在位置的x坐标和y坐标存放在所述3行2列数组中,然后将j-20的值赋值给k作为下一次采样时开始的行数,由于此时物体已经在第j行了,所以下次再取样的时候就不用从第1行开始计算校验和,直接可以从上次物体所在的第j行开始计算校验和,但同时为了避免“物体”在下次采样时出现折返的现象因此设定了20作为回退值,所以选择j-20做为下一次采样开始的行数,该值可通过后续优化进行调整,同时,当j-20的值小于1时,k还等于1。至此就与本段首行的描述“首先将k的值传给j开始计算第j行元素的校验和”形成循环采样过程的闭环;In the next sampling, in the sampling start row number fallback mechanism module, the x coordinate and y coordinate of the current position of the "object" are stored in the array of 3 rows and 2 columns in each sampling, and then the j-20 The value is assigned to k as the number of lines starting from the next sampling. Since the object is already in the jth line at this time, it is not necessary to calculate the checksum from the first line when sampling next time, and the object can be directly calculated from the last line. The jth line where it is located starts to calculate the checksum, but at the same time, in order to avoid the phenomenon of "object" turning back in the next sampling, 20 is set as the fallback value, so j-20 is selected as the number of lines to start the next sampling , this value can be adjusted through subsequent optimization, and at the same time, when the value of j-20 is less than 1, k is still equal to 1. At this point, the description in the first line of this paragraph "first pass the value of k to j to start calculating the checksum of the elements in row j" forms a closed loop of the cyclic sampling process;

所述判断操作类型机制及执行操作模块中,当数组行数等于3时,表明3行2列的数组已经存满,则开始执行所述判断操作类型机制,判断3行2列数组中的元素。In the mechanism for judging the type of operation and the module for executing the operation, when the number of rows in the array is equal to 3, it indicates that the array of 3 rows and 2 columns is full, and then the mechanism for judging the type of operation is started to judge the elements in the array of 3 rows and 2 columns .

进一步,所述判断操作类型机制及执行操作模块中,所述数组每一行的第一列数据分别用a1,a2,a3表示,数组每一行的第二列数据分别用b1,b2,b3表示,所述判断操作类型机制如下:Further, in the mechanism for judging the type of operation and the module for executing the operation, the data in the first column of each row of the array is represented by a1, a2, and a3 respectively, and the data in the second column of each row of the array is represented by b1, b2, and b3 respectively, The mechanism for determining the operation type is as follows:

(1)当b1<b2<b3时,说明物体还在向前移动;(1) When b1<b2<b3, it means that the object is still moving forward;

(2)当b1<b2且b3<b2时,说明物体已经到达触控位置,并开始折返,此时b2即为折返点,数组中第二行元素的信息a2,b2就代表触控位置的坐标信息,此时需接着判断此次操作是否为双击;(2) When b1<b2 and b3<b2, it means that the object has reached the touch position and starts to turn back. At this time, b2 is the turnback point. The information a2 and b2 of the second row element in the array represent the touch position Coordinate information, at this time, it is necessary to judge whether the operation is a double-click;

(2.1)在限定时间内出现情况(4)则判定此次操作操作类型为双击;(2.1) If the situation (4) occurs within the limited time, it is determined that the operation type of this operation is double-click;

(2.2)限定时间内没有出现情况(4)则判定此次操作操作类型为单击;(2.2) If there is no situation within the limited time (4), it is determined that the operation type of this operation is single click;

(3)当b1>b2>b3时,说明物体在远离;(3) When b1>b2>b3, it means that the object is moving away;

(4)当b1>b2且b3>b2时,说明物体开始反向折返,准备再次触控屏幕;(4) When b1>b2 and b3>b2, it means that the object starts to turn back and is ready to touch the screen again;

(5)当b1=b2=b3时(b1,b2,b3差值很小时视为相等)进行进一步判断;(5) When b1=b2=b3 (b1, b2, b3 are regarded as equal when the difference is very small), further judgment is carried out;

(5.1)当a1=a2=a3时(a1,a2,a3差值很小时视为相等)说明物体在进行鼠标右键操作;(5.1) When a1=a2=a3 (a1, a2, a3 are regarded as equal when the difference is very small), it means that the object is performing the right mouse button operation;

(5.2)当a1<a2<a3时或a1>a2>a3时说明物体在进行滚轮向上翻页的操作;(5.2) When a1<a2<a3 or a1>a2>a3, it means that the object is turning the page up with the scroll wheel;

(5.3)当a1>a2>a3时或a1<a2<a3时说明物体在进行滚轮向下翻页的操作;(5.3) When a1>a2>a3 or a1<a2<a3, it means that the object is turning the scroll wheel down;

出现情况(2)之后,数组第二行代表触控位置横纵坐标信息的两个数据a2,b2会被分别存储到X,Y中,然后会去判断此次操作是否为双击;判断此次操作是否为双击的判断方式跟判断“物体”是否出现情况(2)原理类似,即在限定时间内循环采样,将采样数据存放在3行2列的数组中,通过所述数组中数据比对机制判断数组的第二列信息,若在有限时间内出现情况(4)则说明物体在出现情况(2)的折返点后,在限定时间内出现反向折返的情况,即表明“物体”即将再次触控屏幕,则判定此次操作操作类型为双击,则会向CPU发送双击指令,位置信息在X,Y中;若在限定时间内没有出现情况(4)则限定时间截止后会判定此次操作操作类型为单击,则会向CPU发送单击指令,位置信息在X,Y中;再发送完单击或者双击的指令后,程序会返回主函数继续以50hz的采样频率计算警戒线上的校验和,完成全过程操作闭环;After the situation (2) occurs, the two data a2 and b2 representing the horizontal and vertical coordinate information of the touch position in the second row of the array will be stored in X and Y respectively, and then it will be judged whether the operation is a double-click; The method of judging whether the operation is a double-click is similar to the principle of judging whether the "object" appears (2), that is, the sample is cyclically sampled within a limited time, and the sampled data is stored in an array of 3 rows and 2 columns, and the data in the array is compared The mechanism judges the information in the second column of the array. If the situation (4) occurs within a limited time, it means that the object will turn back within a limited time after the turning point of the situation (2), which means that the "object" is about to Touch the screen again, it is determined that the type of operation is a double-click, and a double-click command will be sent to the CPU, and the position information is in X, Y; if there is no situation (4) within the limited time, it will be determined after the limited time expires If the operation type of the second operation is click, a click command will be sent to the CPU, and the position information is in X, Y; after sending the single-click or double-click command, the program will return to the main function and continue to calculate the warning line at a sampling frequency of 50hz The checksum on the above completes the closed-loop operation of the whole process;

出现情况(5)之后进行进一步判断;Make further judgments after the situation (5) occurs;

当a1=a2=a3时(a1,a2,a3差值很小时视为相等)说明物体在进行鼠标右键操作。则会向CPU发送右键指令位置坐标在a1,b1(或a2,b2或a3,b3)中;When a1=a2=a3 (a1, a2, a3 are regarded as equal when the difference is very small), it means that the object is operating the right button of the mouse. It will send the right button command to the CPU, and the position coordinates are in a1, b1 (or a2, b2 or a3, b3);

当a1<a2<a3时或a1>a2>a3时说明物体在进行滚轮向上翻页的操作。则会向CPU发送向上翻页的操作;When a1<a2<a3 or a1>a2>a3, it means that the object is turning the page up with the scroll wheel. The page-up operation will be sent to the CPU;

当a1>a2>a3时或a1<a2<a3时说明物体在进行滚轮向下翻页的操作。则会向CPU发送向下翻页的操作;When a1>a2>a3 or a1<a2<a3, it means that the object is turning the scroll wheel down. A page-down operation will be sent to the CPU;

完成指令发送后程序会返回主函数继续以50hz的采样频率计算警戒线上的校验和,完成全过程操作闭环;After the instruction is sent, the program will return to the main function to continue to calculate the checksum on the warning line with a sampling frequency of 50hz, and complete the closed loop operation of the whole process;

若出现情况(2)情况(5)以外的情况时,则将第二行的数据赋值给第一行,将第三行的数据赋值给第二行,同时数组行数减一表示下次采样时获取到的“物体”位置信息会存放在数组的第三行;下次采样过后数组行数再次加一之后等于三,则会再次进入所述循环采样和进行操作类型判定的闭环直至出现情况(2)或情况(5);If there is a situation other than case (2) and case (5), the data in the second row is assigned to the first row, and the data in the third row is assigned to the second row. At the same time, the number of rows in the array is reduced by one to indicate the next sampling The "object" position information obtained at the time will be stored in the third row of the array; after the next sampling, the number of rows in the array will be increased by one and then equal to three, and it will enter the closed loop of cyclic sampling and operation type judgment again until a situation occurs (2) or case (5);

通过上述流程步骤即可实现利用笔记本电脑自身的摄像头为笔记本电脑后天增加单击、双击、右键、上下翻页功能的效果,除此之外还可以在此基础上通过代码的设计实现更加复杂的手势操作如放大缩小、拖拽、三指下滑截屏、指关节双击屏幕截图等。Through the above process steps, you can use the laptop's own camera to add the effect of clicking, double-clicking, right-clicking, and page-turning functions to the laptop. In addition, you can also implement more complex functions through code design on this basis. Gesture operations such as zooming in and out, dragging, sliding down with three fingers to take screenshots, double-tapping with knuckles to take screenshots, etc.

再进一步,所述光学结构组件由3个倾斜45度的平面镜以及观测视角为160度的广角镜头组成,平面镜1位于笔记本电脑摄像头正前方,且与电脑屏幕平面成45度夹角,用于将电脑摄像头视野方向转成平行于屏幕方向向上;平面镜2位于平面镜1沿屏幕方向向上,且与平面镜1平行,用于将电脑摄像头视野方向转回垂直于电脑屏幕方向;平面镜3位于平面镜2沿垂直于屏幕方向向前,且与平面镜2垂直,用于将电脑摄像头视野方向转成平行于屏幕方向向下;广角镜头位于平面镜3沿平行于屏幕方向向下,用于增大观测视角。Still further, the optical structure assembly is composed of three flat mirrors inclined at 45 degrees and a wide-angle lens with an observation angle of 160 degrees. The direction of view of the camera is turned to be parallel to the direction of the screen upwards; the plane mirror 2 is located at the direction of the plane mirror 1 upwards along the direction of the screen, and is parallel to the plane mirror 1, and is used to turn the direction of view of the computer camera back to be perpendicular to the direction of the computer screen; the plane mirror 3 is located at the direction of the plane mirror 2 and is perpendicular to The direction of the screen is forward and perpendicular to the plane mirror 2, which is used to turn the direction of view of the computer camera to be parallel to the direction of the screen downward; the wide-angle lens is located on the plane mirror 3 and is parallel to the direction of the screen downward to increase the viewing angle of view.

平面镜1和平面镜2用于抬升摄像头的视野高度,平面镜3用于将摄像头的观测范围转折90度由垂直于电脑屏幕方向转为平行于电脑屏幕方向向下,广角镜头用于增大观测视角。平面镜1与平面镜2之间的距离取决于广角镜头的观测角度的选择,广角镜头的观测视角角度越大,则平面镜1与平面镜2之间的距离也就越短。平面镜2与平面镜3之间的距离是为了使摄像头视野方向与屏幕平面成一定夹角,便于后续对触控位置的识别。该光学组件的设计即可实现调取摄像头画面时可以通过摄像头观察到整个显示屏面板,进而可以通过一定的图像处理方法对摄像头获取到的触屏操作的位置和类型做出识别并向CPU发出相应响应。Plane mirror 1 and plane mirror 2 are used to elevate the viewing angle of the camera. Plane mirror 3 is used to turn the observation range of the camera by 90 degrees from perpendicular to the direction of the computer screen to parallel to the direction of the computer screen. The wide-angle lens is used to increase the viewing angle of view. The distance between the plane mirror 1 and the plane mirror 2 depends on the selection of the observation angle of the wide-angle lens. The larger the observation angle of the wide-angle lens, the shorter the distance between the plane mirror 1 and the plane mirror 2. The distance between the plane mirror 2 and the plane mirror 3 is to make the viewing direction of the camera form a certain angle with the screen plane, so as to facilitate subsequent recognition of the touch position. The design of the optical component can realize that the entire display panel can be observed through the camera when the camera picture is called, and then the position and type of the touch screen operation obtained by the camera can be identified through a certain image processing method and sent to the CPU. Respond accordingly.

更进一步,所述固定夹的其中一个夹持面上面有一个圆形过孔。所述圆形过孔用以辅助使用者判断固定夹夹持位置是否正确,所述圆形过孔即为笔记本电脑摄像头与光学组件连接的光路孔,固定夹与光学组件分开的设计可以避免固定夹夹持位置不当挡到摄像头或者摄像头与光学组件连接的角度有偏差的情况。Furthermore, a circular via hole is formed on one of the clamping surfaces of the fixing clip. The circular via hole is used to assist the user to judge whether the clamping position of the fixing clip is correct. The circular via hole is the optical path hole connecting the camera of the notebook computer with the optical component, and the design of separating the fixing clip from the optical component can avoid fixing Improper clamping position blocks the camera or the angle between the camera and the optical assembly is deviated.

所述图像预处理模块中,选定皮肤或触控笔颜色为基准色,并设置容差范围,若摄像头获取到画面的像素点的颜色信息在这个容差范围内则输出结果1,如果不在这个容差值范围内则输出结果0;判断方法为读取像素点对应内存地址,取出对应内存地址中代表像素点颜色信息的24个bit位,通过位运算的方式获取24个bit位中红色、绿色、蓝色三原色相应数值,然后根据设定的基准色容差范围得出RGB三原色相应数值范围,并判断像素点的24个bit位中红色、绿色、蓝色三原色相应数值是否在容差范围内从而完成判定。In the image preprocessing module, select the color of the skin or the stylus as the reference color, and set the tolerance range, if the camera obtains the color information of the pixels of the picture within the tolerance range, then output the result 1, if not Within this tolerance value range, the output result is 0; the judgment method is to read the memory address corresponding to the pixel point, take out the 24 bits representing the color information of the pixel point in the corresponding memory address, and obtain the red color in the 24 bits by bit operation. , green, blue three primary colors corresponding values, and then get the corresponding value range of RGB three primary colors according to the set reference color tolerance range, and judge whether the corresponding values of red, green, blue three primary colors in the 24 bits of the pixel are within the tolerance within the range to complete the judgment.

所述图像预处理模块中,采样频率可人为设定,在此以采样频率为50hz为例进行说明。笔记本电脑摄像头工作时会向CPU申请一段内存区域用以存放获取到的画面信息,申请到的内存区域的首地址用指针*p表示。以1920×1080分辨率的电脑为例,摄像头获取到的数据为1920*1080个像素点。每个像素点是按照RGB888的编码方式进行编码的,即每个像素点需要24bit的存储空间用来存放获取到的颜色信息。In the image preprocessing module, the sampling frequency can be set manually, and the sampling frequency is 50 Hz as an example for illustration. When the laptop camera is working, it will apply for a memory area from the CPU to store the acquired image information, and the first address of the applied memory area is indicated by the pointer *p. Taking a computer with a resolution of 1920×1080 as an example, the data obtained by the camera is 1920*1080 pixels. Each pixel is encoded according to the RGB888 encoding method, that is, each pixel requires 24bit storage space to store the acquired color information.

图1图像处理方法的流程图所示,进入主函数后,CPU每隔0.02秒会读取一次摄像头获取到的画面,画面内容是以像素点为单位的内存区域,内存区域内存放的就是每个像素点的RGB888编码格式的颜色信息。CPU会从该段内存区域首地址开始计算警戒线上的经预处理函数处理后的代表像素点颜色信息的结果加起来得到校验和。预处理函数的输入参数是指向每个像素点起始内存地址的指针,经函数内部处理判断指针指向的内存地址处存放的数据代表的颜色是否在基准色容差范围内,如果在容差范围内则输出1,否则输出0,判断完成后指针向后移动,移动到下一个像素点内存起始地址。当计算完警戒线上的校验和(也就是视野范围内顶部第一行1920个像素点经预处理过后的1920个0或1的结果的和),若校验和为零,则经过一个0.02秒的延时函数后,返回主函数继续采样再次计算警戒线上的校验和。As shown in the flow chart of the image processing method in Figure 1, after entering the main function, the CPU will read the picture captured by the camera every 0.02 seconds. Color information in RGB888 encoding format of pixels. The CPU will start from the first address of the memory area to calculate the results of representing the color information of the pixels on the warning line processed by the preprocessing function and add up to obtain the checksum. The input parameter of the preprocessing function is a pointer pointing to the starting memory address of each pixel. After the internal processing of the function, it is judged whether the color represented by the data stored at the memory address pointed to by the pointer is within the tolerance range of the reference color, and if it is within the tolerance range If it is inside, it outputs 1, otherwise it outputs 0. After the judgment is completed, the pointer moves backwards to the start address of the next pixel memory. When the checksum on the warning line is calculated (that is, the sum of 1920 0 or 1 results after preprocessing of the first 1920 pixels in the top row of the field of view), if the checksum is zero, a After the delay function of 0.02 seconds, return to the main function to continue sampling and calculate the checksum on the warning line again.

当校验和不为零时执行获取指尖位置的函数。方法是从第一行开始计算每一行1920个元素的校验和当计算到1920个元素的第i个元素时,校验和开始不为零,则表明这一行有“物体”,而且“物体”就在这一行的第i个像素点,则将此时i的值存放到3行2列数组第一行的第1列中,当计算到第j行时全部1920个像素点的校验和都为零,则表明这一行没有“物体”也就是“物体”在第j-1行。则将j-1存放到3行2列数组第一行的第2列。然后数组行数加一指向数组的第二行。0.02秒的延迟之后再次采样,同样又得到一组代表“物体”横纵坐标的i和j-1将这两个数存放到数组第二行的第1列和第2列,数组行数再加一继续接收第三次采样数据。当数组行数等于三时3行2列的数组已经存满了,则开始进行判断操作类型机制,比较数组中的信息。Execute the function to get the fingertip position when the checksum is not zero. The method is to calculate the checksum of 1920 elements in each row starting from the first row. When the i-th element of the 1920 elements is calculated, the checksum is not zero at the beginning, indicating that there are "objects" in this row, and "objects" " is at the i-th pixel of this row, then store the value of i at this time in the first column of the first row of the 3-row, 2-column array, and check all 1920 pixels when the j-th row is calculated and are both zero, it means that there is no "object" in this line, that is, the "object" is in line j-1. Then store j-1 in the second column of the first row of the array of 3 rows and 2 columns. Then add one to the number of rows in the array to point to the second row of the array. After a delay of 0.02 seconds, sample again, and also get a set of i and j-1 representing the horizontal and vertical coordinates of the "object". Store these two numbers in the first and second columns of the second row of the array, and then the number of rows in the array Add one to continue receiving the third sampling data. When the number of rows in the array is equal to three, the array of 3 rows and 2 columns is full, and the mechanism for judging the operation type is started to compare the information in the array.

下面将结合附图3对判断操作类型机制做详细说明。The mechanism for judging the operation type will be described in detail below in conjunction with FIG. 3 .

当出现情况(2)时,说明物体已经到达触控位置,并开始折返,此时b2即为折返点,数组中第二行元素的信息就代表触控位置的坐标信息。此时则会将数组第二行代表触控位置横纵坐标信息的两个数据a2,b2分别存储到X,Y中,然后会去执行所述判断此次操作是否为双击的过程。When the situation (2) occurs, it means that the object has reached the touch position and starts to return. At this time, b2 is the return point, and the information of the second row element in the array represents the coordinate information of the touch position. At this time, the two data a2 and b2 representing the abscissa and ordinate information of the touch position in the second row of the array will be stored in X and Y respectively, and then the process of judging whether this operation is a double-click will be performed.

所述判断此次操作是否为双击的判断方式和判断“物体”是否出现情况(2)原理类似,是在限定时间内循环采样,将采样数据存放在3行2列的数组中,通过所述判断操作类型机制判断数组的第二列信息。The judging method for judging whether this operation is a double-click is similar to the principle of judging whether the "object" appears (2), which is to cyclically sample within a limited time, and store the sampled data in an array of 3 rows and 2 columns. The judging operation type mechanism judges the second column information of the array.

若在有限时间内出现情况(4)则说明“物体”在出现情况(2)的折返点后,在限定时间内出现反向折返的情况,即表明“物体”即将再次触控屏幕,则判定此次操作操作类型为双击,则会向CPU发送双击指令,位置信息在X,Y中。If the situation (4) occurs within a limited time, it means that the "object" will turn back within a limited time after the turning point of the situation (2), which means that the "object" is about to touch the screen again, and then judge If the operation type is double-click, a double-click instruction will be sent to the CPU, and the position information is in X, Y.

若在限定时间内没有出现情况(4),则限定时间截止后会判定此次操作操作类型为单击,则会向CPU发送单击指令,位置信息在X,Y中。在发送完单击或者双击的指令后,程序会返回主函数继续以50hz的采样频率计算警戒线上的校验和,至此完成全过程操作闭环。If the situation (4) does not occur within the limited time, after the limited time expires, it will be determined that the operation type is a click, and a click command will be sent to the CPU, and the position information is in X, Y. After sending the single-click or double-click command, the program will return to the main function and continue to calculate the checksum on the warning line at a sampling frequency of 50hz, thus completing the closed-loop operation of the whole process.

当出现情况(5)进行进一步判断。When situation (5) occurs, further judgment is made.

当出现情况(5.1)说明物体在进行鼠标右键操作。则会向CPU发送右键指令位置坐标在a1,b1(或a2,b2或a3,b3)中。When the situation (5.1) appears, it means that the object is performing the right mouse button operation. The position coordinates of the right button command will be sent to the CPU in a1, b1 (or a2, b2 or a3, b3).

当出现情况(5.2)说明物体在进行滚轮向上翻页的操作。则会向CPU发送向上翻页的操作。When the situation (5.2) appears, it means that the object is turning the scroll wheel up. It will send the page up operation to the CPU.

当出现情况(5.3)说明物体在进行滚轮向下翻页的操作。则会向CPU发送向下翻页的操作。When the situation (5.3) appears, it means that the object is turning the scroll wheel down. A page-down operation will be sent to the CPU.

判断完操作类型并发送完相应指令后,程序会返回主函数继续以50hz的采样频率计算警戒线上的校验和,至此完成全过程操作闭环。After judging the type of operation and sending the corresponding command, the program will return to the main function and continue to calculate the checksum on the warning line at a sampling frequency of 50hz, thus completing the closed-loop operation of the whole process.

若没有出现情况(2)或情况(5),则会将数组中第二行数据挪到第一行,将第三行数据挪到第二行,空出第三行,同时数组行数减1,表明第三行可以用来接收新一次的采样数据,经下次采样后数组行数再次加一以后再次等于三,则继续执行判断操作类型机制。直至出现情况(2)或情况(5)。If case (2) or case (5) does not occur, the data in the second row in the array will be moved to the first row, the data in the third row will be moved to the second row, and the third row will be vacated, and the number of rows in the array will be reduced 1, indicating that the third row can be used to receive a new sampling data. After the next sampling, the number of rows in the array is increased by one and equal to three again, and then the mechanism for judging the operation type will continue. Until situation (2) or situation (5) occurs.

下面将结合附图2对光学成像系统设计做详细说明。The design of the optical imaging system will be described in detail below in conjunction with FIG. 2 .

如图2所示光学成像系统设计图。所述光学成像系统的设计由一个可以夹在笔记本电脑屏幕摄像头位置上的固定夹,以及可以通过螺纹的方式或磁力的方式与固定夹结合的光学结构组件组成。所述固定夹的其中一个夹持面上面有一个圆形过孔。所述圆形过孔用以辅助使用者判断固定夹夹持位置是否正确。所述圆形过孔即为笔记本电脑摄像头与光学组件连接的光路孔。The design diagram of the optical imaging system is shown in Figure 2. The design of the optical imaging system consists of a fixed clip that can be clamped at the position of the camera on the screen of the laptop computer, and an optical structural component that can be combined with the fixed clip by screw thread or magnetic force. A circular through hole is formed on one of the clamping surfaces of the fixing clip. The circular through hole is used to assist the user to judge whether the clamping position of the fixing clip is correct. The circular via hole is the optical path hole for connecting the camera of the notebook computer with the optical component.

光学组件主体由3个倾斜45度的平面镜以及观测视角为160度的广角镜头组成。平面镜1位于笔记本电脑摄像头正前方,且与电脑屏幕平面成45度夹角,作用是将电脑摄像头视野方向转成平行于屏幕方向向上。平面镜2位于平面镜1沿屏幕方向向上,且与平面镜1平行。作用是将电脑摄像头视野方向转回垂直于电脑屏幕方向。平面镜3位于平面镜2沿垂直于屏幕方向向前,且与平面镜2垂直。作用是将电脑摄像头视野方向转成平行于屏幕方向向下。广角镜头位于平面镜3沿平行于屏幕方向向下,作用是增大观测视角。平面镜1和平面镜2的作用类似于潜望镜,相当于抬升摄像头的高度,平面镜3的作用是将摄像头的观测范围转折90度由垂直于电脑屏幕方向,转为平行于电脑屏幕方向向下,广角镜头用于增大观测视角。平面镜1与平面镜2之间的距离取决于广角镜头的观测角度的选择,广角镜头的观测角角度越大,则平面镜1与平面镜2之间的距离也就越短。平面镜2与平面镜3之间的距离是为了使摄像头视野方向与屏幕平面成一定夹角,便于后续对触控位置的识别。The main body of the optical component is composed of three flat mirrors inclined at 45 degrees and a wide-angle lens with a viewing angle of 160 degrees. The plane mirror 1 is positioned at the front of the camera of the notebook computer, and forms an angle of 45 degrees with the plane of the computer screen. The plane mirror 2 is located upward along the screen direction of the plane mirror 1 and is parallel to the plane mirror 1 . The function is to turn the direction of view of the computer camera back to be perpendicular to the direction of the computer screen. The plane mirror 3 is located forward of the plane mirror 2 along a direction perpendicular to the screen, and is perpendicular to the plane mirror 2 . The function is to turn the direction of view of the computer camera to be parallel to the direction of the screen and downward. The wide-angle lens is located at the plane mirror 3 and is parallel to the screen downwards, and the effect is to increase the viewing angle of view. The function of plane mirror 1 and plane mirror 2 is similar to that of a periscope, which is equivalent to raising the height of the camera. The function of plane mirror 3 is to turn the observation range of the camera by 90 degrees from perpendicular to the direction of the computer screen to downward parallel to the direction of the computer screen. Wide-angle lens is used to increase the viewing angle. The distance between the plane mirror 1 and the plane mirror 2 depends on the selection of the observation angle of the wide-angle lens. The larger the observation angle of the wide-angle lens, the shorter the distance between the plane mirror 1 and the plane mirror 2. The distance between the plane mirror 2 and the plane mirror 3 is to make the viewing direction of the camera form a certain angle with the screen plane, so as to facilitate subsequent recognition of the touch position.

在本说明书的描述中,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner.

以上所述,仅为本发明专利在笔记本电脑屏幕上较佳的具体实施方式,但本发明专利的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明专利揭露的技术范围内,根据本发明专利的技术方案及其构思加以等同替换或改变,都应涵盖在本发明专利的保护范围之内。The above is only a preferred specific implementation of the patent of the present invention on the screen of a notebook computer, but the scope of protection of the patent of the present invention is not limited thereto. Within the scope of the invention patent, equivalent replacements or changes based on the technical solutions and concepts of the invention patent shall be covered within the scope of protection of the invention patent.

Claims (6)

1. The optical imaging system for simulating the touch screen is characterized by comprising an optical imaging component, an image preprocessing module, a checksum calculation module on a warning line, a fingertip position acquisition module, an operation type judging mechanism, an operation executing module and a sampling start line number rollback mechanism module in the next sampling;
the optical imaging assembly consists of a fixing clamp which can be clamped at the position of a notebook computer screen camera, and an optical structure assembly which can be combined with the fixing clamp in a threaded mode or a magnetic mode;
in the image preprocessing module, a CPU (Central processing Unit) invokes a camera picture once at regular intervals, namely, samples once; the information of the corresponding color corresponding to the position of the pixel point which is originally required to be represented by a 24-bit storage space is represented by 1 bit;
in the checksum calculation module on the warning line, no skin color approximate color or color which is selected as the main body color of the touch pen is in the observation range of the camera in the initial state, so that the output values of all pixel points in the visual field range of the camera are zero after the preprocessing process, when a finger or the touch pen enters the observation range of the camera, the checksum of 1920 pixel elements in the first row at the top of the visual field is firstly not zero, the 1920 pixel points in the first row are warning lines, the result of the warning line checksum is a criterion for controlling a screen by a finger or not, and if the checksum is zero, no finger extends; when the checksum on the warning line is non-zero, the fingertip position identification and the operation type identification are started; otherwise, continuing to sample the next time after the delay of 0.02 seconds, and continuing to judge whether the checksum on the warning line is zero;
in the fingertip position acquisition module, firstly, transmitting a value of k to j, starting to calculate a checksum of an element in a j line, initializing k to 1, wherein j is the number of pixel lines of a display screen, the maximum value is 1080, recording the value of i when the checksum is not zero when the element in the j line is calculated, i is the number of pixel lines of the display screen, initializing 1 when the checksum in each line is calculated, the maximum value is 1920, and then calculating the checksum of the j+1th line; when the checksum of all 1920 elements in the j row is calculated to be still 0, the j row is represented that the object with the color within the tolerance range is not existed temporarily, and the value of j-1 is recorded; at this time, the value in i and the value in j-1 represent the x coordinate and the y coordinate of the current position of the 'object', the two values are stored in the first row of the 3 row and 2 column array, and then the row of the array is added with a value representing the next row pointing to the array for storing the x coordinate and the y coordinate of the position of the object when the next sampling is performed;
in the sampling start line number rollback mechanism module in the next sampling, storing an x coordinate and a y coordinate of a current position of an object in a 3-line 2-column array in each sampling, and then assigning a value of j-20 to k as a line number started in the next sampling;
in the judging operation type mechanism and the executing operation module, when the number of the array lines is equal to 3, the array lines of 3 lines and 2 columns are indicated to be full, and then the executing operation type mechanism is started to judge the elements in the array lines of 3 lines and 2 columns.
2. The optical imaging system for simulating a touch screen according to claim 1, wherein in the determining operation type mechanism and the executing operation module, a first column data of each row of the array is denoted by a1, a2, a3, and a second column data of each row of the array is denoted by b1, b2, b3, respectively, and the determining operation type mechanism is as follows:
(1) When b1< b2< b3, it is stated that the object is also moving forward;
(2) When b1< b2 and b3< b2, it indicates that the object has reached the touch position and starts turning back, at this time, b2 is a turning back point, and the information a2, b2 of the second row element in the array represents the coordinate information of the touch position, at this time, it needs to determine whether the operation is double-click or not;
(2.1) judging that the operation type is double-click when the situation (4) occurs within a limited time;
(2.2) judging the operation type of the operation is a click if no condition (4) occurs within a limited time;
(3) When b1> b2> b3, it is indicated that the object is far away;
(4) When b1> b2 and b3> b2, indicating that the object starts turning back reversely, and preparing for touching the screen again;
(5) Further judgment is made when b1=b2=b3;
(5.1) when a1=a2=a3, explaining that the object is performing a right mouse button operation;
(5.2) when a1< a2< a3 or a1> a2> a3, explaining that the object is performing the operation of turning up the page by the wheel;
(5.3) when a1> a2> a3 or a1< a2< a3, explaining that the object is performing the scroll-down operation;
after the situation (2) occurs, two data a2 and b2 of the touch position abscissa information represented by the second row of the array are respectively stored in X and Y, and then whether the operation is double-click or not is judged; the judging mode of judging whether the operation is double-click is similar to the principle of judging whether the condition (2) appears in the object or not, namely, circularly sampling in a limited time, storing sampling data in an array of 3 rows and 2 columns, judging the second column information of the array through a data comparison mechanism in the array, if the condition (4) appears in the limited time, indicating that the object is reversely turned back after a turning back point of the condition (2) appears, namely, indicating that the object is about to touch the screen again, judging that the operation type is double-click, sending a double-click instruction to a CPU, and ensuring that the position information is in X and Y; if the situation (4) does not appear in the limited time, judging that the operation type is clicking after the limited time is over, sending a clicking instruction to the CPU, and positioning information is in X and Y; after the single click or double click instruction is sent, the program returns the main function to continue calculating the checksum on the warning line at the sampling frequency of 50hz, and the whole process operation closed loop is completed;
further judging after the occurrence of the condition (5);
when a1=a2=a3, indicating that the object is performing right mouse button operation, sending a right button instruction position coordinate in a1, b1 or a2, b2 or a3, b3 to the CPU;
when a1< a2< a3 or a1> a2> a3 indicates that the object is in the upward page turning operation of the roller, the upward page turning operation is sent to the CPU;
when a1> a2> a3 or a1< a2< a3 indicates that the object is performing the downward page turning operation of the roller, the downward page turning operation is sent to the CPU;
after the instruction is sent, the program returns to the main function to calculate the checksum on the warning line continuously at the sampling frequency of 50hz, and the whole process operation closed loop is completed;
if the situation (2) is out of the situation (5), the data of the second row is assigned to the first row, the data of the third row is assigned to the second row, and the number of the array rows minus one represents that the position information of the 'object' acquired in the next sampling is stored in the third row of the array; and after the next sampling, the number of the array lines is increased by one again and then is equal to three, and then the closed loop for circularly sampling and judging the operation type is re-entered until the situation (2) or the situation (5) occurs.
3. An optical imaging system for simulating a touch screen according to claim 1 or 2, wherein the optical structural component comprises 3 plane mirrors inclined by 45 degrees and a wide-angle lens with an observation angle of 160 degrees, the plane mirror 1 is positioned right in front of a camera of a notebook computer and forms an included angle of 45 degrees with the plane of the computer screen, and is used for turning the view direction of the camera of the computer to be parallel to the screen direction upwards; the plane mirror 2 is positioned on the plane mirror 1 upwards along the screen direction and is parallel to the plane mirror 1, and is used for turning the view direction of the computer camera back to be perpendicular to the direction of the computer screen; the plane mirror 3 is located forward along the direction vertical to the screen of the plane mirror 2 and is vertical to the plane mirror 2, and is used for converting the visual field direction of the computer camera into a direction parallel to the screen to be downward, and the wide-angle lens is located downward along the direction parallel to the screen of the plane mirror 3, and is used for increasing the observation visual angle.
4. An optical imaging system for simulating a touch screen as claimed in claim 1 or 2, wherein a circular through hole is formed on one of the clamping surfaces of the fixing clamp, the circular through hole is used for assisting a user in judging whether the clamping position of the fixing clamp is correct, the circular through hole is an optical path hole for connecting a camera of a notebook computer with the optical component, and the fixing clamp and the optical component are separated, so that the situation that the clamping position of the fixing clamp is blocked to the camera improperly or the angle for connecting the camera with the optical component is deviated can be avoided.
5. An optical imaging system for simulating a touch screen according to claim 1 or 2, wherein in the image preprocessing module, selecting skin or stylus color as reference color, setting a tolerance range, outputting result 1 if the camera acquires color information of pixels of the screen within the tolerance range, and outputting result 0 if the camera does not within the tolerance range; the judging method is to read the corresponding memory address of the pixel point, take out 24bit positions representing the color information of the pixel point in the corresponding memory address, obtain the corresponding values of red, green and blue three primary colors in the 24bit positions in a bit operation mode, obtain the corresponding value range of RGB three primary colors according to the set reference color tolerance range, and judge whether the corresponding values of red, green and blue three primary colors in the 24bit positions of the pixel point are in the tolerance range so as to finish the judgment.
6. The optical imaging system for simulating a touch screen according to claim 1 or 2, wherein in the image preprocessing module, the sampling frequency is set manually, when the notebook computer camera works, a section of memory area is applied to the CPU for storing the acquired picture information, the first address of the applied memory area is represented by a pointer x p, for a computer with 1920 x 1080 resolution, the acquired data of the camera is 1920 x 1080 pixels, each pixel is encoded according to the encoding mode of RGB888, that is, each pixel needs 24 bits of storage space for storing the acquired color information.
CN201911080074.XA 2019-11-07 2019-11-07 Optical imaging system for simulating touch screen Active CN110989873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911080074.XA CN110989873B (en) 2019-11-07 2019-11-07 Optical imaging system for simulating touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911080074.XA CN110989873B (en) 2019-11-07 2019-11-07 Optical imaging system for simulating touch screen

Publications (2)

Publication Number Publication Date
CN110989873A CN110989873A (en) 2020-04-10
CN110989873B true CN110989873B (en) 2023-06-27

Family

ID=70083393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911080074.XA Active CN110989873B (en) 2019-11-07 2019-11-07 Optical imaging system for simulating touch screen

Country Status (1)

Country Link
CN (1) CN110989873B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726063B (en) * 2022-06-07 2022-09-16 无锡军工智能电气股份有限公司 Underground robot charging system and gear engagement control and protection method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200951771A (en) * 2008-06-11 2009-12-16 Univ Nat Taiwan Touch control virtual screen apparatus
CN102314301A (en) * 2010-06-30 2012-01-11 李子青 Virtual touch sensing system and method
CN103761011A (en) * 2013-06-04 2014-04-30 深圳先进技术研究院 Method, system and computing device of virtual touch screen
EP2978218A1 (en) * 2014-07-25 2016-01-27 Hiroyuki Ikeda Computer display device mounted on eyeglasses

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4771183B2 (en) * 2009-01-30 2011-09-14 株式会社デンソー Operating device
TWI471756B (en) * 2012-11-16 2015-02-01 Quanta Comp Inc Virtual touch method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200951771A (en) * 2008-06-11 2009-12-16 Univ Nat Taiwan Touch control virtual screen apparatus
CN102314301A (en) * 2010-06-30 2012-01-11 李子青 Virtual touch sensing system and method
CN103761011A (en) * 2013-06-04 2014-04-30 深圳先进技术研究院 Method, system and computing device of virtual touch screen
EP2978218A1 (en) * 2014-07-25 2016-01-27 Hiroyuki Ikeda Computer display device mounted on eyeglasses

Also Published As

Publication number Publication date
CN110989873A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
US8836649B2 (en) Information processing apparatus, information processing method, and program
CN112269529B (en) Method and apparatus for providing user interface
US9335860B2 (en) Information processing apparatus and information processing system
US10585581B2 (en) Controlling display object on display screen
WO2022057535A1 (en) Information display method and apparatus, and storage medium and electronic device
US20130219343A1 (en) Thumbnail-image selection of applications
US8830192B2 (en) Computing device for performing functions of multi-touch finger gesture and method of the same
EP3547218A1 (en) File processing device and method, and graphical user interface
US9229552B2 (en) System and method for synchronized operation of touch device
JP2010176332A (en) Information processing apparatus, information processing method, and program
KR20140046343A (en) Multi display device and method for controlling thereof
KR20040063153A (en) Method and apparatus for a gesture-based user interface
US20100097339A1 (en) Image processing apparatus, image processing method, and program
US20060197751A1 (en) Display control apparatus and control method thereof
CN108733296B (en) Method, device and equipment for erasing handwriting
WO2020259522A1 (en) Content searching method and related device, and computer-readable storage medium
EP2965181B1 (en) Enhanced canvas environments
WO2011018683A1 (en) System to highlight differences in thumbnail images, mobile phone including system, and method
CN114237419A (en) Display device and touch event identification method
CN103399629A (en) Method and device for capturing gesture displaying coordinates
CN110989873B (en) Optical imaging system for simulating touch screen
US20240187725A1 (en) Photographing method and electronic device
US20110037731A1 (en) Electronic device and operating method thereof
CN116795273A (en) Interactive screen display method, device, medium and electronic equipment
CN107391015B (en) Control method, device and equipment of intelligent tablet and storage medium

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