Projected keyboard and its calibration method and device
By using the transmitting tube and receiving tube of infrared light strips in the projection keyboard, the distance is determined based on the received infrared light intensity and the touch point is accurately positioned, which solves the misjudgment problem caused by the existing projection keyboard blocking the laser, and improves the combination of keys recognition success rate.
Patent Information
- Application Number
- CN202210251956.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-03-15
AI Technical Summary
Existing projection keyboards are prone to misjudgment due to occluding lasers when identifying keys, especially the recognition success rate of key combinations is low.
An infrared light strip, including a transmitter tube and at least two receiving tubes, emit infrared rays by driving the transmitter tube, and determine the distance based on the infrared light intensity received by the receiving tube to accurately locate the user's touch point on the keyboard pattern and avoid the receiving tube. Obstructed to increase the success rate of button recognition.
Determining the touch point by the distance between at least two receiving tubes reduces misjudgment caused by blocking light and improves the success rate of button recognition.
Smart Images

Figure CN114691010B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of projection keyboards, and in particular to a projection keyboard and a calibration method and device thereof. Background Art
[0002] With the development of technology, projection keyboards have gradually come into people's view. For example, virtual laser keyboard is a virtual keyboard that projects keyboard keys on the desktop to form a virtual keyboard, allowing users to type articles or emails as easily as operating a normal keyboard. Please refer to Figure 1 , is a schematic diagram of the principle of a projection keyboard in the prior art, the projection keyboard includes: a keyboard pattern projector 1', a linear laser 2' and a camera 3', wherein the keyboard pattern projector 1' projects a clear keyboard pattern on a flat desktop; the bottom linear laser 2' (generally infrared, so that it is invisible to the eyes) emits a linear laser, which is emitted parallel to the desktop, so that if the fingers press the keys, a laser spot will be formed on the fingers; the camera 3' captures the laser spot, which corresponds to the position mapped by the keyboard pattern, so that it can be known which keys are pressed.
[0003] In existing projection keyboard solutions, laser blocking may cause the keyboard to fail to recognize. Especially when there are combination keys, the misjudgment caused by laser blocking is more obvious. For example, when a combination key (such as Ctrl+shift) is pressed vertically, the positions of "Ctrl" and "shift" will block the laser, so only one key can be recognized.
[0004] Therefore, how to improve the key recognition success rate becomes a technical problem that needs to be solved urgently. Summary of the invention
[0005] Based on the above situation, the main purpose of the present invention is to provide a projection keyboard and a calibration method and device thereof to improve the success rate of key recognition.
[0006] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0007] In a first aspect, an embodiment of the present invention discloses a method for calibrating a projection keyboard, wherein the projection keyboard comprises: a keyboard pattern projector, for projecting a keyboard pattern; an infrared light bar, comprising a transmitting tube and at least two receiving tubes, wherein the infrared light emitted by the transmitting tube is received by the at least two receiving tubes to calibrate a touch point of a user on the keyboard pattern;
[0008] Step S100, driving the transmitting tube to emit infrared rays toward the keyboard pattern;
[0009] Step S200, respectively obtaining the infrared light intensity received by the first receiving tube and the second receiving tube;
[0010] Step S300, determining a first distance according to the intensity of infrared light received by the first receiving tube, the first distance being the distance from the first receiving tube to the touch point;
[0011] Step S400, determining a second distance according to the intensity of infrared light received by the second receiving tube, the second distance being the distance from the second receiving tube to the touch point;
[0012] Step S500: determining a touch point of the user on the keyboard pattern according to the first distance and the second distance.
[0013] Optionally, step S500 includes:
[0014] Taking the first receiving tube as the center and the first distance as the radius, a first circumference is obtained;
[0015] Taking the second receiving tube as the center and the second distance as the radius, a second circumference is obtained;
[0016] The target intersection point of the first circle and the second circle is determined as the touch point of the user on the keyboard pattern; the target intersection point is the intersection point of the first circle and the second circle on the keyboard pattern.
[0017] Optionally, step S200 includes: respectively acquiring infrared light intensities received by more than two receiving tubes;
[0018] The infrared light intensities received by the two receiving tubes with the strongest infrared light intensities are determined as the infrared light intensities received by the first receiving tube and the second receiving tube.
[0019] Optionally, the infrared light bar includes a plurality of transmitting tubes and a plurality of receiving tubes, wherein the transmitting tubes and the receiving tubes are arranged alternately in sequence;
[0020] Step S200 includes: respectively obtaining infrared light intensities received by two receiving tubes adjacent to the same transmitting tube, and using them as the infrared light intensities received by the first receiving tube and the infrared light intensities received by the second receiving tube.
[0021] Optionally, there is one transmitting tube, and the method further includes:
[0022] Execute steps S100 to S500 several times to obtain several touch points;
[0023] When the plurality of touch points are the same touch point, the plurality of touch points are determined to be a continuous release of a specific key.
[0024] Optionally, there are multiple transmitting tubes, and the method includes:
[0025] For each transmitting tube, execute steps S100 to S500 several times to obtain several touch points;
[0026] When the plurality of touch points are the same touch point, the plurality of touch points are determined to be a continuous release of a specific key.
[0027] Optionally, there is one transmitting tube, and the method further includes:
[0028] Execute step S100 to step S500 M times to obtain M touch points;
[0029] When the M touch points are N different touch points, the N touch points are determined to be a combination of N keys, where M and N are positive integers and 2≤N<M.
[0030] Optionally, there are multiple transmitting tubes, and the method includes:
[0031] For each transmitting tube, execute step S100 to step S500 M times to obtain M touch points;
[0032] When the M touch points are N different touch points, the N touch points are determined to be a combination of N keys, where M and N are positive integers and 2≤N<M.
[0033] Optionally, M=2N;
[0034] In the first N times of executing steps S100 to S500, the first to N touch points are determined respectively;
[0035] In the subsequent N executions of steps S100 to S500 , when the first to N touch points determined in the previous N times are determined in sequence, the N touch points are determined to be a combination of N keys.
[0036] In a second aspect, an embodiment of the present invention discloses a projection keyboard calibration device, the projection keyboard comprising: a keyboard pattern projector, for projecting a keyboard pattern; an infrared light bar, comprising a transmitting tube and at least two receiving tubes, wherein the infrared light emitted by the transmitting tube is received by the at least two receiving tubes to calibrate the touch point of the user on the keyboard pattern; the calibration device comprises:
[0037] Infrared driving module, used to drive the transmitting tube to emit infrared rays to the keyboard pattern;
[0038] An infrared light intensity acquisition module, used to obtain the infrared light intensity received by the first receiving tube and the second receiving tube respectively;
[0039] A first distance determination module, used to determine a first distance according to the infrared light intensity received by the first receiving tube, the first distance being the distance from the first receiving tube to the touch point;
[0040] A second distance determination module, used to determine a second distance according to the infrared light intensity received by the second receiving tube, the second distance being the distance from the second receiving tube to the touch point;
[0041] The touch point determination module is used to determine the touch point of the user on the keyboard pattern according to the first distance and the second distance.
[0042] Optionally, the touch point determination module is used to: obtain a first circle with the first receiving tube as the center and the first distance as the radius; obtain a second circle with the second receiving tube as the center and the second distance as the radius; determine the target intersection of the first circle and the second circle as the touch point of the user on the keyboard pattern; the target intersection is the intersection of the first circle and the second circle on the keyboard pattern.
[0043] Optionally, the infrared light intensity acquisition module is used to: respectively acquire the infrared light intensities received by more than two receiving tubes; and determine the infrared light intensities received by the two receiving tubes with the strongest infrared light intensities as the infrared light intensities received by the first receiving tube and the second receiving tube.
[0044] Optionally, the infrared light strip includes multiple transmitting tubes and multiple receiving tubes, wherein the transmitting tubes and the receiving tubes are arranged alternately in sequence; the infrared light intensity acquisition module is used to: respectively acquire the infrared light intensity received by two receiving tubes adjacent to both sides of the same transmitting tube, and use them as the infrared light intensity received by the first receiving tube and the infrared light intensity received by the second receiving tube, respectively.
[0045] Optionally, there is one transmitting tube, and the infrared driving module, infrared light intensity acquisition module, first distance determination module, second distance determination module and touch point determination module are run several times to obtain several touch points; when several touch points are the same touch point, the several touch points are determined to be a continuous shot of a specific key.
[0046] Optionally, there are multiple transmitting tubes, and for each transmitting tube, the infrared driving module, the infrared light intensity acquisition module, the first distance determination module, the second distance determination module and the touch point determination module are run several times to obtain several touch points; when several touch points are the same touch point, the several touch points are determined to be a continuous shot of a specific key.
[0047] Optionally, there is one transmitting tube, and the infrared driving module, the infrared light intensity acquisition module, the first distance determination module, the second distance determination module and the touch point determination module are run M times to obtain M touch points; when the M touch points are N different touch points, the N touch points are determined to be a combination of N keys, where M and N are positive integers, and 2≤N<M.
[0048] Optionally, there are multiple transmitting tubes, and for each transmitting tube, the infrared driving module, the infrared light intensity acquisition module, the first distance determination module, the second distance determination module and the touch point determination module are run M times to obtain M touch points;
[0049] When the M touch points are N different touch points, the N touch points are determined to be a combination of N keys, where M and N are positive integers and 2≤N<M.
[0050] Optionally, M=2N; in the first N times of running the infrared driving module, the infrared light intensity acquisition module, the first distance determination module, the second distance determination module and the touch point determination module, the 1st to N touch points are determined respectively; in the next N times of running the infrared driving module, the infrared light intensity acquisition module, the first distance determination module, the second distance determination module and the touch point determination module, when the 1st to N touch points determined in the first N times are determined in sequence, the N touch points are determined to be a combination of N keys.
[0051] In a third aspect, an embodiment of the present invention discloses a projection keyboard, comprising:
[0052] A processor is used to implement the method disclosed in the first aspect above.
[0053] In a fourth aspect, an embodiment of the present invention discloses a computer-readable storage medium having a computer program stored thereon, wherein the computer program stored in the storage medium is used to be executed to implement the method disclosed in the first aspect above.
[0054] In a fifth aspect, an embodiment of the present invention discloses a projection keyboard system, comprising:
[0055] A display device, used for visually displaying a system interface;
[0056] A processor is used to implement the method disclosed in the first aspect above.
[0057]
Beneficial Effects
[0058] According to a projection keyboard and its calibration method and device disclosed in an embodiment of the present invention, a transmitting tube is driven to emit infrared rays to a keyboard pattern; the infrared light intensity received by a first receiving tube and a second receiving tube is obtained respectively; a first distance is determined according to the infrared light intensity received by the first receiving tube, and the first distance is the distance from the first receiving tube to a touch point; a second distance is determined according to the infrared light intensity received by the second receiving tube, and the second distance is the distance from the second receiving tube to the touch point; and the touch point of the user on the keyboard pattern is determined according to the first distance and the second distance. Since the distances from at least two receiving tubes to the touch point are determined, and then the touch point of the user on the keyboard pattern is determined according to the first distance and the second distance, it can be avoided that the two receiving tubes are blocked from infrared rays at the same time, that is, the touch point can be accurately located by the first receiving tube and the second receiving tube, reducing the misjudgment caused by blocking the light from each other when pressing the key, thereby improving the key recognition success rate.
[0059] Other beneficial effects of the present invention will be explained in the specific implementation manner through the introduction of specific technical features and technical solutions. Through the introduction of these technical features and technical solutions, those skilled in the art should be able to understand the beneficial technical effects brought about by the technical features and technical solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The following will describe an embodiment of the present invention with reference to the accompanying drawings.
[0061] Figure 1 This is a schematic diagram of the principle of a projection keyboard in the prior art;
[0062] Figure 2 This is a flow chart of a projection keyboard calibration method disclosed in this embodiment;
[0063] Figure 3A and Figure 3B This is a schematic diagram of a projection keyboard structure disclosed in this embodiment, wherein: Figure 3A is a schematic diagram of a side view structure of a projection keyboard disclosed in this embodiment, Figure 3B This is a schematic diagram of the structure of an infrared light bar disclosed in this embodiment;
[0064] Figure 4A and Figure 4B This is a schematic diagram of a principle for determining a touch point of a user on a keyboard pattern disclosed in this embodiment, wherein: Figure 4A It is a schematic diagram of geometric principle. Figure 4B This is a schematic diagram of the actual product principle;
[0065] Figure 5 This is a schematic diagram of an example of providing reflected light to the first receiving tube 22a and the second receiving tube 22b at different angles disclosed in this embodiment;
[0066] Figure 6 This is a schematic diagram of the structure of a projection keyboard calibration device disclosed in this embodiment. DETAILED DESCRIPTION
[0067] In order to improve the key recognition success rate, this embodiment discloses a projection keyboard and a calibration method thereof. Figure 2 , which is a flow chart of a projection keyboard calibration method disclosed in this embodiment, please refer to Figure 3A and Figure 3B , is a schematic diagram of a projection keyboard structure disclosed in this embodiment, wherein, Figure 3A is a schematic diagram of a side view structure of a projection keyboard disclosed in this embodiment, Figure 3BThe schematic diagram of the structure of an infrared light bar disclosed in the present embodiment is a projection keyboard comprising: a keyboard pattern projector 1 and an infrared light bar 2, wherein the keyboard pattern projector 1 is used to project on a flat projection area, thereby projecting a keyboard pattern, so that the user can touch the keyboard pattern to form a key operation; the infrared light bar 2 comprises a transmitting tube 21 and at least two receiving tubes 22, wherein the infrared rays emitted by the transmitting tube 21 are received by at least two receiving tubes 22 to calibrate the touch point of the user on the keyboard pattern. In the present embodiment, the infrared rays are received by at least two receiving tubes 22, so that the touch point of the user on the keyboard pattern can be located, that is, the key typed by the user can be located. In a specific embodiment, the transmitting tube 21 can be one or more; the receiving tube 22 is at least two. The arrangement of the keys on the keyboard pattern is staggered. In the case of placing the light bar horizontally, in the embodiment of multiple transmitting tubes 21, each transmitting tube corresponds to only one key in the vertical direction. This avoids the inability to distinguish between the simultaneous pressing of two keys arranged up and down in the vertical direction, or the inability to distinguish the simultaneous pressing of two keys in the light area of one transmitting tube.
[0068] When there are multiple transmitting tubes 21 and multiple receiving tubes 22, the transmitting tubes 21 and the receiving tubes 22 can be arranged alternately. Figure 3B , schematically showing the transmitting tube 21 and the receiving tube 22, wherein the white circle is the transmitting tube 21 and the black circle is the receiving tube 22. In a specific embodiment, when performing infrared transmission and reception, one transmitting tube 21 among the plurality of transmitting tubes 21 may emit infrared rays which are received by at least two receiving tubes 22; or multiple transmitting tubes 21 among the plurality of transmitting tubes 21 may emit infrared rays one by one which are received by at least two receiving tubes 22 one by one. Specifically:
[0069] In one embodiment, the emitting tubes 21 and receiving tubes 22 in the light bar are not arranged in a staggered manner, for example, there are two or more receiving tubes 22 between two emitting tubes 21; or there are two or more emitting tubes 21 between two receiving tubes 22. At this time, the first scanning mode is adopted: the emitting tubes 21 are turned on alternately, and all receiving tubes 22 are clocked in sequentially or simultaneously to receive the emitted light of the turned-on emitting tubes.
[0070] In another embodiment, the transmitting tubes 21 and receiving tubes 22 in the light bar are arranged alternately, that is, the transmitting tubes 21 and receiving tubes 22 are arranged alternately in sequence. Specifically, there is only one receiving tube 22 between the two transmitting tubes 21, and there is a receiving tube 22 on each side of each transmitting tube 21; similarly, there is only one receiving tube 22 between the two receiving tubes 22, and there is a transmitting tube 21 on each side of each receiving tube 22. At this time, in addition to the first scanning mode, the second scanning mode can also be adopted: the light emitted by the transmitting tube 21 is only received by the two adjacent receiving tubes 22, that is, when the transmitting tube 21 remains turned on, only the two adjacent receiving tubes 22 are turned on for reception. In this embodiment, as a preferred mode, when arranging the transmitting tubes 21 and the receiving tubes 22, they can be set according to the emission angle of the transmitting tube 21, and the key is kept within the emission angle of the transmitting tube 21 and does not fall on the vertical line of any receiving tube 22.
[0071] Please refer to Figure 2 The calibration method disclosed in this embodiment includes step S100, step S200, step S300, step S400 and step S500, wherein:
[0072] Step S100, driving the transmitting tube 21 to emit infrared rays to the keyboard pattern. In this embodiment, by driving a plurality of transmitting tubes 21 to emit infrared rays to the keyboard pattern, an infrared light path can be formed on the keyboard pattern. When the user's finger performs a touch operation on the keyboard pattern, the infrared rays can be reflected. In a specific embodiment, the plurality of transmitting tubes 21 can be one or more, and please refer to the following description for details.
[0073] Step S200, respectively obtain the infrared light intensity received by the first receiving tube 22a and the second receiving tube 22b. Specifically, when the infrared light is reflected by the user's finger (the location of the touch point), specifically, the infrared light is diffusely reflected by the user's finger at any angle, so the diffusely reflected light can be reflected to the first receiving tube 22a and the second receiving tube 22b, so that the reflected infrared light is received by the first receiving tube 22a and the second receiving tube 22b. In this embodiment, after the first receiving tube 22a and the second receiving tube 22b receive the reflected infrared light, the infrared light intensity received by the first receiving tube 22a and the second receiving tube 22b can be respectively obtained.
[0074] In an optional embodiment, there are more than two receiving tubes, wherein the transmitting tubes 21 and the receiving tubes 22 in the light bar may be arranged in a staggered manner or may not be arranged in a staggered manner:
[0075] In one embodiment, for the case where the transmitting tubes 21 and receiving tubes 22 in the light bar are not arranged in an interlaced manner, the infrared light intensities received by more than two receiving tubes 22 can be obtained respectively; the two receiving tubes 22 with the strongest infrared light intensities are determined as the first receiving tube 22a and the second receiving tube 22b.
[0076] In another embodiment, in the case where the transmitting tubes 21 and the receiving tubes 22 in the light bar are arranged alternately in sequence, in addition to determining the first receiving tube 22a and the second receiving tube 22b according to the intensity of the infrared light, the first receiving tube 22a and the second receiving tube 22b can also be directly determined nearby. Specifically, the infrared light intensity received by the two receiving tubes 22 adjacent to the same transmitting tube 21 is obtained respectively, and used as the infrared light intensity received by the first receiving tube 22a and the infrared light intensity received by the second receiving tube 22b. In this embodiment, by determining the first receiving tube 22a and the second receiving tube 22b nearby, it is not necessary to compare the light intensity, saving computing resources.
[0077] Step S300, determining the first distance d1 according to the infrared light intensity received by the first receiving tube 22a. In this embodiment, the first distance d1 is the distance from the first receiving tube 22a to the touch point. Figure 4A and Figure 4B , is a schematic diagram of a principle for determining a touch point of a user on a keyboard pattern disclosed in this embodiment, wherein: Figure 4A It is a schematic diagram of geometric principle. Figure 4B It is a schematic diagram of the actual product principle. In a specific embodiment, after obtaining the infrared light intensity received by the first receiving tube 22a, the first distance d1 from the first receiving tube 22a to the reflection point (that is, the touch point) can be determined based on the infrared light intensity. In the specific implementation process, the corresponding relationship between light intensity and distance can be determined based on experiments, so that after obtaining the infrared light intensity, the first distance d1 can be known. Specifically, the distance from the receiving tube to the reflection point is inversely proportional to the light intensity received by the receiving tube. Therefore, the inverse ratio can be determined by experiments. In the specific implementation process, the distance from the receiving tube to the reflection point can be determined based on the light intensity by the following formula:
[0078] I=A / R x
[0079] Wherein, I is the light intensity in kedra; R is the distance from the receiving tube to the reflection point in centimeters; A and x are constants that can be determined through experiments. Specifically, different distances can be set between a transmitting tube and a receiving tube, and the light intensity of the receiving tube can be detected. Substituting them into the above formula can obtain A and x.
[0080] Step S400, determining the second distance d2 according to the infrared light intensity received by the second receiving tube 22b. In this embodiment, the second distance d2 is the distance from the second receiving tube 22b to the touch point. Figure 4A and Figure 4B In a specific embodiment, after obtaining the infrared light intensity received by the second receiving tube 22b, the second distance d2 from the second receiving tube 22b to the reflection point (that is, the touch point) can be determined according to the infrared light intensity. In the specific implementation process, the corresponding relationship between the light intensity and the distance can be determined according to experiments, so that after obtaining the infrared light intensity, the second distance d2 can be known. Specifically, the distance from the receiving tube to the reflection point is inversely proportional to the light intensity received by the receiving tube. Therefore, the inverse ratio can be determined by experiments. Specifically, it can be calculated using the above formula, which will not be repeated here.
[0081] It should be noted that, in this embodiment, the execution order of step S300 and step S400 is not limited.
[0082] Step S500: Determine the touch point of the user on the keyboard pattern according to the first distance d1 and the second distance d2. Figure 4A and Figure 4B , taking the first receiving tube 22a as the center and the first distance d1 as the radius, a first circle is obtained; taking the second receiving tube 22b as the center and the second distance d2 as the radius, a second circle is obtained; and determining the target intersection of the first circle and the second circle as the touch point of the user on the keyboard pattern.
[0083] In order to exclude non-target intersection points, in a preferred embodiment, the intersection point is the intersection point of the first circle and the second circle on the keyboard pattern. Specifically, there are at most two intersection points of the two circles, one located in the projection direction of the keyboard pattern, and one located behind the projection direction, that is, behind the device. Since the projection direction is projected to one side (in front of the device), the point behind the device is beyond the projection area and can be excluded, so a unique point can be determined to achieve positioning.
[0084] In order to realize the key burst, in an optional embodiment, steps S100 to S500 may be performed several times to determine the key burst. Specifically:
[0085] In one embodiment, there is one transmitting tube 21, and the projection keyboard calibration method further includes: executing steps S100 to S500 several times to obtain several touch points; when the several touch points are the same touch point, determining that the several touch points are continuous shots of a specific key.
[0086] In another embodiment, there are multiple transmitting tubes 21, and the projection keyboard calibration method further includes: for each transmitting tube 21, executing steps S100 to S500 several times to obtain several touch points; when the several touch points are the same touch point, determining the several touch points as a burst of specific keys. It should be noted that in this embodiment, polling multiple transmitting tubes 21 once is executed once, that is, each time steps S100 to S500 are executed, multiple transmitting tubes 21 are polled once, thereby determining a touch point.
[0087] In this embodiment, if a certain key (such as the space key) is determined as a touch point by executing steps S100 to S500 several times, it can be determined that the user has pressed the certain key (such as the space key) several times in succession, thereby realizing functions similar to those of a physical keyboard. For example, when the user's finger touches the space key and does not move, it can be determined that the user has pressed the space key several times in succession based on the number of times steps S100 to S500 have been executed.
[0088] In order to implement the input of the key combination, in an optional embodiment, steps S100 to S500 may be performed multiple times to determine the input of the key combination. Specifically:
[0089] In one embodiment, there is one transmitting tube 21, and the projection keyboard calibration method further includes: executing steps S100 to S500 M times to obtain M touch points; when the M touch points are N touch points, determining the N touch points as a combination of N keys, wherein M and N are positive integers, and 2≤N<M.
[0090] In another embodiment, there are multiple transmitting tubes 21, and the projection keyboard calibration method further includes: for each transmitting tube 21, executing steps S100 to S500 M times to obtain M touch points; when the M touch points are N different touch points, determining the N touch points as a combination of N keys, wherein M and N are positive integers, and 2≤N<M. It should be noted that in this embodiment, polling multiple transmitting tubes 21 once is executed once, that is, each time steps S100 to S500 are executed, multiple transmitting tubes 21 are polled once, thereby determining a touch point.
[0091] As an example, when the user inputs the key combination (Ctrl+shift), since the positions of "Ctrl" and "shift" will reflect infrared light, and the first receiving tube 22a and the second receiving tube 22b are located at different positions, the reflected light can be provided to the first receiving tube 22a and the second receiving tube 22b at different angles, thereby avoiding the reflected light from being blocked. Therefore, the key combination of Ctrl+shift can be scanned in executing steps S100 to S500 M times. For the convenience of understanding by those skilled in the art, please refer to Figure 5 , is a schematic diagram of an example of providing reflected light to the first receiving tube 22a and the second receiving tube 22b at different angles disclosed in this embodiment. When the infrared emitting tube 21 directly above the "shift" key emits infrared rays (as shown by the solid arrow line), the "Ctrl" key is directly below the "shift" key, so it cannot receive the infrared rays shown by the solid arrow line, and cannot reflect the infrared rays; at this time, when another infrared emitting tube 21 is used to emit infrared rays at another angle (as shown by the dotted arrow line), the "Ctrl" key can receive the infrared rays shown by the dotted arrow line, and can also reflect the infrared rays to the first receiving tube 22a and the second receiving tube 22b.
[0092] In order to avoid misjudging a single key as a combination key, the touch points can be scanned twice in sequence. For the case of one transmitting tube 21, in an optional embodiment, M=2N; in the first N executions of steps S100 to S500, the 1st to Nth touch points are determined respectively; in the next N executions of steps S100 to S500, when the 1st to Nth different touch points determined in the previous N times are determined in sequence, the N touch points are determined to be a combination of N keys. Taking the three combination keys (A+B+C) as an example, it is necessary to execute steps S100 to S500 six times to determine the combination key (A+B+C). Specifically, the first three executions of steps S100 to S500 respectively determine the three touch points A, B, and C, and the next three executions of steps S100 to S500 again determine the three touch points A, B, and C in sequence. The touch points determined by executing steps S100 to S500 six times are as follows:
[0093] The first step S100 to S500 is executed to detect the touch point A;
[0094] Steps S100 to S500 are executed for the second time to detect the touch point B;
[0095] Steps S100 to S500 are executed for the third time to detect the touch point C;
[0096] Steps S100 to S500 are executed for the fourth time to detect the touch point A;
[0097] Steps S100 to S500 are executed for the fifth time to detect the touch point B;
[0098] The sixth execution of steps S100 to S500 detects the touch point C;
[0099] Thus, it can be determined that the (A+B+C) key combination occurs.
[0100] It should be noted that, for the case of multiple transmitting tubes 21, the combination of N keys can also be determined by executing steps S100 to S500 for the first N times and executing steps S100 to S500 for the next N times. At this time, executing steps S100 to S500 each time means that each transmitting tube 21 is polled once and then executed once.
[0101] This embodiment also discloses a projection keyboard calibration device, please refer to Figure 3A and Figure 3B , is a schematic diagram of a projection keyboard structure disclosed in this embodiment, wherein, Figure 3A is a schematic diagram of a side view structure of a projection keyboard disclosed in this embodiment, Figure 3B This is a schematic diagram of an infrared light bar structure disclosed in this embodiment. The projection keyboard includes: a keyboard pattern projector 1, which is used to project a keyboard pattern; an infrared light bar 2, which includes a transmitting tube 21 and at least two receiving tubes 22, wherein the infrared light emitted by the transmitting tube 21 is received by at least two receiving tubes 22 to mark the touch point of the user on the keyboard pattern. Please refer to Figure 6 , is a schematic diagram of the structure of a projection keyboard calibration device disclosed in this embodiment, the projection keyboard calibration device includes: an infrared driving module 10, an infrared light intensity acquisition module 20, a first distance determination module 30, a second distance determination module 40 and a touch point determination module 50, wherein:
[0102] The infrared driving module 10 is used to drive the transmitting tube 21 to emit infrared rays to the keyboard pattern;
[0103] The infrared light intensity acquisition module 20 is used to obtain the infrared light intensity received by the first receiving tube 22a and the second receiving tube 22b respectively;
[0104] A first distance determination module 30, for determining a first distance d1 according to the infrared light intensity received by the first receiving tube 22a, wherein the first distance d1 is the distance from the first receiving tube 22a to the touch point;
[0105] A second distance determination module 40, for determining a second distance d2 according to the infrared light intensity received by the second receiving tube 22b, where the second distance d2 is the distance from the second receiving tube 22b to the touch point;
[0106] The touch point determination module 50 is used to determine the touch point of the user on the keyboard pattern according to the first distance d1 and the second distance d2.
[0107] Optionally, the touch point determination module 50 is used to: obtain a first circle with the first receiving tube 22a as the center and the first distance d1 as the radius; obtain a second circle with the second receiving tube 22b as the center and the second distance d2 as the radius; determine the target intersection of the first circle and the second circle as the touch point of the user on the keyboard pattern; the target intersection is the intersection of the first circle and the second circle on the keyboard pattern.
[0108] Optionally, the infrared light intensity acquisition module 20 is used to: respectively acquire the infrared light intensity received by more than two receiving tubes 22; and determine the infrared light intensity received by the two receiving tubes 22 with the strongest infrared light intensity as the infrared light intensity received by the first receiving tube 22a and the second receiving tube 22b.
[0109] Optionally, the infrared light strip 2 includes multiple transmitting tubes 21 and multiple receiving tubes 22, wherein the transmitting tubes 21 and the receiving tubes 22 are arranged alternately in sequence; the infrared light intensity acquisition module is used to: respectively acquire the infrared light intensity received by the two receiving tubes 22 adjacent to the same transmitting tube 21 on both sides, and use them as the infrared light intensity received by the first receiving tube 22a and the infrared light intensity received by the second receiving tube 22b, respectively.
[0110] Optionally, there is one transmitting tube 21, and the infrared driving module 10, the infrared light intensity acquisition module 20, the first distance determination module 30, the second distance determination module 40 and the touch point determination module 50 are run several times to obtain several touch points; when the several touch points are the same touch point, the several touch points are determined to be a continuous shot of a specific key.
[0111] Optionally, there are multiple transmitting tubes 21, and for each transmitting tube 21, the infrared driving module 10, the infrared light intensity acquisition module 20, the first distance determination module 30, the second distance determination module 40 and the touch point determination module 50 are run several times to obtain several touch points; when the several touch points are the same touch point, the several touch points are determined to be a continuous shot of a specific key.
[0112] Optionally, there is one transmitting tube 21, and the infrared driving module 10, the infrared light intensity acquisition module 20, the first distance determination module 30, the second distance determination module 40 and the touch point determination module 50 are run M times to obtain M touch points; when the M touch points are N different touch points, the N touch points are determined to be a combination of N keys, where M and N are positive integers, and 2≤N<M.
[0113] Optionally, there are multiple transmitting tubes 21, and for each transmitting tube 21, the infrared driving module 10, the infrared light intensity acquisition module 20, the first distance determination module 30, the second distance determination module 40 and the touch point determination module 50 are run M times to obtain M touch points;
[0114] When the M touch points are N different touch points, the N touch points are determined to be a combination of N keys, where M and N are positive integers and 2≤N<M.
[0115] Optionally, M=2N; in the first N operations of the infrared driving module 10, the infrared light intensity acquisition module 20, the first distance determination module 30, the second distance determination module 40 and the touch point determination module 50, the 1st to N touch points are determined respectively; in the next N operations of the infrared driving module 10, the infrared light intensity acquisition module 20, the first distance determination module 30, the second distance determination module 40 and the touch point determination module 50, when the 1st to N touch points determined in the first N times are determined in sequence, the N touch points are determined to be a combination of N keys.
[0116] This embodiment also discloses a projection keyboard, including: a processor, used to implement the method disclosed in the above embodiment.
[0117] This embodiment further discloses a computer-readable storage medium on which a computer program is stored. The computer program stored in the storage medium is used to be executed to implement the method disclosed in the above embodiment.
[0118] This embodiment also discloses a projection keyboard system, including: a display device and a processor, wherein the display device is used for visually displaying a system interface; and the processor is used for implementing the method disclosed in the above embodiment.
[0119] According to a projection keyboard and its calibration method and device disclosed in an embodiment of the present invention, a plurality of transmitting tubes are driven to emit infrared rays to a keyboard pattern; the infrared light intensity received by a first receiving tube and a second receiving tube is obtained respectively; a first distance is determined according to the infrared light intensity received by the first receiving tube, and the first distance is the distance from the first receiving tube to a touch point; a second distance is determined according to the infrared light intensity received by the second receiving tube, and the second distance is the distance from the second receiving tube to the touch point; and the touch point of the user on the keyboard pattern is determined according to the first distance and the second distance. Since the distances from at least two receiving tubes to the touch point are determined, and then the touch point of the user on the keyboard pattern is determined according to the first distance and the second distance, it can be avoided that the two receiving tubes are blocked from infrared rays at the same time, that is, the touch point can be accurately located by the first receiving tube and the second receiving tube, and the misjudgment caused by blocking light from each other when pressing keys is reduced, thereby improving the key recognition success rate.
[0120] It should be noted that the use of step numbers (letters or numbers) to refer to certain specific method steps in the present invention is only for the purpose of convenience and brevity of description, and is by no means intended to limit the order of these method steps. Those skilled in the art will appreciate that the order of the relevant method steps should be determined by the technology itself and should not be inappropriately limited by the existence of step numbers.
[0121] Those skilled in the art will appreciate that, without conflict, the above-mentioned preferred solutions can be freely combined and superimposed.
[0122] It should be understood that the above-mentioned embodiments are merely illustrative and not restrictive. Without departing from the basic principles of the present invention, various obvious or equivalent modifications or substitutions that can be made by those skilled in the art to the above-mentioned details will all be included in the scope of the claims of the present invention.
Claims
1. A projection keyboard calibration method, characterized in that: The projection keyboard comprises: a keyboard pattern projector (1) for projecting a keyboard pattern; an infrared light bar (2) comprising a transmitting tube (21) and at least two receiving tubes (22), wherein the infrared rays emitted by the transmitting tube (21) are received by the at least two receiving tubes (22) to calibrate a touch point of a user on the keyboard pattern; the method comprises: Step S100, driving the transmitting tube (21) to emit infrared rays toward the keyboard pattern; Step S200, respectively obtaining infrared light intensities received by more than two receiving tubes (22), and determining the infrared light intensities received by the two receiving tubes (22) with the strongest infrared light intensities as the infrared light intensities received by the first receiving tube (22a) and the second receiving tube (22b); Step S300, determining a first distance (d1) according to the infrared light intensity received by the first receiving tube (22a), wherein the first distance (d1) is the distance from the first receiving tube (22a) to the touch point; Step S400, determining a second distance (d2) according to the intensity of infrared light received by the second receiving tube (22b), wherein the second distance (d2) is the distance from the second receiving tube (22b) to the touch point; Step S500, taking the first receiving tube (22a) as the center and the first distance (d1) as the radius, to obtain a first circumference; taking the second receiving tube (22b) as the center and the second distance (d2) as the radius, to obtain a second circumference; determining a target intersection point of the first circumference and the second circumference as a touch point of the user on the keyboard pattern; the target intersection point is the intersection point of the first circumference and the second circumference on the keyboard pattern.
2. The projection keyboard calibration method according to claim 1, characterized in that: The infrared light bar (2) comprises a plurality of transmitting tubes (21) and a plurality of receiving tubes (22), wherein the transmitting tubes (21) and the receiving tubes (22) are arranged alternately in sequence; The step S200 comprises: respectively acquiring infrared light intensities received by two receiving tubes (22) adjacent to the same transmitting tube (21) on both sides, and using them as infrared light intensities received by the first receiving tube (22a) and infrared light intensities received by the second receiving tube (22b).
3. The projection keyboard calibration method according to any one of claims 1 to 2, characterized in that: There is one transmitting tube (21), and the method further comprises: Execute the steps S100 to S500 several times to obtain several touch points; When the plurality of touch points are the same touch point, it is determined that the same touch point is a continuous shot of a specific key.
4. The projection keyboard calibration method according to any one of claims 1 to 2, characterized in that: There are multiple transmitting tubes (21), and the method comprises: For each transmitting tube (21), executing steps S100 to S500 several times to obtain several touch points; When the plurality of touch points are the same touch point, it is determined that the same touch point is a continuous shot of a specific key.
5. The projection keyboard calibration method according to any one of claims 1 to 2, characterized in that: There is one transmitting tube (21), and the method further comprises: Execute the steps S100 to S500 M times to obtain M touch points; When the M touch points are N different touch points, the N different touch points are determined to be a combination of N keys, wherein M and N are positive integers, and 2≤N<M.
6. The projection keyboard calibration method according to any one of claims 1 to 2, characterized in that: There are multiple transmitting tubes (21), and the method comprises: For each transmitting tube (21), executing step S100 to step S500 M times to obtain M touch points; When the M touch points are N different touch points, the N different touch points are determined to be a combination of N keys, wherein M and N are positive integers, and 2≤N<M.
7. The projection keyboard calibration method according to claim 6, characterized in that: M = 2N; In the first N times of executing the steps S100 to S500, determining the first to N touch points respectively; In the subsequent N times of executing the steps S100 to S500 , when the first to N touch points determined in the previous N times are determined in sequence, the N touch points are determined to be a combination of N keys.
8. A projection keyboard calibration device, characterized in that: The projection keyboard comprises: a keyboard pattern projector (1) for projecting a keyboard pattern; an infrared light bar (2) comprising a transmitting tube (21) and at least two receiving tubes (22), wherein the infrared rays emitted by the transmitting tube (21) are received by the at least two receiving tubes (22) to calibrate the touch point of the user on the keyboard pattern; the calibration device comprises: An infrared driving module (10) is used to drive the transmitting tube (21) to emit infrared rays toward the keyboard pattern; An infrared light intensity acquisition module (20) is used to respectively acquire infrared light intensities received by more than two receiving tubes (22), and determine the infrared light intensities received by the two receiving tubes (22) with the strongest infrared light intensities as the infrared light intensities received by the first receiving tube (22a) and the second receiving tube (22b); A first distance determination module (30) is used to determine a first distance (d1) according to the infrared light intensity received by the first receiving tube (22a), wherein the first distance (d1) is the distance from the first receiving tube (22a) to a touch point; A second distance determination module (40) is used to determine a second distance (d2) according to the infrared light intensity received by the second receiving tube (22b), wherein the second distance (d2) is the distance from the second receiving tube (22b) to the touch point; A touch point determination module (50) is used to obtain a first circumference with the first receiving tube (22a) as the center and the first distance (d1) as the radius; obtain a second circumference with the second receiving tube (22b) as the center and the second distance (d2) as the radius; determine a target intersection point of the first circumference and the second circumference as a touch point of the user on the keyboard pattern; the target intersection point is the intersection point of the first circumference and the second circumference on the keyboard pattern.
9. A projection keyboard, characterized in that: include: A processor, configured to implement the method according to any one of claims 1 to 7.
