Optical keyboard
The optical keyboard addresses the challenges of high alignment costs and structural distortion errors by using a push button with varying light scattering or fluorescence characteristics, allowing for cost-effective and accurate key press detection without a matrix-like optical path.
Patent Information
- Application Number
- JP2023217486
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-12-23
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2040-02-09
AI Technical Summary
Existing optical keyboards require high precision alignment of optical elements to form a matrix-like optical path, which is costly and prone to errors due to structural distortions from external forces and thermal expansion.
The optical keyboard uses a push button with a protruding portion that changes its light scattering or fluorescent characteristics with the amount of pressing, allowing optical detection without a matrix-like optical path. This design consolidates light sources and receivers, reducing alignment requirements and maintaining detection accuracy despite structural distortions.
This solution enables cost-effective optical detection of key presses by eliminating the need for precise optical alignment and maintaining detection accuracy even under structural distortions, using aggregated light sources and receivers.
Smart Images

Figure 0007675414000001 
Figure 0007675414000002 
Figure 0007675414000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a keyboard. [Background technology]
[0002] Patent Document 1 describes an optical keyboard. This keyboard has buttons at the intersections of rows and columns of optical paths arranged in a matrix, and when a button is pressed, one of the optical paths of the rows and columns is blocked. The pressed button is identified by identifying the blocked row and column. Patent Document 2 describes a release switch that can optically detect the amount of button depression. In this release switch, a line sensor with multiple light receiving elements and a surface light emitter face each other across a stem with a through hole, and when the button is pressed, the stem moves, changing the light receiving element into which light emitted by the surface light emitter (light source) enters through the through hole. This is used to detect the amount of button depression. Patent Document 3 describes a switch that can optically detect the amount of button depression. In this switch, highly directional light from a light-emitting element, which is the light source, is reflected by a reflector and made to enter one of the light-receiving elements in a light-receiving element group. By rotating or moving the reflector as the button is pressed, the light-receiving element to which the light enters changes depending on the amount of button depression. This is used to detect the amount of button depression. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 07-306738 [Patent Document 2] JP 2010-192410 A [Patent Document 3] JP 2005-158586 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in order to detect the amount of depression of each push button on a keyboard equipped with multiple push buttons, the switches of Patent Documents 2 and 3 require a light source and a light receiving element to be provided individually for each push button, which is costly.
[0005] It is theoretically possible to apply the same mechanism as in Patent Document 2 and Patent Document 3 to the keyboard of Patent Document 1, consolidating the light source and the light receiving element group in multiple push buttons to reduce costs and to detect the amount of depression of each push button. That is, in the keyboard of Patent Document 1, it is possible to arrange the stem, i.e., the light blocking means of Patent Document 2, or the reflector, i.e., the light reflecting means of Patent Document 3, at each intersection of the light paths of the rows and columns, and to change the light path by displacing it according to the amount of depression of the push button, so that the change can be detected by the consolidated light receiving element group. However, there are at least the following two problems with such a configuration in an actual keyboard.
[0006] The first problem is that it is necessary to align (set the positional relationship and orientation) the light reflecting means (mirrors) with high precision in order to configure the matrix-shaped light paths. In the keyboard of Patent Document 1, light from one light source is sent in a time-division manner to multiple light paths in a matrix of rows and columns, but light reflecting means are used to configure the light paths, and these need to be aligned with high precision so that the light from the light source reaches the light receiving element.
[0007] The second problem is that alignment errors in the optical elements that make up the optical path make it difficult to detect the amount of depression of the push button. Because keyboards are subject to external forces such as pressing down on buttons, and because keyboards are not necessarily used in a constant temperature environment, it is highly likely that the structure that supports the buttons, light source, and light receiving elements, i.e., the keyboard housing, etc., will become distorted by external forces or thermal expansion. This distortion will result in alignment errors and changes in the optical path, causing errors in the detection of the amount of pressing or making it impossible to detect.
[0008] The first object of the present invention is to provide an optical keyboard that can optically detect the amount of depression of multiple push buttons using an aggregated light source and an aggregated group of light receiving elements, without using a matrix-shaped optical path that requires highly precise alignment of optical elements such as light reflecting means.
[0009] A second object of the present invention is to provide an optical keyboard that consolidates light sources and groups of light receiving elements into multiple push buttons and is capable of detecting the amount of depression of each push button even if distortion occurs in the structure of the keyboard casing or the like. [Means for solving the problem]
[0010] As a first aspect of the present invention, there is provided an optical keyboard comprising a button module including a push button with a protrusion and a package that stores the push button in a manner that allows the protrusion to protrude from a hole, wherein there are multiple push buttons, and the light scattering properties or fluorescence properties of at least a part of the protrusion and at least a part of the exterior of the package are different, and the greater the amount the push button is pressed, the more the protrusion protrudes from the package.
[0011] According to the first aspect, it becomes possible to optically observe the protrusion protruding from the package based on the difference in light scattering characteristics or fluorescence characteristics between the package and the protrusion. Also, the amount of depression of each push button can be detected by observing the amount of projection of the protruding portion from the package. Furthermore, since the protrusions protrude from the package, it is possible to illuminate the protrusions of multiple push buttons using a single light source without using a matrix-shaped light path, and to observe the scattered light or fluorescence from the protrusions of multiple push buttons using a single imaging element. In other words, the amount of depression of each push button can be optically detected by scattered light or fluorescent light using a concentrated light source and a concentrated group of light receiving elements, without using a matrix-like optical path.
[0012] As a second aspect of the present invention, there is provided the optical keyboard of the first aspect, in which a part of the protruding portion protrudes from the package even when the push button is not pressed down.
[0013] According to the second aspect, since the protrusion always protrudes from the package, the protrusion can always be optically observed. Therefore, even if the relative position of the protrusion changes due to structural distortion such as deformation of the housing, the change in position can be continuously tracked. In other words, even if structural distortion such as deformation of the housing occurs, the protrusion will not be lost and will not be confused with the protrusion of another push button, and the amount of depression of the push button can be optically detected by scattered light or fluorescence.
[0014] As a third aspect of the present invention, there is provided an optical keyboard according to the first or second aspect, in which at least a part of the protrusion and at least a part of the outside of the package have surfaces that suppress light reflection.
[0015] According to the third aspect, it becomes possible to optically detect the amount of depression of the push button by scattered light or fluorescent light without being affected by reflected light from the protruding portion or the package.
[0016] As a fourth aspect of the present invention, there is provided an optical keyboard according to any one of the first to third aspects, comprising a light source having directionality for irradiating the plurality of protrusions and their surroundings, an imaging element having a light receiving surface, and an imaging element for imaging scattered light or fluorescence emitted by at least a portion of each of the plurality of protrusions onto the light receiving surface.
[0017] According to this fourth aspect, the scattered light or fluorescence emitted by the protrusion can be imaged by the imaging element on the light receiving surface of the image sensor, so that the protrusion can be observed based on the difference in the light scattering characteristics or the difference in the fluorescence characteristics between the protrusion and other parts using image data output by the image sensor.
[0018] As a fifth aspect of the present invention, there is provided an optical keyboard according to any one of the first to fourth aspects, comprising a processor and a memory, wherein the processor calculates the amount of pressing based on a metric value of a pixel set whose elements are pixels of image data stored in the memory, pixels whose pixel values have a predefined relationship with a reference pixel value stored in the memory, and pixels that are adjacent to the reference coordinates stored in the memory.
[0019] This fifth aspect allows the processor to analyze the image data and calculate the amount of depression based on the metric value of the set of pixels corresponding to the protrusion. Here, the reference coordinates are the coordinates on the image data of a pixel that is known to be a pixel corresponding to a protrusion of a particular push button, the reference pixel value is a pixel value that is characteristic of a pixel corresponding to a protrusion on the image data, and a pixel whose pixel value has a predefined relationship to the reference pixel value can be considered to be a pixel corresponding to a protrusion. Therefore, a pixel set whose elements are pixels whose pixel values have a predetermined relationship with a reference pixel value and whose pixels are neighbors of the reference coordinates is a set of pixels that correspond to a specific push button protrusion determined by the reference coordinates. The metric value of the set increases as the push button is pressed down and the protrusion protrudes more, and the amount of press can be calculated based on this.
[0020] As a sixth aspect of the present invention, there is provided an optical keyboard according to the fifth aspect, wherein the processor, in the optical keyboard of the fifth aspect, searches for a pixel in the vicinity of the reference coordinate of the image data whose pixel value has a predetermined relationship with the reference pixel value if the pixel value of the pixel at the reference coordinate is not in a predetermined relationship with the reference pixel value, and writes the coordinates into the memory as new reference coordinates.
[0021] With this sixth aspect, even if structural distortion such as deformation of the housing occurs, causing a change in the relative position of the protrusion and causing the pixel corresponding to the protrusion in the image data to move from the reference coordinates, the pixel corresponding to the protrusion can be found near the reference coordinates and its coordinates can be reset as new reference coordinates, making it possible to continue detecting the amount of pressure being pressed. Effect of the Invention
[0022] The present invention makes it possible to provide an optical keyboard that can optically detect the amount of depression of multiple push buttons using an aggregated light source and an aggregated group of light receiving elements, without using a matrix-shaped light path that requires highly precise alignment of optical elements.
[0023] Furthermore, the present invention makes it possible to provide an optical keyboard in which light sources and groups of light receiving elements are consolidated into multiple push buttons, and the amount of depression of each push button can be detected even if distortion occurs in the structure of the keyboard housing or the like. [Brief description of the drawings]
[0024] [Figure 1] 1 is an isometric projection view illustrating the appearance of an optical keyboard 1 according to the present invention. [Diagram 2] FIG. 2 is a plan view illustrating the upper surface of the optical keyboard 1 according to the present invention. [Diagram 3] 3 is a cross-sectional view taken along line AA in FIG. 2. [Figure 4] 3 is a cross-sectional view taken along line BB in FIG. 2. [Diagram 5] 2 is a block diagram illustrating the configuration of an information processing unit 30. FIG. [Figure 6] FIG. 3 is a diagram showing an example of data in table 34. [Figure 7] FIG. 4 is a diagram showing a specific example of image data. [Figure 8] 10 is a flowchart illustrating the operation of the processor 31 when image data is received from the imaging element 22. [Figure 9] FIG. 4 is a diagram showing a specific example of image data. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0025] Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. However, in the second embodiment, components identical or similar to those in the first embodiment are indicated by the same or similar reference numerals as in the first embodiment, and detailed descriptions thereof will be omitted as appropriate. In addition, regarding the effects obtained in the second embodiment, descriptions of those similar to those in the first embodiment will be omitted as appropriate. The drawings of each embodiment are illustrative, and the dimensions and shapes of each part are schematic, and the technical scope of the present invention should not be interpreted as being limited to the embodiments.
[0026] First Embodiment An optical keyboard 1 according to a first embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is an isometric projection view illustrating the appearance of an optical keyboard 1, FIG. 2 is a plan view illustrating the upper surface of the same, and FIG. 3 is a cross-sectional view taken along line AA. The optical keyboard 1 includes a housing 2 having a top panel 4, one or more button modules 10, a depression amount detection module 20, and a light source 3.
[0027] The light source 3 is a light source that irradiates light into the inside of the housing 2. Since the depression amount detection module 20 captures scattered light from the protrusion 115 of the push button 11 obtained by irradiating the protrusion 115 of the push button 11 with light from the light source 3, the light source 3 needs to have a directivity such that it can simultaneously irradiate a plurality of, preferably all, protrusions 115 of the push button 11, preferably including the periphery of the protrusion 115, and emit light that includes a wavelength band used by the depression amount detection module 20 to detect the amount of depression. With regard to the position and directivity of the light source 3, in a method of controlling the light path by reflection or shading as in the background art, the position and directivity of the light source must be determined with high precision. However, in this embodiment, it is sufficient that the scattered light from the protrusion 115 reaches the depression amount detection module 20, so the position and irradiation direction of the light source 3 can be determined relatively freely as long as it is possible to illuminate the protrusions 115 of all push buttons 11 with a sufficiently wide-angle directivity. The light source 3 may emit light continuously in time, but may be controlled so as to emit light only during the period during which the image sensor 22 receives light necessary to generate image data.
[0028] The housing 2 has one or more openings 5 in its top panel 4 into which the button modules 10 are inserted. It is preferable that the housing 2 has a high light blocking property in order to prevent light (ambient light) from the outside of the housing 2 from entering the press amount detection module 20 and affecting the press amount detection process. It is preferable that at least a part of the inner surface of the housing 2 has a surface that suppresses reflection of light. Alternatively, it is preferable that the housing 2 has a surface that suppresses reflection of the light emitted from the light source 3. This is to prevent the reflected light, in addition to the scattered light of the light emitted from the light source 3 by the inner surface of the housing 2, from entering the press-down amount detection module 20 and affecting the press-down amount detection process. For example, it is preferable to apply an anti-reflection coating or a rough surface finish to the surface.
[0029] The button module 10 includes a push button 11, a package 12, and an elastic body 13, and is inserted into the opening 5 of the housing 2 when in use.
[0030] The push button 11 has a pressing portion 111 , an upper limit stopper portion 112 , a reaction force application portion 113 , a lower limit stopper portion 114 , and a protruding portion 115 . The depressing portion 111 is a portion that can protrude from a hole in the top surface portion 121 of the package 12. The depressing portion 111 may directly receive a depressing force from a keyboard operator. Alternatively, a key cap (not shown) may be placed on the depressing portion 111, and the depressing force may be indirectly received through the key cap. The upper limit stopper portion 112 is a portion that interferes with the package 12 to determine the uppermost state of the push button 11 . The reaction force application portion 113 is a portion that comes into contact with the elastic body 13 and transmits the elastic force from the elastic body 13 to the push button 11 . The lower limit stopper portion 114 is a portion that interferes with the package 12 to determine the lowest position of the push button 11 .
[0031] Protruding portion 115 is a portion that can protrude from a hole in lower surface portion 123 of package 12 to the outside of package 12 when push button 11 is pressed. It is preferable that the greater the amount by which push button 11 is pressed down (depression amount) when a pressing force is applied to depression portion 111, the greater the protruding portion 115 protrudes to the outside of package 12.
[0032] It is preferable that at least a part of the protruding portion 115 protrudes outside the package 12 even when the push button 11 is not depressed, that is, when the push button 11 is not depressed and is in the uppermost position.
[0033] It is preferable that at least a part of the protrusion 115 has a surface that suppresses reflection of light. Alternatively, it is preferable that the protrusion 115 has a surface that suppresses reflection of light emitted from the light source 3. This is to prevent the reflected light, in addition to the scattered light of the light emitted from the light source 3 by the protrusion 115, from entering the press-down amount detection module 20 and affecting the press-down amount detection process. For example, it is preferable to apply an anti-reflection coating or a roughened surface finish.
[0034] At least a part of the protrusion 115 needs to have different light scattering characteristics in the wavelength band of light emitted by the light source 3 from both the inside of the housing 2 and the outer part of the package 12 exposed inside the housing 2. This is to enable the scattered light from the protrusion 115 and the scattered light from other places to be clearly distinguished as different pixel values in the image data output by the image sensor 22. The degree to which the light scattering characteristics differ is preferably such that they can be clearly distinguished on the image data output by the image sensor 22. As an example of a case where the wavelength band of the light source 3 is visible light, the protrusion 115 may be white and the inside of the housing 2 and the outside of the package 12 may be black. Conversely, the protrusion 115 may be black and the inside of the housing 2 and the outside of the package 12 may be white. In addition, the color of the protrusion 115 may be arbitrarily determined, and one or more colors that are significantly different from the color of the protrusion 115 in one or more of lightness, saturation, and hue (i.e., that are clearly distinguishable in image data) may be selected and used for the inside of the housing 2 and the outside of the package 12. When the light source 3 is in a wavelength band other than visible light, the scattering characteristics of the protrusion 115, the inside of the housing 2, and the outside of the package 12 in that wavelength band may be made different.
[0035] Another way to change the scattering characteristics is to make the polarization different. For example, the scattered light from the protrusion 115 may be vertically polarized, and the scattered light from the inside of the housing 2 and the outside of the package 12 may be horizontally polarized. As a method for polarizing the scattered light, for example, the surface of the protrusion 115 may be covered with a film-like polarizing filter.
[0036] The package 12 has an upper surface portion 121, a side surface portion 122 and a lower surface portion 123, and houses the push button 11 so that a part of it protrudes outward and is movable up and down, and also houses the elastic body 13. A hole is formed in the top surface portion 121, and the depressing portion 111 of the push button 11 protrudes from the hole. The top surface portion 121 also abuts against the top panel 4 of the housing 2, thereby functioning as a stopper when the button module 10 is inserted into the opening 5, and is also a portion that transmits the depressing force on the push button 11 to the housing 2. The side surface portion 122 has a locking piece 124 that locks the button module 10 inserted into the opening 5 so that it does not come off. A hole is formed in the lower surface portion 123, and the protruding portion 115 of the push button 11 protrudes through the hole. The lower surface portion 123 also abuts against and supports the elastic body 13, thereby applying a reaction force to the push button 11 via the elastic body 13 when the push button 11 is pressed.
[0037] It is preferable that the package 12 has a high light-blocking property in order to prevent external ambient light from entering the housing 2 via the button module 10 and affecting the pressing amount detection process by the pressing amount detection module 20. For this reason, it is preferable that the package 12 has a shape that completely covers the entire surface with minimal gaps except for the upper and lower holes through which the push buttons 11 protrude. It is also preferable that the package 12 is made of a material with a high light-blocking property. For the same reason as for the protrusion 115, it is preferable that at least a part of the outer portion of the package 12 exposed to the inside of the housing 2 has a surface that suppresses reflection of light. Alternatively, it is preferable that the package 12 has a surface that suppresses reflection of the light emitted from the light source 3.
[0038] Elastic body 13 abuts against push button 11 and package 12, and applies an elastic restoring force corresponding to the amount of depression of push button 11 to push button 11 as a reaction force against the pressing force. A coil spring or rubber may be used as elastic body 13. Also, a magnetic force such as a magnet may be used to perform the same function.
[0039] In addition, although the drawings show one button module 10 containing one push button 11 and one elastic body 13 in one package 12, it may be configured to contain multiple push buttons 11 and multiple elastic bodies 13 in one package 12.
[0040] Next, the depression amount detection module 20 will be described with reference to Fig. 4. Fig. 4 is a cross-sectional view of the optical keyboard 1 taken along line BB. The depression amount detection module 20 includes an imaging element 21, an imaging element 22, and an information processing unit 30.
[0041] The imaging element 21 is an optical element that forms an image on the light receiving surface 23 of scattered light emitted by at least a part of what exists inside the housing 2, i.e., the inner surface of the housing 2, the button module 10, etc. The imaging element 21 is required to form an image of light from at least a part of each of the multiple protrusions 115 on the light receiving surface 23. It is preferable that the imaging element 21 is such that light from one point inside the housing 2 reaches approximately the same place on the light receiving surface 23, and light from two sufficiently separated points inside the housing 2 reaches places separated from each other on the light receiving surface 23. The imaging element 21 may be a lens, a pinhole, or a concave mirror.
[0042] The image sensor 22 has a light receiving surface 23 that receives incident light, and is an element that outputs image data corresponding to the intensity distribution of the incident light on the light receiving surface 23. The image sensor 22 repeats the operation of receiving the incident light and outputting image data corresponding to the intensity distribution. The time period of this repetition may be constant, but the period may also be changed depending on, for example, the degree of change in the image data. The image sensor 22 may be a charge-coupled device (CCD) image sensor or a CMOS image sensor. The image data is configured to include a set of values for each pixel corresponding to a small area on the light-receiving surface 23, and the pixel value corresponds to the received light intensity of the corresponding pixel in the small area on the light-receiving surface 23. The pixel value may be a scalar value representing the received light intensity of a single wavelength band, or a vector value that bundles together the received light intensities of multiple wavelength bands. A filter 24 may be provided in front of the light receiving surface 23 to attenuate a portion of the light incident on the light receiving surface 23. The filter 24 may, for example, attenuate a portion of the wavelength band of the light incident on the light receiving surface 23. Also, the filter 24 may attenuate a portion of the polarization of the light incident on the light receiving surface 23.
[0043] The information processing unit 30 will be described with reference to Fig. 5. Fig. 5 is a block diagram illustrating the configuration of the information processing unit 30. The information processing unit 30 includes a processor 31 that processes data according to a program 33, and a memory 32 that readably stores the program 33 and readably and writes and stores data such as a table 34. The program 33 controls the operation of the processor 31, and causes the processor 31 to perform a depression amount detection process that receives image data generated by the imaging element 22 and detects the amount of depression of the push button 11.
[0044] Before describing the pressing amount detection process by processor 31, we will explain its partial process, the evaluation value calculation process. The evaluation value calculation process is a process that outputs an evaluation value from input of image data, reference coordinates, and reference pixel value. More specifically, it is a process that calculates a metric value of a pixel set whose elements are pixels in the input image data whose pixel values have a predefined relationship with the input reference pixel value and which are adjacent to the input reference coordinates, and outputs the metric value as an evaluation value. It is assumed that this evaluation value will be larger the more the input image data is that of the image data when push button 11 is pressed down. In other words, when push button 11 is pressed down further, protrusion 115 protrudes more from package 12, and the area of light receiving surface 23 that receives scattered light from protrusion 115 through imaging element 21 also becomes larger, and the image data output by imaging element 22 at that time will also show pixel values specific to the scattered light from protrusion 115 in more pixels. The evaluation value calculation process need only capture this and output a larger evaluation value.
[0045] The reference coordinates and reference pixel value, which are inputs to the evaluation value calculation process, are values specific to each of the multiple push buttons 11 of the optical keyboard 1. The reference coordinates are coordinates in the image data at which a pixel value specific to the scattered light from the protrusion 115 of a specific push button 11 appears, and the reference pixel value is that specific pixel value.
[0046] In the evaluation value calculation process, a pixel value being in a predefined relationship with a reference pixel value means that the pixel value satisfies a predefined relationship when compared with the reference pixel value. For example, when the pixel value is a scalar value, the pixel value may match the reference pixel value within a certain error range. Alternatively, the pixel value may be larger than the reference pixel value. Alternatively, the pixel value may be smaller than the reference pixel value. When the pixel value is a vector value, the pixel value may be scalarized by a norm and the pixel value may match or be smaller than the reference pixel value within the error range, or the pixel value may be scalarized by a scalar product with a predefined vector and the pixel value may match or be smaller than the reference pixel value within the error range.
[0047] In the evaluation value calculation process, the pixel in the vicinity of the reference coordinate may be, for example, a pixel whose coordinates are within a predetermined distance from the reference coordinate. As another example, the pixel in the vicinity of the reference coordinate may be a pixel that can be reached starting from the pixel of the reference coordinate via only pixels whose pixel values have a predetermined relationship with the reference pixel value. The pixel of the reference coordinate itself may also be included.
[0048] In the evaluation value calculation process, the metric value of a pixel set may be, for example, the number of pixels included in the set, or, for another example, the maximum inter-pixel distance between any two pixels included in the set.
[0049] Next, the table 34 stored in the memory 32 will be described with reference to Fig. 6. The table 34 is data having one or more push button data including a reference coordinate, a reference pixel value, a minimum value, a maximum value, and a code. An example of the data structure and data of the table 34 is shown in Fig. 6. In the example of Fig. 6, the data structure is in tabular form, with the reference coordinate, reference pixel value, minimum value, maximum value, and code of the push button data being represented as columns of the table, and the four push button data being represented as rows of the table.
[0050] The push button data is data that can be obtained as follows for a specific push button 11 using image data when the push button 11 is not pressed and image data when the push button 11 is pressed to the fullest extent. The reference coordinates are the coordinates of a pixel that captures scattered light from the protrusion 115 in the image data when the push button 11 is not pressed. If there are multiple pixels, the coordinates of one of them shall be used. The reference pixel value is the pixel value of the pixel at the reference coordinates in the image data when the push button 11 is not pressed. The minimum value is an evaluation value calculated by inputting the image data when the push button 11 is not pressed, the reference coordinates, and the reference pixel value into the evaluation value calculation process described above. The maximum value is an evaluation value calculated by inputting the image data when the push button 11 is fully pressed, the reference coordinates, and the reference pixel value into the evaluation value calculation process described above. The code is a number or a character string that is uniquely assigned to the push button 11 in question.
[0051] The relationship between the reference coordinate, the reference pixel value, the minimum value, and the maximum value will be explained using a concrete example. Figure 7 shows an example of image data. Figure 7(a) shows an example of image data when the push button 11 is not pressed, and Figure 7(b) shows an example of image data when the push button 11 is fully pressed. Each square of a grid with 10 squares in the horizontal axis (X axis) direction and 10 squares in the vertical axis (Y axis) direction represents a pixel, and the value in the square represents a pixel value. In this example, a scalar value is used for the pixel value, but a vector value such as an RGB value may also be used. The consecutive numbers on the X axis and Y axis represent the coordinates of each axis. If the position 5 on the X axis and 2 on the Y axis is expressed as (5,2), the pixel value of the pixel at coordinates (5,2) in the image data of Figure 7(a) is 1.
[0052] In addition, the image data needs to include pixels corresponding to each of the protrusions 115 of the multiple button modules 10 included in the optical keyboard 1, so the number of pixels required is more than 10 in both the vertical and horizontal directions. It should be noted that, in order to easily explain the invention, Fig. 7 shows only a portion of the image data, that is, the pixels corresponding to one protrusion 115 and its surrounding pixels. This is the same in all subsequent drawings that show image data.
[0053] 7, the reference coordinates are the coordinates of the pixel that captures the scattered light from the protrusion 115 in the image data when the push button 11 is not pressed, i.e., the image data in Fig. 7(a), and here, as an example, the coordinates are (4,3). In Fig. 7(a), the box with the coordinates (4,3) is shown inverted black and white, but this is a notation that conveniently indicates that the coordinates are the reference coordinates, and this will be the same in the subsequent drawings. The reference pixel value is the pixel value of the pixel at the reference coordinates in the image data when the push button 11 is not pressed, and is therefore the pixel value of the pixel at coordinates (4,3) in the image data in FIG.
[0054] The minimum value is an evaluation value calculated by inputting the image data when the push button 11 is not pressed, the reference coordinates, and the reference pixel value into the evaluation value calculation process described above. The evaluation value calculation process is a process for calculating a metric value of a pixel set whose elements are pixels whose pixel values have a predefined relationship with the reference pixel value and pixels that are neighbors of the reference coordinates, and outputting the metric value as an evaluation value. Here, as an example, a pixel value having a predefined relationship with the reference pixel value is defined as a pixel value that matches the reference pixel value within an error range of plus or minus 1, a pixel that is neighbors of the reference coordinates is defined as a pixel that can be reached starting from the pixel of the reference coordinates and passing only through pixels whose pixel values have a predefined relationship with the reference pixel value, and the metric value of a pixel set is defined as the number of pixels included in the set. Then, "a pixel set whose elements are pixels whose pixel values have a predefined relationship with the reference pixel value and are adjacent to the reference coordinate" is the set consisting of the pixels with coordinates (3,3), (5,3), (4,4), and (5,4). The minimum value is the metric value of this pixel set, i.e., the number of pixels, i.e., 4.
[0055] The maximum value is an evaluation value calculated by inputting the image data when the push button 11 is fully pressed, the reference coordinates, and the reference pixel value into the evaluation value calculation process described above. If the evaluation value calculation process is the same as that for the minimum value, then the "pixel set whose elements are pixels whose pixel values have a predefined relationship with the reference pixel value and which are neighbors of the reference coordinates" is the set consisting of the pixels with coordinates (3,3), (5,3), (4,4), (5,4), (6,4), (5,5), (6,5), and (6,6). The maximum value is the metric value of this pixel set, i.e., 8.
[0056] Next, the operation of the pressing amount detection process by the processor 31 controlled by the program 33 will be described with reference to Fig. 8. Fig. 8 is a flowchart illustrating the operation of the processor 31 when image data is input from the imaging element 22. When image data is input to the processor 31, the processor 31 stores the image data in the memory 32 (S1). Next, the processor 31 sets the first row of the table 34 stored in the memory 32 as the row to be processed (S2). Next, the processor 31 reads the row to be processed in the table 34, and obtains the reference coordinates, the reference pixel value, the minimum value, the maximum value, and the code (S3). Next, the processor 31 reads the pixel value of the pixel at the reference coordinate of the image data stored in the memory 32 and checks whether it has a predetermined relationship with the reference pixel value (S4). If it does, the process proceeds to step S6; if not, the process proceeds to step S5. Note that the term "having a default relationship with the reference pixel value" means a relationship equivalent to that in the evaluation value calculation process, and this also has the same meaning in the next step S5.
[0057] If the process proceeds to step S5, the processor 31 searches for a pixel in the vicinity of the reference coordinate of the image data stored in the memory 32 whose pixel value has a predetermined relationship with the reference pixel value, writes the coordinate of the found pixel as a new reference coordinate in the reference coordinate column of the row to be processed in the table 34 (S5), and proceeds to step S3. When the process proceeds to step S6, the processor 31 inputs the image data stored in the memory 32, the reference coordinates, and the reference pixel value into the evaluation value calculation process, and calculates an evaluation value (S6). Next, the processor 31 outputs the depression amount indicator calculated by the following formula together with the code (S7). Press amount index = (evaluation value - minimum value) / (maximum value - minimum value) This depression amount index is an index that represents the amount of depression of the push button 11 and is normalized so that it is 0 when the push button 11 is not pressed and 1 when the push button is pressed to the maximum.
[0058] Next, processor 31 checks whether the row to be processed is the last row of table 34 (S8), and if so, ends the process, otherwise proceeds to step S9. If the process proceeds to step S9, the processor 31 sets the row next to the current row in the table 34 as the new row to be processed (S9), and the process proceeds to step S3.
[0059] Next, a specific example of the operation of the pressing amount detection process will be described. In this example, the data of Fig. 6 is stored in the memory 32 as the data of the table 34, and the image data shown in Fig. 9(a) is input to the processor 31. In this specific example, a pixel value having a predefined relationship with a reference pixel value means that the pixel value matches the reference pixel value within an error range of plus or minus 1, a pixel near the reference coordinates means a pixel that can be reached starting from the pixel at the reference coordinates and passing only through pixels whose pixel values have a predefined relationship with the reference pixel value, and the metric value of a pixel set means the number of pixels included in the set.
[0060] First, in step S 1 , the processor 31 stores input image data in the memory 32 . Next, in step S2, the processor 31 sets the first row of the table 34 stored in the memory 32 as the row to be processed. Next, in step S3, the processor 31 reads the processing target row of the table 34 and obtains the reference coordinate, reference pixel value, minimum value, maximum value, and code. In this case, the reference coordinate=(4,3), reference pixel value=5, minimum value=4, maximum value=8, and code=0x41. Next, in step S4, processor 31 reads the pixel value of the pixel at the reference coordinates of the image data stored in memory 32, and checks whether it has a predefined relationship with the reference pixel value. In this case, the pixel value at the reference coordinates (4,3) is 1, which is not a predefined relationship with the reference pixel value (=5). Therefore, the process proceeds to step S5. Next, in step S5, processor 31 searches for a pixel whose pixel value has a predefined relationship with the reference pixel value in the vicinity of the reference coordinates of the image data stored in memory 32. As a pixel whose pixel value has a predefined relationship with the reference pixel value (=5) in the vicinity of reference coordinates (4,3) is a pixel with coordinates (4,4) (pixel value = 4), this pixel is adopted in this example, and the coordinates of that pixel are written into the reference coordinate column of the processing target row of table 34, and the process proceeds to step S3. The reference coordinates are represented by black and white inverted squares in Figure 9. Before the processing of step S5, the reference coordinates were the black and white inverted squares in Figure 9(a), but after the processing of step S5, the reference coordinates change to the black and white inverted squares in Figure 9(b).
[0061] Next, in step S3, processor 31 reads the row to be processed in table 34 and obtains the reference coordinates, reference pixel value, minimum value, maximum value, and code. The reference coordinates have changed from before, and are now reference coordinates=(4,4), reference pixel value=5, minimum value=4, maximum value=8, and code=0x41. Next, in step S4, processor 31 reads the pixel value of the pixel at the reference coordinates of the image data stored in memory 32, and checks whether it has a predefined relationship with the reference pixel value. In this case, the pixel value at the reference coordinates (4,4) is 4, which has a predefined relationship with the reference pixel value (=5). Therefore, the process proceeds to step S6. Next, in step S6, the processor 31 inputs the image data stored in the memory 32, the reference coordinates, and the reference pixel value into the evaluation value calculation process to calculate the evaluation value. In this case, the evaluation value is 5. Next, in step S7, the processor 31 calculates a push amount index. The push amount index is (5 - 4) / (8 - 4) = 0.25 Then, the depression amount index (=0.25) is output along with the code (=0x41).
[0062] Next, in step S8, processor 31 checks whether the row to be processed is the last row of table 34. However, since the row to be processed is not the last row, the process proceeds to step S9. Next, in step S9, processor 31 sets the next row of table 34 to the row to be processed, that is, the second row, as the new row to be processed, and proceeds to step S3. The subsequent operations are not described here, but similar processing is carried out for all remaining rows in table 34.
[0063] In this way, in the pressing amount detection process, if the pixel value of the pixel at the reference coordinate does not have a predetermined relationship with the reference pixel value as a result of the processes in steps S4 and S5, the reference coordinate is moved to the coordinate of a nearby appropriate pixel. Such a case may also occur when the housing 2 is distorted due to the pressing force on the push button 11 or thermal expansion. In other words, in the previous image data from the imaging element 22, the pixel at the reference coordinates captured the scattered light from the protrusion 115 and showed a pixel value that has a predetermined relationship with the reference pixel value, but in the next image data, the positional relationship between the imaging element 22, the imaging element 21, and the protrusion 115 has changed due to distortion of the housing 2, so that the pixel no longer captures the scattered light from the protrusion 115 and no longer shows a pixel value that has a predetermined relationship with the reference pixel value. Even in this case, it is expected that the change from the previous image data will be small, unless the distortion of the housing 2 is large and occurs in a short period of time based on the time interval at which the image sensor 22 outputs image data. Therefore, the pixel that captures the scattered light from the protrusion 115 is expected to be near the reference coordinates, and the pixel can be found by the processing of steps S4 and S5, and the reference coordinates can be moved to that pixel. In other words, even if the pixel that captures the scattered light from the protrusion 115 moves on the image data, it is tracked and set to the reference coordinate by the processing of steps S4 and S5. Therefore, even if such distortion occurs, the amount of pressing of the push button 11 can be detected.
[0064] In order to track the pixels capturing the scattered light from the protrusion 115, the image data must always contain pixels capturing the scattered light from the protrusion 115. That is, it is necessary to contain pixels capturing the scattered light from the protrusion 115 not only when the push button 11 is pressed, but also when it is not pressed. For this reason, as described above, it is preferable that at least a part of the protrusion 115 protrudes outside the package 12 even when the push button 11 is not pressed.
[0065] <Second embodiment> An optical keyboard 1 according to a second embodiment of the present invention will be described focusing on the differences from the first embodiment. In the first embodiment, the image data generated by the image sensor 22 is used to identify the difference between the characteristics of the scattered light caused by the protrusion 115 of the light irradiated by the light source 3 and the characteristics of the scattered light from other parts as a difference in pixel value, whereas in the second embodiment, the image data generated by the image sensor 22 is used to identify the difference between the characteristics of the fluorescence caused by the protrusion 115 excited by the light irradiated by the light source 3 and the characteristics of the fluorescence from other parts as a difference in pixel value.
[0066] For this reason, it is necessary that at least a portion of the protrusion 115 has fluorescence characteristics that differ from those of both the inside of the housing 2 and the outer portion of the package 12 that is exposed to the inside of the housing 2 when it receives light emitted by the light source 3. As one example, protrusion 115 may be configured using a fluorescent material that absorbs light in an excitation wavelength band and emits light in a fluorescence wavelength band different from the excitation wavelength band, while the inside of housing 2 and the outside of package 12 may be configured using a relatively small amount of fluorescent material or no fluorescent material at all. As another example, fluorescent materials having different fluorescence wavelength bands may be used for protrusion 115 and the inside of housing 2 and the outside of package 12. As yet another example, the polarization of fluorescence may be different between protrusion 115 and the inside of housing 2 and the outside of package 12.
[0067] The light source 3 needs to emit light including the excitation wavelength band. It is also preferable that the light source 3 does not emit light in the fluorescence wavelength band of the protrusion 115. It is preferable to provide a filter 24 in front of the light receiving surface 23 of the image sensor 22, which attenuates light incident on the light receiving surface 23 other than the fluorescence wavelength band of the protrusion 115.
[0068] In the first embodiment, it was required that at least a portion of the protrusion 115 have different light scattering characteristics in the wavelength band of light emitted by the light source 3 from both the inside of the housing 2 and the outer portion of the package 12 exposed inside the housing 2, but this is not necessary in the second embodiment. Also, in the first embodiment, it is necessary for the light source 3 to emit light including a wavelength band used by the depression amount detection module 20 to detect the depression amount, but this is not necessary in the second embodiment. In addition, the term "scattered light" in the first embodiment may be read as "fluorescence". [Explanation of symbols]
[0069] 1 Optical Keyboard 2. Chassis 3 light source 4 Top Panel 5 Opening 10 Button Module 11 Push Button 111 Pressing section 115 Protrusion 12 Packages 13 Elastic Body 20. Pressing amount detection module 21 Imaging element 22 Image sensor 23 Photosensitive surface 24 Filters 30 Information Processing Section 31 Processor 32 Memory 33 Programs 34 Table
Claims
1. An optical keyboard comprising: a button module including a push button having a protruding portion and a package that houses the push button in a manner that allows the protruding portion to protrude from a hole; a light source; an imaging element having a light receiving surface; an imaging element; a processor; and a memory; The push button is a plurality of buttons; the light scattering or fluorescence characteristics of at least a portion of the protrusion and at least a portion of the exterior of the package are different; the greater the amount of depression of the push button, the greater the amount of protrusion from the package; The light source has a directivity such that the light source simultaneously illuminates the protrusions of all the push buttons, the imaging element forms an image on the light receiving surface of scattered light or fluorescent light emitted from at least a part of the protruding portion of the push button when the button is not pressed; the imaging element outputs image data corresponding to an intensity distribution of the incident light on the light receiving surface; When the image data is input from the image sensor, the processor stores the image data in the memory; The processor calculates the pressing amount based on a metric value of a pixel set whose elements are pixels of the image data stored in the memory, pixels whose pixel values have a predetermined relationship with a reference pixel value stored in the memory, and pixels that are neighbors of the reference coordinates stored in the memory. Optical keyboard.
2. 2. The optical keyboard of claim 1, wherein, if the pixel value of the pixel at the reference coordinate is not in a predetermined relationship with the reference pixel value, the processor searches for a pixel in the vicinity of the reference coordinate of the image data whose pixel value has a predetermined relationship with the reference pixel value, and writes the coordinates of the pixel into the memory as new reference coordinates.
Citation Information
Patent Citations
Method and device for discriminating pushed key of keyboard
JP1991109627A
Input device
JP1991273708A
Method and device for discriminating depressed key for keyboard
JP1994289967A
Method and device for discriminating depressed key of keyboard
JP1994289968A
Optical keyboard device
JP1995306738A