Power construction enterprise qualification license checking method and application
By integrating the bidirectional LSTM neural network in the Tesseract engine, the problem of identifying complex Chinese characters and unstructured data in the intelligent identification of electric power construction enterprise qualifications is solved, improving the accuracy and efficiency of identification of qualification certificates and ensuring the safety of electric power construction sites. Production.
Patent Information
- Application Number
- CN202410623813.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-10-01
AI Technical Summary
The existing intelligent recognition technology for electric power construction enterprise qualifications is difficult to accurately identify complex Chinese characters and unstructured data, resulting in low efficiency and accuracy of qualification verification and potential safety hazards.
The bidirectional LSTM neural network is integrated into the Tesseract engine, combined with image preprocessing and page layout analysis, and the pre-trained improved Tesseract engine is used to identify qualifications and certificates, and the validity of the qualifications and certificates is judged by identifying text areas and table areas.
It improves the accuracy and efficiency of qualification certificate identification, reduces the need for manual verification, promotes the intelligence and standardization of safety management and control, reduces workload, and ensures safe production at power construction sites.
Smart Images

Figure CN118736595A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical character recognition, and in particular to a method and application for verifying the qualification certificates of electric power construction enterprises. Background Art
[0002] With the high attention paid to production safety, it is necessary to persist in continuously improving the power safety supervision system and supervision mechanism, and to ensure high-quality energy development with high-level power safety to create a safe and reliable power supply environment. However, the power grid safety risk management and control platform takes enterprise and personnel safety access as the first checkpoint for production safety. It faces the problems of various production maintenance and construction sites with many and wide sites, complicated operation teams, numerous qualification materials of enterprises and relevant personnel, cumbersome manual entry and review of enterprise and personnel information, great difficulty in safety management, and difficulty in avoiding subjective omissions. Therefore, enterprise and personnel safety access specifically faces the following two urgent intelligent management needs: First, intelligent management of enterprise and personnel access, to achieve key field recognition and automatic filling of enterprise business licenses, relevant operation qualification certificates, and operator ID cards, insurance policies, physical examination forms, operation qualification certificates and other certification materials, to solve the problems of manual duplication, inefficiency and heavy workload of users. The second is real-time alarm for abnormal access of enterprises and personnel: automatic judgment on the consistency of the names of the certification materials of enterprise qualifications, legal persons, and operating personnel, the validity period of the certificates, and whether the certificate levels meet the operating requirements, and real-time recording and warning of abnormal situations, effectively reducing subjective omissions.
[0003] In terms of technical application, the existing intelligent recognition technology for electric power construction enterprise qualifications mostly uses text recognition technology OCR to convert optical characters into text characters that can be recognized by computers, thereby identifying text information for deeper operations. However, since Chinese characters have a large character set and their font structure is relatively complex, the recognition technology of Chinese characters is more difficult. Secondly, unstructured data processing does have challenges such as format errors, missing content, page pollution, blurred fonts, and overlapping content, which increase the difficulty and complexity of data processing.
[0004] In summary, the existing qualification verification methods have relatively low efficiency and accuracy in intelligent identification of qualifications of power construction enterprises, which in turn leads to low efficiency in the management of power construction access teams and personnel, and creates safety hazards at power construction sites. Summary of the invention
[0005] To this end, the technical problem to be solved by the present invention is to overcome the problem in the prior art that qualification certificates cannot be accurately identified due to the complex design characters and unstructured data of the qualification certificates.
[0006] In order to solve the above technical problems, the present invention provides a method for verifying the qualifications and licenses of electric power construction enterprises, comprising:
[0007] Construct data sets of different types of qualification certificates and obtain multiple matching data sets;
[0008] Obtain the image of the qualification certificate to be identified as the image to be matched;
[0009] Obtain the category of the qualification certificate represented by the image to be matched, and use the matching data set corresponding to the category as the current matching data set;
[0010] Integrate the bidirectional LSTM as a recognizer into the Tesseract engine, obtain the improved Tesseract engine, and perform pre-training to obtain the pre-trained improved Tesseract engine;
[0011] Use the pre-trained improved Tesseract engine to analyze the page layout of the image to be matched, and obtain the picture area, text area and table area of the image to be matched;
[0012] Identify the text area of the image to be matched, and obtain the text information to be matched in the image to be matched;
[0013] If there is data in the matching data set that matches the text information to be matched in the image to be matched, it is determined that the qualification certificate to be identified has passed the verification; otherwise, it is determined that the qualification certificate to be identified has failed the verification.
[0014] Preferably, the different types of qualification certificates include the business license and production safety license of the enterprise, as well as the identity card, special operation operation certificate, social security certificate, insurance policy and physical examination form of the operator.
[0015] Preferably, the improved Tesseract engine uses a page layout analysis method based on tab stop detection to perform page layout analysis on the matching image; the page layout analysis method based on tab stop detection includes a bottom-up and top-down hybrid layout.
[0016] Preferably, the step of identifying the text area of the image to be matched and obtaining the text information to be matched in the image to be matched includes:
[0017] Use bidirectional LSTM to traverse each character in the text area of the image to be matched;
[0018] Get all characters that meet the preset conditions and store them in a character list;
[0019] For all characters that do not meet the preset conditions, the best-first search algorithm is used to traverse again, and the character fragments are reorganized and stored in the character list;
[0020] All characters in the character list are used as text information to be matched in the image to be matched;
[0021] The preset conditions include preset character clarity, preset font and preset character size.
[0022] Preferably, before performing page layout analysis on the matching image using the pre-trained improved Tesseract engine, the matching image is also subjected to image preprocessing, including:
[0023] Use CxImage image processing library to binarize, denoise and normalize the matching image;
[0024] A text line-based tilt detection algorithm is used to correct the tilted image to be matched.
[0025] Preferably, the dataset is stored in a directed acyclic word graph format.
[0026] Preferably, if the qualification certificate to be identified fails the verification, the qualification certificate to be identified is manually verified.
[0027] Preferably, obtaining a pre-trained improved Tesseract engine includes:
[0028] Obtain a sample set of qualification certificates and classify them to obtain data sample sets of various categories;
[0029] Use the improved Tesseract engine to analyze the page layout of all qualification certificates and obtain the corresponding image area, text area and table area;
[0030] The improved Tesseract engine is used to convert the image area of each qualification certificate into multiple feature vectors, and sequence prediction is performed on all feature vectors to obtain the predicted labels of all feature vectors; the joint temporal classification algorithm is used to convert the predicted label distribution of all feature vectors into a label sequence, and the label sequence of each qualification certificate image area is obtained to form a label sequence sample set;
[0031] Based on the data sample set and the label sequence sample set, a training sample set is constructed;
[0032] The improved Tesseract engine is trained using the training sample set until the loss function converges, and a pre-trained improved Tesseract engine is obtained.
[0033] Preferably, the loss function is expressed as:
[0034]
[0035] Among them, X represents the data sample set, Y represents the label sequence sample set, and S represents the training sample set; The time slice length of the tag sequence obtained by the class algorithm, t represents the tth time slice, 1≤t≤T; B -1 (1) represents the set of all paths whose output posterior probability is 1.
[0036] An embodiment of the present invention also provides an application of the above-mentioned method for verifying the qualifications and licenses of electric power construction enterprises in the field of identification of access gates in electric power construction control areas.
[0037] The above technical solution of the present invention has the following beneficial effects compared with the prior art:
[0038] The method for verifying the qualifications and licenses of electric power construction enterprises described in the present invention integrates a bidirectional LSTM in the Tesseract engine, searches the text area obtained by page layout analysis to obtain the text information in the qualifications and licenses, so that when recognizing text, not only the current single character is recognized, but the previously appeared characters are associated to form words or sentences for recognition, and when predicting, not only a single label is predicted, but a series of object labels are predicted; not only the speed of Tesseract engine training complex languages is accelerated, but also the recognition accuracy of characters in the text area is significantly improved; based on the accurately recognized qualification certificate text information, it is identified whether the qualification certificate is stored in the constructed database, and then it is determined whether the recognition is passed, which improves the recognition accuracy of the qualification certificate, further promotes the intelligence, standardization and normalization of safety management and control, and solves the problems of manual repetition, inefficiency and heavy workload of users through intelligent recognition and judgment, thereby ensuring safe production at the work site in the power construction management and control area. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein
[0040] Figure 1 It is a flowchart of the steps of the method for verifying the qualification certificates of electric power construction enterprises provided by the present invention;
[0041] Figure 2 It is a schematic diagram of the character recognition process provided by the present invention. DETAILED DESCRIPTION
[0042] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0043] Reference Figure 1 As shown, the step flow chart of the method for verifying the qualification certificate of an electric power construction enterprise provided by the present invention includes the following specific steps:
[0044] S101: construct data sets of different types of qualification certificates and obtain multiple matching data sets;
[0045] The different types of qualification certificates include the company's business license and production safety license, as well as the operator's identity card, special operation operation certificate, social security certificate, insurance policy and physical examination form.
[0046] S102: Acquire an image of the qualification certificate to be identified as an image to be matched;
[0047] S103: Obtain the category of the qualification certificate represented by the image to be matched, and use the matching data set corresponding to the category as the current matching data set;
[0048] S104: Integrate the bidirectional LSTM as a recognizer into the Tesseract engine, obtain an improved Tesseract engine, and perform pre-training to obtain a pre-trained improved Tesseract engine;
[0049] S105: using the pre-trained improved Tesseract engine to perform page layout analysis on the image to be matched, and obtaining the picture area, text area and table area of the image to be matched;
[0050] The improved Tesseract engine uses a page layout analysis method based on tab stop detection to perform page layout analysis on a matching image; the page layout analysis method based on tab stop detection includes a bottom-up and top-down hybrid layout.
[0051] S106: Identify the text area of the image to be matched, and obtain the text information to be matched in the image to be matched;
[0052] S107: If there is data in the matching data set that matches the text information to be matched in the image to be matched, it is determined that the qualification certificate to be identified has passed the verification; otherwise, it is determined that the qualification certificate to be identified has failed the verification;
[0053] If the qualification certificate to be identified fails to pass the verification, the qualification certificate to be identified will be manually verified.
[0054] The present invention adds LSTM neural network technology to Tesseract, so that when recognizing text, not only the current single character is recognized, but the previously appeared characters are associated to form words or sentences for recognition, and when predicting, not only a single label is predicted, but a series of object labels are predicted. The neural network subsystem is integrated into the Tesseract engine as a recognizer, which can not only be used together with the existing page layout analysis method to recognize text in large documents, but also can be used in combination with an external text detector to recognize characters in a single text line. Using the LSTM neural network, not only can sequence labels of arbitrary length be generated, but also character cutting processing is not required.
[0055] Specifically, the step of identifying the text area of the image to be matched and obtaining the text information to be matched in the image to be matched includes:
[0056] S106-1: traverse each character in the text area of the image to be matched using a bidirectional LSTM;
[0057] S106-2: Obtain all characters that meet the preset conditions and store them in a character list;
[0058] S106-3: For all characters that do not meet the preset conditions, use the best first search algorithm to traverse again, reorganize the character fragments, and store them in the character list;
[0059] S106-4: taking all characters in the character list as text information to be matched in the image to be matched;
[0060] S106-5: The preset conditions include preset character clarity, preset font, and preset character size.
[0061] The use of LSTM neural network technology allows not only the current single character to be recognized when recognizing text, but also the previously appeared characters to form words or sentences for recognition. When predicting, it does not only predict a single label, but also predicts a series of object labels. The neural network subsystem is integrated into the Tesseract engine as a recognizer. It can not only be used with existing page layout analysis methods to recognize text in large documents, but also can be used in conjunction with external text detectors to recognize characters in a single text line. Using LSTM neural networks can not only generate sequence labels of arbitrary length, but also eliminate the need for character cutting.
[0062] Specifically, the embodiment of the present invention uses the pre-trained improved Tesseract engine to perform page layout analysis on the matching image, and also includes image preprocessing on the matching image, including:
[0063] Use CxImage image processing library to binarize, denoise and normalize the matching image;
[0064] A text line-based tilt detection algorithm is used to correct the tilted image to be matched.
[0065] Reference Figure 2 The figure shows a flow chart of character recognition provided by the present invention. The present invention performs page layout analysis on the preprocessed character image and then uses LSTM to recognize the text area in the image. Characters with higher recognition accuracy are output and characters with lower accuracy are subjected to a second character recognition. The recognized characters are post-processed to solve the fuzzy space problem.
[0066] Specifically, in an embodiment of the present invention, the constructed data set is stored in a directed acyclic word graph format. When the data in the data set is identified and repaired, a directed acyclic word graph (DAWG, directed acyclic word graphs) is used in Tesseract to represent the dictionary, and is used for post-processing content repair. Each edge in the DAWG stores an 8-bit character for representing the corresponding letter converted in the DAWG. The data structure is used to sequentially search for dictionaries such as pre-generated system dictionaries, document dictionaries (dynamically constructed according to words in OCRed documents) and user-provided word lists, which is not conducive to operating multi-character glyphs and Unicode multi-byte characters. The storage character classifier uses the form of character id to replace single characters, and searches in parallel on all DAWGs, which greatly reduces the process of building and searching DAWGs.
[0067] And in an embodiment of the present invention, in order to process characters such as punctuation and numbers in the relevant qualification certificate image, Tesseract uses the form of code to expand in the training process to encode and collect punctuation and numbers that frequently appear in characters. Using the existing DAWGs code representation and matching generated patterns for generating and searching words, an algorithm for selecting whether a given classifier is a valid word in the language is implemented, although it is possible to delete the hard-coded rules of numbers or punctuation for all specific languages and scripts, and search for words with words, punctuation and number patterns at the same time. Since the form of characters is mostly tortuous, partially generated word variants that do not appear in the word list are added during the dictionary generation process. First, DAWG is constructed from a word list, and a set of suffixes are collected for each root in DAWG, and the resulting suffixes are merged and expanded into a suffix set. For each root and corresponding suffix set, the closest extended suffix set is identified, and finally the new word consisting of the extended suffix set is inserted into the DAWG.
[0068] In an embodiment of the present invention, obtaining a pre-trained improved Tesseract engine includes:
[0069] Obtain a sample set of qualification certificates and classify them to obtain data sample sets of various categories;
[0070] Use the improved Tesseract engine to analyze the page layout of all qualification certificates and obtain the corresponding image area, text area and table area;
[0071] The improved Tesseract engine is used to convert the image area of each qualification certificate into multiple feature vectors, and sequence prediction is performed on all feature vectors to obtain the predicted labels of all feature vectors; the joint temporal classification algorithm is used to convert the predicted label distribution of all feature vectors into a label sequence, and the label sequence of each qualification certificate image area is obtained to form a label sequence sample set;
[0072] Based on the data sample set and the label sequence sample set, a training sample set is constructed;
[0073] The improved Tesseract engine is trained using the training sample set until the loss function converges, and a pre-trained improved Tesseract engine is obtained.
[0074] The loss function is expressed as:
[0075]
[0076] Among them, X represents the data sample set, Y represents the label sequence sample set, S represents the training sample set; p(l|x) represents the posterior probability of the output being 1, and the expression is: p(π|x) represents the posterior probability of the output being π, expressed as: T represents the time slice length of the label sequence obtained by the joint temporal classification algorithm, t represents the tth time slice, 1≤t≤T; B -1 (1) represents the set of all paths whose output posterior probability is 1.
[0077] In an embodiment of the present invention, the Tesseract engine system is mainly composed of two parts, a circulation layer and a transcription layer. The circulation layer uses a bidirectional LSTM to predict the sequence of images after page layout analysis, and predicts the label distribution of feature vectors in the sequence. The transcription layer uses a connectionist temporal classification (CTC) algorithm based on connectionist temporal classification, which is used to convert the predicted label into a label sequence, and trains with a loss function, which can effectively realize end-to-end training, and does not need to use a character segmentation algorithm to recognize strings of arbitrary lengths, and the training speed is fast and the model is small.
[0078] Among them, CTC is specially designed for temporal classification tasks, that is, it is used to solve the sequence labeling problem where the alignment between the input and target labels is unknown. CTC uses a sequence modeled by a single neural network and does not require the network to be combined with a hidden Markov model or pre-segmented training data. CTC allows the network to make label predictions at any point in the input sequence, which can effectively ensure the correctness of the entire label sequence. In addition, CTC can calculate the complete label sequence probability, which means that no external post-processor is required to use the network as a temporal classifier to extract the label sequence from the network output.
[0079] When recognizing handwritten characters, it is inevitable that a character will be recognized more than twice in a row, which will cause redundant information. Therefore, a redundancy mechanism is needed to eliminate redundancy. In order to facilitate the training and testing of subsequent models, the input and output need to be aligned. Therefore, a blank placeholder is added to CTC to achieve this, that is, the blank character, usually using the special symbol "-". All blank placeholders will be deleted in the subsequent deduplication operation. The blank placeholder effectively solves the problem of no characters or repeated characters in some positions, and reasonably aligns the input and output results.
[0080] Assuming that the sequence length of sequence X is T, the probability of outputting a probability of 1 is:
[0081]
[0082] Among them B -1 (1) refers to the set of all paths in text 1, which need to be transformed by a many-to-one mapping function B. Here The subscript t means "a moment on the path, and π t The subscript t in denotes different paths.
[0083] The loss function L(S) of CTC refers to the negative maximum likelihood function of correctly labeling all training examples in some training set S. Taking the logarithm of the maximum likelihood function is:
[0084]
[0085] By calculating the loss function of CTC, the back propagation of the LSTM neural network can be realized, and the relevant parameters in the neural network can be updated using the optimizer, so that the characters contained in the pixel area with the highest probability can be found.
[0086] Specifically, the recognition process of word recognition in this article includes two stages: In the first stage, the system will traverse the input text and recognize each character one by one. The system will pass the characters that meet the business extraction conditions as training data to the adaptive classifier. The adaptive classifier is sensitive to fonts and has strong classification capabilities, and can accurately extract business key field data; In the second stage, the engine re-scans the text and uses the best first search algorithm to perform a second scan on the characters that were not accurately recognized in the first stage, so that the segmented character fragments or the connected domains that were segmented into multiples in the original image are spliced and combined to improve the recognition accuracy.
[0087] Specifically, based on the above embodiments, the embodiments of the present invention also provide a model for verifying the qualifications and licenses of electric power construction enterprises. By accessing the enterprise and personnel qualification license image data of the data center, such as business licenses, production safety licenses, identity cards, special operation operation certificates, etc., sample data is formed, and labelimg, labelme and other technologies are used to form training set annotations and verification set annotations, so as to realize automatic backfilling of data of basic information of admitted enterprises and personnel according to the qualification license access requirements.
[0088] The electric power construction enterprise qualification and license verification model is based on the image data characteristics of enterprise and personnel security access, and constructs three modules: image classification, text detection, and intelligent error correction to achieve intelligent recognition and factor extraction.
[0089] ① Image classification module: Using deep learning technology, we can quickly classify and judge images by building image classification models and special target detection technologies. We use PaddleX as the image classification and target detection training framework of this module, combined with the FasterRCNN deep learning algorithm, to ensure high indicators of classification results through cross-validation.
[0090] ②Text detection module: used to solve the problem of inaccurate recognition due to poor image quality, such as blur, rotation, wrinkles, etc., and the data of various image classifications also have large differences. The data set is generated by annotating the data and split into training data set, test data set and evaluation data set in a ratio of 7:2:1 for module training and evaluation using the evaluation data set. According to the evaluation results, the entire training process is repeated by increasing data annotation, adjusting data annotation, adjusting model parameters, etc. until the OCR text detection module has high robustness.
[0091] ③ Intelligent error correction module: By analyzing the information characteristics of various certificate types and combining the rule engine, verification rules are constructed to form a feature library; when the OCR recognition results are received, the template information and feature library are automatically matched for verification; for example, the "nationality" in the ID card should be within a reasonable value range, such as "Han", "Zhuang", etc.; the "Date of Establishment" of the business license should be a parsable date type; the unified social credit code should be a string of 18 Arabic numerals or uppercase English letters, etc.
[0092] The verification results are divided into three situations: if the recognition is accurate, it will pass directly; if there is an error or anomaly, such as not within the reasonable value range or the format does not match, the user will be prompted to correct or re-enter; for uncertain recognition results, the system will mark and prompt the user to manually verify. Through this module, the accuracy and efficiency of document information processing can be significantly improved.
[0093] Based on the above embodiment, after the verification model of the qualification certificate of the power construction enterprise outputs the verification results, an early warning model is constructed and deployed on the safety risk management and supervision platform. The RPA automation tool is deployed on the safety risk management and supervision platform to access the enterprise and personnel information data to realize the association verification of the qualification certificates of each access enterprise and personnel with the external government affairs department, including business licenses, production safety licenses, power facility licenses, construction enterprise qualification certificates, special operation operation certificates and other qualification certificates, so as to realize the authenticity verification of enterprise and personnel qualification certificates.
[0094] The present invention combines the principle of Tesseract engine and neural network to design a text recognition system with complete functional structure and certain practical value. The text recognition system designed by the embodiment of the present invention is mainly divided into two parts: image processing and character recognition. The image processing part is to pre-process the input text image, remove the interference of non-character feature information in the image and the influence of the tilt amount. This part mainly uses the CxImage image processing library to complete the basic functions of image binarization, denoising and normalization, and implements a text line-based tilt detection algorithm to process tilted text images. The text recognition part mainly studies the algorithm and composition principle of the Tesseract engine, completes the training of the custom character library according to the training process of the Tesseract engine, optimizes the neural network recognition part in the Tesseract engine accordingly, adds the attention mechanism to enhance the network's learning ability for long sequence character images, and tests the system before and after optimization respectively. By analyzing the test results, it can be seen that the system after adding the attention mechanism can significantly improve the recognition efficiency of the system. Finally, a unified management platform was developed, the image processing module and the Tesseract recognition module were encapsulated, a visual interface for the text recognition system was designed, the entire operation process of text recognition was realized, and rigorous functional tests were carried out on each module in the visual interface. The test results show that the Tesseract-based text recognition system can meet the needs of this article and has good stability and practicality.
[0095] Based on the above embodiments, the embodiments of the present invention also provide an application of the above-mentioned power construction enterprise qualification certificate verification method in the field of access gate recognition in the power construction control area; the facial image of the person to be entered is collected and identified by the face information collection device on the access gate, and after obtaining the corresponding qualification certificate, the data set corresponding to the category of a certain qualification certificate is obtained, and it is determined whether the qualification certificate of the person to be entered is included in the data set found. If it is included, the person to be entered is allowed to enter. If it is not included, an early warning is triggered, and the person to be entered is manually verified.
[0096] In the application of this embodiment, by deeply integrating business and technology, optimizing the qualification certificate OCR recognition model and RPA automation tools, the business application of automatic backfilling of power construction team personnel information and verification of the authenticity and validity of qualification certificates is realized. This move is aimed at strictly controlling from the source to ensure that the access of the operation team and personnel meets the standards, thereby effectively implementing the requirements of "four management". And by introducing automated and intelligent technical means, the intelligent identification of the qualifications of power construction enterprises and personnel is carried out, thereby reducing manual participation and improving the overall efficiency of access work. The input of these intelligent recognition models is usually an image of the qualification certificate, including scanned copies, photos or real-time images, and the output is the recognized text information, including key fields (such as company name, certificate number, validity period, etc.) and abnormal detection results (such as expired certificates, inconsistent information, etc.). By improving the quality of personnel and introducing verification mechanisms, the input error rate is reduced, the accuracy of data is improved, and the authenticity and validity of the information of power construction teams and personnel are ensured.
[0097] In summary, the embodiments of the present invention comprehensively improve the efficiency and quality of power construction access team and personnel management through multiple efforts such as updating of technical means, optimization of process design, improvement of personnel quality and establishment of management platform.
[0098] In the embodiment of the present invention, the method for verifying the qualifications and licenses of power construction enterprises provided in the embodiment of the present invention has currently realized the integration of the enterprise business license, production safety license, power facility license, construction enterprise qualification certificate, personnel ID card, special operation operation certificate, and social security certificate model interface, with an identification accuracy rate of 96%, and the workload of personnel entry and review is reduced by 80%, which greatly improves work efficiency and realizes intelligent and digital risk management.
[0099] In the embodiment of the present invention, quality inspection was carried out on 55,239 existing personnel photos, and the average recognition speed of the model reached more than 24,000 photos / hour, with a recognition accuracy rate of 93%. 12 types of photo irregularities were detected, including blurred pictures, photo size not meeting the requirements, picture pixels lower than 320*240, face occlusion, complex background of photo shooting, face ratio not meeting the requirements, reflection of glasses lens, non-vertical frontal face pictures, and photos being photocopied ID photos / non-face photos. At the same time, face recognition scenarios such as identity verification for entry examinations, sign-in and punch-in for safety briefings, on-site inspection qualification verification, and remote inspection and anti-violation investigation were realized.
[0100] The AI-based intelligent verification method for power construction enterprise qualifications has achieved a systematic improvement in the safety management and control capabilities of enterprises and personnel. It will provide strong intelligent support for solving a series of safety management difficulties faced by enterprises and personnel, further promote the intelligentization, standardization and routineization of safety management and control, lay a solid foundation for promoting the implementation of the main responsibility of enterprise safety production, and set an excellent benchmark for upgrading the safety production work of power grids.
[0101] The method for verifying the qualifications and licenses of electric power construction enterprises described in the present invention integrates a bidirectional LSTM in the Tesseract engine, searches the text area obtained by page layout analysis to obtain the text information in the qualifications and licenses, so that when recognizing text, not only the current single character is recognized, but the previously appeared characters are associated to form words or sentences for recognition, and when predicting, not only a single label is predicted, but a series of object labels are predicted; not only the speed of Tesseract engine training complex languages is accelerated, but also the recognition accuracy of characters in the text area is significantly improved; based on the accurately recognized qualification certificate text information, it is identified whether the qualification certificate is stored in the constructed database, and then it is determined whether the recognition is passed, which improves the recognition accuracy of the qualification certificate, further promotes the intelligence, standardization and normalization of safety management and control, and solves the problems of manual repetition, inefficiency and heavy workload of users through intelligent recognition and judgment, thereby ensuring safe production at the work site in the power construction management and control area.
[0102] 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 in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0103] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0104] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0106] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. A method for verifying the qualifications and licenses of electric power construction enterprises, characterized in that: include: Construct data sets of different types of qualification certificates and obtain multiple matching data sets; Obtain the image of the qualification certificate to be identified as the image to be matched; Obtain the category of the qualification certificate represented by the image to be matched, and use the matching data set corresponding to the category as the current matching data set; Integrate the bidirectional LSTM as a recognizer into the Tesseract engine, obtain the improved Tesseract engine, and perform pre-training to obtain the pre-trained improved Tesseract engine; Use the pre-trained improved Tesseract engine to analyze the page layout of the image to be matched, and obtain the picture area, text area and table area of the image to be matched; Identify the text area of the image to be matched, and obtain the text information to be matched in the image to be matched; If there is data in the matching data set that matches the text information to be matched in the image to be matched, it is determined that the qualification certificate to be identified has passed the verification; otherwise, it is determined that the qualification certificate to be identified has failed the verification.
2. The method for verifying the qualifications and licenses of electric power construction enterprises according to claim 1, characterized in that: The different types of qualification certificates include the company's business license and production safety license, as well as the operator's identity card, special operation operation certificate, social security certificate, insurance policy and physical examination form.
3. The method for verifying the qualifications and licenses of electric power construction enterprises according to claim 1, characterized in that: The improved Tesseract engine uses a page layout analysis method based on tab stop detection to perform page layout analysis on a matching image; the page layout analysis method based on tab stop detection includes a bottom-up and top-down hybrid layout.
4. The method for verifying the qualifications and licenses of electric power construction enterprises according to claim 1, characterized in that: The step of identifying the text area of the image to be matched and obtaining the text information to be matched in the image to be matched includes: Use bidirectional LSTM to traverse each character in the text area of the image to be matched; Get all characters that meet the preset conditions and store them in a character list; For all characters that do not meet the preset conditions, the best-first search algorithm is used to traverse again, and the character fragments are reorganized and stored in the character list; All characters in the character list are used as text information to be matched in the image to be matched; The preset conditions include preset character clarity, preset font and preset character size.
5. The method for verifying the qualifications and licenses of electric power construction enterprises according to claim 1, characterized in that: Before using the pre-trained improved Tesseract engine to perform page layout analysis on the matching image, the matching image is also preprocessed, including: Use CxImage image processing library to binarize, denoise and normalize the matching image; A text line-based tilt detection algorithm is used to correct the tilted image to be matched.
6. The method for verifying the qualifications and licenses of electric power construction enterprises according to claim 1, characterized in that: The dataset is stored in a directed acyclic word graph format.
7. The method for verifying the qualifications and licenses of electric power construction enterprises according to claim 1, characterized in that: If the qualification certificate to be identified fails to pass the verification, the qualification certificate to be identified will be manually verified.
8. The method for verifying the qualifications and licenses of electric power construction enterprises according to claim 1, characterized in that: Access to pre-trained improved Tesseract engines, including: Obtain a sample set of qualification certificates and classify them to obtain data sample sets of various categories; Use the improved Tesseract engine to analyze the page layout of all qualification certificates and obtain the corresponding image area, text area and table area; The improved Tesseract engine is used to convert the image area of each qualification certificate into multiple feature vectors, and sequence prediction is performed on all feature vectors to obtain the predicted labels of all feature vectors; the joint temporal classification algorithm is used to convert the predicted label distribution of all feature vectors into a label sequence, and the label sequence of each qualification certificate image area is obtained to form a label sequence sample set; Based on the data sample set and the label sequence sample set, a training sample set is constructed; The improved Tesseract engine is trained using the training sample set until the loss function converges, and a pre-trained improved Tesseract engine is obtained.
9. The method for verifying the qualifications and licenses of electric power construction enterprises according to claim 8, characterized in that: The loss function is expressed as: Among them, X represents the data sample set, Y represents the label sequence sample set, S represents the training sample set; p(l|x) represents the posterior probability of the output being 1, and the expression is: p(πx) represents the posterior probability of the output being π, expressed as: T represents the time slice length of the label sequence obtained by the connectionist temporal classification algorithm, t represents the tth time slice, 1≤t≤T; B-1(1) represents the set of all paths whose output posterior probability is 1.
10. An application of the method for verifying the qualifications and licenses of electric power construction enterprises as described in any one of claims 1 to 9 in the field of identification of access gates in electric power construction control areas.
Citation Information
Cited By
Qualification verification data management system
CN120163553A
