Equipment nameplate identification method and device
By identifying the device nameplate image and comparing it using the preset MD5 code in the transfer database, the problem of unrecognition after the device nameplate information is damaged is solved, and the function of identifying the device even if some information is damaged is realized.
Patent Information
- Application Number
- CN202411616550.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-13
AI Technical Summary
The prior art cannot effectively identify the nameplate identification code after the equipment nameplate information is damaged or corroded, especially when there are many missing words, the original information cannot be derived.
By obtaining the image of the nameplate to be identified, image recognition is performed to obtain text data, and to determine whether the nameplate mark code is complete. If it is incomplete, the preset nameplate mark code in the transfer database is used to compare with the MD5 code in the password library, calculate the MD5 code of the nameplate image to be identified, and compare it with the preset MD5 code to obtain the complete nameplate mark code.
Even if the nameplate marking code is partially damaged or corroded, only a small part of identifiable information is required to successfully identify the device to prevent the loss of equipment information.
Smart Images

Figure CN119540935A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image recognition, and specifically relates to a method for identifying a device nameplate and a device for identifying a device nameplate. Background Art
[0002] Currently, when schools manage equipment, they usually enter nameplates for each device in the school. However, as time goes by, especially for some outdoor equipment or experimental equipment, after repeated use by users or erosion by the external environment, it may be impossible to fully see the nameplate information, especially the nameplate identification code. At this time, if the number of missing words is relatively small, the original information may still be deduced, but if the number of missing words is indeed large, the combination rules cannot be identified. Summary of the invention
[0003] In view of the deficiencies in the prior art, the present invention provides a method for identifying an equipment nameplate to solve the above technical problems.
[0004] To achieve the above object, the present invention provides the following technical solution: a device nameplate identification method for school equipment management, the device nameplate identification method comprising:
[0005] Obtain the nameplate image to be identified;
[0006] Recognize the nameplate image to be recognized, thereby obtaining recognized text data;
[0007] Obtaining the nameplate marking code and other information according to the positions of various text data during identification;
[0008] Determine whether the obtained nameplate marking code is complete. If not,
[0009] Acquire a transfer database, wherein the transfer database includes at least one preset nameplate marking code and a password library corresponding to the preset nameplate marking code, wherein the password library includes multiple preset MD5 codes and a combination rule corresponding to each preset MD5 code;
[0010] Obtaining the MD5 code of the nameplate image to be identified by calculation according to the obtained nameplate mark code and each identifiable character in other information;
[0011] Each MD5 code is compared with the preset MD5 code in each password library, and the preset nameplate marking code corresponding to the password library whose MD5 code is the same as the preset MD5 code is obtained.
[0012] Optionally, the step of identifying the nameplate image to be identified, thereby acquiring the identified text data includes:
[0013] Perform text position recognition on the nameplate image to be recognized, so as to obtain information on each area to be recognized where text recognition is required;
[0014] Perform text recognition on each area information to obtain text data.
[0015] Optionally, the obtaining of the nameplate marking code and other information according to the positions of different text data during identification includes:
[0016] Acquire a regional preset database, wherein the regional preset database includes at least one preset region information and regional meaning information of each preset location, wherein the regional meaning information includes at least a nameplate marking code and other information;
[0017] The nameplate marking code and other information in the text data are obtained according to the position of the nameplate image to be identified where each identified text data is located and the preset area information.
[0018] Optionally, the determining whether the acquired nameplate marking code is complete includes:
[0019] Determine whether the number of characters in the acquired nameplate mark code meets the preset requirements. If so, identify each character to obtain the digital or letter information corresponding to the character; wherein,
[0020] When the number of characters in the nameplate marking code does not meet the preset requirements, it is judged to be incomplete, or when the corresponding characters cannot be identified when the corresponding characters are identified, the corresponding characters are judged to be incomplete.
[0021] Optionally, the other information includes one or more of production date information, device name information, predetermined power information, maximum power information, and precaution information.
[0022] Optionally, the device nameplate identification method further comprises:
[0023] The transfer database is established.
[0024] Optionally, the establishing the transfer database includes:
[0025] Obtain a nameplate data calculation set, wherein the nameplate data calculation set includes at least one known nameplate data, and each known nameplate data includes a nameplate marking code and other information on the known nameplate;
[0026] For each known nameplate data, the following processing is performed:
[0027] One or more of the characters in the nameplate marking code on the known nameplate are respectively combined in different ways and an MD5 code is formed according to each combination, wherein one combination corresponds to one MD5 code;
[0028] One or more of the characters in the nameplate marking code on the known nameplate are combined with other information in different ways and MD5 codes are formed according to the various combinations, wherein one combination corresponds to one MD5 code;
[0029] The MD5 codes belonging to the same known nameplate are respectively associated with the combination methods used to form the corresponding MD5 codes.
[0030] The present application also provides a device for identifying a device nameplate, the device nameplate identifying device comprising:
[0031] A module for acquiring an image of a nameplate to be identified, wherein the module is used to acquire an image of a nameplate to be identified;
[0032] A text data acquisition module, the text data acquisition module is used to recognize the nameplate image to be recognized, so as to obtain recognized text data;
[0033] An information acquisition module, the information acquisition module is used to obtain the nameplate marking code and other information according to the position of each different text data during identification;
[0034] A judging module, the judging module is used to judge whether the acquired nameplate marking code is complete;
[0035] A transfer database acquisition module, the transfer database acquisition module is used to acquire a transfer database, the transfer database includes at least one preset nameplate marking code and a password library corresponding to the preset nameplate marking code, the password library includes multiple preset MD5 codes and a combination rule corresponding to each preset MD5 code;
[0036] An MD5 code acquisition module, which is used to obtain the MD5 code of the nameplate image to be identified by calculation according to the acquired nameplate mark code and each identifiable character in other information;
[0037] The comparison module is used to compare each MD5 code with the preset MD5 code in each password library, and obtain the preset nameplate marking code corresponding to the password library whose MD5 code is the same as the preset MD5 code.
[0038] The device nameplate identification method of the present application, when it is found through image recognition that the nameplate marking code that can be obtained is incomplete, can ensure that only a very small part of the recognizable nameplate marking code can also identify the device by compiling the nameplate marking code and other information originally included in it into MD5, thereby preventing the situation where the complete information of the device cannot be known after the nameplate of the device is damaged or corroded. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 The figure is a flow chart of a method for identifying a device nameplate according to an embodiment of the present application.
[0040] Figure 2 It is used to realize Figure 1 Schematic diagram of an electronic device showing the device nameplate identification method.
[0041] Figure 3 It is a schematic diagram of a nameplate in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] The device nameplate identification method of the present application is used for school equipment management. For example, when a school buys a batch of equipment, the school will register the information on various nameplates of the equipment, such as Figure 3 As shown, the model information, current ratio, tap, rated voltage and other information of the device may be logged in, so that if there is any problem with the device in the future, corresponding inquiries can be made.
[0044] However, if the device itself is severely worn, assuming that only ZW8 can be seen on the model part and only 141 can be seen on the factory number, and if dozens of such devices are purchased, and most of them are purchased in the same batch, it may cause the model part of the nameplates of these dozens of devices to include ZW8 and the factory number to include 141. At this time, there is no way to determine which specific worn-out device is being referred to, and an identification situation will occur. The present application can solve this problem.
[0045] like Figure 1 The equipment nameplate identification methods shown include:
[0046] Step 1: Obtain the nameplate image to be identified;
[0047] Step 2: Identify the nameplate image to be identified, thereby obtaining identified text data;
[0048] Step 3: Obtain the nameplate mark code and other information according to the positions of the different text data during identification;
[0049] Step 4: Determine whether the obtained nameplate marking code is complete. If not,
[0050] Step 5: Obtain a transfer database, wherein the transfer database includes at least one preset nameplate marking code and a password library corresponding to the preset nameplate marking code, wherein the password library includes multiple preset MD5 codes and a combination rule corresponding to each preset MD5 code;
[0051] Step 6: Obtain the MD5 code of the nameplate image to be identified by calculation according to the obtained nameplate mark code and each identifiable character in other information;
[0052] Step 7: Compare each MD5 code with the preset MD5 code in each password library, and obtain the preset nameplate marking code corresponding to the password library whose MD5 code is the same as the preset MD5 code.
[0053] The device nameplate identification method of the present application, when it is found through image recognition that the nameplate marking code that can be obtained is incomplete, can ensure that only a very small part of the recognizable nameplate marking code can also identify the device by compiling the nameplate marking code and other information originally included in it into MD5, thereby preventing the situation where the complete information of the device cannot be known after the nameplate of the device is damaged or corroded.
[0054] In this embodiment, the step of identifying the nameplate image to be identified, thereby obtaining the identified text data, includes:
[0055] Perform text position recognition on the nameplate image to be recognized, so as to obtain information on each area to be recognized where text recognition is required;
[0056] Perform text recognition on each area information to obtain text data.
[0057] In this embodiment, the following method can be used to perform text position recognition on the nameplate image to be recognized, so as to obtain information of each area to be recognized where text recognition is required:
[0058] Get the trained neural network model;
[0059] The nameplate image to be identified is input into the trained neural network model to obtain the text position and text angle of each text in the nameplate image to be identified.
[0060] In this embodiment, performing text recognition on each area information to obtain text data includes:
[0061] Get the trained text recognition model;
[0062] The nameplate image to be identified is input into a trained text recognition model to obtain text information.
[0063] In this embodiment, the trained text recognition model is a neural network framework composed of CTPN, DenseNet and CTC.
[0064] In this embodiment, the nameplate marking code and other information are obtained according to the positions of different text data during recognition, including:
[0065] Acquire a regional preset database, wherein the regional preset database includes at least one preset region information and regional meaning information of each preset location, wherein the regional meaning information includes at least a nameplate marking code and other information;
[0066] The nameplate marking code and other information in the text data are obtained according to the position of the nameplate image to be identified where each identified text data is located and the preset area information.
[0067] For example, after each device of the present application enters a school, the nameplate will be scanned and recorded by image recognition. That is to say, for the same image, the meaning of the text on the pixel area can be known through the pixel area. For example, Figure 3 For example, for an image, even if the word "model" is no longer recognizable, the pixel positions of the model and the letters + numbers corresponding to the model on the image are fixed. In other words, as long as the pixel position is known, it is known that the text information there corresponds to the model.
[0068] In this embodiment, the step of determining whether the acquired nameplate marking code is complete includes:
[0069] Determine whether the number of characters in the obtained nameplate mark code meets the preset requirements. If so,
[0070] Identify each character to obtain the number or letter information corresponding to the character;
[0071] When the number of characters in the nameplate marking code does not meet the preset requirements, it is judged to be incomplete, or when the corresponding characters cannot be identified when the corresponding characters are identified, the corresponding characters are judged to be incomplete.
[0072] In this embodiment, the number of characters can be identified by image recognition, for example, Figure 3 The factory number 1410198 is a 7-digit character. If all of them can be recognized, it at least means that each character exists. If they cannot be recognized, it means that some characters may have been worn out. For example, if only 3 characters 141 can be recognized, it means that characters are missing.
[0073] Or, although each character is recognized, some characters cannot be recognized when performing number or letter recognition or the confidence after recognition is relatively low. In this case, it means that the nameplate marking code is incomplete.
[0074] In this embodiment, the other information includes one or more of production date information, device name information, predetermined power information, maximum power information, precaution information or other information.
[0075] In this embodiment, the device nameplate identification method further includes: establishing the transfer database.
[0076] In this embodiment, the establishing of the transfer database includes:
[0077] Obtain a nameplate data calculation set, wherein the nameplate data calculation set includes at least one known nameplate data, and each known nameplate data includes a nameplate marking code and other information on the known nameplate;
[0078] For each known nameplate data, the following processing is performed:
[0079] One or more of the characters in the nameplate marking code on the known nameplate are respectively combined in different ways and an MD5 code is formed according to each combination, wherein one combination corresponds to one MD5 code;
[0080] One or more of the characters in the nameplate marking code on the known nameplate are combined with other information in different ways and MD5 codes are formed according to the various combinations, wherein one combination corresponds to one MD5 code;
[0081] The MD5 codes belonging to the same known nameplate are respectively associated with the combination methods used to form the corresponding MD5 codes.
[0082] For example, Figure 3 The factory number in can be considered as the nameplate marking code, and the nameplate marking code is 1410198. At this time, 1410198 can be used as data to form an MD5 code, or 141 can be used to form an MD5 code, or 1498 can be used to form an MD5 code. Just remember the combination of each MD5 code. For example, 1498 is composed of the first digit, the second digit, the sixth digit and the seventh digit of the factory number.
[0083] In this way, even if the factory number is partially damaged, the corresponding search can be carried out through the MD5 code. For example, when 4101 in 1410198 is lost, since the MD5 code of the combination 1498 is preset, the same MD5 code can be obtained through the same calculation method.
[0084] It is understandable that if in some cases, the local numbers of the equipment are the same, then a combination with other information can be added. For example, if the factory numbers of a batch of equipment all start with 141, if only 141 can be identified at this time, the MD5 codes may be the same. In this case, the factory number can be combined with other information. For example, 198 in the factory number can be combined with the factory date 201410 to form an MD5 code, or 1 in the factory number, 2014 in the factory date, and 630 in the model can be combined to form an MD5 code.
[0085] It is understandable that when obtaining the MD5 code by calculation based on the nameplate mark code and the identifiable characters in other information to obtain the nameplate image to be identified, a combination rule can be preset. Because there is a lot of text information in a nameplate, it is impossible to make infinite combinations. Therefore, several or more than a dozen combination rules can be preset to obtain it. It is understandable that the characters in some combination rules may not be recognized, and the MD5 code corresponding to such combination rule can be defaulted.
[0086] In this embodiment, each MD5 code is compared with the preset MD5 code in each password library, and the combination rule corresponding to the password library whose MD5 code is the same as the preset MD5 code can be obtained by the following methods. As for which method to choose, it can be set as needed:
[0087] (1) The obtained MD5 is compared with each preset MD5 code in the password library. When all the MD5 codes in a password library are the same as the obtained MD5 code and the combination rules are also the same, it is determined that the preset nameplate marking code corresponding to the password library is the nameplate image to be identified. The corresponding clear nameplate image can be found from the historical database through the preset identification nameplate code.
[0088] (2) The obtained MD5 is compared with each preset MD5 code in the password library. After all the MD5 codes in each password library are compared with the obtained MD5 code, if there is a password library that meets the requirements (and has the same MD5 code and the same combination rule) in the comparison, the preset nameplate marking code corresponding to the password library is determined to be the nameplate image to be identified. The corresponding clear nameplate image can be found from the historical database through the preset identification nameplate code.
[0089] The present application also provides a device for identifying a nameplate of an equipment, which includes a nameplate image acquisition module to be identified, a text data acquisition module, an information acquisition module, a judgment module, a transfer database acquisition module, an MD5 code acquisition module and a comparison module, wherein:
[0090] The nameplate image acquisition module to be identified is used to acquire the nameplate image to be identified;
[0091] The text data acquisition module is used to recognize the nameplate image to be recognized, so as to obtain the recognized text data;
[0092] The information acquisition module is used to obtain the nameplate mark code and other information according to the position of each different text data during identification;
[0093] The judging module is used to judge whether the acquired nameplate marking code is complete;
[0094] The transfer database acquisition module is used to acquire the transfer database, the transfer database includes at least one preset nameplate marking code and a password library corresponding to the preset nameplate marking code, the password library includes multiple preset MD5 codes and a combination rule corresponding to each preset MD5 code;
[0095] The MD5 code acquisition module is used to obtain the MD5 code of the nameplate image to be identified by calculation according to the acquired nameplate mark code and each identifiable character in other information;
[0096] The comparison module is used to compare each MD5 code with the preset MD5 code in each password library, and obtain the preset nameplate marking code corresponding to the password library whose MD5 code is the same as the preset MD5 code.
[0097] It should be noted that the above explanations of the method embodiment are also applicable to the device of this embodiment and will not be repeated here.
[0098] The present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the above-mentioned device nameplate identification method when executing the computer program.
[0099] The present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it can implement the above-mentioned device nameplate identification method.
[0100] Figure 2 It is an exemplary structural diagram of an electronic device capable of implementing the device nameplate identification method provided according to an embodiment of the present application.
[0101] like Figure 2As shown, the electronic device includes an input device 501, an input interface 502, a central processor 503, a memory 504, an output interface 505, and an output device 506. The input interface 502, the central processor 503, the memory 504, and the output interface 505 are interconnected through a bus 507, and the input device 501 and the output device 506 are connected to the bus 507 through the input interface 502 and the output interface 505, respectively, and then connected to other components of the electronic device. Specifically, the input device 501 receives input information from the outside, and transmits the input information to the central processor 503 through the input interface 502; the central processor 503 processes the input information based on the computer executable instructions stored in the memory 504 to generate output information, temporarily or permanently stores the output information in the memory 504, and then transmits the output information to the output device 506 through the output interface 505; the output device 506 outputs the output information to the outside of the electronic device for use by the user.
[0102] That is to say, Figure 2 The electronic device shown can also be implemented as comprising: a memory storing computer executable instructions; and one or more processors, which can implement the combination when executing the computer executable instructions. Figure 1 Describes the equipment nameplate identification method.
[0103] In one embodiment, Figure 2 The electronic device shown can be implemented to include: a memory 504 configured to store executable program codes; and one or more processors configured to run the executable program codes stored in the memory 504 to execute the device nameplate identification method in the above embodiment.
[0104] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0105] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0106] Computer readable media include permanent and non-permanent, removable and non-removable, and the media can be implemented by any method or technology to store information. The information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), data versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0107] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0108] In addition, it is obvious that the word "comprising" does not exclude other units or steps. Multiple units, modules or devices stated in the device claim can also be implemented by one unit or the overall device through software or hardware.
[0109] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A device nameplate identification method for school equipment management, characterized in that: The device nameplate identification method comprises: Obtain the nameplate image to be identified; Recognize the nameplate image to be recognized, thereby obtaining recognized text data; Obtaining the nameplate marking code and other information according to the positions of various text data during identification; Determine whether the obtained nameplate marking code is complete. If not, Acquire a transfer database, wherein the transfer database includes at least one preset nameplate marking code and a password library corresponding to the preset nameplate marking code, wherein the password library includes multiple preset MD5 codes and a combination rule corresponding to each preset MD5 code; Obtaining the MD5 code of the nameplate image to be identified by calculation according to the obtained nameplate mark code and each identifiable character in other information; Each MD5 code is compared with the preset MD5 code in each password library, and the preset nameplate marking code corresponding to the password library whose MD5 code is the same as the preset MD5 code is obtained.
2. The device nameplate identification method according to claim 1, characterized in that: The step of identifying the nameplate image to be identified, thereby obtaining the identified text data, includes: Perform text position recognition on the nameplate image to be recognized, so as to obtain information on each area to be recognized where text recognition is required; Perform text recognition on each area information to obtain text data.
3. The device nameplate identification method according to claim 2, characterized in that: The method of obtaining the nameplate marking code and other information according to the positions of different text data during identification includes: Acquire a regional preset database, wherein the regional preset database includes at least one preset region information and regional meaning information of each preset location, wherein the regional meaning information includes at least a nameplate marking code and other information; The nameplate marking code and other information in the text data are obtained according to the position of the nameplate image to be identified where each identified text data is located and the preset area information.
4. The device nameplate identification method according to claim 3, characterized in that: The step of judging whether the acquired nameplate marking code is complete includes: Determine whether the number of characters in the obtained nameplate mark code meets the preset requirements. If so, Identify each character to obtain the number or letter information corresponding to the character; When the number of characters in the nameplate marking code does not meet the preset requirements, it is judged to be incomplete, or when the corresponding characters cannot be identified when the corresponding characters are identified, the corresponding characters are judged to be incomplete.
5. The device nameplate identification method according to claim 4, characterized in that: The other information includes one or more of production date information, device name information, predetermined power information, maximum power information, and precaution information.
6. The device nameplate identification method according to claim 5, characterized in that: The device nameplate identification method further comprises: The transfer database is established.
7. The device nameplate identification method according to claim 6, characterized in that: The establishing of the transfer database comprises: Obtain a nameplate data calculation set, wherein the nameplate data calculation set includes at least one known nameplate data, and each known nameplate data includes a nameplate marking code and other information on the known nameplate; For each known nameplate data, the following processing is performed: One or more of the characters in the nameplate marking code on the known nameplate are respectively combined in different ways and an MD5 code is formed according to each combination, wherein one combination corresponds to one MD5 code; One or more of the characters in the nameplate marking code on the known nameplate are combined with other information in different ways and MD5 codes are formed according to the various combinations, wherein one combination corresponds to one MD5 code; The MD5 codes belonging to the same known nameplate are respectively associated with the combination methods used to form the corresponding MD5 codes.
8. A device for identifying equipment nameplates, characterized in that: The equipment nameplate identification device comprises: A module for acquiring an image of a nameplate to be identified, wherein the module is used to acquire an image of a nameplate to be identified; A text data acquisition module, the text data acquisition module is used to recognize the nameplate image to be recognized, so as to obtain recognized text data; An information acquisition module, the information acquisition module is used to obtain the nameplate marking code and other information according to the position of each different text data during identification; A judging module, the judging module is used to judge whether the acquired nameplate marking code is complete; A transfer database acquisition module, the transfer database acquisition module is used to acquire a transfer database, the transfer database includes at least one preset nameplate marking code and a password library corresponding to the preset nameplate marking code, the password library includes multiple preset MD5 codes and a combination rule corresponding to each preset MD5 code; An MD5 code acquisition module, which is used to obtain the MD5 code of the nameplate image to be identified by calculation according to the acquired nameplate mark code and each identifiable character in other information; The comparison module is used to compare each MD5 code with the preset MD5 code in each password library, and obtain the preset nameplate marking code corresponding to the password library whose MD5 code is the same as the preset MD5 code.
Citation Information
Patent Citations
Power device nameplate recognition method and device, computer device and storage medium
CN110110726A
Equipment asset management method and device based on deep learning
CN110647784A
Label image management method and device, computer equipment and storage medium
CN113065010A
Password management method and system and electronic equipment
CN116669020A
Text recognition method and device, electronic equipment and storage medium
CN116935395A