Keyboard and its key pressing recognition method and control device
By setting a color detection module and a color identification part of the key in the keyboard housing to collect press signals, the space occupation problem caused by the complex structure of the existing keyboard is solved, and the keyboard is lighter and lighter and efficient key recognition is achieved.
Patent Information
- Application Number
- CN201911244384.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-06
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2039-12-06
AI Technical Summary
The internal structure of the existing keyboard is complex, which takes up more space and limits the lightness of the keyboard.
A keyboard is designed, and a color detection module is provided in its shell. The key has a color identification part. When the key is pressed, the color identification part enters the detection range and collects the pressing signal through the cooperation of the color sensor and the fill light module.
It simplifies the internal structure of the keyboard, reduces space usage, realizes the lightness and lightness of the keyboard, and improves the service life of the keys.
Smart Images

Figure CN110931297B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of keyboards, and in particular, to a keyboard, a key pressing recognition method, and a control device. Background Art
[0002] As an indispensable device in people's work and life, with the development of technology, people's requirements for the thinness and lightness of keyboards are also constantly increasing.
[0003] However, in the current internal structure of keyboards, a whole circuit board needs to be installed. Corresponding to the position of each key on the circuit board, structures such as corresponding electronic components, mechanical switches, and membrane switches are provided to trigger an electrical signal when the key is pressed, so as to realize the sensing of the key pressing action. However, such a method of collecting pressing signals has a complex circuit structure, resulting in more space occupied by the internal structure of the keyboard, seriously restricting the thinness and lightness of the keyboard.
[0004] The above content is only used to assist in understanding the technical solution of the present invention, and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of the present invention is to provide a keyboard, aiming to simplify the internal structure of the keyboard, reduce the space occupied by the internal structure of the keyboard, so as to realize the thinness and lightness of the keyboard.
[0006] To achieve the above object, the present invention provides a keyboard, the keyboard includes a housing and a plurality of keys, the housing has an installation part, a color detection module is arranged in the housing, and the detection range of the color detection module covers the installation part;
[0007] The keys are movably installed on one side of the installation part, the movement of the keys relative to the installation part has an initial position and a pressing position, each key has a color identification part, and the installation part is provided with a through hole for the color identification part to pass through;
[0008] When the key is in the pressing position, the color identification part passes through the through hole and falls into the detection range, and when the key is in the initial position, the color identification part is hidden in the through hole.
[0009] Optionally, each key has a color identification part with a different color.
[0010] Optionally, the color detection module includes a color sensor and a supplementary light module arranged at an interval from the color sensor.
[0011] Optionally, the color sensor and the supplementary light module are arranged along the edge of the same side of the installation part.
[0012] In addition, to achieve the above object, the present application further provides a key pressing recognition method, based on the keyboard described in any one of the above, the key pressing recognition method includes the following steps:
[0013] Obtain color detection information based on the color detection module;
[0014] When there is a key pressing action, determine the target key being pressed according to the color detection information.
[0015] Optionally, before the step of when there is a key pressing action, determining the target key being pressed according to the color detection information, further includes:
[0016] Analyze the color feature information in the color detection information;
[0017] In the preset color information library, determine whether there is pre-stored color information that matches the color feature information;
[0018] If it exists, determine that there is a key pressing action;
[0019] If it does not exist, determine that there is no key pressing action.
[0020] Optionally, the step of determining the target key being pressed according to the detection information includes:
[0021] Determine the pre-stored color information that matches the color feature information as the target color information;
[0022] Associate the key associated with the target color information as the target key.
[0023] Optionally, the step of analyzing the color feature information in the color detection information includes:
[0024] Analyze the RGB value and intensity value in the color detection information;
[0025] Determine the color feature information according to the RGB value and the intensity value.
[0026] Optionally, after the step of when there is a key pressing action, determining the target key being pressed according to the color detection information, further includes:
[0027] Obtain the key value corresponding to the target key;
[0028] Generate a corresponding trigger signal according to the obtained key value;
[0029] Send the trigger signal to an external device connected to the keyboard.
[0030] In addition, to achieve the above object, the present application further provides a control device, which includes: a memory, a processor, and a key pressing recognition program stored on the memory and executable on the processor. The processor is connected to the color detection module. When the key pressing recognition program is executed by the processor, the steps of the key pressing recognition method described in any one of the above are implemented.
[0031] A keyboard provided by the present invention includes a housing and a plurality of keys. The housing has an installation portion, and a color detection module is disposed inside the housing. The detection range of the color detection module covers the installation portion. The keys are movably installed on one side of the installation portion. The movement of the keys relative to the installation portion has an initial position and a pressed position. Each key has a color identification portion, and the installation portion is provided with a through hole through which the color identification portion passes. When the key is not pressed, it is in the initial position, and the color identification portion is hidden in the through hole and cannot be detected by the color detection module. When the key is pressed, it is in the pressed position, and the color identification portion passes through the through hole and falls into the detection range of the color detection module. Therefore, only by cooperating the color sensor and the color identification portion can the acquisition of the key pressing action signal be realized. In this way, a large area of circuit board and complex circuit structures such as electronic components, mechanical switches, and membrane switches corresponding to each key can be eliminated, thereby effectively simplifying the relevant structures for collecting the key pressing signals inside the keyboard, reducing the space occupied by the internal structure of the keyboard, and realizing the thin and light design of the keyboard. Description of the Drawings
[0032] Figure 1 Partial structural schematic diagram of the inside of the keyboard in an embodiment of the present invention;
[0033] Figure 2 is Figure 1 Enlarged structural schematic diagram of part A in
[0034] Figure 3 Structural schematic diagram of the key in the keyboard in an embodiment of the present invention;
[0035] Figure 4 Hardware structural schematic diagram involved in the operation of an embodiment of the control device of the present invention;
[0036] Figure 5 Flow schematic diagram of the first embodiment of the key pressing recognition method of the present invention;
[0037] Figure 6 Flow schematic diagram of the second embodiment of the key pressing recognition method of the present invention;
[0038] Figure 7 Flow schematic diagram of the third embodiment of the key pressing recognition method of the present invention.
[0039] Explanation of the reference numerals in the drawings:
[0040]
[0041]
[0042] The realization, functional features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0044] The main solution of the embodiment of the present invention is: to provide a keyboard, which includes a housing and a plurality of keys. The housing has an installation part, and a color detection module is arranged in the housing, and the detection range of the color detection module covers the installation part; the keys are movably installed on one side of the installation part, and the movement of the keys relative to the installation part has an initial position and a pressed position. Each key has a color identification part, and the installation part is provided with a through hole for the color identification part to pass through; when the key is in the pressed position, the color identification part passes through the through hole and falls into the detection range, and when the key is in the initial position, the color identification part is hidden in the through hole.
[0045] In the prior art, the circuit structure for collecting the pressing signals of the keys inside the keyboard is complex, resulting in a large amount of space occupied by the internal structure of the keyboard, which seriously limits the thinness and lightness of the keyboard.
[0046] The present invention provides the above solution, aiming to simplify the relevant structure for collecting the pressing signals of the keys inside the keyboard, reduce the space occupied by the internal structure of the keyboard, and realize the thinness and lightness of the keyboard.
[0047] The present invention provides a keyboard.
[0048] In this embodiment, referring to Figure 1 and Figure 2 , the keyboard includes a housing and a plurality of keys 2. The housing has an installation part 1, and a color detection module 3 is arranged in the housing, and the detection range of the color detection module 3 covers the installation part 1.
[0049] Specifically, a cavity is formed in the housing. The housing specifically includes an upper housing and a lower housing, and the upper housing and the lower housing are connected to form the above-mentioned cavity. The upper housing can be used as the above-mentioned installation part 1 for installing the keys 2, and the lower housing can be placed at the bottom when the keyboard is in use. The color detection module 3 is specifically a detection module for detecting the color of an object. The color detection module 3 is installed in the cavity, and the detection range of the color detection module 3 is generally radial, and it covers the surface of the installation part 1 located in the cavity.
[0050] The button 2 is movably installed on one side of the installation part 1. The movement of the button 2 relative to the installation part 1 has an initial position and a pressed position. Each button 2 has a color identification part 21, and the installation part 1 is provided with a through hole 11 for the color identification part 21 to pass through. When the button 2 is in the pressed position, the color identification part 21 passes through the through hole 11 and falls into the detection range. When the button 2 is in the initial position, the color identification part 21 is hidden in the through hole 11.
[0051] The button 2 is installed on the installation part 1, and part or all of the button 2 protrudes towards the outside of the housing relative to the installation part 1. The button 2 can move in a direction towards or away from the installation part 1. Specifically, when the button 2 is not pressed, the button 2 is in the initial position. When the button 2 is pressed, the button 2 moves towards the installation part 1 to the pressed position. When the button 2 is in the pressed position and not pressed, the button 2 moves away from the installation part 1 until the button 2 returns to the initial position.
[0052] Refer to Figure 1 , the color identification part 21 is arranged at one end of the button 2 close to the installation part 1. The color identification part 21 is specifically a structure with a color. Among them, a color label can be pasted at one end of the button 2 close to the installation part 1 to form the color identification part 21. In addition, a structure made of a material with a color can also be directly used as the color identification part 21, and so on. The color identification part 21 of one button 2 corresponds to one color. The color of the color identification part 21 can be set according to actual needs. The colors corresponding to the color identification parts 21 of different buttons 2 can be set to be the same or different according to needs. In this embodiment, in order to accurately identify the pressing signals of different buttons 2, different buttons 2 have color identification parts 21 with different colors. For example, the color identification part 21 of button A is red, the color identification part 21 of button B is green, the color identification part 21 of button C is blue, and the color identification part 21 of button D is yellow.
[0053] When the key 2 is in the initial position, the color identification part 21 can be entirely outside the housing, or partially inserted into the through hole 11 but not into the cavity inside the housing, and will not fall within the detection range of the color detection module 3. Therefore, the color detection module 3 will not detect the color on the color identification part 21, and the color feature information corresponding to the color identification part 21 will not appear in the color detection information of the color detection module 3. When the key 2 is in the pressed position, the color identification part 21 passes through the through hole 11 and enters the housing, falling within the detection range of the color detection module 3. Therefore, the color detection module 3 detects the color on the color identification part 21, and the color feature information corresponding to the color identification part 21 appears in the color detection information of the color detection module 3. Based on this, when the color feature information corresponding to the color identification part 21 appears in the color detection information of the color detection module 3, it can be considered that there is a pressed key 2. Further, based on the appeared color feature information, the target key among the multiple keys 2 that is pressed can be determined; when the color feature information corresponding to the color identification part 21 does not appear in the color detection information of the color detection module 3, it can be considered that there is no pressed key 2. Therefore, the color detection information of the color detection module 3 can be used as a characterization signal for whether the key 2 is pressed.
[0054] This embodiment provides a keyboard, which includes a housing and multiple keys 2. The housing has an installation part 1, and a color detection module 3 is arranged inside the housing. The detection range of the color detection module 3 covers the installation part 1. The keys 2 are movably installed on one side of the installation part 1. The movement of the keys 2 relative to the installation part 1 has an initial position and a pressed position. Each key 2 has a color identification part 21. The installation part 1 is provided with a through hole 11 through which the color identification part 21 passes. When the key 2 is not pressed, it is in the initial position, and the color identification part 21 is hidden in the through hole 11 and cannot be detected by the color detection module 3. When the key 2 is pressed, it is in the pressed position, and the color identification part 21 passes through the through hole 11 and falls within the detection range of the color detection module 3. Therefore, only the cooperation of the color sensor 31 and the color identification part 21 is required to collect the key pressing action signal, which can eliminate complex circuit structures such as large circuit boards and electronic components, mechanical switches, and membrane switches corresponding to each key 2. Thus, the relevant structure for collecting the pressing signal of the key 2 inside the keyboard can be effectively simplified, and the space occupied by the internal structure of the keyboard can be reduced to achieve the thinness and lightness of the keyboard. In addition, through the above color detection module 3, the key 2 does not need to contact other components during the recognition process of the pressing action, which is beneficial to improving the service life of the key 2.
[0055] Specifically, referring to Figure 1, the color detection module 3 includes a color sensor 31 and a supplementary light module 32 spaced from the color sensor 31. The supplementary light module 32 is specifically a component that provides light inside the housing. Among them, in order to ensure brightness while saving energy consumption, the supplementary light module 32 can use an LED lamp. The color sensor 31 is specifically a detection element that collects the light reflected by an object and analyzes it to obtain the color of the object. The color sensor 31 can be a color sensor or a grayscale sensor. Specifically, when the button 2 is in the initial position, the color identification part 21 is hidden in the through hole 11, and the light emitted by the supplementary light module 32 cannot shine on the color identification part 21. The light wave reflected by the light irradiating the inner wall of the housing is collected by the color sensor 31, and the color characteristic information corresponding to the color identification part 21 does not appear in the light wave; when the button 2 is in the pressed position, the color identification part 21 enters the inside of the housing, and the light emitted by the supplementary light module 32 irradiates the color identification part 21 and is reflected. The light wave reflected by the color identification part 21 is collected by the color sensor 31, and the color characteristic information of the color identification part 21 can be obtained by analyzing the light wave. In this embodiment, through the cooperative setting of the color sensor 31 and the supplementary light module 32, when the button 2 is pressed, the color identification part 21 enters the housing, and the color of the color identification part 21 can be accurately identified.
[0056] The color detection module 3 can be installed on the installation part 1 or at any position inside the housing. Among them, the color detection module 3 can be selectively arranged along the edge of the installation part 1 to avoid affecting the compactness of the layout between the buttons 2. Among them, referring to Figure 1 , the color sensor 31 and the supplementary light module 32 can be arranged along the edge on the same side of the installation part 1 to ensure that the intensity of the light collected by the color sensor 31 is large enough and the color characteristic information in the light is clear enough to ensure the accuracy of the color of the color identification part 21 detected by the color sensor 31.
[0057] The number of the color sensor 31 and the supplementary light module 32 can be set to one or more according to requirements. Among them, referring to Figure 1 , the number of the supplementary light modules 32 can be selectively more than one. More than one supplementary light module 32 is arranged at intervals along the edge of the installation part 1. For example, there can be specifically two supplementary light modules 32, and the two supplementary light modules 32 are arranged at intervals on both sides of the color sensor 31, so as to ensure that the intensity of the light reflected by the color identification part 21 when any button 2 is pressed is large enough and the color characteristic information in the light is clear enough to ensure the accuracy of the color of the color identification part 21 detected by the color sensor 31.
[0058] Among them, referring to Figure 3, each of the keys 2 includes a support member 22, a keycap 23, and an elastic member 24. The keycap 23 is spaced apart from the mounting portion 1 and is mounted on the support member 22. The support member 22 is disposed on one side of the mounting portion 1. The color identification portion 21 is disposed on the support member 22. The elastic member 24 is disposed between the support member 22 and the mounting portion 1, so that when the elastic member 24 is in an elastically deformed state, a pressing position of the key 2 is formed, and when the elastic member 24 is in a natural state, an initial position of the key 2 is formed. The elastic member 24 can specifically be a spring, a shrapnel, etc. Specifically, the user can press the keycap 23 to make the keycap 23 move toward the mounting portion 1 of the housing. The support member 22 connected to the keycap 23 synchronously moves toward the mounting portion 1 of the housing under the drive of the keycap 23. At the same time, the support member 22 presses the elastic member 24, causing the elastic member 24 to undergo elastic deformation, so that the key 2 is in the pressing position. The color identification portion 21 on the support member 22 passes through the through hole 11 and enters the interior of the housing, falling within the detection range of the color detection module 3. When the key 2 is in the pressing position and the elastic member 24 is in an elastically deformed state, the user releases the keycap 23. The keycap 23 no longer receives external pressure, and the elastic member 24 returns from the elastically deformed state to the natural state. The elastic force generated during this process drives the support member 22 and the keycap 23 to move away from the housing, so that the color identification portion 21 leaves the detection range of the color detection module 3 inside the housing. In this embodiment, the key 2 is arranged according to the above structure, so that the key 2 can automatically return from the pressing position to the initial position, thereby ensuring the accuracy of the pressing action recognition when the user continuously presses different keys 2.
[0059] Further, referring to Figure 2 , the mounting portion 1 is provided with an avoidance opening 12 for the keycap 2 to pass through. When the key 2 is pressed, its keycap 2 can pass through the avoidance opening 12. On the one hand, it is convenient for the positioning of the key 2. On the other hand, it ensures that the key 2 has enough pressing travel to ensure the user's key pressing experience. At the same time, it can make the structure of the keyboard more compact, thereby further promoting the thinness and lightness of the keyboard.
[0060] Further, the keyboard further includes a data processing module (not shown). One end of the data processing module (not shown) is communicatively connected to the color detection module 3, and the other end of the data processing module (not shown) is connected to an external device. The data processing module (not shown) can specifically be an integrated chip. The data processing module (not shown) can obtain the color detection information collected by the color detection module 3, perform processing such as amplification and recognition on the color detection information, and then send it to an external device (such as a computer, a mobile phone, etc.) connected to the keyboard, so as to enable the external device to use this keyboard as an information input device.
[0061] Based on the above keyboard, the present invention provides a control device for identifying key presses on the above keyboard. The control device may specifically be the above data processing module (not shown) installed inside the keyboard housing. In other embodiments, the control device may also be independently set up relative to the above keyboard according to actual requirements.
[0062] In an embodiment of the present invention, referring to Figure 4 , the control device includes: a processor 1001, such as a CPU, a memory 1002, etc. The memory 1002 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1002 may also be a storage device independent of the aforementioned processor 1001.
[0063] Both the memory 1002 and the color detection module 3 in the above keyboard are connected to the processor 1001. In addition, an external device 4 connected to the keyboard is also connected to the processor 1001 to enable the external device 4 to obtain user instructions formed based on key presses on the keyboard. Those skilled in the art can understand that Figure 4 the device structure shown in
[0064] does not constitute a limitation on the device, and it may include more or fewer components than shown, or combine certain components, or have different component arrangements. Figure 4 As shown in Figure 1 , the memory 1002, as a readable storage medium, may include a key press recognition program. In the device shown in
[0065] , the processor 1001 may be used to call the key press recognition program stored in the memory 1002 and execute the relevant step operations of the key press recognition method in the following embodiments.
[0066] Based on the keyboard in the above embodiments, the present invention further provides a key press recognition method. Figure 5 Referring to
[0067] a first embodiment of the key press recognition method of the present invention is proposed. The key press recognition method includes:
[0068] Step S10: Obtain color detection information based on the color detection module 3;
[0069] Specifically, obtain the detection data of the color detection module 3 provided inside the keyboard housing as the color detection information here.
[0070] It is determined whether there is a key pressing action by obtaining the current operating state of the keyboard or the current detection information inside the housing, etc. For example, when the user needs to press Key 2, a preset instruction can be input, and the keyboard enters the input state. Therefore, it can be determined whether there is a key pressing action by judging whether the keyboard is in the input state. If it is in the input state, it indicates that there is a key pressing action; if it is not in the input state, it indicates that there is no key pressing action. In addition, it is also possible to selectively determine whether there is a key pressing action according to the color detection information.
[0071] The color identification parts 21 of different Keys 2 have different colors. Therefore, different color detection information is formed correspondingly when different Keys 2 are pressed. Therefore, when there is a key pressing action, the target key that is currently pressed among the multiple Keys 2 can be determined based on the color detection information. Specifically, the colors of the color identification parts 21 of all Keys 2 are recorded and saved to form pre-stored color information, and the set of multiple pre-stored color information forms a preset color information library. In the preset color information library, different pre-stored color information is associated with different Keys 2. Therefore, the color feature information in the detection information is parsed, and the pre-stored color information that matches the color feature information is determined as the target color information. Based on the preset color information library, the Key 2 associated with the target color information is used as the target key.
[0072] A key pressing recognition method proposed in an embodiment of the present invention determines the target key being pressed based on the color detection information detected by the color detection module 3. Without a complex circuit structure, the accurate recognition of the target key being currently pressed can be achieved only relying on the color detection information detected by the color detection module 3, realizing the simplification of the internal structure of the keyboard, thereby promoting the thinness and lightness of the keyboard, and it can be realized that no matter which Key 2 the user presses when using the keyboard, it will be effectively recognized, ensuring the accuracy of Key 2 recognition.
[0073] Further, based on the first embodiment, a second embodiment of the key pressing recognition method of the present application is proposed. In the second embodiment, referring to Figure 6 , before step S20, it further includes:
[0074] Step S01, parsing the color feature information in the color detection information;
[0075] Specifically, the RGB value and intensity value in the color detection information are parsed; the color feature information is determined according to the RGB value and the intensity value. In other embodiments, the light intensity value of the light emitted by the supplementary light module 32 can also be obtained, and after the intensity value in the color detection information is corrected based on the light intensity value, the color feature information is determined in combination with the corrected intensity value and the RGB value.
[0076] The color feature information here is the color detected within the detection range in the color detection information. When no key 2 is pressed, the color feature information specifically includes the color information corresponding to the inner wall of the housing or other components inside the housing within the detection range. When a key 2 is pressed, the color identification part 21 of the key 2 enters the detection area of the color detection module 3. The color feature information includes, in addition to the color information corresponding to the inner wall of the housing or other components inside the housing within the detection range, the color information corresponding to the color identification part 21. It should be noted that the color information corresponding to the color identification part 21 is significantly different from the color information corresponding to the inner wall of the housing or other components inside the housing within the detection range.
[0077] Step S02, in the preset color information library, determine whether there is pre-stored color information that matches the color feature information; if there is, execute step S03, if not, execute step S04.
[0078] The preset color information library includes the pre-stored color information corresponding to the color identification parts 21 of all the keys 2 on the keyboard. Traverse the pre-stored color information in the preset color information library to determine whether there is pre-stored color information that matches the color feature information extracted from the color detection information. If there is, it indicates that a key 2 has been pressed and its color identification part 21 has fallen within the detection range of the color detection module 3; if not, it indicates that no key 2 has been pressed, so no color information corresponding to any color identification part 21 can be detected within the detection range of the color detection module 3. For example, the pre-stored color information in the preset color information library includes red, blue, yellow, and green. When the parsed color feature information includes black, there is no pre-stored color information in the preset color information library that matches the color feature information, so it is determined that there is no key pressing action; when the parsed color feature information includes black and red, there is pre-stored color feature information in the preset color information library that matches the red in the color feature information, so it is determined that there is a key pressing action.
[0079] Step S03, determine that there is a key pressing action;
[0080] Step S04, determine that there is no key pressing action.
[0081] In this embodiment, based on the color detection information, it is determined whether there is a key pressing action, so that without the user performing other operations and without setting an additional detection module inside the keyboard, the effective recognition of the user's key pressing action can be achieved, ensuring the thinness and lightness of the keyboard while ensuring a good operation experience for the user. Among them, determining the color feature information by combining the RGB value and the intensity value is conducive to ensuring the accuracy of the determined color feature information.
[0082] Further, based on any of the above embodiments, a third embodiment of the key pressing recognition method of the present application is proposed. In the third embodiment, referring to Figure 7 After the step S20, the method further includes:
[0083] Step S30: Obtain the key value corresponding to the target key;
[0084] According to actual usage requirements, different keys 2 in the keyboard can be set with different key values. The key values corresponding to each key 2 can be associated with pre-stored color feature information. Therefore, based on the pre-stored color feature information, the key value corresponding to the target key can be obtained.
[0085] Step S40: Generate a corresponding trigger signal according to the obtained key value;
[0086] The obtained key value can be encoded according to a preset rule to form a trigger signal.
[0087] Step S50: Send the trigger signal to an external device connected to the keyboard.
[0088] The external device is specifically a device such as a computer connected to the keyboard. The trigger signal is sent to the external device so that the external device can parse the content input by the user.
[0089] In this embodiment, through the above method, it is ensured that the external device can promptly and accurately know the instructions input by the user by pressing the keyboard key 2, thereby realizing the effectiveness of the keyboard as an input device of the external device.
[0090] In addition, an embodiment of the present invention also proposes a readable storage medium, on which a key pressing recognition program is stored. When the keyboard control program is executed by a processor, the relevant steps of any of the above key pressing recognition methods are implemented.
[0091] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or system including that element.
[0092] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0093] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, keyboard, or network device, etc.) to execute the methods described in various embodiments of the present invention.
[0094] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. A key pressing recognition method, applied to a keyboard, characterized in that The keyboard includes a housing and a plurality of keys. The housing has a mounting portion. A color detection module is disposed inside the housing. The color detection module includes a color sensor and a supplementary light module spaced apart from the color sensor. The color sensor and the supplementary light module are disposed along an edge on the same side of the mounting portion. The detection range of the color detection module covers the mounting portion; The keys are movably mounted on one side of the mounting portion. The movement of the keys relative to the mounting portion has an initial position and a pressed position. Each key has a color identification portion with a different color. The mounting portion is provided with a through hole for the color identification portion to pass through; When the key is in the pressed position, the color identification portion passes through the through hole and falls within the detection range. When the key is in the initial position, the color identification portion is hidden in the through hole; The method for identifying key presses includes the following steps: Obtain color detection information based on the color detection module; When there is a key pressing action, determine the target key being pressed according to the color detection information; Before the step of determining the target key being pressed according to the color detection information when there is a key pressing action, it further includes: Analyze the color feature information in the color detection information; In a preset color information library, determine whether there is pre-stored color information that matches the color feature information; If there is, it is determined that there is a key pressing action; If not, it is determined that there is no key pressing action.
2. The key pressing recognition method according to claim 1, wherein, The step of determining the target key being pressed according to the detection information includes: Determine the pre-stored color information that matches the color feature information as the target color information; Use the key associated with the target color information as the target key.
3. The key pressing recognition method according to claim 2, wherein, The step of analyzing the color feature information in the color detection information includes: Analyze the RGB values and intensity values in the color detection information; Determine the color feature information according to the RGB values and the intensity values.
4. The key pressing recognition method according to any one of claims 1 to 3, characterized in that, After the step of determining the target key being pressed according to the color detection information when there is a key pressing action, it further includes: Obtain the key value corresponding to the target key; Generate a corresponding trigger signal according to the obtained key value; Send the trigger signal to an external device connected to the keyboard.
5. A control device, characterized in that, The control device includes: a memory, a processor, and a key press recognition program stored on the memory and executable on the processor. The processor is connected to the color detection module. When the key press recognition program is executed by the processor, it implements the steps of the key press recognition method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Keyboard key using surface light source and keyboard
CN105245217A
Information input method, apparatus and system, and device
CN110146168A
Key board
CN211180769U