CN113505777B - Keyboard layout version detection method, device, equipment and storage medium - Google Patents
Keyboard layout version detection method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113505777B CN113505777B CN202110823308.6A CN202110823308A CN113505777B CN 113505777 B CN113505777 B CN 113505777B CN 202110823308 A CN202110823308 A CN 202110823308A CN 113505777 B CN113505777 B CN 113505777B
- Authority
- CN
- China
- Prior art keywords
- layout
- key
- version
- keyboard
- key layout
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Computer Security & Cryptography (AREA)
- Life Sciences & Earth Sciences (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses a keyboard layout version detection method, a device, equipment and a storage medium, wherein the keyboard layout version detection method comprises the following steps: acquiring a key layout image of a target keyboard; analyzing whether the key layout of the target keyboard is the key layout of the preset layout version according to the acquired key layout image; if the key layout of the target keyboard is determined to be the key layout of the preset layout version, configuring the target keyboard according to the software configuration information of the preset layout version. According to the technical scheme, the situation of configuration errors is effectively avoided, and the yield of the keyboard is ensured.
Description
Technical Field
The present invention relates to the field of keyboard production, and in particular, to a method, apparatus, device, and storage medium for detecting a keyboard layout version.
Background
In keyboard production, the codes of corresponding keys are different due to different layouts of keyboards in different countries. But the key numbers and the layout are different, and the others are common. Typical keyboards are QWERTY keyboards, QWERTZ keyboards, AZERTY keyboards, and the like.
At present, one of the production modes adopted by the keyboards is that each keyboard is respectively made of different software, and by adopting the production mode, various keyboards are required to be produced separately, and are strictly separated in assembly and maintenance, so that unified production is not facilitated. In order to ensure that various keyboards can be produced uniformly, the existing improvement mode adopts a production mode that various keyboards share the same software, and in the production process, the various keyboards are respectively distributed to corresponding stations to configure corresponding software configuration information due to different key layouts of the various keyboards, so that the software configuration is ensured to correspond to the key layouts. The method has the defects that as the software configuration information of all keyboards is configured by manual arrangement, when a small amount of other keyboard products (products with different key layouts) are doped in one keyboard product at one station, operators cannot easily find the keyboard products, the situation of configuration errors is easily caused, and the yield of the keyboards is affected.
Disclosure of Invention
The invention provides a keyboard layout version detection method, device, equipment and storage medium, which are used for solving the problem that a keyboard is easy to have configuration errors.
In order to achieve the above object, the present invention provides a keyboard layout version detection method, which includes:
acquiring a key layout image of a target keyboard;
analyzing whether the key layout of the target keyboard is the key layout of a preset layout version according to the acquired key layout image;
and if the key layout of the target keyboard is determined to be the key layout of the preset layout version, configuring the target keyboard according to the software configuration information of the preset layout version.
Preferably, the step of analyzing whether the key layout of the target keyboard is the key layout of the preset layout version according to the acquired key layout image includes:
respectively comparing the standard layout images of each layout version with the acquired key layout images in similarity, and determining the standard layout image with the highest similarity with the acquired key layout images;
judging whether the determined standard layout image is a standard layout image of a preset layout version or not;
if yes, determining that the key layout of the target keyboard is the key layout of the preset layout version;
if not, determining that the key layout of the target keyboard is not the key layout of the preset layout version.
Preferably, the step of analyzing whether the key layout of the target keyboard is the key layout of the preset layout version according to the acquired key layout image includes:
performing similarity comparison analysis on the obtained key layout image and the standard layout image of the preset layout version to determine similarity between the key layout image and the standard layout image;
judging whether the similarity is larger than or equal to a first preset similarity threshold value or not;
if yes, determining that the key layout of the target keyboard is the key layout of the preset layout version;
if not, determining that the key layout of the target keyboard is not the key layout of the preset layout version.
Preferably, the keyboard layout version detection method further comprises:
and if the key layout of the target keyboard is not the key layout of the preset layout version, carrying out preset alarm processing.
The invention also provides a keyboard layout version detection method, which comprises the following steps:
acquiring a key layout image and software configuration information of a target keyboard;
according to the obtained key layout image, analyzing whether the key layout of the target keyboard is the key layout of the layout version corresponding to the obtained software configuration information;
and if the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information, performing preset alarm processing.
Preferably, the step of analyzing whether the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information according to the acquired key layout image includes:
determining a standard layout image of a layout version corresponding to the acquired software configuration information according to a mapping relation between the preset software configuration information and the layout version;
comparing the acquired key layout image with the determined standard layout image in similarity to determine the similarity between the two images;
judging whether the similarity is greater than or equal to a second preset similarity threshold value
If yes, determining that the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information;
if not, determining that the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information.
Further, the invention also provides a keyboard layout version detection device, which comprises:
the first acquisition module is used for acquiring a key layout image of the target keyboard;
the first analysis module is used for analyzing whether the key layout of the target keyboard is the key layout of a preset layout version according to the acquired key layout image;
and the configuration module is used for configuring the target keyboard according to the software configuration information of the preset layout version after determining that the key layout of the target keyboard is the key layout of the preset layout version.
Further, the invention also provides a keyboard layout version detection device, which comprises:
the second acquisition module is used for acquiring the key layout image and the software configuration information of the target keyboard;
the second analysis module is used for analyzing whether the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information according to the acquired key layout image;
and the alarm module is used for carrying out preset alarm processing after determining that the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information.
Further, the present invention also provides a keyboard layout version detection device, including:
a memory for storing a computer program;
and the processor is used for realizing the keyboard layout version detection method when executing the computer program.
Further, the invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program realizes the keyboard layout version detection method when being executed by a processor.
According to the technical scheme, whether the key layout of the target keyboard is the key layout of the preset layout version is determined by acquiring the key layout image of the target keyboard according to the acquired key layout image analysis, and after the key layout of the target keyboard is determined to be the key layout of the preset layout version, the configuration is carried out for the target keyboard according to the software configuration information of the preset layout version. The method comprises the steps of automatically identifying whether the key layout of a target keyboard is the key layout of a preset layout version or not, and configuring software configuration information corresponding to the preset layout version for the target keyboard after determining that the target keyboard is the key layout of the preset layout version. Therefore, the situation that software configuration information of a preset layout version is configured for the keyboard of other layout versions can be effectively avoided, the problem of configuration errors is avoided, and the yield of the keyboard is ensured.
Drawings
FIG. 1 is a flowchart illustrating an embodiment of a keyboard layout version detection method according to the present invention;
FIG. 2 is a flowchart illustrating a method for detecting a keyboard layout version according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for detecting a keyboard layout version according to a third embodiment of the present invention;
FIG. 4 is a flowchart of a fourth embodiment of a keyboard layout version detection method according to the present invention;
FIG. 5 is a flowchart of a fifth embodiment of a keyboard layout version detection method according to the present invention;
FIG. 6 is a flowchart of a sixth embodiment of a keyboard layout version detection method according to the present invention;
FIG. 7 is a block diagram illustrating an embodiment of a keyboard layout version detection apparatus according to the present invention;
FIG. 8 is a block diagram illustrating a keyboard layout version detection apparatus according to a second embodiment of the present invention;
fig. 9 is a schematic structural diagram of a keyboard layout version detecting device in a hardware running environment according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below are exemplary and intended to illustrate the present invention and should not be construed as limiting the invention, and all other embodiments, based on the embodiments of the present invention, which may be obtained by persons of ordinary skill in the art without inventive effort, are within the scope of the present invention.
The invention provides a keyboard layout version detection method which is operated in keyboard layout version detection equipment.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a keyboard layout version detection method according to the present invention.
In this embodiment, the keyboard layout version detection method includes:
step S10, obtaining a key layout image of the target keyboard.
In the production process of the keyboard, when the keyboard is tested, a target keyboard (namely the keyboard to be tested) is placed at a test station (for example, placed on a test frame) through a manual or machine, and the keyboard layout version detection equipment shoots the target keyboard at the test station through a shooting module (for example, a camera) so as to quickly acquire a key layout image of the target keyboard. The key layout image may be an image of the whole key area on the target keyboard, or may be an image of a part of the preset key area on the target keyboard.
Step S20, whether the key layout of the target keyboard is the key layout of the preset layout version is analyzed according to the obtained key layout image.
After the key layout image of the target keyboard is acquired, whether the key layout of the target keyboard is the key layout of the preset layout version or not is determined by analyzing the acquired key layout image. The preset layout version may be a layout version of a currently produced keyboard preset in the keyboard layout version detection device.
Step S30, if the key layout of the target keyboard is determined to be the key layout of the preset layout version, configuring the target keyboard according to the software configuration information of the preset layout version.
The keyboard layout version detection device is in communication connection with the target keyboard, for example, the keyboard layout version detection device and the target keyboard can be connected through a USB interface, a Bluetooth interface, a serial port or other communication interfaces, and software configuration information corresponding to a preset layout version is stored in the keyboard layout version detection device. Only after determining that the key layout of the target keyboard is the key layout of the preset layout version, the keyboard layout version detection device configures the target keyboard according to the software configuration information of the preset layout version. The software configuration information is, for example, a configuration parameter of a keyboard layout. Under the condition that the key layout of the target keyboard is not the key layout of the preset layout version, the target keyboard is not configured, and abnormal situations of software configuration information which is not matched with the keyboard configuration are avoided. An error condition in which the key layout does not match the software configuration information.
According to the keyboard layout version detection method, whether the key layout of the target keyboard is the key layout of the preset layout version is determined through analysis according to the obtained key layout image, and after the key layout of the target keyboard is determined to be the key layout of the preset layout version, the target keyboard is configured according to the software configuration information of the preset layout version. The method comprises the steps of automatically identifying whether the key layout of a target keyboard is the key layout of a preset layout version or not, and configuring software configuration information corresponding to the preset layout version for the target keyboard after determining that the target keyboard is the key layout of the preset layout version. Therefore, the situation that software configuration information of a preset layout version is configured for the keyboard of other layout versions can be effectively avoided, the problem of configuration errors is avoided, and the yield of the keyboard is ensured.
Further, as shown in fig. 2, the keyboard layout version detection method of the present embodiment further includes:
step S40, if the key layout of the target keyboard is not the key layout of the preset layout version, the preset alarm processing is performed.
And the keyboard layout version detection equipment performs preset alarm processing after determining that the key layout of the target keyboard is not the key layout of the preset layout version according to the acquired key layout image analysis so as to inform and remind operators of processing. The preset alarm processing can be sending an alarm instruction to the buzzer alarm for sound alarm, or sending an alarm instruction to the alarm lamp for light alarm, or sending a fault message to the upper computer, and the like.
Further, as shown in fig. 3, in the keyboard layout version detection method of the present embodiment, step S20 includes:
step S21, respectively comparing the standard layout images of each layout version with the acquired key layout images in similarity, and determining the standard layout image with the highest similarity with the acquired key layout images;
the keyboard layout version detection device stores therein a standard layout image of the keyboard of each layout version. After the key layout images of the target keyboard are obtained, the keyboard layout version detection equipment compares the similarity of the standard layout images of each layout version with the obtained key layout images respectively to obtain the similarity of the standard layout images of each layout version and the obtained key layout images respectively, and determines the standard layout image with the highest similarity with the obtained key layout images in each standard layout image.
Step S22, judging whether the determined standard layout image is a standard layout image of a preset layout version.
And after determining the standard layout image with the highest similarity with the acquired key layout image, determining the key layout of the target keyboard as the key layout of the layout version keyboard corresponding to the determined standard layout image. At this time, it is only necessary to determine whether the determined standard layout image is a standard layout image of a preset layout version, so as to know whether the key layout of the target keyboard is the key layout of the preset layout version. Judging whether the determined standard layout image is a standard layout image of a preset layout version or not, and distinguishing the standard layout images by comparing the similarity only by comparing the two standard layout images as the difference between the standard layout images of different layout versions is larger.
Step S23, if yes, determining that the key layout of the target keyboard is the key layout of the preset layout version.
And when the determined standard layout image is the standard layout image of the preset layout version, determining that the key layout of the target keyboard is the key layout of the preset layout version.
Step S24, if not, determining that the key layout of the target keyboard is not the key layout of the preset layout version.
And when the determined standard layout image is not the standard layout image of the preset layout version, determining that the key layout of the target keyboard is not the key layout of the preset layout version.
Further, as shown in fig. 4, in the keyboard layout version detection method of the present embodiment, step S20 includes:
step S201, similarity comparison analysis is carried out on the obtained key layout image and the standard layout image of the preset layout version so as to determine the similarity between the key layout image and the standard layout image.
The keyboard layout version detection device stores standard layout images of preset layout versions. After the key layout image of the target keyboard is obtained, the obtained key layout image is compared with the standard layout image of the preset layout version through similarity, so that the similarity between the key layout image and the standard layout image is obtained.
Step S202, judging whether the similarity is larger than or equal to a first preset similarity threshold.
The first preset similarity threshold is a reference value (for example, 98%) of a similarity preset in the keyboard layout version detection device, so as to distinguish whether the key layout image and the standard layout image belong to the same layout version of the keyboard. And after the obtained similarity between the key layout image and the standard layout image of the preset layout version is obtained, comparing the similarity with a first preset similarity threshold value.
Step S203, if yes, determining that the key layout of the target keyboard is the key layout of the preset layout version.
And when the similarity between the obtained key layout image and the standard layout image of the preset layout version is greater than or equal to a first preset similarity threshold, determining that the key layout of the target keyboard is the key layout of the preset layout version.
Step S204, if not, determining that the key layout of the target keyboard is not the key layout of the preset layout version.
And when the similarity between the obtained key layout image and the standard layout image of the preset layout version is smaller than a first preset similarity threshold value, determining that the key layout of the target keyboard is not the key layout of the preset layout version.
Of course, in other embodiments, step S20 may be implemented in other manners.
Further, the keyboard layout version detection method of the present embodiment further includes statistical record related information for data analysis after step S30 and step S40. The related information may include a layout version detection result of the target keyboard, software configuration information, and the like.
The invention also provides a keyboard layout version detection method which is operated in the keyboard layout version detection equipment.
As shown in fig. 5, the keyboard layout version detection method of the present embodiment includes:
step S01, obtaining a key layout image and software configuration information of a target keyboard.
In the production process of the keyboard, when the keyboard with the software configuration information is tested, a target keyboard (namely, the keyboard to be tested) is placed at a test station (for example, placed on a test frame) through a manual or machine, and the keyboard layout version detection equipment shoots the target keyboard at the test station through a shooting module (for example, a camera) so as to quickly acquire a key layout image of the target keyboard. The key layout image may be an image of the whole key area on the target keyboard, or may be an image of a part of the preset key area on the target keyboard. The keyboard layout version detection device is in communication connection with the target keyboard, for example, the keyboard layout version detection device and the target keyboard can be connected through a USB interface, a Bluetooth interface, a serial port or other communication interfaces, and software configuration information of the target keyboard can be obtained through communication with the target keyboard. The software configuration information is, for example, a configuration parameter of a keyboard layout.
Step S02, according to the obtained key layout image, whether the key layout of the target keyboard is the key layout of the layout version corresponding to the obtained software configuration information is analyzed.
The keyboard layout version detection equipment is pre-stored with a mapping relation table of software configuration information and layout version, and after the software configuration information of the target keyboard is acquired, the layout version corresponding to the acquired software configuration information can be determined through the mapping relation table. And analyzing the key layout image according to the acquired key layout image to determine whether the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information.
Step S03, if the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information, performing preset alarm processing.
When the key layout of the target keyboard is analyzed and determined not to be the key layout of the layout version corresponding to the acquired software configuration information, the fact that the key layout of the target keyboard is not matched with the software configuration information is indicated, the target keyboard is a fault keyboard, and preset alarm processing is conducted at the moment to inform reminding operators of processing. The preset alarm processing can be sending an alarm instruction to the buzzer alarm for sound alarm, or sending an alarm instruction to the alarm lamp for light alarm, or sending a fault message to the upper computer, and the like. When the key layout of the target keyboard is analyzed and determined to be the key layout of the layout version corresponding to the acquired software configuration information, the key layout of the target keyboard is matched with the software configuration information, and the target keyboard is qualified.
According to the keyboard layout version detection method, after the key layout image and the software configuration information of the target keyboard are acquired, whether the key layout of the keyboard is matched with the key layout of the layout version corresponding to the acquired software configuration information is analyzed according to the acquired key layout image, so that whether the key layout of the target keyboard is matched with the software configuration information is determined; and when the key layout of the target keyboard is not matched with the software configuration information, alarm processing is carried out. The key layout of the target keyboard and the key layout of the layout version corresponding to the software configuration information are automatically acquired and identified, so that whether the key layout and the key layout of the layout version corresponding to the software configuration information are matched or not is determined, and an operator is notified of processing when the key layout and the key layout are not matched, so that the key layout is more intelligent, the detection is more accurate and the efficiency is higher.
Further, as shown in fig. 6, in the keyboard layout version detection method of the present embodiment, step S02 includes:
step S021, according to the mapping relation between the preset software configuration information and the layout version, determining the standard layout image of the layout version corresponding to the obtained software configuration information;
the keyboard layout version detection equipment stores the respective standard layout images of each layout version, so that the standard layout image corresponding to the acquired software configuration information can be determined.
Step S022, the acquired key layout image is subjected to similarity comparison with the determined standard layout image to determine the similarity between the two images.
After the standard layout image corresponding to the acquired software configuration information is determined, the acquired key layout image and the determined standard layout image are analyzed through similarity comparison, so that the similarity between the acquired key layout image and the determined standard layout image is obtained.
Step S023, judging whether the similarity is larger than or equal to a second preset similarity threshold.
The second preset similarity threshold is a reference value (for example, 98%) of a similarity preset in the keyboard layout version detection device, so as to distinguish whether the key layout image and the standard layout image belong to the same layout version of the keyboard. And after the obtained similarity between the key layout image and the determined standard layout image is obtained, comparing the similarity with a second preset similarity threshold value.
Step S024, if yes, determining that the key layout of the target keyboard is the key layout of the layout version corresponding to the obtained software configuration information.
And when the similarity between the obtained key layout image and the determined standard layout image is greater than or equal to a second preset similarity threshold value, determining that the key layout of the target keyboard is the key layout of the layout version corresponding to the obtained software configuration information.
Step S025, if not, determining that the key layout of the target keyboard is not the key layout of the layout version corresponding to the obtained software configuration information.
And when the similarity between the acquired key layout image and the determined standard layout image is smaller than a second preset similarity threshold, determining that the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information.
Of course, in other embodiments, step S02 may be implemented in other ways.
Further, in an embodiment, after step S03, the keyboard layout version detection method may further include: and determining software configuration information corresponding to the layout version of the target keyboard, and modifying the software configuration information of the target keyboard through the determined software configuration information. Thus, when the key layout of the target keyboard is not matched with the software configuration information, the modification can be automatically carried out so as to qualify the target keyboard.
Further, the keyboard layout version detection method of the present embodiment further includes, after step S03, statistics recording related information for data analysis. The related information may include layout version information of the target keyboard, software configuration information, etc.
In addition, it should be noted that the two keyboard layout version detection methods provided in the present invention may be combined with each other to form a combination scheme.
Based on the keyboard layout version detection method proposed in the foregoing embodiment, referring to fig. 7, the present invention further proposes a keyboard layout version detection device 10, where the keyboard layout version detection device 10 includes:
a first obtaining module 101, configured to obtain a key layout image of a target keyboard;
the first analysis module 102 is configured to analyze whether a key layout of the target keyboard is a key layout of a preset layout version according to the acquired key layout image;
and the configuration module 103 is configured to configure the target keyboard according to the software configuration information of the preset layout version after determining that the key layout of the target keyboard is the key layout of the preset layout version.
Based on the keyboard layout version detection method according to the foregoing embodiment, referring to fig. 8, the present invention further provides a keyboard layout version detection device 20, where the keyboard layout version detection device 20 includes:
a second obtaining module 201, configured to obtain a key layout image and software configuration information of the target keyboard;
the second analysis module 202 is configured to analyze whether the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information according to the acquired key layout image;
and the alarm module 203 is configured to perform a preset alarm process after determining that the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information.
Based on the keyboard layout version detection method provided by the foregoing embodiment, the present invention further provides a keyboard layout version detection device, including:
a memory for storing a computer program;
a processor for implementing the keyboard layout version detection method described in the foregoing embodiments when executing the computer program; the keyboard layout version detection method at least comprises the following steps:
and step 1, acquiring a key layout image of the target keyboard.
And 2, analyzing whether the key layout of the target keyboard is the key layout of the preset layout version according to the acquired key layout image.
And step 3, if the key layout of the target keyboard is determined to be the key layout of the preset layout version, configuring the target keyboard according to the software configuration information of the preset layout version.
Or, the keyboard layout version detection method at least comprises the following steps:
step 1', obtaining a key layout image and software configuration information of a target keyboard;
and 2', analyzing whether the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information according to the acquired key layout image.
And step 3', if the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information, performing preset alarm processing.
As shown in fig. 9, fig. 9 is a schematic structural diagram of a keyboard layout version detecting device in a hardware running environment according to an embodiment of the present invention.
The keyboard layout version detection device of the embodiment of the invention can be a robot or a PC. As shown in fig. 9, the keyboard layout version detecting apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the keyboard layout version detection apparatus structure shown in fig. 9 does not constitute a limitation of the keyboard layout version detection apparatus, and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 9, an operating system, a network communication module, a user interface module, and a keyboard layout version detection program may be included in a memory 1005 as one type of computer storage medium.
In the keyboard layout version detection apparatus shown in fig. 9, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to invoke a keyboard layout version detection program stored in the memory 1005.
Based on the keyboard layout version detection method provided by the foregoing embodiment, the present invention further provides a storage medium storing a computer program, where the computer program, when executed by a processor, implements the keyboard layout version detection method described in the foregoing embodiment; the keyboard layout version detection method at least comprises the following steps:
and step 1, acquiring a key layout image of the target keyboard.
And 2, analyzing whether the key layout of the target keyboard is the key layout of the preset layout version according to the acquired key layout image.
And step 3, if the key layout of the target keyboard is determined to be the key layout of the preset layout version, configuring the target keyboard according to the software configuration information of the preset layout version.
Or, the keyboard layout version detection method at least comprises the following steps:
step 1', obtaining a key layout image and software configuration information of a target keyboard;
and 2', analyzing whether the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information according to the acquired key layout image.
And step 3', if the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information, performing preset alarm processing.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description of the preferred embodiments of the present invention should not be taken as limiting the scope of the invention, but rather should be understood to cover all modifications, variations and adaptations of the present invention using its general principles and the following detailed description and the accompanying drawings, or the direct/indirect application of the present invention to other relevant arts and technologies.
Claims (7)
1. A keyboard layout version detection method, comprising:
acquiring a key layout image of a target keyboard;
analyzing whether the key layout of the target keyboard is the key layout of a preset layout version according to the acquired key layout image;
if the key layout of the target keyboard is determined to be the key layout of the preset layout version, configuring the target keyboard according to the software configuration information of the preset layout version;
the step of analyzing whether the key layout of the target keyboard is the key layout of the preset layout version according to the obtained key layout image comprises the following steps:
respectively comparing the standard layout images of each layout version with the acquired key layout images in similarity, and determining the standard layout image with the highest similarity with the acquired key layout images;
judging whether the determined standard layout image is a standard layout image of a preset layout version or not;
if yes, determining that the key layout of the target keyboard is the key layout of the preset layout version;
if not, determining that the key layout of the target keyboard is not the key layout of the preset layout version;
or, the step of analyzing whether the key layout of the target keyboard is the key layout of the preset layout version according to the obtained key layout image includes:
performing similarity comparison analysis on the obtained key layout image and the standard layout image of the preset layout version to determine similarity between the key layout image and the standard layout image;
judging whether the similarity is larger than or equal to a first preset similarity threshold value or not;
if yes, determining that the key layout of the target keyboard is the key layout of the preset layout version;
if not, determining that the key layout of the target keyboard is not the key layout of the preset layout version.
2. The keyboard layout version detection method of claim 1, further comprising:
and if the key layout of the target keyboard is not the key layout of the preset layout version, carrying out preset alarm processing.
3. A keyboard layout version detection method, comprising:
acquiring a key layout image and software configuration information of a target keyboard;
according to the obtained key layout image, analyzing whether the key layout of the target keyboard is the key layout of the layout version corresponding to the obtained software configuration information;
if the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information, performing preset alarm processing;
the step of analyzing whether the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information according to the acquired key layout image comprises the following steps:
determining a standard layout image of a layout version corresponding to the acquired software configuration information according to a mapping relation between the preset software configuration information and the layout version;
comparing the acquired key layout image with the determined standard layout image in similarity to determine the similarity between the two images;
judging whether the similarity is larger than or equal to a second preset similarity threshold value;
if yes, determining that the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information;
if not, determining that the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information.
4. A keyboard layout version detection apparatus, comprising:
the first acquisition module is used for acquiring a key layout image of the target keyboard;
the first analysis module is used for analyzing whether the key layout of the target keyboard is the key layout of a preset layout version according to the acquired key layout image;
the configuration module is used for configuring the target keyboard according to the software configuration information of the preset layout version after determining that the key layout of the target keyboard is the key layout of the preset layout version;
the analyzing whether the key layout of the target keyboard is the key layout of the preset layout version according to the obtained key layout image includes:
respectively comparing the standard layout images of each layout version with the acquired key layout images in similarity, and determining the standard layout image with the highest similarity with the acquired key layout images;
judging whether the determined standard layout image is a standard layout image of a preset layout version or not;
if yes, determining that the key layout of the target keyboard is the key layout of the preset layout version;
if not, determining that the key layout of the target keyboard is not the key layout of the preset layout version;
or, the analyzing whether the key layout of the target keyboard is the key layout of the preset layout version according to the obtained key layout image includes:
performing similarity comparison analysis on the obtained key layout image and the standard layout image of the preset layout version to determine similarity between the key layout image and the standard layout image;
judging whether the similarity is larger than or equal to a first preset similarity threshold value or not;
if yes, determining that the key layout of the target keyboard is the key layout of the preset layout version;
if not, determining that the key layout of the target keyboard is not the key layout of the preset layout version.
5. A keyboard layout version detection apparatus, comprising:
the second acquisition module is used for acquiring the key layout image and the software configuration information of the target keyboard;
the second analysis module is used for analyzing whether the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information according to the acquired key layout image;
the alarm module is used for carrying out preset alarm processing after determining that the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information;
and analyzing whether the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information according to the acquired key layout image, wherein the analyzing comprises the following steps:
determining a standard layout image of a layout version corresponding to the acquired software configuration information according to a mapping relation between the preset software configuration information and the layout version;
comparing the acquired key layout image with the determined standard layout image in similarity to determine the similarity between the two images;
judging whether the similarity is larger than or equal to a second preset similarity threshold value;
if yes, determining that the key layout of the target keyboard is the key layout of the layout version corresponding to the acquired software configuration information;
if not, determining that the key layout of the target keyboard is not the key layout of the layout version corresponding to the acquired software configuration information.
6. A keyboard layout version detection apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the keyboard layout version detection method of claim 1, 2 or 3 when executing the computer program.
7. A storage medium storing a computer program which, when executed by a processor, implements the keyboard layout version detection method of claim 1, 2 or 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110823308.6A CN113505777B (en) | 2021-07-20 | 2021-07-20 | Keyboard layout version detection method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110823308.6A CN113505777B (en) | 2021-07-20 | 2021-07-20 | Keyboard layout version detection method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113505777A CN113505777A (en) | 2021-10-15 |
CN113505777B true CN113505777B (en) | 2023-05-02 |
Family
ID=78013344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110823308.6A Active CN113505777B (en) | 2021-07-20 | 2021-07-20 | Keyboard layout version detection method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113505777B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106125953A (en) * | 2016-05-30 | 2016-11-16 | 联想(北京)有限公司 | A kind of keyboard display method and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110179372A1 (en) * | 2010-01-15 | 2011-07-21 | Bradford Allen Moore | Automatic Keyboard Layout Determination |
CN107391216A (en) * | 2017-09-26 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of method for upgrading software and device |
WO2020061939A1 (en) * | 2018-09-27 | 2020-04-02 | 西门子股份公司 | Method, apparatus, and system for identifying device, storage medium, processor, and terminal |
-
2021
- 2021-07-20 CN CN202110823308.6A patent/CN113505777B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106125953A (en) * | 2016-05-30 | 2016-11-16 | 联想(北京)有限公司 | A kind of keyboard display method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113505777A (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11210158B2 (en) | Automated problem diagnosis on logs using anomalous telemetry analysis | |
US10642985B2 (en) | Method and device for vulnerability scanning | |
EP3764592B1 (en) | Automatic root cause diagnosis in networks based on hypothesis testing | |
CN107124289B (en) | Weblog time alignment method, device and host | |
CN112257070A (en) | Vulnerability troubleshooting method and system based on asset scene attributes | |
CN110995273B (en) | Data compression method, device, equipment and medium for power database | |
CN111209153B (en) | Abnormity detection processing method and device and electronic equipment | |
CN111274084A (en) | Fault diagnosis method, device, equipment and computer readable storage medium | |
CN108665237B (en) | Method for establishing automatic inspection model and positioning abnormity based on business system | |
US11263072B2 (en) | Recovery of application from error | |
CN112988780A (en) | Data checking method and device, storage medium and electronic equipment | |
CN104243969A (en) | Image stripe detecting method and device | |
CN117115937A (en) | Equipment running state monitoring method and device, cloud equipment and storage medium | |
US9158641B2 (en) | Cloud auto-test system, method and non-transitory computer readable storage medium of the same | |
CN113505777B (en) | Keyboard layout version detection method, device, equipment and storage medium | |
CN108111346A (en) | The definite method, apparatus and storage medium of frequent item set in warning association analysis | |
CN110737650A (en) | Data quality detection method and device | |
CN113806160B (en) | Method, device, equipment and storage medium for monitoring configuration file | |
CN115564776B (en) | Abnormal cell sample detection method and device based on machine learning | |
CA2793952C (en) | Extracting data related to clinical diagnostic instruments | |
CN114268569B (en) | Configurable network operation and maintenance acceptance test method and device | |
CN111985651A (en) | Operation and maintenance method and device for business system | |
US11356331B2 (en) | Wireless configuration diagnosis framework | |
CN117851220A (en) | Software testing method, software testing device and storage medium | |
CN114490146A (en) | Fault root cause analysis method and system based on multi-fractal |
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 |