A contactless control method and device for buttons
Parallel laser planes are formed by multiple laser beams, and the coordinates of the reflected light points are monitored to calculate the click coordinates. This solves the problem of inaccurate triggering when the finger is not vertical or tilted in contactless button technology, and achieves higher button triggering accuracy.
Patent Information
- Application Number
- CN202111153897.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
With existing contactless key technology, when the user's finger is not vertical or tilted, the reflected light point projected on the physical key plane is inconsistent with the projection position of the finger tip, resulting in inaccurate key triggering or accidental touching of other keys.
Multiple laser beams are used to form first and second laser planes that are parallel to each other. The reflected light point coordinates are monitored, the key information is determined by calculating the click coordinates, and the corresponding keys are controlled to improve triggering accuracy.
Regardless of whether the user's finger is pointed vertically or tilted, the corresponding key can be accurately controlled, greatly improving key triggering accuracy.
Smart Images

Figure CN113810037B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of contactless key control, and in particular to a contactless key control method and device. Background Art
[0002] Contactless key technology is a technology that can control the key status without touching the physical key. After the elevator keys are touched and pressed by multiple people, some bacteria or viruses may survive on the key surface. By clicking the keys in a contactless way, there is no need to touch the key surface, which can prevent bacteria and viruses from infecting other users.
[0003] At present, the contactless key solution mainly generates multiple laser beams to form a laser plane parallel to the physical key plane. When the user's finger passes through the laser plane, a reflected light spot is generated, and then the reflected light spot is projected on the coordinates of the physical key plane to be determined as the click coordinates. If the click coordinates are within the coordinate recognition range of a certain key, the key is triggered. However, when the user triggers a key without contact, the fingertip of the finger generally stays above the key. When the user's finger is not vertical and passes through the laser plane more frequently, the position of the reflected light spot projected on the physical key plane is inconsistent with the position of the fingertip projected on the physical key plane, which may cause the key to fail to trigger normally or trigger other keys by mistake. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a contactless control method of a key and a corresponding contactless control device of a key that overcome the above problems or at least partially solve the above problems.
[0005] In order to solve the above problems, an embodiment of the present invention discloses a contactless control method of a key, the method comprising:
[0006] Emittering a plurality of laser beams, wherein the plurality of laser beams constitute a first laser plane and a second laser plane that are parallel to each other;
[0007] monitoring the first laser plane, and when a first reflected light spot appears on the first laser plane, acquiring first light spot coordinates of the first reflected light spot;
[0008] monitoring the second laser plane, and when a second reflected light spot appears on the second laser plane, acquiring second light spot coordinates of the second reflected light spot;
[0009] Calculate click coordinates using the first light spot coordinates and the second light spot coordinates;
[0010] Using the click coordinates, determining key information;
[0011] Control the key corresponding to the key information.
[0012] Optionally, the step of calculating click coordinates using the first light spot coordinates and the second light spot coordinates includes:
[0013] Acquire first distance information between the first laser plane and the key plane;
[0014] Acquire second distance information between the second laser plane and the key plane;
[0015] The first distance information, the second distance information, the first light spot coordinates and the second light spot coordinates are used to calculate the click coordinates according to a preset calculation formula.
[0016] Optionally, the button information has a coordinate identification range of the button, a corresponding relationship between the button number and the button, and the step of using the click coordinates to determine the button information includes:
[0017] Determine whether the click coordinates are within the coordinate recognition range;
[0018] If yes, determining the key number corresponding to the coordinate identification range;
[0019] If not, a re-click reminder message is generated.
[0020] Optionally, the button is connected to a corresponding switch circuit, and the step of controlling the button corresponding to the button information includes:
[0021] Using the key number, generating a control signal;
[0022] The control signal is used to control the switch circuit to control the key corresponding to the key number.
[0023] The embodiment of the present invention further discloses a non-contact control device for a key, the device comprising:
[0024] A laser beam generating module, used for emitting a plurality of laser beams, wherein the plurality of laser beams constitute a first laser plane and a second laser plane which are parallel to each other;
[0025] A first laser plane monitoring module, used for monitoring the first laser plane, and obtaining first light spot coordinates of the first reflected light spot when a first reflected light spot appears on the first laser plane;
[0026] A second laser plane monitoring module, used for monitoring the second laser plane, and obtaining second light spot coordinates of the second reflected light spot when a second reflected light spot appears on the second laser plane;
[0027] A click coordinate calculation module, used to calculate the click coordinates using the first light spot coordinates and the second light spot coordinates;
[0028] A button information determination module, used to determine button information using the click coordinates;
[0029] A button control module is used to control the button corresponding to the button information.
[0030] Optionally, the click coordinate calculation module includes:
[0031] A first distance information acquisition submodule, used to acquire first distance information between the first laser plane and the key plane;
[0032] A second distance information acquisition submodule, used to acquire second distance information between the second laser plane and the key plane;
[0033] The click coordinate calculation submodule is used to calculate the click coordinates according to a preset calculation formula using the first distance information, the second distance information, the first light spot coordinates and the second light spot coordinates.
[0034] Optionally, the key information has a coordinate identification range of the key, a corresponding relationship between the key number and the key, and the key information determination module includes:
[0035] A judgment submodule, used to judge whether the click coordinates are within the coordinate recognition range;
[0036] A button number determination submodule, for determining the button number corresponding to the coordinate identification range;
[0037] The re-click reminder information generation submodule is used to generate the re-click reminder information if no.
[0038] Optionally, the button is connected to a corresponding switch circuit, and the button trigger module includes:
[0039] A protocol information generation submodule, used to generate a control signal using the key number;
[0040] The key control submodule is used to control the switch circuit using the control signal to control the key corresponding to the key number.
[0041] The embodiments of the present invention include the following advantages: emitting multiple laser beams, the multiple laser beams forming a first laser plane and a second laser plane parallel to each other, monitoring the first laser plane, and when a first reflected light spot appears on the first laser plane, obtaining the first light spot coordinates of the first reflected light spot, monitoring the second laser plane, and when a second reflected light spot appears on the second laser plane, obtaining the second light spot coordinates of the second reflected light spot, using the first light spot coordinates and the second light spot coordinates to calculate the click coordinates, using the click coordinates to determine key information, and controlling the key corresponding to the key information, so that the corresponding key can be controlled regardless of whether the user's finger is pointing vertically or obliquely at the key, thereby greatly improving the key triggering accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flow chart of the steps of Embodiment 1 of a contactless control method for a key of the present invention.
[0043] Figure 2 It is a structural block diagram of a first embodiment of a key contactless control device of the present invention. DETAILED DESCRIPTION
[0044] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0045] Reference Figure 1 , shows a flow chart of the steps of a first embodiment of a contactless control method for a key of the present invention, which may specifically include the following steps:
[0046] Step 101, emitting a plurality of laser beams, wherein the plurality of laser beams constitute a first laser plane and a second laser plane that are parallel to each other;
[0047] In the embodiment of the present invention, multiple groups of laser emitters can be used to emit laser beams, and the multiple laser beams are parallel to each other to form two groups of laser planes, namely a first laser plane and a second laser plane, and the first laser plane and the second laser plane are parallel to each other. The first laser plane and the second laser plane are parallel and cover the plane of the original physical key.
[0048] It should be noted that the distance between the laser plane and the physical button should not be too small to prevent the user from accidentally touching the physical button when no contact operation is performed, and the distance between the laser plane and the physical button should not be too large to facilitate observation of the position of the physical button and thus accurately click. The distance between the laser plane and the physical button is set and adjusted by the technician according to the actual situation, and the embodiment of the present invention does not impose any further restrictions on this.
[0049] In addition, the number of laser emitters should be as large as possible to make the laser beam dense enough and form a more seamless laser plane to prevent the laser beam from not irradiating the user's finger when the user passes through the laser plane.
[0050] Step 102, monitoring the first laser plane, and when a first reflected light spot appears on the first laser plane, acquiring first light spot coordinates of the first reflected light spot;
[0051] Step 103, monitoring the second laser plane, and when a second reflected light spot appears on the second laser plane, acquiring second light spot coordinates of the second reflected light spot;
[0052] After the first laser plane and the second laser plane are constructed by the emitted multiple laser beams, the laser planes are monitored in real time to obtain a real-time monitoring image.
[0053] When a user needs to control a physical key with a finger without contact, the finger passes through the first laser plane and the second laser plane above the physical key without actually touching the physical key. The laser beam is irradiated on the finger and reflected, forming a first reflected light spot on the first laser plane and a second emitted light spot on the second laser plane. When the above-mentioned reflected light spot is detected in the real-time monitoring image, the first click coordinate of the first reflected light spot and the second emitted coordinate of the second emitted light spot are obtained, and the first click coordinate and the second click coordinate are both planar two-dimensional coordinates.
[0054] Step 104, using the first light spot coordinates and the second light spot coordinates to calculate click coordinates;
[0055] When a user needs to control a button without contact with his finger, the fingertip of the finger usually stays on top of a physical button. Therefore, in the embodiment of the present application, when the finger passes through the first laser plane and the second laser plane, the intersection of the straight line where the first reflected light spot and the second reflected light spot are located and the plane where the physical button is located is regarded as the click coordinate, and its coordinate is calculated according to the geometric relationship. The click coordinate is close to the position where the fingertip of the finger is projected on the button plane.
[0056] The step of calculating click coordinates using the first light spot coordinates and the second light spot coordinates includes:
[0057] Acquire first distance information between the first laser plane and the key plane;
[0058] Acquire second distance information between the second laser plane and the key plane;
[0059] The first distance information, the second distance information, the third distance information, the first light spot coordinates and the second light spot coordinates are used to calculate the click coordinates according to a preset calculation formula.
[0060] Assuming that the first distance information is h1, the second distance information is h2, the first light spot coordinates are (x1, y1), the second light spot coordinates are (x2, y2), and the click coordinates are (x3, y3), then according to the geometric relationship, the preset calculation formula can be obtained as follows:
[0061]
[0062]
[0063] According to the above formula, the value of (x3, y3), that is, the click coordinates, can be calculated.
[0064] Step 105, using the click coordinates to determine key information;
[0065] After the click coordinates are calculated, the click coordinates can be used to determine the key information of the physical key that the user clicks without contact. The key information includes the coordinate identification range of the key, the corresponding relationship between the key number and the key.
[0066] In an embodiment of the present invention, each button has a coordinate identification range. When the click coordinates of a contactless click are within the coordinate identification range, the click will be determined as a valid click. When the click coordinates of a contactless click are outside the coordinate identification range, the click will be determined as an invalid click, and the user can be reminded to click again.
[0067] The coordinate recognition range may be a circular recognition range with the center of the physical key as the center, and the radius of the circular recognition range may be adaptively adjusted according to the actual distance between each key. It should be noted that if the coordinate recognition range set for each key is too small, the success rate of effective clicks will be reduced, and if the coordinate recognition range set for each key is too large, the coordinate recognition ranges between keys may overlap, resulting in a situation where multiple keys are triggered by one click.
[0068] The button information includes a coordinate identification range of the button, a corresponding relationship between the button number and the button, and the step of using the click coordinates to determine the button information includes:
[0069] Determine whether the click coordinates are within the coordinate recognition range;
[0070] If yes, determining the key number corresponding to the coordinate identification range;
[0071] If not, a re-click reminder message is generated.
[0072] Step 106: Control the key corresponding to the key information.
[0073] When the user's click operation is a valid click and the key number is determined, the key corresponding to the key number can be triggered.
[0074] The button is connected to a corresponding switch circuit, and the step of controlling the button corresponding to the button information includes:
[0075] Using the key number, generating a control signal;
[0076] The control signal is used to control the switch circuit to control the key corresponding to the key number.
[0077] In an embodiment of the present invention, a plurality of laser light beams are emitted, and the plurality of laser light beams constitute a first laser plane and a second laser plane parallel to each other. The first laser plane is monitored, and when a first reflected light spot appears on the first laser plane, the first light spot coordinates of the first reflected light spot are obtained. The second laser plane is monitored, and when a second reflected light spot appears on the second laser plane, the second light spot coordinates of the second reflected light spot are obtained. The first light spot coordinates and the second light spot coordinates are used to calculate the click coordinates, and the click coordinates are used to determine key information, and the key corresponding to the key information is controlled. Regardless of whether the user's finger is pointing vertically or obliquely at the key, the corresponding key can be controlled, thereby greatly improving the key triggering accuracy.
[0078] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0079] Reference Figure 2 , shows a structural block diagram of a first embodiment of a non-contact control device for a key according to the present invention, which may specifically include the following modules:
[0080] A laser beam generating module 201 is used to emit multiple laser beams, wherein the multiple laser beams form a first laser plane and a second laser plane that are parallel to each other;
[0081] A first laser plane monitoring module 202 is used to monitor the first laser plane, and when a first reflected light spot appears on the first laser plane, obtain a first light spot coordinate of the first reflected light spot;
[0082] A second laser plane monitoring module 203 is used to monitor the second laser plane, and when a second reflected light spot appears on the second laser plane, obtain a second light spot coordinate of the second reflected light spot;
[0083] A click coordinate calculation module 204, configured to calculate a click coordinate using the first light spot coordinate and the second light spot coordinate;
[0084] A button information determination module 205, configured to determine button information using the click coordinates;
[0085] The button control module 206 is used to control the button corresponding to the button information.
[0086] In an embodiment of the present invention, the click coordinate calculation module includes:
[0087] A first distance information acquisition submodule, used to acquire first distance information between the first laser plane and the key plane;
[0088] A second distance information acquisition submodule, used to acquire second distance information between the second laser plane and the key plane;
[0089] The click coordinate calculation submodule is used to calculate the click coordinates according to a preset calculation formula using the first distance information, the second distance information, the first light spot coordinates and the second light spot coordinates.
[0090] In an embodiment of the present invention, the key information has a coordinate identification range of the key, a corresponding relationship between the key number and the key, and the key information determination module includes:
[0091] A judgment submodule, used to judge whether the click coordinates are within the coordinate recognition range;
[0092] A button number determination submodule, for determining the button number corresponding to the coordinate identification range;
[0093] The re-click reminder information generation submodule is used to generate the re-click reminder information if no.
[0094] In an embodiment of the present invention, the button is connected to a corresponding switch circuit, and the button trigger module includes:
[0095] A protocol information generation submodule, used to generate a control signal using the key number;
[0096] The key control submodule is used to control the switch circuit using the control signal to control the key corresponding to the key number.
[0097] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0098] The embodiment of the present invention further provides a device, including:
[0099] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned contactless control method embodiment of a button are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0100] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned contactless control method for a button are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0101] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0102] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more groups of computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0103] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 Process or groups of processes and / or boxes Figure 1 A device that specifies the functions of a box or multiple groups of boxes.
[0104] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 Process or groups of processes and / or boxes Figure 1 A function specified in a box or groups of boxes.
[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 Process or groups of processes and / or boxes Figure 1 The steps for a function specified in a box or multiple groups of boxes.
[0106] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0107] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0108] The above is a detailed introduction to a contactless control method for a button and a contactless control device for a button provided by the present invention. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a general technician in this field, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A contactless control method for a key, characterized in that: The method comprises: Emittering a plurality of laser beams, wherein the plurality of laser beams constitute a first laser plane and a second laser plane that are parallel to each other; monitoring the first laser plane, and when a first reflected light spot appears on the first laser plane, acquiring first light spot coordinates of the first reflected light spot; monitoring the second laser plane, and when a second reflected light spot appears on the second laser plane, acquiring second light spot coordinates of the second reflected light spot; Calculate click coordinates using the first light spot coordinates and the second light spot coordinates; Using the click coordinates, determining key information; Control the key corresponding to the key information.
2. The method according to claim 1, characterized in that The step of calculating click coordinates using the first light spot coordinates and the second light spot coordinates includes: Acquire first distance information between the first laser plane and the key plane; Acquire second distance information between the second laser plane and the key plane; The first distance information, the second distance information, the first light spot coordinates and the second light spot coordinates are used to calculate the click coordinates according to a preset calculation formula.
3. The method according to claim 1, characterized in that The button information includes a coordinate identification range of the button, a corresponding relationship between the button number and the button, and the step of using the click coordinates to determine the button information includes: Determine whether the click coordinates are within the coordinate recognition range; If yes, determining the key number corresponding to the coordinate identification range; If not, a re-click reminder message is generated.
4. The method according to claim 3, characterized in that The button is connected to a corresponding switch circuit, and the step of controlling the button corresponding to the button information includes: Using the key number, generating a control signal; The control signal is used to control the switch circuit to control the key corresponding to the key number.
5. A non-contact control device for buttons, characterized in that: The device comprises: A laser beam generating module, used for emitting a plurality of laser beams, wherein the plurality of laser beams constitute a first laser plane and a second laser plane which are parallel to each other; A first laser plane monitoring module, used for monitoring the first laser plane, and obtaining first light spot coordinates of the first reflected light spot when a first reflected light spot appears on the first laser plane; A second laser plane monitoring module, used for monitoring the second laser plane, and obtaining second light spot coordinates of the second reflected light spot when a second reflected light spot appears on the second laser plane; A click coordinate calculation module, used to calculate the click coordinates using the first light spot coordinates and the second light spot coordinates; A button information determination module, used to determine button information using the click coordinates; A button control module is used to control the button corresponding to the button information.
6. The device according to claim 5, characterized in that The click coordinate calculation module includes: A first distance information acquisition submodule, used to acquire first distance information between the first laser plane and the key plane; A second distance information acquisition submodule, used to acquire second distance information between the second laser plane and the key plane; The click coordinate calculation submodule is used to calculate the click coordinates according to a preset calculation formula using the first distance information, the second distance information, the first light spot coordinates and the second light spot coordinates.
7. The device according to claim 5, characterized in that The key information includes a coordinate identification range of the key, a corresponding relationship between the key number and the key, and the key information determination module includes: A judgment submodule, used to judge whether the click coordinates are within the coordinate recognition range; A button number determination submodule, for determining the button number corresponding to the coordinate identification range; The re-click reminder information generation submodule is used to generate the re-click reminder information if no.
8. The device according to claim 7, characterized in that The button is connected to a corresponding switch circuit, and the button trigger module includes: A protocol information generation submodule, used to generate a control signal using the key number; The key control submodule is used to control the switch circuit using the control signal to control the key corresponding to the key number.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the contactless control method of a key as claimed in any one of claims 1 to 4 are implemented.
