CN117232384A - Key cap position detection method, device and system - Google Patents

Key cap position detection method, device and system Download PDF

Info

Publication number
CN117232384A
CN117232384A CN202310849774.0A CN202310849774A CN117232384A CN 117232384 A CN117232384 A CN 117232384A CN 202310849774 A CN202310849774 A CN 202310849774A CN 117232384 A CN117232384 A CN 117232384A
Authority
CN
China
Prior art keywords
key cap
infrared spectrogram
temperature
standard
infrared
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310849774.0A
Other languages
Chinese (zh)
Other versions
CN117232384B (en
Inventor
刘桂明
潘付强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jingke Industrial Co ltd
Original Assignee
Shenzhen Jingke Industrial Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jingke Industrial Co ltd filed Critical Shenzhen Jingke Industrial Co ltd
Priority to CN202310849774.0A priority Critical patent/CN117232384B/en
Publication of CN117232384A publication Critical patent/CN117232384A/en
Application granted granted Critical
Publication of CN117232384B publication Critical patent/CN117232384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The application belongs to the field of machine manufacturing, and particularly relates to a key cap position detection method, device and system, wherein the method comprises the steps of adjusting the temperature in a temperature adjusting dish to a first temperature; the infrared spectrometer is mobilized to scan the keyboard body to be tested in the temperature regulation vessel so as to obtain a first infrared spectrogram of the key cap film at a first temperature; and comparing the first infrared spectrogram with a preset standard infrared spectrogram to determine whether the position of the key cap to be detected is consistent with the standard position of the key cap. According to the application, by acquiring the infrared spectrum of the key cap to be detected and comparing the acquired infrared spectrum with the infrared spectrum of the key cap at the standard position, whether the position of the key cap in the horizontal direction is deviated from the standard position or not can be intuitively seen, and the detection efficiency and accuracy are high.

Description

Key cap position detection method, device and system
Technical Field
The application belongs to the field of machine manufacturing, and particularly relates to a key cap position detection method, device and system.
Background
A keyboard is an input device for inputting letters, numbers and executing various commands, and is generally composed of a series of keys, each representing a character, symbol, function or command, and is one of the most common and widely used input tools in man-machine interaction.
Each key of the keyboard is correspondingly provided with a key cap, and in order to provide better input experience for users, the installation accuracy of the key caps of the keyboard is required to be higher, so that in the keyboard production process, the installation positions of the key caps are required to be detected, so that the unqualified key caps are timely adjusted, and the installation accuracy of the key caps is improved; however, the existing key cap position detection device mainly detects the height of the key cap, but is difficult to detect the horizontal relative position of the key cap, and the horizontal relative position of each key cap determines whether friction occurs between the key caps when the key cap is used, so that the smoothness of keys is determined, and the key cap position detection device cannot detect the same keyboard for multiple times under multiple working conditions, so that the detection accuracy is low.
Therefore, the conventional key cap detection method has a problem that it is difficult to detect whether the key cap has a deviation in the horizontal direction.
Disclosure of Invention
In view of the above, the embodiment of the application provides a key cap position detection method, which can solve the problem that whether the key cap is deviated in the horizontal direction or not is difficult to detect in the existing key cap detection method.
A first aspect of an embodiment of the present application provides a key cap position detection method, including:
s1: the temperature in the temperature regulation dish is regulated to a first temperature, a keyboard body to be measured is placed in the temperature regulation dish, a plurality of key caps to be measured are arranged on the keyboard body to be measured, a key cap film is arranged on each key cap to be measured and is arranged on the keyboard body to be measured, the key caps to be measured are made of a first material, the key cap film is made of a second material, the infrared spectrums of the first material and the second material at all temperatures are different, the first temperature is in a preset temperature range, and the keyboard body is not damaged by the temperature when being in any temperature in the preset temperature range;
s2: the infrared spectrometer is mobilized to scan the keyboard body to be tested in the temperature regulation vessel so as to obtain a first infrared spectrogram of the key cap film at a first temperature;
s3: and comparing the first infrared spectrogram with a preset standard infrared spectrogram to determine whether the position of the key cap to be detected is consistent with the standard position of the key cap, wherein the standard infrared spectrogram is an infrared spectrogram of a key cap film arranged on the key cap when the key cap is positioned at the standard position.
A second aspect of an embodiment of the present application provides a key cap position detection apparatus, including:
the temperature adjusting module is used for adjusting the temperature in the temperature adjusting dish to a first temperature;
the infrared spectrogram acquisition module is used for mobilizing the infrared spectrometer to scan the keyboard body to be tested in the temperature regulation vessel so as to acquire a first infrared spectrogram of the key cap film at a first temperature;
and the comparison module is used for comparing the first infrared spectrogram with a preset standard infrared spectrogram so as to determine whether the position of the key cap to be detected is consistent with the standard position of the key cap.
A third aspect of an embodiment of the present application provides a key cap position detection system, including:
a keyboard body;
the key caps to be tested are arranged on the keyboard body, and each key cap to be tested is made of a first material;
the key cap film is made of a second material, and the infrared spectrums of the first material and the second material at all temperatures are different;
the temperature adjusting dish is used for placing the keyboard body so as to adjust the temperature of the key cap to be tested and the key cap film on the keyboard body;
the infrared spectrometer is used for scanning the keyboard body placed in the temperature culture dish when the temperature culture dish is at different temperatures so as to obtain a first infrared spectrogram of the key cap film;
the terminal equipment is connected with the temperature adjusting dish and the infrared spectrometer and is used for the key cap position detection method.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the method provided by the application comprises the steps of adjusting the temperature in a temperature regulation dish to a first temperature; the infrared spectrometer is mobilized to scan the keyboard body to be tested in the temperature regulation vessel so as to obtain a first infrared spectrogram of the key cap film at a first temperature; and comparing the first infrared spectrogram with a preset standard infrared spectrogram to determine whether the position of the key cap to be detected is consistent with the standard position of the key cap. According to the application, by acquiring the infrared spectrum of the key cap to be detected and comparing the acquired infrared spectrum with the infrared spectrum of the key cap at the standard position, whether the position of the key cap in the horizontal direction is deviated from the standard position or not can be intuitively seen, and the detection efficiency and accuracy are high.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an implementation flow of a key cap position detection method according to an embodiment of the present application;
FIG. 2 is a block diagram of a key cap position detecting device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a key cap position detection system according to an embodiment of the present application;
FIG. 4 is a top view of a key cap to be tested in a key cap position detection system provided by an embodiment of the present application;
FIG. 5 is a bottom view of a keycap to be tested in a keycap position detection system provided by an embodiment of the present application;
fig. 6 is a schematic diagram of a terminal device according to an embodiment of the present application.
In the accompanying drawings: 1. a key cap to be tested; 11. a mounting base; 2. a key cap film; 3. a mounting column; 31. cross grooves.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Fig. 1 shows a key cap position detection method according to a first embodiment of the present application, including:
s1: the temperature in the temperature regulation dish is regulated to a first temperature, a keyboard body to be measured is placed in the temperature regulation dish, a plurality of key caps 1 to be measured are arranged on the keyboard body to be measured, a key cap film 2 is arranged on each key cap 1 to be measured, the key caps 1 to be measured are made of a first material, the key cap film 2 is made of a second material, the infrared spectrums of the first material and the second material at each temperature are different, the first temperature is in a preset temperature range, and the keyboard body is not damaged due to the temperature when being in any temperature in the preset temperature range;
s2: the infrared spectrometer is mobilized to scan the keyboard body to be tested in the temperature regulation vessel so as to obtain a first infrared spectrogram of the keycap film 2 at a first temperature;
s3: and comparing the first infrared spectrogram with a preset standard infrared spectrogram to determine whether the position of the key cap 1 to be detected is consistent with the standard position of the key cap, wherein the standard infrared spectrogram is an infrared spectrogram of the key cap film 2 arranged on the key cap when the key cap is positioned at the standard position.
In this embodiment, the temperature adjustment vessel may be a heating box, a thermistor thermostat, or other vessels capable of adjusting and maintaining temperature, which is not limited herein; an infrared spectrometer is an instrument for analyzing substances, and utilizes the absorption characteristics of infrared light to acquire the structural and component information of a sample, and absorbs or scatters infrared light with specific wavelength in the infrared spectrum range based on the sample, so as to obtain an infrared spectrogram of the sample.
In this embodiment, the first material may be glass, polycarbonate, polybutylene terephthalate, or other types of materials, but is not limited thereto, and the second material may be polyethylene film, aluminum foil, zinc oxide film, or other types of materials, but is not limited thereto; according to the application, the second material is selected according to the type of the first material of the key cap 1 to be tested, so that the infrared spectrums of the two materials are distinguished, for example, if the first material is glass, the second material is a polyethylene film; the preset temperature range is determined according to the physical properties of the material of the keyboard body, the first material and the second material, so long as damage caused by temperature to any one of the material of the keyboard body, the first material and the second material is not caused, for example, the preset temperature range can be 10 ℃ to 30 ℃, and the method is not limited; the first temperature may be 12 ℃, 15 ℃, or other temperatures within a predetermined temperature range, without limitation; in addition, in order to obtain a first infrared spectrogram different from the standard infrared spectrogram, the first temperature is selected to be different from the temperature corresponding to the standard infrared spectrogram, for example, the temperature corresponding to the standard infrared spectrogram is 20 ℃, and the first temperature is selected to be 15 ℃.
In this embodiment, a keyboard placement position is provided in the temperature adjustment vessel, the standard infrared spectrogram is an infrared spectrogram measured when a keyboard body with a keycap at a standard position is placed on the keyboard placement position, the keyboard body to be detected is placed on the keyboard placement position before detection, and if the position of the keycap 1 to be detected is at the standard position, a first infrared spectrogram measured by the infrared spectrogram is overlapped with the standard infrared spectrogram; furthermore, the key cap film 2 is disposed at the top of the key cap, that is, the position of the key cap is represented by the position of the key cap pressed by a finger of a user, and the area of the key cap film 2 is slightly smaller than the area of the top of the key cap, so that a certain gap is formed between the edge of the key cap film 2 and the keyboard body in terms of top view, the infrared spectrogram formed after the infrared spectrogram scans the keyboard body also comprises the infrared spectrogram of the keyboard body and the key cap 1 to be tested, and a certain gap is formed between the edge of the key cap film 2 and the keyboard body, so that a program can be preset in the infrared spectrogram to identify the gap and remove the infrared spectrogram of the keyboard body, and the infrared spectrogram corresponding to the first material can be removed because the first material and the second material have different infrared spectrograms, that is, the first infrared spectrogram is the infrared spectrogram corresponding to the key cap film 2. According to the application, by acquiring the infrared spectrum of the key cap 1 to be detected and comparing the acquired infrared spectrum with the infrared spectrum of the key cap at the standard position, whether the position of the key cap in the horizontal direction deviates from the standard position or not can be intuitively seen, and the detection efficiency and accuracy are high.
As a preferred embodiment, the comparing the first infrared spectrogram with a preset standard infrared spectrogram to determine whether the position of the key cap 1 to be tested is consistent with the standard position of the key cap includes:
s31: overlapping a layer of the first infrared spectrogram with a layer of a preset standard infrared spectrogram, wherein the layer of the standard infrared spectrogram is a top layer;
s32: generating a first contour line of an infrared spectrogram image corresponding to the key cap film 2 in a standard infrared spectrogram;
s33: blurring other images except the first contour line in the standard infrared spectrogram, so that a user can see the first infrared spectrogram through the standard infrared spectrogram;
s34: judging whether an infrared spectrogram image corresponding to the key cap film 2 in the first infrared spectrogram exceeds a first contour line or not;
s35: if the infrared spectrogram image corresponding to the keycap film 2 in the first infrared spectrogram does not exceed the first contour line, the position of the keycap 1 to be detected is matched with the standard position of the keycap;
s36: if the infrared spectrogram image corresponding to the keycap film 2 in the first infrared spectrogram exceeds the first contour line, the position of the keycap 1 to be detected is not matched with the standard position of the keycap.
The blurring processing of the images except the contour lines in the standard infrared spectrogram comprises the following steps:
identifying other images except the contour lines in the standard infrared spectrogram, and taking the identified images as images to be processed;
reducing the resolution of the display image to be processed;
image noise reduction is carried out on the display image to be processed;
carrying out fuzzy processing on the display image to be processed;
and performing color smoothing processing on the display image to be processed.
In this embodiment, the image denoising method may be median filtering, mean filtering or other types of denoising methods, which are not limited herein; the blurring process may be mean blurring, gaussian blurring, or other forms of blurring process, which are not limited herein; the blurring effect can be achieved by directly adjusting the transparency of the standard infrared spectrogram; after blurring processing is performed on other images except the first contour line in the standard infrared spectrogram, a user can see the edges of the infrared spectrogram images corresponding to the key cap films 2 in the first infrared spectrogram, the user can visually see the relative positions of the infrared spectrogram and the first contour line, the terminal equipment can easily identify the relative positions of the two images, and accurate judgment can be performed according to the relative positions.
As a preferred embodiment, step S3 further comprises:
s41: selecting a first temperature again in a preset temperature range;
s42: step S2 to step S3 are re-executed to re-judge whether the position of the key cap 1 to be tested is matched with the standard position of the key cap;
s43: repeating the steps S31 to S32 for a first set number of times, and if the number of times that the position of the key cap 1 to be detected is matched with the standard position of the key cap is judged to be the second set number of times, regarding the position of the key cap 1 to be detected to be matched with the standard position of the key cap;
s44: if the number of times that the position of the key cap 1 to be detected is matched with the standard position of the key cap is judged to be not up to the second set number of times, the position of the key cap 1 to be detected is not matched with the standard position of the key cap.
In this embodiment, the redetermined first temperature is still not the same as the temperature corresponding to the standard infrared spectrum; the first set number may be 5 times, 7 times, or other times, and the second set number may be 4 times, or 6 times, or other times, without limitation; the application realizes the multiple detection of the same keyboard under multiple temperature working conditions by changing the detection temperature, judges whether the keycaps are deviated or not according to the integral detection results of the multiple detection, avoids the large error result caused by unexpected factors in single detection, and further improves the detection accuracy.
As a preferred embodiment, step S3 further comprises:
s5: if the position of the key cap 1 to be tested is not matched with the standard position of the key cap, a prompt message is sent out;
wherein, send prompt message includes:
s51: sending out voice prompt information through a loudspeaker;
s52: and displaying the prompt identifier and the text prompt information through a display.
In this embodiment, when the position of the keycap 1 to be tested does not coincide with the standard position of the keycap, by generating a plurality of forms of prompt information, it is ensured that a worker can timely find a keyboard with an nonstandard position of the keycap and timely adjust the keyboard.
As a preferred embodiment, step S5 further comprises:
s6: and determining the offset form of the key cap 1 to be tested, and providing a position adjustment mode of the key cap 1 to be tested according to the offset form of the key cap 1 to be tested.
In the application, the offset form comprises horizontal offset and rotation offset, a plane coordinate system (the unit length of a coordinate axis corresponds to the actual length) can be established on the plane where the infrared spectrogram is located, then a first straight line where one side of the infrared spectrogram image of one key cap 1 to be detected is located and a second straight line where the corresponding side of the corresponding first contour line is located are determined, translation and rotation required by the first straight line moving to a position coincident with the second straight line are determined, and an adjustment mode is generated according to the translation and rotation and conversion of the coordinate and the distance, such as left translation by 1mm and clockwise rotation by 5 degrees'; according to the application, by providing the adjusting mode, a worker can be guided to adjust the key cap, so that the adjusting efficiency of the key cap can be remarkably improved.
As shown in fig. 2, in one embodiment of the present application, there is also provided a key cap position detecting device, including:
the temperature adjusting module is used for adjusting the temperature in the temperature adjusting dish to a first temperature;
the infrared spectrogram acquisition module is used for mobilizing an infrared spectrometer to scan the keyboard body to be tested in the temperature regulation vessel so as to acquire a first infrared spectrogram of the keycap film 2 at a first temperature;
the comparison module is used for comparing the first infrared spectrogram with a preset standard infrared spectrogram to determine whether the position of the key cap 1 to be tested is matched with the standard position of the key cap.
The process of implementing the respective functions of each module in the image saturation adjustment apparatus provided in the embodiment of the present application may refer to the description of the embodiment shown in fig. 1, and will not be repeated here.
As shown in fig. 3, in one embodiment of the present application, there is also provided a key cap position detection system, including:
the key cap position detection system includes:
a keyboard body;
the key caps 1 to be tested are arranged on the keyboard body, and each key cap 1 to be tested is made of a first material;
a plurality of keycap films 2, wherein each keycap 1 to be tested is provided with one keycap film 2, the keycap film 2 is made of a second material, and the infrared spectrums of the first material and the second material at each temperature are different;
the temperature adjusting dish is used for placing the keyboard body so as to adjust the temperatures of the key cap 1 to be tested and the key cap film 2 on the keyboard body;
the infrared spectrometer is used for scanning the keyboard body placed in the temperature culture dish when the temperature culture dish is at different temperatures so as to obtain a first infrared spectrogram of the key cap film 2;
a terminal device, connected to the temperature-adjusting dish and the infrared spectrometer, for performing the key cap position detection method according to claims 1-7.
In the application, the keycap film 2 can be stuck to the keycap 1 to be detected before detection, can be stuck to the keycap 1 to be detected when a keyboard is produced, can not be taken off from the keycap 1 to be detected after detection is finished, can be used for subsequent periodic detection, and can also play a certain role in protecting the keycap; the temperature adjusting dish can be a heating box, a thermistor thermostat or other vessels capable of adjusting and maintaining temperature, and is not limited herein; the infrared spectrometer may be a PerkinElmer Spectrum series, thermo Scientific Nicolet series, bruker Tensor series or other type of infrared spectrometer, without limitation.
According to the application, all the devices are matched with each other, the infrared spectrum of the key cap 1 to be detected is obtained, and the obtained infrared spectrum is compared with the infrared spectrum of the key cap at the standard position, so that whether the position of the key cap in the horizontal direction deviates from the standard position or not can be intuitively seen, and the detection efficiency and accuracy are high.
As shown in fig. 4-5, as a preferred embodiment, the key cap 1 to be tested is provided with a mounting seat 11, a mounting hole is formed in the mounting seat 11, the mounting hole is in interference fit with the mounting post 3, a cross groove is formed in the mounting post 3, a shaft rod adapted to the cross groove is arranged on the keyboard body, the shaft rod is inserted into the cross groove after the mounting post 3 is inserted into the mounting hole, so that the key cap 1 to be tested is connected with the keyboard body, and the key cap 1 to be tested can rotate around the mounting post 3 under the action of external force.
In this embodiment, can be stable through setting up of mount pad 11 be connected with erection column 3, realized the stability of installation, still mounting hole and erection column 3 interference fit have both guaranteed that the relative position of key cap and erection column 3 does not change when the atress is less, can adjust the key cap when exerting enough external force again, have promoted the convenience of key cap angle modulation, in addition through the setting with axostylus axostyle matched with cross groove, have realized the limiting function of keyboard body to erection column 3, and then provide the impetus for the key cap when receiving external force rotation, make it can smooth atress rotation.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance. It will also be understood that, although the terms "first," "second," etc. may be used herein in some embodiments of the application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first table may be named a second table, and similarly, a second table may be named a first table without departing from the scope of the various described embodiments. The first table and the second table are both tables, but they are not the same table.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The key cap position detection method provided by the embodiment of the application can be applied to terminal equipment such as mobile phones, tablet computers, wearable equipment, vehicle-mounted equipment, augmented reality (augmented reality, AR)/Virtual Reality (VR) equipment, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and the like, and the embodiment of the application does not limit the specific types of the terminal equipment.
For example, the terminal device may be a Station (ST) in a WLAN, a cellular telephone, a cordless telephone, a Session initiation protocol (Session InitiationProtocol, SIP) telephone, a wireless local loop (Wireless Local Loop, WLL) station, a personal digital assistant (Personal Digital Assistant, PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a car networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite radio, a wireless modem card, a television Set Top Box (STB), a customer premise equipment (customer premise equipment, CPE) and/or other devices for communicating over a wireless system as well as next generation communication systems, such as a mobile terminal in a 5G network or a mobile terminal in a future evolved public land mobile network (Public Land Mobile Network, PLMN) network, etc.
By way of example, but not limitation, when the terminal device is a wearable device, the wearable device may also be a generic name for applying wearable technology to intelligently design daily wear, developing wearable devices, such as glasses, gloves, watches, apparel, shoes, and the like. The wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also can realize a powerful function through software support, data interaction and cloud interaction. The generalized wearable intelligent device comprises full functions, large size, and complete or partial functions which can be realized independent of a smart phone, such as a smart watch or a smart glasses, and is only focused on certain application functions, and needs to be matched with other devices such as the smart phone for use, such as various smart bracelets, smart jewelry and the like for physical sign monitoring.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device of this embodiment includes: at least one processor, a memory and a display, the memory having stored therein a computer program executable on the processor, and the execution being capable of being presented by the display. The steps in the above embodiments of the key cap position detection method are implemented by the processor when the processor executes the computer program, for example, steps S1 to S3 shown in fig. 1. Alternatively, the processor may implement the functions of the modules/units in the above-described embodiments of the apparatus when executing the computer program, for example, the functions of the modules shown in fig. 2.
The terminal equipment can be computing equipment such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The terminal device may include, but is not limited to, a processor, memory, and a display. It will be appreciated by those skilled in the art that fig. 6 is merely an example of a terminal device and is not limiting of the terminal device, and may include more or fewer components than shown, or may combine some components, or different components, e.g., the terminal device may also include an input transmitting device, a network access device, a bus, etc.
The display may be a liquid crystal display (Liquid Crystal Display), an LED (Light-Emitting Diode) display, an OLED (Organic Light-Emitting Diode) display, or the like, or may be a curved display, a folded display, or the like.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may in some embodiments be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device. Further, the memory may also include both an internal storage unit and an external storage device of the terminal device. The memory is used to store an operating system, application programs, boot loader (BootLoader), data, and other programs, etc., such as program code for the computer program, etc. The memory may also be used to temporarily store data that has been transmitted or is to be transmitted.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The embodiment of the application also provides a terminal device, which comprises at least one memory, at least one processor and a computer program stored in the at least one memory and capable of running on the at least one processor, wherein the processor executes the computer program to enable the terminal device to realize the steps in any of the method embodiments.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal device, causes the mobile terminal device to perform steps that may be performed in the various method embodiments described above.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. The key cap position detection method is characterized by comprising the following steps of:
s1: the temperature in the temperature regulation dish is regulated to a first temperature, a keyboard body to be measured is placed in the temperature regulation dish, a plurality of key caps to be measured are arranged on the keyboard body to be measured, a key cap film is arranged on each key cap to be measured and is arranged on the keyboard body to be measured, the key caps to be measured are made of a first material, the key cap film is made of a second material, the infrared spectrums of the first material and the second material at all temperatures are different, the first temperature is in a preset temperature range, and the keyboard body is not damaged by the temperature when being in any temperature in the preset temperature range;
s2: the infrared spectrometer is mobilized to scan the keyboard body to be tested in the temperature regulation vessel so as to obtain a first infrared spectrogram of the key cap film at a first temperature;
s3: and comparing the first infrared spectrogram with a preset standard infrared spectrogram to determine whether the position of the key cap to be detected is consistent with the standard position of the key cap, wherein the standard infrared spectrogram is an infrared spectrogram of a key cap film arranged on the key cap when the key cap is positioned at the standard position.
2. The method for detecting a position of a key cap according to claim 1, wherein comparing the first infrared spectrogram with a preset standard infrared spectrogram to determine whether the position of the key cap to be detected matches with the standard position of the key cap comprises:
s31: overlapping a layer of the first infrared spectrogram with a layer of a preset standard infrared spectrogram, wherein the layer of the standard infrared spectrogram is a top layer;
s32: generating a first contour line of an infrared spectrogram image corresponding to the key cap film in a standard infrared spectrogram;
s33: blurring other images except the first contour line in the standard infrared spectrogram, so that a user can see the first infrared spectrogram through the standard infrared spectrogram;
s34: judging whether an infrared spectrogram image corresponding to a key cap film in the first infrared spectrogram exceeds a first contour line or not;
s35: if the infrared spectrogram image corresponding to the keycap film in the first infrared spectrogram does not exceed the first contour line, the position of the keycap to be detected is matched with the standard position of the keycap;
s36: if the infrared spectrogram image corresponding to the keycap film in the first infrared spectrogram exceeds the first contour line, the position of the keycap to be detected is not matched with the standard position of the keycap.
3. The key cap position detection method according to claim 2, wherein the blurring processing of the other images except for the contour line in the standard infrared spectrogram includes:
identifying other images except the contour lines in the standard infrared spectrogram, and taking the identified images as images to be processed;
reducing the resolution of the display image to be processed;
image noise reduction is carried out on the display image to be processed;
carrying out fuzzy processing on the display image to be processed;
and performing color smoothing processing on the display image to be processed.
4. The key cap position detection method according to claim 1, further comprising, after step S3:
s41: selecting a first temperature again in a preset temperature range;
s42: step S2 to step S3 are re-executed to re-judge whether the position of the key cap to be detected is matched with the standard position of the key cap;
s43: repeating the steps S31 to S32 for the first set times, and if the times of judging that the positions of the key caps to be detected are matched with the standard positions of the key caps reach the second set times, judging that the positions of the key caps to be detected are matched with the standard positions of the key caps;
s44: if the number of times that the position of the key cap to be detected is matched with the standard position of the key cap is judged to be not up to the second set number of times, the position of the key cap to be detected is not matched with the standard position of the key cap.
5. The key cap position detection method according to claim 1, further comprising, after step S3:
s5: and if the position of the key cap to be tested is not matched with the standard position of the key cap, sending out prompt information.
6. The key cap position detection method of claim 5, wherein the issuing the hint information comprises:
s51: sending out voice prompt information through a loudspeaker;
s52: and displaying the prompt identifier and the text prompt information through a display.
7. The key cap position detection method according to claim 5, further comprising, after step S5:
s6: determining an offset form of the key cap to be tested, and providing a position adjustment mode of the key cap to be tested according to the offset form of the key cap to be tested.
8. A key cap position detection device, comprising:
the temperature adjusting module is used for adjusting the temperature in the temperature adjusting dish to a first temperature;
the infrared spectrogram acquisition module is used for mobilizing the infrared spectrometer to scan the keyboard body to be tested in the temperature regulation vessel so as to acquire a first infrared spectrogram of the key cap film at a first temperature;
and the comparison module is used for comparing the first infrared spectrogram with a preset standard infrared spectrogram so as to determine whether the position of the key cap to be detected is consistent with the standard position of the key cap.
9. A key cap position detection system, the key cap position detection system comprising:
a keyboard body;
the key caps to be tested are arranged on the keyboard body, and each key cap to be tested is made of a first material;
the key cap film is made of a second material, and the infrared spectrums of the first material and the second material at all temperatures are different;
the temperature adjusting dish is used for placing the keyboard body so as to adjust the temperature of the key cap to be tested and the key cap film on the keyboard body;
the infrared spectrometer is used for scanning the keyboard body placed in the temperature culture dish when the temperature culture dish is at different temperatures so as to obtain a first infrared spectrogram of the key cap film;
a terminal device, connected to the temperature-adjusting dish and the infrared spectrometer, for performing the key cap position detection method according to claims 1-7.
10. The detecting system according to claim 9, wherein a mounting seat is provided in the keycap to be detected, a mounting hole is provided on the mounting seat, the mounting hole is in interference fit with a mounting post, a cross groove is provided on the mounting post, a shaft rod adapted to the cross groove is provided on the keyboard body, the shaft rod is inserted into the cross groove after the mounting post is inserted into the mounting hole, so that the keycap to be detected is connected with the keyboard body, and the keycap to be detected can rotate around the mounting post under the action of external force.
CN202310849774.0A 2023-07-12 2023-07-12 Key cap position detection method, device and system Active CN117232384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310849774.0A CN117232384B (en) 2023-07-12 2023-07-12 Key cap position detection method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310849774.0A CN117232384B (en) 2023-07-12 2023-07-12 Key cap position detection method, device and system

Publications (2)

Publication Number Publication Date
CN117232384A true CN117232384A (en) 2023-12-15
CN117232384B CN117232384B (en) 2024-05-03

Family

ID=89083311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310849774.0A Active CN117232384B (en) 2023-07-12 2023-07-12 Key cap position detection method, device and system

Country Status (1)

Country Link
CN (1) CN117232384B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203456350U (en) * 2013-08-25 2014-02-26 黄淮学院 Multilayer easily-cleaned silica-gel keyboard
US9742402B1 (en) * 2016-02-24 2017-08-22 Pixart Imaging Inc. Keyswitch and keyboard with distance detecting function
CN108469424A (en) * 2018-02-28 2018-08-31 江苏中路工程检测有限公司 A kind of pitch infrared spectrum fingerprint recognition detecting system
CN109000564A (en) * 2018-07-26 2018-12-14 江苏传艺科技股份有限公司 A kind of keycap assembling method for testing performance and automatic detection device
CN211452804U (en) * 2019-03-26 2020-09-08 昆山鸿志犀自动化机电设备有限公司 Keyboard compresses tightly tool
CN112525925A (en) * 2020-11-24 2021-03-19 英业达(重庆)有限公司 Keyboard detection method, system, electronic equipment and medium
CN112611732A (en) * 2020-12-21 2021-04-06 中国电力科学研究院有限公司 Method and system for establishing intermediate infrared spectrum chart library for silicone rubber for composite insulator
CN112815988A (en) * 2020-12-24 2021-05-18 昆山科欣达电子科技有限公司 Multifunctional keyboard detector
CN218511694U (en) * 2022-10-17 2023-02-21 苏州歌德尔自动化有限公司 Keyboard key cap interval detection device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203456350U (en) * 2013-08-25 2014-02-26 黄淮学院 Multilayer easily-cleaned silica-gel keyboard
US9742402B1 (en) * 2016-02-24 2017-08-22 Pixart Imaging Inc. Keyswitch and keyboard with distance detecting function
CN108469424A (en) * 2018-02-28 2018-08-31 江苏中路工程检测有限公司 A kind of pitch infrared spectrum fingerprint recognition detecting system
CN109000564A (en) * 2018-07-26 2018-12-14 江苏传艺科技股份有限公司 A kind of keycap assembling method for testing performance and automatic detection device
CN211452804U (en) * 2019-03-26 2020-09-08 昆山鸿志犀自动化机电设备有限公司 Keyboard compresses tightly tool
CN112525925A (en) * 2020-11-24 2021-03-19 英业达(重庆)有限公司 Keyboard detection method, system, electronic equipment and medium
CN112611732A (en) * 2020-12-21 2021-04-06 中国电力科学研究院有限公司 Method and system for establishing intermediate infrared spectrum chart library for silicone rubber for composite insulator
CN112815988A (en) * 2020-12-24 2021-05-18 昆山科欣达电子科技有限公司 Multifunctional keyboard detector
CN218511694U (en) * 2022-10-17 2023-02-21 苏州歌德尔自动化有限公司 Keyboard key cap interval detection device

Also Published As

Publication number Publication date
CN117232384B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
US11320913B2 (en) Techniques for gesture-based initiation of inter-device wireless connections
US20180211090A1 (en) Electronic Device
US8904479B1 (en) Pattern-based mobile device unlocking
CN107085479B (en) Method for providing handwriting style correction function and electronic device suitable for same
US20180181733A1 (en) Smart watch and method for controlling same
US9572028B2 (en) Mobile device, and method for releasing lock of the mobile device via handwriting recognition
US20090165121A1 (en) Touch Pad based Authentication of Users
US10445605B2 (en) Biometric authentication of electronic signatures
US20050041865A1 (en) Orientation determination for handwritten characters for recognition thereof
JP2016530602A (en) Improving user authentication or improving user authentication
CN107977659A (en) A kind of character recognition method, device and electronic equipment
CN111353458B (en) Text box labeling method, device and storage medium
CN104978045B (en) A kind of Chinese character input method and device
US11727701B2 (en) Techniques to determine document recognition errors
CN106446898A (en) Extraction method and extraction device of character information in image
CN116168038B (en) Image reproduction detection method and device, electronic equipment and storage medium
CN106778674A (en) Fingerprint identification device and fingerprint identification method
CN117232384B (en) Key cap position detection method, device and system
CN105094611A (en) Display device, and display method
US20190034611A1 (en) User interface elements with fingerprint validation
US20140105664A1 (en) Keyboard Modification to Increase Typing Speed by Gesturing Next Character
CN113687724A (en) Candidate character display method and device and electronic equipment
US20200134290A1 (en) Dermatoglyphics data acquisition device, acquisition method thereof and display device
CN109657441B (en) Application opening method and related device
US10311577B1 (en) Techniques to improve edge detection for images

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant