CN106933376B - A kind of scaling method of smooth projected keyboard - Google Patents

A kind of scaling method of smooth projected keyboard Download PDF

Info

Publication number
CN106933376B
CN106933376B CN201710177238.5A CN201710177238A CN106933376B CN 106933376 B CN106933376 B CN 106933376B CN 201710177238 A CN201710177238 A CN 201710177238A CN 106933376 B CN106933376 B CN 106933376B
Authority
CN
China
Prior art keywords
keyboard
keys
calibrated
coordinate data
image
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.)
Expired - Fee Related
Application number
CN201710177238.5A
Other languages
Chinese (zh)
Other versions
CN106933376A (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.)
Harbin Top Technology Co Ltd
Original Assignee
Harbin Top 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 Harbin Top Technology Co Ltd filed Critical Harbin Top Technology Co Ltd
Priority to CN201710177238.5A priority Critical patent/CN106933376B/en
Publication of CN106933376A publication Critical patent/CN106933376A/en
Application granted granted Critical
Publication of CN106933376B publication Critical patent/CN106933376B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device

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)
  • Input From Keyboards Or The Like (AREA)

Abstract

本发明公开了一种光投影键盘的标定方法,包括以下步骤:步骤1,获得参考键盘的所有按键的图像坐标数据;步骤2,获得位于待标定键盘的四个顶点按键的图像坐标数据;步骤3,利用仿射变换获得待标定键盘除去四个顶点按键的其他按键的图像坐标数据;步骤4,利用标定摄像头的内部参数、畸变和外部参数以及待标定光投影键盘的所有按键的图像坐标得到待标定光投影键盘的所有按键的键盘位置坐标信息;步骤5,将键盘位置坐标信息存储到存储器完成光投影键盘的标定。本发明光投影键盘的标定方法速度快,效率高,适合进行批量标定,解决了手动标定光投影键盘需要手动确定待标定键盘所有按键的图像坐标数据,重复操作,劳动量大的问题。

The invention discloses a calibration method for a light projection keyboard, comprising the following steps: step 1, obtaining image coordinate data of all keys of the reference keyboard; step 2, obtaining image coordinate data of four vertex keys located on the keyboard to be calibrated; step 3. Use affine transformation to obtain the image coordinate data of the other keys of the keyboard to be calibrated except for the four vertex keys; Step 4, use the internal parameters, distortion and external parameters of the calibration camera and the image coordinates of all the keys of the light projection keyboard to be calibrated to obtain The keyboard position coordinate information of all keys of the light projection keyboard to be calibrated; step 5, storing the keyboard position coordinate information in the memory to complete the calibration of the light projection keyboard. The calibration method of the optical projection keyboard of the present invention has high speed and high efficiency, is suitable for batch calibration, and solves the problem of manually determining the image coordinate data of all keys of the keyboard to be calibrated, repeated operations, and heavy labor for manual calibration of the optical projection keyboard.

Description

一种光投影键盘的标定方法A Calibration Method for Optical Projection Keyboard

技术领域technical field

本发明属于光投影键盘技术领域,特别是涉及一种光投影键盘的标定方法。The invention belongs to the technical field of optical projection keyboards, in particular to a calibration method for optical projection keyboards.

背景技术Background technique

键盘是电子类设备最常用的输入装置之一,它广泛应用于计算机、电子仪器和各种终端设备上。键盘是最常用也是最主要的输入设备,通过键盘可以将英文字母、数字、标点符号等输入到计算机中,从而向计算机发出命令、输入数据等。The keyboard is one of the most commonly used input devices for electronic equipment, and it is widely used in computers, electronic instruments and various terminal equipment. The keyboard is the most commonly used and most important input device, through which English letters, numbers, punctuation marks, etc. can be input into the computer, so as to issue commands and input data to the computer.

为了解决传统实体键盘体积过大、不易携带与放置、容易吸纳灰尘不易清洁,以及使用过度容易损坏等问题,设备生产厂家研发出了虚拟激光键盘(Virtual LaserKeyboard),虚拟激光键盘硬件主要由3部分组成,即摄像头、键盘投影模组和红外线激光发射器。键盘投影模组的作用是向桌面投射激光键盘,红外线激光发射器是投射平行于桌面或与桌面成一定角度的红外光,摄像头的作用是采集手指的位置信息。当人的手指按到键盘投影模组投影到桌面上的键盘时,摄像头拍摄红外线激光发射器投射到手指上的红外光。虚拟激光键盘在出厂时需要将键盘投影模组投影到桌面上的键盘的每一个按键坐标存储到存储器里,这样当人的手指按到键盘投影模组投影到桌面上的键盘按键时,摄像头拍摄到红外线激光发射器投射到人手指的光斑信息,并计算出相应的光斑位置坐标,这样根据摄像头采集到的坐标信息与我们之前存储到存储器里的按键信息相对比,会确定出用户具体按下了哪一个按键。目前获取每一个按键坐标的方式靠人工手动完成,需要用户确定键盘所有键位的位置,工作重复性大并且容易出现误差或错误。In order to solve the problems that the traditional physical keyboard is too large, difficult to carry and place, easy to absorb dust and difficult to clean, and easy to be damaged by excessive use, the equipment manufacturer has developed a virtual laser keyboard (Virtual LaserKeyboard). The virtual laser keyboard hardware mainly consists of 3 parts. Composition, that is, camera, keyboard projection module and infrared laser transmitter. The function of the keyboard projection module is to project the laser keyboard to the desktop, the infrared laser emitter is to project infrared light parallel to the desktop or at a certain angle with the desktop, and the function of the camera is to collect the position information of the fingers. When a person's finger presses the keyboard projected by the keyboard projection module to the keyboard on the desktop, the camera shoots the infrared light projected on the finger by the infrared laser emitter. When the virtual laser keyboard leaves the factory, each key coordinate of the keyboard projected by the keyboard projection module on the desktop needs to be stored in the memory, so that when a person's finger presses the keyboard key projected by the keyboard projection module on the desktop, the camera will shoot To the spot information projected by the infrared laser transmitter to the human finger, and calculate the corresponding spot position coordinates, so that according to the coordinate information collected by the camera compared with the button information we stored in the memory before, it will be determined that the user specifically pressed Which key was pressed. At present, the method of obtaining the coordinates of each key is manually completed, requiring the user to determine the positions of all keys on the keyboard, which is highly repetitive and prone to errors or mistakes.

发明内容Contents of the invention

本发明的目的是提供一种光投影键盘的标定方法,以解决人工手动标定光投影键盘存在的标定效率低耗时长,以及容易出现标定错误的问题。The purpose of the present invention is to provide a method for calibrating an optical projection keyboard, so as to solve the problems of low calibration efficiency and long time consumption in manual calibration of an optical projection keyboard, and prone to calibration errors.

本发明解决上述技术问题的技术方案如下:一种光投影键盘的标定方法,包括以下步骤:The technical solution of the present invention to solve the above-mentioned technical problems is as follows: a method for calibrating an optical projection keyboard, comprising the following steps:

步骤1,利用标定摄像头获得参考光投影键盘样机的参考键盘照片,处理参考键盘照片获得参考键盘的四个顶点按键的图像坐标数据以及其他按键的图像坐标数据;Step 1, use the calibration camera to obtain the reference keyboard photo of the reference light projection keyboard prototype, process the reference keyboard photo to obtain the image coordinate data of the four vertex keys of the reference keyboard and the image coordinate data of other keys;

步骤2,利用标定摄像头获得待标定光投影键盘的待标定键盘照片,处理待标定键盘照片获得位于待标定键盘的四个顶点按键的图像坐标数据;Step 2, using the calibration camera to obtain the photo of the keyboard to be calibrated for the light projection keyboard to be calibrated, and processing the photo of the keyboard to be calibrated to obtain the image coordinate data of the four vertex keys located on the keyboard to be calibrated;

步骤3,基于参考键盘的四个顶点按键的图像坐标数据和其他按键的图像坐标数据,以及待标定键盘的四个顶点按键的图像坐标数据,利用仿射变换获得待标定键盘除去四个顶点按键的其他按键的图像坐标数据;Step 3, based on the image coordinate data of the four vertex keys of the reference keyboard and the image coordinate data of other keys, and the image coordinate data of the four vertex keys of the keyboard to be calibrated, use affine transformation to obtain the keyboard to be calibrated except for the four vertex keys The image coordinate data of the other buttons of ;

步骤4,利用标定摄像头的内部参数、畸变和外部参数以及待标定光投影键盘的所有按键的图像坐标得到待标定光投影键盘的所有按键的第一世界坐标数据;所述待标定光投影键盘的所有按键的第一世界坐标数据作为键盘位置坐标信息;Step 4, using the internal parameters, distortion and external parameters of the calibration camera and the image coordinates of all the keys of the light projection keyboard to be calibrated to obtain the first world coordinate data of all the keys of the light projection keyboard to be calibrated; The first world coordinate data of all keys is used as the keyboard position coordinate information;

步骤5,将键盘位置坐标信息存储到存储器完成光投影键盘的标定。Step 5, storing the coordinate information of the keyboard position into the memory to complete the calibration of the light projection keyboard.

本发明如上所述的光投影键盘的标定方法,优选的,所述光投影键盘包括:键盘投影模组、红外线激光发射器、设备摄像头、存储器和处理器;所述键盘投影模组用于向操作面投射虚拟键盘;所述红外线激光发射器用于投射覆盖所述虚拟键盘区域的红外线;所述设备摄像头用于采集所述虚拟键盘区域的红外线图像并将所述图像传输至处理器;所述存储器用于存储键盘位置坐标信息;所述处理器用于处理设备摄像头采集的红外线图像以获取红外图像中使用者手指所反射的光斑的坐标信息;并将所述坐标信息与存储器内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息内容。In the calibration method of the optical projection keyboard as described above in the present invention, preferably, the optical projection keyboard includes: a keyboard projection module, an infrared laser emitter, a device camera, a memory, and a processor; the keyboard projection module is used to The operating surface projects a virtual keyboard; the infrared laser emitter is used to project infrared rays covering the virtual keyboard area; the device camera is used to collect infrared images of the virtual keyboard area and transmit the images to the processor; the The memory is used to store the coordinate information of the keyboard position; the processor is used to process the infrared image collected by the camera of the device to obtain the coordinate information of the light spot reflected by the user's finger in the infrared image; and combine the coordinate information with the keyboard position prestored in the memory The coordinate information is compared to confirm the content of the information input by the user.

更优选的,处理器获取红外图像中使用者手指所反射的光斑的坐标信息的具体过程为:所述处理器利用设备摄像头的内部参数、畸变和外部参数将使用者手指所反射的光斑的图像坐标转换为第一世界坐标,将所述第一世界坐标与存储器内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息内容。More preferably, the specific process for the processor to obtain the coordinate information of the light spot reflected by the user's finger in the infrared image is: the processor uses the internal parameters, distortion and external parameters of the device camera to convert the image of the light spot reflected by the user's finger to The coordinates are converted into first world coordinates, and the first world coordinates are compared with the keyboard position coordinate information prestored in the memory to confirm the information input by the user.

本发明如上所述的光投影键盘的标定方法,优选的,步骤4中还包括:利用变换矩阵将第一世界坐标数据转换为第二世界坐标数据;所述第一世界坐标所在的平面为水平面,所述第二世界坐标所在的平面与水平面夹角在零度至五度之间;将待标定光投影键盘的所有按键的第二世界坐标数据为键盘位置坐标信息。In the method for calibrating a light projection keyboard as described above in the present invention, preferably, step 4 further includes: using a transformation matrix to convert the first world coordinate data into second world coordinate data; the plane where the first world coordinate is located is a horizontal plane , the angle between the plane where the second world coordinates are located and the horizontal plane is between zero degrees and five degrees; the second world coordinate data of all keys of the light projection keyboard to be calibrated is the keyboard position coordinate information.

更优选的,处理器获取红外图像中使用者手指所反射的光斑的坐标信息的具体过程为:所述处理器利用设备摄像头的内部参数、畸变和外部参数将使用者手指所反射的光斑的图像坐标转换为第一世界坐标,利用变换矩阵将第一世界坐标转换为第二世界坐标;将所述第二世界坐标与存储器内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息。More preferably, the specific process for the processor to obtain the coordinate information of the light spot reflected by the user's finger in the infrared image is: the processor uses the internal parameters, distortion and external parameters of the device camera to convert the image of the light spot reflected by the user's finger to The coordinates are transformed into the first world coordinates, and the transformation matrix is used to convert the first world coordinates into the second world coordinates; the second world coordinates are compared with the keyboard position coordinate information pre-stored in the memory to confirm the information input by the user.

本发明的有益效果是:The beneficial effects of the present invention are:

利用本发明方法进行光投影键盘标定只需要利用标定摄像头获得参考光投影键盘样机的参考键盘照片,处理参考键盘照片获得参考键盘的四个顶点按键的图像坐标数据以及其他按键的图像坐标数据;对于同一批次的光投影键盘,此数据可以重复利用。对于待标定光投影键盘只需要获得位于待标定键盘的四个顶点按键的图像坐标数据,解决了人工手动标定光投影键盘需要手动确定待标定键盘所有按键的图像坐标数据,重复操作,劳动量大,无法进行光投影键盘批量标定的问题。Using the method of the present invention to calibrate the light projection keyboard only needs to use the calibration camera to obtain the reference keyboard photo of the reference light projection keyboard prototype, and process the reference keyboard photo to obtain the image coordinate data of the four vertex keys of the reference keyboard and the image coordinate data of other keys; This data can be reused for the same batch of light projection keyboards. For the light projection keyboard to be calibrated, it is only necessary to obtain the image coordinate data of the four vertex keys located on the keyboard to be calibrated, which solves the problem of manual calibration of the light projection keyboard, which requires manual determination of the image coordinate data of all the keys of the keyboard to be calibrated, repeated operations, and a large amount of labor. , the problem that batch calibration of optical projection keyboards cannot be performed.

附图说明Description of drawings

通过结合以下附图所作的详细描述,本发明的上述和/或其他方面和优点将变得更清楚和更容易理解,这些附图只是示意性的,并不限制本发明,其中:The above and/or other aspects and advantages of the present invention will become clearer and easier to understand through the detailed description made in conjunction with the following drawings, which are only schematic and do not limit the present invention, wherein:

图1为本发明一种实施例的光投影键盘的标定方法的流程示意图;Fig. 1 is a schematic flow chart of a calibration method of an optical projection keyboard according to an embodiment of the present invention;

图2为本发明一种实施例的光投影键盘示意图;Fig. 2 is a schematic diagram of an optical projection keyboard according to an embodiment of the present invention;

图3为本发明第一种实施例的光投影键盘键位示意图;Fig. 3 is a schematic diagram of key positions of an optical projection keyboard according to the first embodiment of the present invention;

图4为本发明第二种实施例的光投影键盘键位示意图。Fig. 4 is a schematic diagram of keys of the light projection keyboard according to the second embodiment of the present invention.

附图中,各标号所代表的部件列表如下:In the accompanying drawings, the list of parts represented by each label is as follows:

1、光投影键盘,2、键盘投影模组,3、红外线激光发射器,4、设备摄像头,5、存储器,6、处理器。1. Optical projection keyboard, 2. Keyboard projection module, 3. Infrared laser transmitter, 4. Equipment camera, 5. Memory, 6. Processor.

具体实施方式Detailed ways

在下文中,将参照附图描述本发明的光投影键盘的标定方法的实施例。Hereinafter, embodiments of the calibration method of the light projection keyboard of the present invention will be described with reference to the accompanying drawings.

在此记载的实施例为本发明的特定的具体实施方式,用于说明本发明的构思,均是解释性和示例性的,不应解释为对本发明实施方式及本发明范围的限制。除在此记载的实施例外,本领域技术人员还能够基于本申请权利要求书和说明书所公开的内容采用显而易见的其它技术方案,这些技术方案包括采用对在此记载的实施例的做出任何显而易见的替换和修改的技术方案。The examples described here are specific specific implementations of the present invention, and are used to illustrate the concept of the present invention. They are all explanatory and exemplary, and should not be construed as limiting the implementation of the present invention and the scope of the present invention. In addition to the embodiments described here, those skilled in the art can also adopt other obvious technical solutions based on the claims of the application and the contents disclosed in the description, and these technical solutions include adopting any obvious changes made to the embodiments described here. Replacement and modified technical solutions.

本说明书的附图为示意图,辅助说明本发明的构思,示意性地表示各部分的形状及其相互关系。请注意,为了便于清楚地表现出本发明实施例的各部件的结构,各附图之间并未按照相同的比例绘制。相同的参考标记用于表示相同的部分。The accompanying drawings in this specification are schematic diagrams, which assist in explaining the concept of the present invention, and schematically represent the shapes of various parts and their interrelationships. Please note that in order to clearly show the structures of the components in the embodiments of the present invention, the drawings are not drawn in the same scale. The same reference numerals are used to designate the same parts.

实施例1Example 1

结合图1和图2说明本发明一种实施例的光投影键盘的标定方法,所述光投影键盘1包括:键盘投影模组2、红外线激光发射器3、设备摄像头4、存储器5和处理器6;所述键盘投影模组2用于向操作面投射虚拟键盘;所述红外线激光发射器3用于投射覆盖所述虚拟键盘区域的红外线;所述设备摄像头4用于采集所述虚拟键盘区域的红外线图像并将所述图像传输至处理器6;所述存储器5用于存储键盘位置坐标信息;所述处理器6用于处理设备摄像头4采集的红外线图像以获取红外图像中使用者手指所反射的光斑的坐标信息;并将所述坐标信息与存储器5内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息内容。A method for calibrating an optical projection keyboard according to an embodiment of the present invention is described in conjunction with FIG. 1 and FIG. 2. The optical projection keyboard 1 includes: a keyboard projection module 2, an infrared laser emitter 3, a device camera 4, a memory 5 and a processor 6; the keyboard projection module 2 is used to project a virtual keyboard to the operation surface; the infrared laser emitter 3 is used to project infrared rays covering the virtual keyboard area; the device camera 4 is used to collect the virtual keyboard area The infrared image and transmit the image to the processor 6; the memory 5 is used to store the coordinate information of the keyboard position; The coordinate information of the reflected light spot; and compare the coordinate information with the keyboard position coordinate information pre-stored in the memory 5 to confirm the information input by the user.

光投影键盘的标定方法包括以下步骤:The calibration method of the optical projection keyboard includes the following steps:

步骤1,利用标定摄像头获得参考光投影键盘1样机的参考键盘照片,处理参考键盘照片获得参考键盘的四个顶点按键的图像坐标数据以及其他按键的图像坐标数据;Step 1, use the calibration camera to obtain the reference keyboard photo of the reference light projection keyboard 1 prototype, process the reference keyboard photo to obtain the image coordinate data of the four vertex keys of the reference keyboard and the image coordinate data of other keys;

在一种实施例中,图像坐标数据为一图像平面坐标值,根据所有按键的图像坐标数据计算确定每一按键所对应的图像区域。如图3所示,这种键盘键位相互邻接,确定按键的图像坐标数据为(x,y),其中x为某一按键左上角顶点的横坐标,y为该按键左上角顶点的纵坐标;。In one embodiment, the image coordinate data is an image plane coordinate value, and the image area corresponding to each button is calculated and determined according to the image coordinate data of all buttons. As shown in Figure 3, the keyboard keys are adjacent to each other, and the image coordinate data of the key is determined to be (x, y), where x is the abscissa of the vertex of the upper left corner of a certain key, and y is the ordinate of the vertex of the upper left corner of the key ;.

在另一种实施例中,如图4所示,按图像坐标数据包括一图像平面坐标值和一组长宽值。如图4所示,这种键盘键位之间相隔一定间隙,确定按键的图像坐标数据为(x,y),(a,b),其中x为某一按键左上角顶点的横坐标,y为该按键左上角顶点的纵坐标;a为每一按键的长度,b为每一按键的高度。In another embodiment, as shown in FIG. 4 , the image coordinate data includes an image plane coordinate value and a set of length and width values. As shown in Figure 4, there is a certain gap between the keys of this keyboard, and the image coordinate data of the determined keys are (x, y), (a, b), where x is the abscissa of the vertex of the upper left corner of a certain key, and y is the ordinate of the top left corner of the button; a is the length of each button, and b is the height of each button.

步骤2,利用标定摄像头获得待标定光投影键盘1的待标定键盘照片,处理待标定键盘照片获得位于待标定键盘的四个顶点按键的图像坐标数据;Step 2, using the calibration camera to obtain the photo of the keyboard to be calibrated of the light projection keyboard 1 to be calibrated, and processing the photo of the keyboard to be calibrated to obtain the image coordinate data of the four vertex keys located on the keyboard to be calibrated;

步骤3,基于参考键盘的四个顶点按键的图像坐标数据和其他按键的图像坐标数据,以及待标定键盘的四个顶点按键的图像坐标数据,利用仿射变换获得待标定键盘除去四个顶点按键的其他按键的图像坐标数据;Step 3, based on the image coordinate data of the four vertex keys of the reference keyboard and the image coordinate data of other keys, and the image coordinate data of the four vertex keys of the keyboard to be calibrated, use affine transformation to obtain the keyboard to be calibrated except for the four vertex keys The image coordinate data of the other buttons of ;

步骤4,利用标定摄像头的内部参数、畸变和外部参数以及待标定光投影键盘1的所有按键的图像坐标得到待标定光投影键盘1的所有按键的第一世界坐标数据;所述待标定光投影键盘1的所有按键的第一世界坐标数据作为键盘位置坐标信息;Step 4, using the internal parameters, distortion and external parameters of the calibration camera and the image coordinates of all the keys of the light projection keyboard 1 to be calibrated to obtain the first world coordinate data of all the keys of the light projection keyboard 1 to be calibrated; the light projection to be calibrated The first world coordinate data of all keys of the keyboard 1 is used as the keyboard position coordinate information;

步骤5,将键盘位置坐标信息存储到存储器5完成光投影键盘1的标定。Step 5, storing the coordinate information of the keyboard position in the memory 5 to complete the calibration of the light projection keyboard 1 .

在优选的实施例中,处理器6获取红外图像中使用者手指所反射的光斑的坐标信息的具体过程为:所述处理器6利用设备摄像头4的内部参数、畸变和外部参数将使用者手指所反射的光斑的图像坐标转换为第一世界坐标,将所述第一世界坐标与存储器5内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息内容。In a preferred embodiment, the specific process for the processor 6 to obtain the coordinate information of the light spot reflected by the user's finger in the infrared image is: the processor 6 uses the internal parameters, distortion and external parameters of the device camera 4 to convert the user's finger The image coordinates of the reflected light spots are converted into first world coordinates, and the first world coordinates are compared with the keyboard position coordinate information pre-stored in the memory 5 to confirm the information input by the user.

实施例2Example 2

结合图1和图2说明本发明一种实施例的光投影键盘的标定方法,所述光投影键盘1包括:键盘投影模组2、红外线激光发射器3、设备摄像头4、存储器5和处理器6;所述键盘投影模组2用于向操作面投射虚拟键盘;所述红外线激光发射器3用于投射覆盖所述虚拟键盘区域的红外线;所述设备摄像头4用于采集所述虚拟键盘区域的红外线图像并将所述图像传输至处理器6;所述存储器5用于存储键盘位置坐标信息;所述处理器6用于处理设备摄像头4采集的红外线图像以获取红外图像中使用者手指所反射的光斑的坐标信息;并将所述坐标信息与存储器5内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息内容。在优选的实施例中,处理器6获取红外图像中使用者手指所反射的光斑的坐标信息的具体过程为:所述处理器6利用设备摄像头4的内部参数、畸变和外部参数将使用者手指所反射的光斑的图像坐标转换为第一世界坐标,将所述第一世界坐标与存储器5内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息内容。A method for calibrating an optical projection keyboard according to an embodiment of the present invention is described in conjunction with FIG. 1 and FIG. 2. The optical projection keyboard 1 includes: a keyboard projection module 2, an infrared laser emitter 3, a device camera 4, a memory 5 and a processor 6; the keyboard projection module 2 is used to project a virtual keyboard to the operation surface; the infrared laser emitter 3 is used to project infrared rays covering the virtual keyboard area; the device camera 4 is used to collect the virtual keyboard area The infrared image and transmit the image to the processor 6; the memory 5 is used to store the coordinate information of the keyboard position; The coordinate information of the reflected light spot; and compare the coordinate information with the keyboard position coordinate information pre-stored in the memory 5 to confirm the information input by the user. In a preferred embodiment, the specific process for the processor 6 to obtain the coordinate information of the light spot reflected by the user's finger in the infrared image is: the processor 6 uses the internal parameters, distortion and external parameters of the device camera 4 to convert the user's finger The image coordinates of the reflected light spots are converted into first world coordinates, and the first world coordinates are compared with the keyboard position coordinate information pre-stored in the memory 5 to confirm the information input by the user.

光投影键盘的标定方法包括以下步骤:The calibration method of the optical projection keyboard includes the following steps:

步骤1,利用标定摄像头获得参考光投影键盘1样机的参考键盘照片,处理参考键盘照片获得参考键盘的四个顶点按键的图像坐标数据以及其他按键的图像坐标数据;Step 1, use the calibration camera to obtain the reference keyboard photo of the reference light projection keyboard 1 prototype, process the reference keyboard photo to obtain the image coordinate data of the four vertex keys of the reference keyboard and the image coordinate data of other keys;

步骤2,利用标定摄像头获得待标定光投影键盘1的待标定键盘照片,处理待标定键盘照片获得位于待标定键盘的四个顶点按键的图像坐标数据;Step 2, using the calibration camera to obtain the photo of the keyboard to be calibrated of the light projection keyboard 1 to be calibrated, and processing the photo of the keyboard to be calibrated to obtain the image coordinate data of the four vertex keys located on the keyboard to be calibrated;

步骤3,基于参考键盘的四个顶点按键的图像坐标数据和其他按键的图像坐标数据,以及待标定键盘的四个顶点按键的图像坐标数据,利用仿射变换获得待标定键盘除去四个顶点按键的其他按键的图像坐标数据;Step 3, based on the image coordinate data of the four vertex keys of the reference keyboard and the image coordinate data of other keys, and the image coordinate data of the four vertex keys of the keyboard to be calibrated, use affine transformation to obtain the keyboard to be calibrated except for the four vertex keys The image coordinate data of the other buttons of ;

步骤4,利用标定摄像头的内部参数、畸变和外部参数以及待标定光投影键盘1的所有按键的图像坐标得到待标定光投影键盘1的所有按键的第一世界坐标数据;所述待标定光投影键盘1的所有按键的第一世界坐标数据作为键盘位置坐标信息;在本实施例中步骤4中还包括:利用变换矩阵将第一世界坐标数据转换为第二世界坐标数据;所述第一世界坐标所在的平面为水平面,所述第二世界坐标所在的平面与水平面夹角在零度至五度之间;将待标定光投影键盘1的所有按键的第二世界坐标数据为键盘位置坐标信息。Step 4, using the internal parameters, distortion and external parameters of the calibration camera and the image coordinates of all the keys of the light projection keyboard 1 to be calibrated to obtain the first world coordinate data of all the keys of the light projection keyboard 1 to be calibrated; the light projection to be calibrated The first world coordinate data of all keys of the keyboard 1 is used as the keyboard position coordinate information; in the present embodiment, step 4 also includes: using the transformation matrix to convert the first world coordinate data into the second world coordinate data; the first world The plane where the coordinates are located is a horizontal plane, and the angle between the plane where the second world coordinates is located and the horizontal plane is between zero degrees and five degrees; the second world coordinate data of all keys of the light projection keyboard 1 to be calibrated is the keyboard position coordinate information.

步骤5,将键盘位置坐标信息存储到存储器5完成光投影键盘1的标定。Step 5, storing the coordinate information of the keyboard position in the memory 5 to complete the calibration of the light projection keyboard 1 .

在本实施例中,处理器6获取红外图像中使用者手指所反射的光斑的坐标信息的具体过程为:所述处理器6利用设备摄像头4的内部参数、畸变和外部参数将使用者手指所反射的光斑的图像坐标转换为第一世界坐标,利用变换矩阵将第一世界坐标转换为第二世界坐标;将所述第二世界坐标与存储器5内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息。In this embodiment, the specific process for the processor 6 to obtain the coordinate information of the light spot reflected by the user's finger in the infrared image is as follows: the processor 6 uses the internal parameters, distortion and external parameters of the device camera 4 to obtain the coordinate information of the user's finger The image coordinates of the reflected light spot are converted into the first world coordinates, and the transformation matrix is used to convert the first world coordinates into the second world coordinates; the second world coordinates are compared with the keyboard position coordinate information prestored in the memory 5 to confirm the use of information entered by the user.

一种用于标定光投影键盘的装置,所述装置包括内部中空的箱体;安装在所述箱体内的标定摄像头,所述标定摄像头位于箱体的顶部;固定装置,所述固定装置用于将待标定的光投影键盘固定在箱体的底板上;摄像头参数标定板,所述摄像头参数标定板上安装有多个红外LED灯,所述红外LED灯以相互垂直的行列方式排布,行间距相等(如15mm),列间距相等(如15mm)。在一种优选的实施例中,所述红外灯的波长为850nm。A device for calibrating an optical projection keyboard, the device includes a hollow box inside; a calibration camera installed in the box, the calibration camera is located on the top of the box; a fixing device, the fixing device is used for The optical projection keyboard to be calibrated is fixed on the bottom plate of the box body; the camera parameter calibration board is equipped with a plurality of infrared LED lights, and the infrared LED lights are arranged in rows and columns perpendicular to each other. The spacing is equal (such as 15mm), and the column spacing is equal (such as 15mm). In a preferred embodiment, the infrared lamp has a wavelength of 850nm.

标定摄像头的作用是获得参考光投影键盘样机的参考键盘照片,以及获得待标定光投影键盘的待标定键盘照片。摄像头参数标定板的作用是结合标定摄像头获取标定摄像头的内部参数、畸变和外部参数,以及设备摄像头的内部参数、畸变和外部参数。The function of the calibration camera is to obtain the reference keyboard photo of the reference light projection keyboard prototype, and obtain the to-be-calibrated keyboard photo of the light projection keyboard to be calibrated. The function of the camera parameter calibration board is to combine the calibration camera to obtain the internal parameters, distortion and external parameters of the calibration camera, as well as the internal parameters, distortion and external parameters of the equipment camera.

上述披露的各技术特征并不限于已披露的与其它特征的组合,本领域技术人员还可根据发明之目的进行各技术特征之间的其它组合,以实现本发明之目的为准。The technical features disclosed above are not limited to the disclosed combination with other features, and those skilled in the art can also make other combinations among the technical features according to the purpose of the invention, so as to achieve the purpose of the present invention.

Claims (5)

1.一种光投影键盘的标定方法,其特征在于,包括以下步骤:1. A calibration method for an optical projection keyboard, comprising the following steps: 步骤1,利用标定摄像头获得参考光投影键盘样机的参考键盘照片,处理参考键盘照片获得参考键盘的四个顶点按键的图像坐标数据以及其他按键的图像坐标数据;Step 1, use the calibration camera to obtain the reference keyboard photo of the reference light projection keyboard prototype, process the reference keyboard photo to obtain the image coordinate data of the four vertex keys of the reference keyboard and the image coordinate data of other keys; 步骤2,利用标定摄像头获得待标定光投影键盘的待标定键盘照片,处理待标定键盘照片获得位于待标定键盘的四个顶点按键的图像坐标数据;Step 2, using the calibration camera to obtain the photo of the keyboard to be calibrated for the light projection keyboard to be calibrated, and processing the photo of the keyboard to be calibrated to obtain the image coordinate data of the four vertex keys located on the keyboard to be calibrated; 步骤3,基于参考键盘的四个顶点按键的图像坐标数据和其他按键的图像坐标数据,以及待标定键盘的四个顶点按键的图像坐标数据,利用仿射变换获得待标定键盘除去四个顶点按键的其他按键的图像坐标数据;Step 3, based on the image coordinate data of the four vertex keys of the reference keyboard and the image coordinate data of other keys, and the image coordinate data of the four vertex keys of the keyboard to be calibrated, use affine transformation to obtain the keyboard to be calibrated except for the four vertex keys The image coordinate data of the other buttons of ; 步骤4,利用标定摄像头的内部参数、畸变和外部参数以及待标定光投影键盘的所有按键的图像坐标得到待标定光投影键盘的所有按键的第一世界坐标数据;所述待标定光投影键盘的所有按键的第一世界坐标数据作为键盘位置坐标信息;Step 4, using the internal parameters, distortion and external parameters of the calibration camera and the image coordinates of all the keys of the light projection keyboard to be calibrated to obtain the first world coordinate data of all the keys of the light projection keyboard to be calibrated; The first world coordinate data of all keys is used as the keyboard position coordinate information; 步骤5,将键盘位置坐标信息存储到存储器完成光投影键盘的标定。Step 5, storing the coordinate information of the keyboard position into the memory to complete the calibration of the light projection keyboard. 2.根据权利要求1所述的光投影键盘的标定方法,其特征在于,所述光投影键盘包括:键盘投影模组、红外线激光发射器、设备摄像头、存储器和处理器;所述键盘投影模组用于向操作面投射虚拟键盘;所述红外线激光发射器用于投射覆盖所述虚拟键盘区域的红外线;所述设备摄像头用于采集所述虚拟键盘区域的红外线图像并将所述图像传输至处理器;所述存储器用于存储键盘位置坐标信息;所述处理器用于处理设备摄像头采集的红外线图像以获取红外图像中使用者手指所反射的光斑的坐标信息;并将所述坐标信息与存储器内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息内容。2. The calibration method of the optical projection keyboard according to claim 1, wherein the optical projection keyboard comprises: a keyboard projection module, an infrared laser transmitter, a device camera, a memory and a processor; the keyboard projection module The group is used to project a virtual keyboard to the operation surface; the infrared laser emitter is used to project infrared rays covering the virtual keyboard area; the device camera is used to collect infrared images of the virtual keyboard area and transmit the images to the processing The memory is used to store the coordinate information of the keyboard position; the processor is used to process the infrared image collected by the camera of the device to obtain the coordinate information of the light spot reflected by the user's finger in the infrared image; and the coordinate information is combined with the memory The pre-stored keyboard position coordinate information is compared to confirm the information input by the user. 3.根据权利要求2所述的光投影键盘的标定方法,其特征在于,处理器获取红外图像中使用者手指所反射的光斑的坐标信息的具体过程为:所述处理器利用设备摄像头的内部参数、畸变和外部参数将使用者手指所反射的光斑的图像坐标转换为第一世界坐标,将所述第一世界坐标与存储器内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息内容。3. The calibration method of the light projection keyboard according to claim 2, wherein the specific process for the processor to obtain the coordinate information of the light spot reflected by the user's finger in the infrared image is: the processor uses the internal Parameters, distortion and external parameters Convert the image coordinates of the light spots reflected by the user's fingers into the first world coordinates, and compare the first world coordinates with the keyboard position coordinate information pre-stored in the memory to confirm the information input by the user content. 4.根据权利要求1或2所述的光投影键盘的标定方法,其特征在于,步骤4中还包括:利用变换矩阵将第一世界坐标数据转换为第二世界坐标数据;所述第一世界坐标所在的平面为水平面,所述第二世界坐标所在的平面与水平面夹角在零度至五度之间。4. The method for calibrating a light projection keyboard according to claim 1 or 2, wherein step 4 further comprises: using a transformation matrix to convert the first world coordinate data into the second world coordinate data; the first world The plane where the coordinates are located is a horizontal plane, and the angle between the plane where the second world coordinates are located and the horizontal plane is between zero degrees and five degrees. 5.根据权利要求4所述的光投影键盘的标定方法,其特征在于,处理器获取红外图像中使用者手指所反射的光斑的坐标信息的具体过程为:所述处理器利用设备摄像头的内部参数、畸变和外部参数将使用者手指所反射的光斑的图像坐标转换为第一世界坐标,利用变换矩阵将第一世界坐标转换为第二世界坐标;将所述第二世界坐标与存储器内预存的键盘位置坐标信息进行对比以确认使用者所输入的信息。5. The calibration method of light projection keyboard according to claim 4, characterized in that, the specific process for the processor to obtain the coordinate information of the light spot reflected by the user's finger in the infrared image is: the processor uses the internal Parameters, distortion and external parameters Convert the image coordinates of the light spots reflected by the user's fingers into the first world coordinates, and use the transformation matrix to convert the first world coordinates into the second world coordinates; The coordinate information of the keyboard position is compared to confirm the information input by the user.
CN201710177238.5A 2017-03-23 2017-03-23 A kind of scaling method of smooth projected keyboard Expired - Fee Related CN106933376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710177238.5A CN106933376B (en) 2017-03-23 2017-03-23 A kind of scaling method of smooth projected keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710177238.5A CN106933376B (en) 2017-03-23 2017-03-23 A kind of scaling method of smooth projected keyboard

Publications (2)

Publication Number Publication Date
CN106933376A CN106933376A (en) 2017-07-07
CN106933376B true CN106933376B (en) 2018-03-13

Family

ID=59432700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710177238.5A Expired - Fee Related CN106933376B (en) 2017-03-23 2017-03-23 A kind of scaling method of smooth projected keyboard

Country Status (1)

Country Link
CN (1) CN106933376B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107507247B (en) * 2017-08-28 2018-09-11 哈尔滨拓博科技有限公司 A kind of real-time dynamic autoization scaling method of projected keyboard
CN109426355B (en) * 2017-08-31 2022-12-30 华为终端有限公司 Input method and input device of electronic equipment and electronic equipment
CN107562205B (en) * 2017-09-15 2021-08-13 上海展扬通信技术有限公司 Projection keyboard of intelligent terminal and operation method of projection keyboard
CN110310332A (en) * 2019-06-26 2019-10-08 珠海格力智能装备有限公司 Key calibration method and device
CN110413111B (en) * 2019-07-09 2021-06-01 南京大学 Target keyboard tracking system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912537A (en) * 2005-08-01 2007-02-14 株式会社拓普康 Three-dimensional measurement system and method of the same, and color-coded mark
CN102081787A (en) * 2009-12-01 2011-06-01 株式会社其恩斯 Image processing apparatus, image processing method, and computer program
CN105183163A (en) * 2015-09-08 2015-12-23 闫维新 Screen or projection non-contact type interaction device based on motion capture
CN105825544A (en) * 2015-11-25 2016-08-03 维沃移动通信有限公司 Image processing method and mobile terminal
CN105912145A (en) * 2016-04-15 2016-08-31 武汉邮电科学研究院 Laser pen mouse system and image positioning method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6710770B2 (en) * 2000-02-11 2004-03-23 Canesta, Inc. Quasi-three-dimensional method and apparatus to detect and localize interaction of user-object and virtual transfer device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912537A (en) * 2005-08-01 2007-02-14 株式会社拓普康 Three-dimensional measurement system and method of the same, and color-coded mark
CN102081787A (en) * 2009-12-01 2011-06-01 株式会社其恩斯 Image processing apparatus, image processing method, and computer program
CN105183163A (en) * 2015-09-08 2015-12-23 闫维新 Screen or projection non-contact type interaction device based on motion capture
CN105825544A (en) * 2015-11-25 2016-08-03 维沃移动通信有限公司 Image processing method and mobile terminal
CN105912145A (en) * 2016-04-15 2016-08-31 武汉邮电科学研究院 Laser pen mouse system and image positioning method thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于数字图像处理的虚拟输入方法;张金 等;《计算机工程与设计》;20111130;第32卷(第11期);全文 *
基于机器视觉的嵌入式虚拟键盘研究;李鹏翔;《中国优秀硕士学位论文全文数据库》;20170228;全文 *
基于立体视觉的触控改进技术研究;钱光武;《中国优秀硕士学位论文全文数据库》;20121231;全文 *

Also Published As

Publication number Publication date
CN106933376A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN106933376B (en) A kind of scaling method of smooth projected keyboard
US8911165B2 (en) Overloaded typing apparatuses, and related devices, systems, and methods
US9288373B2 (en) System and method for human computer interaction
CN107657642B (en) A kind of automation scaling method carrying out projected keyboard using external camera
TWI423096B (en) Projecting system with touch controllable projecting picture
WO2012056864A1 (en) Input device, information apparatus provided with the input device, program for causing computer to function as input device, and method for using the input device to input characters
TWI657367B (en) Touch display device and touch position detecting system
CN115373534B (en) Writing handwriting presenting method and device, interaction panel and storage medium
JP6877446B2 (en) Systems and methods for recognizing multiple object structures
CN106802745B (en) Device and its application method for nominal light projected keyboard
WO2021189947A1 (en) Digital track recording device and coordinate calibration method
KR20130112410A (en) Method and apparatus for detecting coordinates in a pen-based display device
CN115373772B (en) Handwriting erasure methods, devices, interactive whiteboards and storage media
WO2025232590A1 (en) Display module, display apparatus, stylus, interaction system, and interaction method
CN103869941B (en) Electronic device with virtual touch service and virtual touch real-time calibration method
TW202121118A (en) Electronic device and method for identifying press on virtual keyboard
TW202001545A (en) Computer and input device
US8564570B2 (en) Optical touch apparatus and operating method thereof
CN115904129A (en) Touch device, touch object recognition method and device
TWI598748B (en) Electronic device and character correction method
JP7494507B2 (en) Display device, display method, and program
TW201403410A (en) Frame with sensing function and touch control processing method
KR20160000754A (en) Input system with electronic pen and case having coordinate patten sheet
CN104571729A (en) Multiple contact identification method applied to optical touch screen
US20130162592A1 (en) Handwriting Systems and Operation Methods Thereof

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180313

CF01 Termination of patent right due to non-payment of annual fee