Automatic extraction method of package parameter information in electronic component manuals

Image processing and deep learning technology are used to automatically extract packaging parameters from electronic component manuals, which solves the problems of low efficiency and poor accuracy in establishing a packaging parameter library in the existing technology, and realizes efficient and automated library construction of component packaging parameters.

CN118172792BActive Publication Date: 2024-09-10WUHAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410599279.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-09-10
Estimated Expiration
2044-05-15

AI Technical Summary

Technical Problem

In the existing technology, the establishment of a component packaging parameter library relies on manual reading of electronic component manuals, which is inefficient and error-prone. In particular, because different manufacturers have different drawing specifications, the construction of the library requires a lot of manpower and is inefficient.

Method used

Using image processing and deep learning technology, including data manual preprocessing, package drawing preprocessing, dimension line recognition and annotation matching, numeric/letter annotation extraction and semantic alignment, and semantic logic repair modules, it automatically extracts data from electronic component manuals in PDF format. Extract packaging parameters to achieve highly automated database construction of component packaging parameters.

Benefits of technology

It greatly improves the efficiency and accuracy of component package drawing database construction, reduces manual operations, and ensures the accuracy and consistency of parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118172792B
    Figure CN118172792B
Patent Text Reader

Abstract

The present invention relates to the field of electronic design automation technology, and discloses a method for automatically extracting package drawing parameter information in an electronic component manual, including a data manual preprocessing module, a package drawing preprocessing module, a package drawing special processing module, a dimension line recognition and dimension annotation parameter matching module, a letter annotation package drawing parameter extraction and semantic alignment module, a digital annotation package drawing parameter extraction and semantic alignment module, a semantic logic repair module and a package parameter format conversion module; the package drawing is detected, the page is divided, unique features are extracted and analyzed, the dimension line is matched with the dimension annotation, the nearest numbers and letters of the dimension line are extracted for semantic alignment, and the semantic logic repair is converted into a common file format. The method for automatically extracting package drawing parameter information in an electronic component manual of the present invention realizes the high automation of component package parameter library building and 3D model library building, and has high accuracy, which greatly improves the efficiency of library building.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electronic design automation, and in particular to a method for automatically extracting package diagram parameter information in an electronic component manual. Background Art

[0002] In the board design tools and component selection tools of PCB EDA, the component package parameter library is indispensable. Due to the wide variety of package types, manufacturers can customize various sizes for the same type of package, and there are also some special-shaped packages. In addition to PCB EDA tool manufacturers, many large and medium-sized electronic companies will establish their own component package parameter library and 3D model library. Electronic component sales platforms and PCB patch factories also need to establish their own package parameter library and 3D model library.

[0003] However, the current work of building a package parameter database basically relies on manually reading electronic component manuals, finding component package drawings and parameter tables, and then entering the relevant parameters into the database one by one. These manuals are basically in PDF format, ranging from dozens of pages to thousands of pages, and the drawing specifications of different manufacturers are also different. Therefore, the database construction work requires a large amount of manpower to do simple and repetitive work, and the efficiency is low, and errors are difficult to detect. Summary of the invention

[0004] The purpose of the present invention is to address the deficiencies of the above-mentioned technology and provide a method for automatically extracting package drawing parameter information in an electronic component manual, which automatically extracts component package parameters from an electronic component manual in PDF format to achieve highly automated component package parameter library building and 3D model library building with high accuracy, thereby greatly improving the efficiency of library building.

[0005] To achieve the above-mentioned purpose, the method for automatically extracting package drawing parameter information from an electronic component manual involved in the present invention comprises a data manual preprocessing module, a package drawing preprocessing module, a package drawing special processing module, a dimension line recognition and dimension annotation parameter matching module, a letter-annotated package drawing parameter extraction and semantic alignment module, a digital-annotated package drawing parameter extraction and semantic alignment module, a semantic logic repair module and a package parameter format conversion module; and comprises the following steps:

[0006] Step S101: the data manual preprocessing module uses a package diagram classification and recognition method to detect all package diagrams in the electronic component data manual, identify their package types, locate the page number of each package diagram and the coordinate range of its key feature view;

[0007] Step S102: the package drawing preprocessing module preprocesses each package drawing obtained in step S101, and uses the automatic classification method of diagrams, tables and long texts to automatically divide the package drawing, parameter table and long text on the page where the package drawing is located, and obtains their respective coordinate ranges, and then uses the view semantic segmentation method to perform semantic segmentation on the package drawing to obtain the type and coordinate range of each view;

[0008] Step S103: the package diagram special processing module processes the key feature view of each package diagram according to the characteristics of the package type obtained in step S101, and extracts and analyzes its unique features;

[0009] Step S104: for each view obtained in step S102, the dimension line recognition and dimension annotation parameter matching module detects all dimension lines in the view, locates their starting and ending points, obtains their position, direction and length information, and matches the dimension lines with the dimension annotations using a dimension line and dimension annotation parameter matching method;

[0010] Step S105: Determine whether digital annotation is used in the key feature view, if it is a digital annotation, proceed to step S106, otherwise proceed to step S107;

[0011] Step S106: the digitally annotated package drawing parameter extraction and semantic alignment module extracts the digital annotations that are closest to each dimension line in the package drawing, and semantically aligns the dimension lines and digital dimension annotations in all views according to the package type to obtain the parameters of the package;

[0012] Step S107: In the table obtained in step S102 or the table on the next page, the Paddle OCR table content extraction method is used to extract the content therein, and the letter-annotated package drawing parameter extraction and semantic alignment module is used to extract the nearest letter annotations of each dimension line in the package drawing. According to the package type, the dimension lines and letter dimension annotations in all views are semantically aligned with the package parameter table to obtain the parameters of the package;

[0013] Step S108: According to the package type, the semantic logic repair module is used to perform semantic logic repair on the package parameters obtained in steps S106 and S107 according to the intrinsic logical relationship of the typical package parameters in the typical package parameter dictionary;

[0014] Step S109: converting the packaging parameters obtained in step S108 into a specified format and saving it;

[0015] The package diagram classification and recognition method uses a ResNet50 network to select key feature views of various package diagrams from electronic component data sheets of different manufacturers to construct a data set for training, so that it can identify the category of the package diagram;

[0016] The automatic classification method for figures, tables and long texts collects package diagram pages from electronic component data sheets of different manufacturers to construct a data set, annotates the data, and sends it to the Resnet50 network for training, and then uses the trained classification network to separate the current page package diagram, table and long text;

[0017] The view semantic segmentation method collects package drawings of different manufacturers to build a data set, annotates the data, and sends it to the Yolox network for training. The trained network is used to detect various view features, separate the views of the package drawing, identify the semantics of each view, and perform positioning.

[0018] The dimension line and dimension annotation parameter matching method collects data sets constructed from different views of various packages, annotates data, and sends them to the Yolox deep detection network and DBnet++ text detection network for training, so that all dimension lines and dimension annotations in the view can be identified and nearest neighbor matching can be performed.

[0019] Preferably, the package drawing classification and recognition method comprises the following steps: determining the number of categories of electronic component package drawings, determining the key feature views of each package drawing, and extracting 5,000 key feature views of each package from electronic component data manuals of different manufacturers as a data set; using the Resnet50 network as the main structure of the classifier, building a classification network, using the obtained data set to train the network, and obtaining the network weight parameters of the classification model.

[0020] Preferably, the method for automatic classification of figures, tables and long texts comprises the following steps: annotating the table on the package drawing and feeding it into the Resnet50 network training; annotating the key feature views on the package drawing and feeding it into the Resnet50 network training; annotating the long text on the package drawing and feeding it into the Resnet50 network training; and using the classification model obtained through training to implement the method for automatic classification of figures, tables and long texts.

[0021] Preferably, the view semantic segmentation method comprises the following steps: according to different viewing angles, the view is divided into a top view, a bottom view, a front view, a side view and an overall view; each type of view is labeled and sent to a yolox deep network for training to obtain a network with weight parameters; a package diagram is input, and the yolox network is used to perform semantic segmentation of the view.

[0022] Preferably, the dimension line and dimension annotation matching method comprises the following steps: using yolox to detect the dimension line, and calculating the dimension line position, length and direction according to the coordinates of the dimension line detection box; using DBnet++ to detect the annotated text, and judging whether the text box is in the X-axis direction or the Y-axis direction according to the coordinates of the text detection box; in the X-axis direction, traversing the distance between the center point of each dimension line detection box and the center point of all text detection boxes, and taking the text box with the smallest distance as the dimension annotation of the dimension line, and similarly performing nearest neighbor matching of the dimension line and the dimension annotation in the Y-axis direction.

[0023] Preferably, the data manual preprocessing module includes the following steps when used: inputting the electronic component data manual; deleting pages without pictures; determining whether the electronic component data manual has a watermark, and removing the watermark if it has a watermark; converting the remaining pages into pictures, using a package diagram classification and recognition method to search and detect all the package diagrams therein, and locating their page numbers.

[0024] Preferably, the package diagram preprocessing module includes the following steps when used: for a page with a package diagram obtained, determine whether the key feature view is labeled with numbers or letters; calculate the fuzziness of the key feature view, and if the fuzziness is too high, switch to manual processing; use the package diagram, table and long text automatic classification method to automatically divide the page; use the view semantic segmentation method to divide the views and perform view classification; record the coordinate range of all views, tables and long texts in the page, the labeling method of the key feature view and its fuzziness.

[0025] Preferably, the dimension line recognition and dimension annotation matching module uses a dimension line and dimension annotation matching method to extract all dimension line information in a certain acquired view, and then matches it with the dimension annotation of its nearest neighbor.

[0026] Preferably, the letter-annotated package drawing parameter extraction and semantic alignment module includes the following steps when used: for the letter-annotated package drawing, search for the corresponding package parameter table on this page, and if not, jump to the next page to search; use the Paddle OCR table content extraction method to extract the parameters therein; convert the dimension line information into length, direction and position, and perform semantic alignment with the nearest neighbor letter annotation and package parameter table content to obtain various parameters of the package.

[0027] Preferably, the semantic logic repair module performs semantic logic repair on the acquired packaging parameters according to the typical packaging parameter dictionary and the inherent logical relationship between various packaging parameters when in use.

[0028] Compared with the prior art, the present invention has the following advantages:

[0029] 1. Using image processing, natural language understanding and a variety of deep learning technologies, a method for automatically extracting package parameters from electronic component data manuals is proposed. This method can automatically extract all the parameters required for package library construction from various types of electronic component data manuals, greatly improving the efficiency of electronic component package library construction with high accuracy.

[0030] 2. In the data sheet preprocessing module, a classification and recognition method for electronic component package drawings is proposed, which can accurately locate all pages containing package drawings in the electronic component data sheet and classify them;

[0031] 3. In the package diagram preprocessing module, an automatic classification method for the package diagram, table and long text on the current page and a package diagram semantic segmentation method are proposed, which can accurately perform view semantic segmentation on the package diagram;

[0032] 4. In the dimension line recognition and dimension annotation matching module, the dimension annotation parameters in each package view can be accurately aligned with their semantics;

[0033] 5. In the semantic logic repair module, semantic logic repair is performed on the obtained packaging parameters according to the typical packaging parameter dictionary and the intrinsic logical relationship between various packaging parameters, which further improves the accuracy of the extracted parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a module diagram of the method for automatically extracting package diagram parameter information in the electronic component manual of the present invention;

[0035] Figure 2 It is a flow chart of the method for automatically extracting package diagram parameter information in the electronic component manual of the present invention;

[0036] Figure 3 This is a flow chart of the data manual preprocessing module performing preprocessing in an embodiment of the present invention;

[0037] Figure 4 This is a flow chart of a package image preprocessing module in an embodiment of the present invention;

[0038] Figure 5 Flowchart of the module for parameter extraction and semantic alignment of letter-labeled package drawings;

[0039] Figure 6 Flowchart of the digitally annotated package diagram parameter extraction and semantic alignment module. DETAILED DESCRIPTION

[0040] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0041] A method for automatically extracting package diagram parameter information from an electronic component manual, such as Figure 1As shown, it includes a data sheet preprocessing module, a package drawing preprocessing module, a package drawing special processing module, a dimension line recognition and dimension annotation parameter matching module, a letter annotation package drawing parameter extraction and semantic alignment module, a digital annotation package drawing parameter extraction and semantic alignment module, a semantic logic repair module and a package parameter format conversion module; as shown Figure 2 As shown, the following steps are included:

[0042] Step S101: the data sheet preprocessing module uses a package diagram classification and recognition method to detect all package diagrams in the electronic component data sheet, identify their package types, locate the page number of each package diagram and the coordinate range of its key feature view;

[0043] Step S102: The package drawing preprocessing module preprocesses each package drawing obtained in step S101, and uses the automatic classification method of diagrams, tables and long texts to automatically divide the package drawing, parameter table and long text on the page where the package drawing is located, and obtains their respective coordinate ranges. Then, the package drawing is semantically segmented using the view semantic segmentation method to obtain the type and coordinate range of each view.

[0044] Step S103: The package diagram special processing module processes the key feature view of each package diagram according to the characteristics of the package type obtained in step S101, extracts and analyzes its unique features, such as for BGA package, checking the number of balls and whether there are missing balls; for QFN package, checking the number of PINs, the size of the heat sink, etc.

[0045] Step S104: for each view obtained in step S102, the dimension line recognition and dimension annotation parameter matching module detects all dimension lines in the view, locates their starting and ending points, obtains their position, direction and length information, and matches the dimension lines with the dimension annotations using the dimension line and dimension annotation parameter matching method;

[0046] Step S105: Determine whether digital annotation is used in the key feature view, if it is a digital annotation, proceed to step S106, otherwise proceed to step S107;

[0047] Step S106: The digitally annotated package drawing parameter extraction and semantic alignment module extracts the digital annotations that are closest to each dimension line in the package drawing, and semantically aligns the dimension lines and digital dimension annotations in all views according to the package type to obtain the parameters of the package;

[0048] Step S107: In the table obtained in step S102 or the table on the next page, use the Paddle OCR table content extraction method to extract the content therein, use the letter-annotated package drawing parameter extraction and semantic alignment module to extract the nearest letter annotations of each dimension line in the package drawing, and semantically align the dimension lines and letter dimension annotations in all views with the package parameter table according to the package type to obtain the parameters of the package;

[0049] Step S108: According to the package type, a semantic logic repair module is used to perform semantic logic repair on the package parameters obtained in steps S106 and S107 according to the intrinsic logical relationship of the typical package parameters in the typical package parameter dictionary;

[0050] Step S109: converting the packaging parameters obtained in step S108 into a specified format and saving it;

[0051] Among them, the package diagram classification and recognition method uses the ResNet50 network to select key feature views of various package diagrams from the electronic component data sheets of different manufacturers to construct a data set for training, so that it can identify the category of the package diagram;

[0052] The automatic classification method of figures, tables and long texts collects the package diagram pages in the data manuals of electronic components from different manufacturers to build a data set, annotates the data, and sends it to the Resnet50 network for training. Then, the trained classification network is used to separate the package diagram, table and long text of the current page;

[0053] The view semantic segmentation method collects package drawings from different manufacturers to build a data set, annotates the data, and sends it to the Yolox network for training. The trained network is used to detect various view features, segment the views of the package drawings, identify the semantics of each view, and perform positioning.

[0054] The dimension line and dimension annotation parameter matching method collects data sets constructed from different views of various packages, annotates the data, and sends them to the Yolox deep detection network and DBnet++ text detection network for training, so that they can identify all dimension lines and dimension annotations in the view and perform nearest neighbor matching.

[0055] The package drawing classification and recognition method includes the following steps: determining the number of categories of electronic component package drawings, determining the key feature views of each package drawing, and extracting 5000 key feature views of each package from the electronic component data manuals of different manufacturers as a data set; using the Resnet50 network as the main structure of the classifier, building a classification network, using the obtained data set to train the network, and obtaining the network weight parameters of the classification model.

[0056] Specifically, in this embodiment, the following steps are included:

[0057] Step S201: The package types involved are: BGA, OSCILLATOR, CHIP, ARRAY, CHIP, CRYSTAL, MOLDED, QFN, QFP, SON, SOP, CAPAE, CFP, CGA, CQFP, DFN, LCC, LED, LGA, MELF, PLOC, SOD, SODFL, SOJ, SOT143, SOT223, SOT89, SOTFL, TO252, TO263, a total of 30 categories;

[0058] Step S202: Dataset preparation and classification network training: 5,000 package images of the above type are collected and their key feature views are annotated, named after the package type name. After the annotation is completed, the convolution features of each package are calculated using the CNN network and then sent to the Resnet50 network for training, with a learning rate of 0.005 and the number of iterations set to 2,000, to obtain the network weight parameters of the package classification model;

[0059] Step S203: Data testing: Convert the data manual to be tested into a picture and send it to the classification network to obtain a package diagram containing the package name. If multiple package names appear in one diagram, select the one with the highest confidence rate as the package name.

[0060] Among them, the data sheet preprocessing module includes the following steps when used: input the electronic component data sheet; delete the page without pictures; determine whether the electronic component data sheet has a watermark, and if so, remove the watermark; convert the remaining pages into pictures, use the package diagram classification and recognition method to search and detect all the package diagrams therein, and locate their page numbers.

[0061] Specifically, in this embodiment, Figure 3 As shown, the following steps are included:

[0062] Step S301: input electronic component data sheet;

[0063] Step S302: judging whether the electronic component data sheet can be read, if the electronic component data sheet cannot be opened normally, outputting a prompt message and exiting, if it can be opened normally, entering step S303;

[0064] Step S303: Deleting the pages without drawings in the manual by using methods such as keyword judgment and package drawing feature detection;

[0065] Step S304: determine whether the electronic component data sheet has a watermark, if so, proceed to step S305, otherwise proceed to step S306;

[0066] Step S305: remove the watermarks in a targeted manner according to the watermark type, and then proceed to step S306;

[0067] Step S306: converting the remaining pages into images;

[0068] Step S307: traverse the image obtained in step S306, detect the key feature views of all package drawings, and obtain the category, page number and coordinate range of the key feature view of each package drawing.

[0069] The automatic classification method for figures, tables and long texts includes the following steps: annotating the table on the package drawing and feeding it into the Resnet50 network training; annotating the key feature view on the package drawing and feeding it into the Resnet50 network training; annotating the long text on the package drawing and feeding it into the Resnet50 network training; and implementing the automatic classification method for figures, tables and long texts based on the classification model obtained by the Resnet50 training network.

[0070] Specifically, in this embodiment, the following steps are included:

[0071] Step S401: Data preparation: collect 5,000 pictures containing package diagrams, tables, and long texts, and classify and annotate them;

[0072] Step S402: Data training: Send the labeled 5,000 images to the Resnet50 network training to obtain the weight parameters of the classification network;

[0073] Step S403: Automatic detection and classification: Send the image to be tested into the automatic classification network, and the obtained rectangular boxes and their names are used as the automatically classified symbol graphs, tables and long texts. If the symbol graph, table and long text detection box overlap IOU < 0.2, it can be ignored; if the symbol graph, table and long text detection box overlap IOU > 0.2, the box with high confidence rate is selected as the detection result.

[0074] The view semantic segmentation method includes the following steps: according to different viewing angles, the views are divided into top view, bottom view, front view, side view and overall view; various views are labeled and sent to the yolox deep network for training to obtain a network with weight parameters; the package diagram is input and the network is called for semantic segmentation of the view.

[0075] Specifically, in this embodiment, the following steps are included:

[0076] Step S501: Data preparation: The pictures used in the classification of package drawings are divided into top view, bottom view, front view, side view and entirety view according to different viewing angles, and are labeled and named respectively and put into different folders;

[0077] Step S502: Data training: five different view annotations are put into the yolox deep detection network training, the learning rate of the network is set to 0.002, the number of iterations is 2000, and the detection network with weight parameters is obtained;

[0078] Step S503: semantic segmentation: send the view to be tested into the yolox deep detection network to obtain at least three labeled detection frames; if there are too many detection frames, at the same position, if the label names of two frames are consistent and IOU>0.5, merge the outer frames; if the label names of two frames are consistent but IOU<0.5, retain the detection frame with high pixel density; if the label names of two frames are inconsistent but IOU>0.5, determine the positions and names of the other two frames of the three views, and finally retain the three frames with inconsistent names.

[0079] The package drawing preprocessing module includes the following steps when used: for a page with a package drawing, determine whether the key feature view is labeled with numbers or letters; calculate the fuzziness of the key feature view, and if the fuzziness is too high, switch to manual processing; use the package drawing, table and long text automatic classification method to automatically divide the page; use the view semantic segmentation method to divide the views and classify the views; record the coordinate range of all views, tables and long texts in the page, the labeling method of the key feature view and its fuzziness.

[0080] Specifically, in this embodiment, Figure 4 As shown, the following steps are included:

[0081] Step S601: locate the page where a package diagram obtained by the data manual preprocessing module is located, and determine whether there are other package diagrams on the page. If so, proceed to step S602, otherwise proceed to step S603;

[0082] Step S602: automatically dividing the coordinate range of each package drawing according to the coordinate range of each key feature view in the same page;

[0083] Step S603: read the string content in the key feature view through Paddle OCR to determine whether there are letters in it;

[0084] Step S604: using a grayscale variance algorithm to calculate the blurriness of the key feature view;

[0085] Step S605: If the fuzziness of the key feature view is greater than the set threshold, a manual processing prompt is given and the process ends; otherwise, the process proceeds to step S606;

[0086] Step S606: using an automatic classification method for diagrams, tables and long texts, dividing the page where the key feature view is located, and obtaining the coordinate range of the encapsulated diagrams, tables and long texts therein;

[0087] Step S607: using a view semantic segmentation method to perform view semantic segmentation on the package diagram obtained in step S606 to obtain the type and coordinate range of each view;

[0088] Step S608: Record whether the key feature view has letters and their blurriness, the types and coordinate ranges of all views, and the coordinate ranges of each table and long text on the page.

[0089] The dimension line recognition and dimension annotation matching module uses the dimension line and dimension annotation matching method to extract all dimension line information in a view obtained by the package drawing classification recognition method, and then matches it with the nearest neighbor dimension annotation. In this embodiment, the dimension line and dimension annotation matching method includes the following steps:

[0090] Step S701: Use yolox to detect the dimension line, obtain the position of the dimension line according to the coordinates of the dimension line detection frame, calculate the length of the dimension line, and determine whether the dimension line is in the X-axis direction or the Y-axis direction;

[0091] Step S702: using DBnet++ to detect the annotated text, and judging whether the text box is in the X-axis direction or the Y-axis direction according to the coordinates of the text detection box;

[0092] Step S703: In the X-axis direction, traverse the distance between the center of each dimension line detection frame and the center point of all text detection frames, and use the text frame with the smallest distance as the dimension annotation of the dimension line; similarly, calculate the nearest neighbor match between the dimension line and the dimension annotation in the Y-axis direction.

[0093] The module for extracting and semantically aligning package drawing parameters with letter annotations includes the following steps: for package drawings with letter annotations, search for the corresponding package parameter table on this page. If there is no such table, jump to the next page to search for it. Use the Paddle OCR table content extraction method to extract the parameters. Convert dimension line information into length, direction and position, and perform semantic alignment with the nearest neighbor letter annotation and package parameter table content to obtain the various parameters of the package.

[0094] Specifically, in this embodiment, Figure 5 As shown, the following steps are included:

[0095] Step S801: Check whether there is a table on the page where the package diagram is located. If there is no table, go to step S802, otherwise go to step S803;

[0096] Step S802: Search all tables on the next page and find the table corresponding to the current package drawing.

[0097] Step S803: Determine whether the packaging parameter table is editable, if it is editable, proceed to step S804, otherwise proceed to step S805;

[0098] Step S804: Use PDFPlumber to read the contents of the package parameter table, and then proceed to step S806;

[0099] Step S805: Use the Paddle OCR table content extraction method to extract the content in the package parameter table, and then proceed to step S806;

[0100] Step S806: semantically align the letter annotation and dimension line information obtained by the dimension line recognition and dimension annotation matching module with the contents in the package parameter table obtained in steps S804 and S805 to obtain the package parameters.

[0101] When the digital annotation package diagram parameter extraction and semantic alignment module performs parameter extraction and semantic alignment, such as Figure 6 As shown, the following steps are included:

[0102] Step S901: According to the package type, semantic recognition is performed on the dimension line information and data obtained by the dimension line recognition and dimension marking matching module to determine its meaning;

[0103] Step S902: Fill the result of S901 into the corresponding packaging parameter table;

[0104] Step S903: If there is no data in the packaging parameter table, go to step S904, otherwise go to step S905;

[0105] Step S904: Go to the next page to find other views, use the dimension line and dimension annotation matching method to extract dimension line information and data, perform semantic recognition, and then go to step S902;

[0106] Step S905: semantically align the data in the package parameter table obtained in step S902 according to the package type, and the position, direction and length information of the dimension lines in all views.

[0107] Finally, in this embodiment, the semantic logic repair module performs semantic logic repair on the obtained packaging parameters according to the typical packaging parameter dictionary and the inherent logical relationship between various packaging parameters.

[0108] The method for automatically extracting package drawing parameter information in the electronic component manual of the present invention utilizes image processing, natural language understanding and multiple deep learning technologies, and proposes a method for automatically extracting package parameters from the electronic component data manual, which can automatically extract all parameters required for package library construction from various types of electronic component data manuals, greatly improving the efficiency of electronic component package drawing library construction with high accuracy; in the data manual preprocessing module, an electronic component package drawing classification and recognition method is proposed, which can accurately locate all pages containing package drawings in the electronic component data manual and classify them; in the package drawing preprocessing module, a current page package drawing, table and long text automatic classification method and a package drawing semantic segmentation method are proposed, which can accurately perform view semantic segmentation on the package drawing; in the dimension line recognition and dimension annotation matching module, the dimension annotation parameters in each package view can be accurately aligned with their semantics; in the semantic logic repair module, according to the typical package parameter dictionary and the inherent logical relationship between various package parameters, the acquired package parameters are semantically repaired, and the accuracy of the extracted parameters is further improved.

Claims

1. A method for automatically extracting package diagram parameter information from an electronic component manual, characterized in that: It includes a data sheet preprocessing module, a package drawing preprocessing module, a package drawing special processing module, a dimension line recognition and dimension annotation parameter matching module, a letter annotation package drawing parameter extraction and semantic alignment module, a digital annotation package drawing parameter extraction and semantic alignment module, a semantic logic repair module and a package parameter format conversion module; it includes the following steps: Step S101: the data manual preprocessing module uses a package diagram classification and recognition method to detect all package diagrams in the electronic component data manual, identify their package types, locate the page number of each package diagram and the coordinate range of its key feature view; Step S102: the package drawing preprocessing module preprocesses each package drawing obtained in step S101, and uses the automatic classification method of diagrams, tables and long texts to automatically divide the package drawing, parameter table and long text on the page where the package drawing is located, and obtains their respective coordinate ranges, and then uses the view semantic segmentation method to perform semantic segmentation on the package drawing to obtain the type and coordinate range of each view; Step S103: the package diagram special processing module processes the key feature view of each package diagram according to the characteristics of the package type obtained in step S101, and extracts and analyzes its unique features; Step S104: for each view obtained in step S102, the dimension line recognition and dimension annotation parameter matching module detects all dimension lines in the view, locates their starting and ending points, obtains their position, direction and length information, and matches the dimension lines with the dimension annotations using a dimension line and dimension annotation parameter matching method; Step S105: Determine whether digital annotation is used in the key feature view, if it is a digital annotation, proceed to step S106, otherwise proceed to step S107; Step S106: the digitally annotated package drawing parameter extraction and semantic alignment module extracts the digital annotations of the nearest neighbors of each dimension line in the package drawing, and semantically aligns the dimension lines and digital dimension annotations in all views according to the package type to obtain the parameters of the package; Step S107: In the table obtained in step S102 or the table on the next page, the Paddle OCR table content extraction method is used to extract the content therein, and the letter-annotated package drawing parameter extraction and semantic alignment module extracts the nearest letter annotations of each dimension line in the package drawing, and semantically aligns the dimension lines and letter dimension annotations in all views with the package parameter table according to the package type to obtain the parameters of the package; Step S108: According to the package type, the semantic logic repair module performs semantic logic repair on the package parameters obtained in steps S106 and S107 according to the intrinsic logical relationship of the typical package parameters in the typical package parameter dictionary; Step S109: converting the packaging parameters obtained in step S108 into a specified format and saving it; The package diagram classification and recognition method uses a ResNet50 network to select key feature views of various package diagrams from electronic component data sheets of different manufacturers to construct a data set for training, so that it can identify the category of the package diagram; The automatic classification method for figures, tables and long texts collects package diagram pages from electronic component data sheets of different manufacturers to construct a data set, annotates the data, and sends it to the Resnet50 network for training, and then uses the trained classification network to separate the current page package diagram, table and long text; The view semantic segmentation method collects package drawings of different manufacturers to build a data set, annotates the data, and sends it to the Yolox network for training. The trained network is used to detect various view features, separate the views of the package drawing, identify the semantics of each view, and perform positioning. The dimension line and dimension annotation parameter matching method collects data sets constructed from different views of various packages, annotates data, and sends them to the Yolox deep detection network and DBnet++ text detection network for training, so that all dimension lines and dimension annotations in the view can be identified and nearest neighbor matching can be performed.

2. The method for automatically extracting package diagram parameter information from an electronic component manual as claimed in claim 1, characterized in that: The package diagram classification and recognition method comprises the following steps: determining the number of categories of electronic component package diagrams, determining the key feature views of each package diagram, and extracting 5,000 key feature views of each package from electronic component data manuals of different manufacturers as a data set; using the Resnet50 network as the main structure of the classifier, building a classification network, using the obtained data set to train the network, and obtaining the weight parameters of the package diagram classification model.

3. The method for automatically extracting package diagram parameter information from an electronic component manual as claimed in claim 1, characterized in that: The method for automatic classification of figures, tables and long texts comprises the following steps: annotating tables on package drawings and feeding them into Resnet50 network training; annotating key feature views on package drawings and feeding them into Resnet50 network training; annotating long texts on package drawings and feeding them into Resnet50 network training; obtaining a package drawing content semantic classification model based on the Resnet50 training network to implement the method for automatic classification of figures, tables and long texts.

4. The method for automatically extracting package diagram parameter information from an electronic component manual as claimed in claim 1, characterized in that: The view semantic segmentation method comprises the following steps: according to different viewing angles, the view is divided into a top view, a bottom view, a front view, a side view and an overall view; various views are marked and sent to a Yolox deep network for training to obtain weight parameters of the Yolox network; Input the encapsulation graph and call the yolox network to perform semantic segmentation of the view.

5. The method for automatically extracting package diagram parameter information from an electronic component manual as claimed in claim 1, characterized in that: The dimension line and dimension annotation matching method comprises the following steps: using yolox to detect the dimension line, and calculating the position, length and direction of the dimension line according to the coordinates of the dimension line detection box; using DBnet++ to detect the annotation text, and judging whether the text box is in the X-axis direction or the Y-axis direction according to the coordinates of the text detection box; in the X-axis direction, traversing the distance between the center point of each dimension line detection box and the center point of all text detection boxes, and taking the text box with the smallest distance as the dimension annotation of the dimension line, and similarly performing nearest neighbor matching between the dimension line and the dimension annotation in the Y-axis direction.

6. The method for automatically extracting package diagram parameter information from an electronic component manual as claimed in claim 1, characterized in that: The data sheet preprocessing module includes the following steps when used: inputting the electronic component data sheet; deleting pages without pictures; determining whether the electronic component data sheet has a watermark, and if so, removing the watermark; converting the remaining pages into pictures, using a package diagram classification and recognition method to search and detect all the package diagrams therein, and locating their page numbers.

7. The method for automatically extracting package diagram parameter information from an electronic component manual as claimed in claim 6, characterized in that: The package drawing preprocessing module includes the following steps when used: for a page with a package drawing, determining whether the key feature view is labeled with numbers or letters; calculating the fuzziness of the key feature view, and switching to manual processing if the fuzziness is too high; using the package drawing, table and long text automatic classification method to automatically divide the page; using the view semantic segmentation method to divide each view and perform view classification; recording the coordinate range of all views, tables and long texts in the page, the labeling method of the key feature view and its fuzziness.

8. The method for automatically extracting package diagram parameter information from an electronic component manual as claimed in claim 7, characterized in that: The dimension line recognition and dimension annotation matching module uses a dimension line and dimension annotation matching method to extract all dimension line information in a certain view, and then matches it with the dimension annotation of its nearest neighbor.

9. The method for automatically extracting package diagram parameter information from an electronic component manual as claimed in claim 8, characterized in that: The module for extracting and aligning package parameters with semantics of letter-annotated drawings includes the following steps: for the package drawings with letter-annotated drawings, searching for the corresponding package parameter table on this page, if not found, jumping to the next page to search; using the Paddle OCR table content extraction method to extract the parameters therein; The dimension line information is converted into length, direction and position, and semantically aligned with the nearest letter mark and package parameter table content to obtain the various parameters of the package.

10. The method for automatically extracting package diagram parameter information from an electronic component manual as claimed in claim 1, characterized in that: When used, the semantic logic repair module performs semantic logic repair on the obtained packaging parameters according to the typical packaging parameter dictionary and the inherent logical relationship between various packaging parameters.