Electric power material heterogeneous data infrastructure management method based on AI vision
AI visual technology is used to identify and process power material data tables, automatically establish data storage tables and fields, solve the difficulty and accuracy problems of heterogeneous data management, achieve efficient data management and automatic generation, and reduce manual participation and error risks. .
Patent Information
- Application Number
- CN202410667966.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-27
AI Technical Summary
Heterogeneous data management of power supplies is difficult, and the accuracy of data item management is difficult to control. The correctness of the data structure and the consistency of online and offline data require a lot of manual verification, resulting in a heavy workload for development and maintenance.
AI vision technology is used to identify and process data table images. By obtaining the coordinate offset data of data items and content-filled images, it establishes data storage tables and fields, automatically identifies and manages heterogeneous data, and realizes the automatic generation and processing of data tables. manage.
It reduces the workload of manual processing, reduces the risk of human errors, improves the accuracy and efficiency of data processing, and realizes the automatic generation of offline documents and the correctness of the data structure.
Smart Images

Figure CN118552967A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data management, and in particular relates to a method for managing heterogeneous data infrastructure of electric power materials based on AI vision. Background Art
[0002] There are many kinds of power materials, including more than 30 types of materials. The test results of each type of material are divided into two layers of output: "original records" and "test reports". Each test result output consists of an average of more than 12, a total of more than 300 heterogeneous test item tables, and the structure of each table is different. The management of a large number of data items is very difficult to develop and verify, and the accuracy of data item management is also difficult to control. Since the data table is changed and upgraded as the project progresses, the workload of updating development and the inheritance of historical data are also very difficult. With the advancement of technology, the emergence of "low-code" platforms has turned development work into configuration work, saving development workload, but the investment in configuration functions is still very large, and the correctness of the data structure is also difficult to guarantee. For the output of paper documents, a lot of development efforts are also required, and the consistency of online and offline data also requires personnel to be invested to verify. Summary of the invention
[0003] In order to solve the above problems existing in the prior art, the present invention provides a method for managing heterogeneous data infrastructure of power materials based on AI vision;
[0004] The purpose of the present invention can be achieved through the following technical solutions:
[0005] S1: Acquire test items of a detection task, and establish a chapter structure of an output document according to the test items of the detection task; determine a data item area and a content filling area of a document structure through the chapter structure of the output document;
[0006] S2: Obtain a paper document of the original record of the power material detection data, perform image interception processing on the paper document to obtain a data table image; perform AI image recognition on the data table image to obtain a data item image and a content filling image, and record the image coordinate offset data of the data item image and the content filling image;
[0007] S3: After performing redundancy processing on the data item image and the content filling image, a corresponding data storage table and field are established through a data management engine, and a data management general library is constructed;
[0008] S4: extracting corresponding data item pictures and content filling pictures in the data management library according to the chapter structure of the output document to obtain output data blocks;
[0009] S5: constructing an output data table picture by combining the data item pictures and content filling pictures in the output data block according to the picture coordinate offset data of the output data block.
[0010] Specifically, the AI image recognition method is: grayscale the data table image, and edge locate the data frame lines in the data table image, divide the data table image into regions through the data frame lines to obtain regional data modules, and classify the regional modules into data item images and content filling images.
[0011] Specifically, the edge positioning method is:
[0012] The original image of the data table picture is de-noised by a filter to obtain a smoothed image. The calculation formula for de-noising is:
[0013] Y=median[Y max (i,j),Y min (i,j),f(i,j)],
[0014] Among them, Y is the filter output, median represents median filtering, and Y max (i, j) is the maximum median value of the grayscale of pixels in the neighborhood at 0, 45, 90, and 135 degrees from the horizontal direction. min (i, j) is the minimum median value of the pixel grayscale in the neighborhood at four directions of 0, 45, 90, and 135 degrees from the horizontal direction, and f(i, j) is the center pixel value of the filter window;
[0015] The gradient image is obtained by calculating the gradient amplitude to determine the change value of the field intensity of each point in the smoothed image. The gradient amplitude is the second-order derivative of the image pixel along the gradient direction. The calculation formula is:
[0016]
[0017] Where k is the gradient amplitude, is the second-order directional derivative of the pixel point I(x,y) along the x direction, is the partial derivative of the pixel point I(x,y) along the x and y directions, is the second-order directional derivative of the pixel point I(x,y) along the y direction, and θ is the direction of the gradient;
[0018] A gradient amplitude threshold is preset, and edge detection is performed on the gradient image according to the gradient amplitude threshold to obtain corresponding edge points in the data table image.
[0019] Specifically, the data item image is the table attribute category of the original record document, the content filling image is the filled content corresponding to the table attribute category of the original record document, and the image coordinate offset data is the coordinate change of the data item area, content filling area and the corresponding data item image, content filling image.
[0020] Specifically, the redundancy processing method is: calculating the image similarity between the data item pictures, and eliminating the data item pictures whose image similarity is greater than a preset detection threshold.
[0021] Specifically, the attribute values of the data storage table and field are data item pictures and content filling pictures obtained by AI image recognition.
[0022] The beneficial effects of the present invention are:
[0023] By using AI vision technology to detect data blocks in data table images, recording the image coordinate offset data of each data block, and establishing corresponding data storage tables and fields based on the data management engine, the heterogeneous data in power materials can be automatically identified, analyzed and managed, reducing the workload of manual processing, processing various types of heterogeneous data in the form of images, reducing the risk of human errors, and improving the accuracy of data processing; according to the test items of the detection task, the output document is formed in advance, and the corresponding position in the data table image is modified using AI vision technology. The detection data recorded in the system is written into the data table image in the form of an image to form the above data table image with detection data, realizing the automatic generation of offline documents, ensuring the correctness of the data, and improving the efficiency of data management. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0025] Figure 1 The present invention is a flowchart of a method for managing heterogeneous data infrastructure of electric power materials based on AI vision. DETAILED DESCRIPTION
[0026] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0027] See also Figure 1 , a method for managing heterogeneous data infrastructure of power materials based on AI vision:
[0028] S1: Acquire test items of a detection task, and establish a chapter structure of an output document according to the test items of the detection task; determine a data item area and a content filling area of a document structure through the chapter structure of the output document;
[0029] S2: Obtain a paper document of the original record of the power material detection data, perform image interception processing on the paper document to obtain a data table image; perform AI image recognition on the data table image to obtain a data item image and a content filling image, and record the image coordinate offset data of the data item image and the content filling image;
[0030] S3: After performing redundancy processing on the data item image and the content filling image, a corresponding data storage table and field are established through a data management engine, and a data management general library is constructed;
[0031] S4: extracting corresponding data item pictures and content filling pictures in the data management library according to the chapter structure of the output document to obtain output data blocks;
[0032] S5: constructing an output data table picture by combining the data item pictures and content filling pictures in the output data block according to the picture coordinate offset data of the output data block.
[0033] In this embodiment, the test data table in a real paper document (original record and test report) of a class of materials is subjected to image interception processing to form a data table image with data. Using AI visual technology, the "data block" of the data table image is detected, and the "number" and "text" are identified to form "text blocks" and "number blocks" one by one, and the image coordinate offset data of each "data block" is recorded. The platform provides functions to edit the size and alignment of "data blocks" ("text blocks" and "number blocks") in batches; the operator retains the "data blocks" used in the process, and deletes the unnecessary and unchanged "data blocks"; after determining the management content, the system uses AI visual technology to modify the "data table image" according to the "data blocks" that need to be managed and save it to form the interface that needs to be displayed in the later system function. At the same time, the "data blocks" are managed according to the needs of retention, and the corresponding data storage tables and fields are established using the data management engine. Through AI-recognized "data block" image coordinate offset data and the formed "data table image", the system forms an interface for data management, maintenance, and operation; and then uses the metadata of each "data block" to manage data attributes. The functional development of the entire test item data table does not require the development of any table code, nor does it require the design and development of the storage structure of the data item, which enables the rapid completion of the data maintenance function.
[0034] Specifically, the AI image recognition method is: grayscale the data table image, and edge locate the data frame lines in the data table image, divide the data table image into regions through the data frame lines to obtain regional data modules, and classify the regional modules into data item images and content filling images.
[0035] Specifically, the edge positioning method is:
[0036] The original image of the data table picture is de-noised by a filter to obtain a smoothed image. The calculation formula for de-noising is:
[0037] Y=median[Y max (i,j),Y min (i,j),f(i,j)],
[0038] Among them, Y is the filter output, median represents median filtering, and Y max (i, j) is the maximum median value of the grayscale of pixels in the neighborhood at 0, 45, 90, and 135 degrees from the horizontal direction. min (i, j) is the minimum median value of the pixel grayscale in the neighborhood at four directions of 0, 45, 90, and 135 degrees from the horizontal direction, and f(i, j) is the center pixel value of the filter window;
[0039] The gradient image is obtained by calculating the gradient amplitude to determine the change value of the field intensity of each point in the smoothed image. The gradient amplitude is the second-order derivative of the image pixel along the gradient direction. The calculation formula is:
[0040]
[0041] Where k is the gradient amplitude, is the second-order directional derivative of the pixel point I(x,y) along the x direction, is the partial derivative of the pixel point I(x,y) along the x and y directions, is the second-order directional derivative of the pixel point I(x,y) along the y direction, and θ is the direction of the gradient;
[0042] A gradient amplitude threshold is preset, and edge detection is performed on the gradient image according to the gradient amplitude threshold to obtain corresponding edge points in the data table image.
[0043] Specifically, the data item image is the table attribute category of the original record document, the content filling image is the filled content corresponding to the table attribute category of the original record document, and the image coordinate offset data is the coordinate change of the data item area, content filling area and the corresponding data item image, content filling image.
[0044] Specifically, the redundancy processing method is: calculating the image similarity between the data item pictures, and eliminating the data item pictures whose image similarity is greater than a preset detection threshold.
[0045] Specifically, the attribute values of the data storage table and field are data item pictures and content filling pictures obtained by AI image recognition.
[0046] In this embodiment, the system manages the basic information of the "data item" of each card generated by AI and the corresponding "data table image" modified by AI. In the process of outputting the paper documents of "original detection record" and "detection report", the system forms the chapter structure of the output document according to the test item composition of each detection task. The system uses AI visual technology to modify the corresponding position in the "data table image" according to the image coordinate offset data of the "data block" contained in each test item, and writes the detection data recorded in the system into the "data table image" in the form of an image to form the above "data table image" with detection data. Write the newly generated "data table image" into the document according to the structural order in the document. After the entire document is generated, the system converts the document into a non-editable PDF format document to complete the output of the offline document. From online to offline, the manual participation process is greatly reduced, the correctness of the data is guaranteed, and the efficiency of document generation and development is greatly improved.
[0047] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A method for managing heterogeneous data infrastructure of power materials based on AI vision, It is characterized in that include: S1: Acquire test items of a detection task, and establish a chapter structure of an output document according to the test items of the detection task; Determine the data item area and content filling area of the document structure through the chapter structure of the output document; S2: Obtain a paper document of the original record of the power material detection data, perform image interception processing on the paper document to obtain a data table image; perform AI image recognition on the data table image to obtain a data item image and a content filling image, and record the image coordinate offset data of the data item image and the content filling image; S3: After performing redundancy processing on the data item image and the content filling image, a corresponding data storage table and field are established through a data management engine, and a data management general library is constructed; S4: extracting corresponding data item pictures and content filling pictures in the data management library according to the chapter structure of the output document to obtain output data blocks; S5: constructing an output data table picture by combining the data item pictures and content filling pictures in the output data block according to the picture coordinate offset data of the output data block.
2. According to claim 1, a method for managing heterogeneous data infrastructure of electric power materials based on AI vision, It is characterized in that The AI image recognition method is: gray-scale the data table image, and edge-locate the data frame lines in the data table image, divide the data table image into regions through the data frame lines to obtain regional data modules, and classify the regional modules into data item images and content filling images.
3. According to claim 2, a method for managing heterogeneous data infrastructure of electric power materials based on AI vision, It is characterized in that The edge positioning method is: The original image of the data table picture is de-noised by a filter to obtain a smoothed image. The calculation formula for de-noising is: Y=median[Y max (i,j),Y min (i,j),f(i,j)], Among them, Y is the filter output, median represents median filtering, and Y max (i, j) is the maximum median value of the grayscale of pixels in the neighborhood at 0, 45, 90, and 135 degrees from the horizontal direction. min (i, j) is the minimum median value of the pixel grayscale in the neighborhood at four directions of 0, 45, 90, and 135 degrees from the horizontal direction, and f(i, j) is the center pixel value of the filter window; The gradient image is obtained by calculating the gradient amplitude to determine the change value of the field intensity of each point in the smoothed image. The gradient amplitude is the second-order derivative of the image pixel along the gradient direction. The calculation formula is: Where k is the gradient amplitude, is the second-order directional derivative of the pixel point I(x,y) along the x direction, is the partial derivative of the pixel point I(x,y) along the x and y directions, is the second-order directional derivative of the pixel point I(x,y) along the y direction, and θ is the direction of the gradient; A gradient amplitude threshold is preset, and edge detection is performed on the gradient image according to the gradient amplitude threshold to obtain corresponding edge points in the data table image.
4. According to claim 1, a method for managing heterogeneous data infrastructure of electric power materials based on AI vision, It is characterized in that The data item image is the table attribute category of the original record document, the content filling image is the filled content corresponding to the table attribute category of the original record document, and the image coordinate offset data is the coordinate change of the data item area, content filling area and the corresponding data item image, content filling image.
5. According to claim 1, a method for managing heterogeneous data infrastructure of electric power materials based on AI vision, It is characterized in that The redundancy processing method is: calculating the image similarity between the data item pictures, and eliminating the data item pictures whose image similarity is greater than a preset detection threshold.
6. According to claim 1, a method for managing heterogeneous data infrastructure of electric power materials based on AI vision, It is characterized in that The attribute values of the data storage table and field are the data item pictures and content filling pictures obtained by AI image recognition.
