A drawing automatic recognition system and method

By setting unique codes on the drawings, reading and positioning the drawing page numbers, the problem of low efficiency in management of massive drawings is solved, and efficient and accurate automatic drawing allocation and access is achieved.

CN113569836BActive Publication Date: 2025-02-14WAROM TECHNOLOGY INCORPORATED COMPANY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110944588.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2025-02-14
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

When processing massive drawings, the prior art is inefficient and prone to manual entry errors, which affects production, quality inspection and other processes.

Method used

By setting positioning identifiers on the drawings, reading the drawing page numbers using a unique code, and accurately positioning the drawings through the drawing page numbers, automatic allocation and access are achieved.

Benefits of technology

It improves the efficiency of drawing positioning and distribution, reduces the error rate, meets the needs of various departments for drawings, and at the same time realizes the confidentiality of drawings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113569836B_ABST
    Figure CN113569836B_ABST
Patent Text Reader

Abstract

The invention discloses a drawing automatic identification system and method, wherein the drawing automatic identification system comprises: a drawing storage management module, which is used for storing, reading and downloading drawings; a drawing identification and automatic allocation module, which adds at least one unique code to each page of drawings, then splits the drawings into single pictures by page, extracts the text of each picture, obtains the unique code through the text, binds the unique code with the page number, and then sorts the drawings in sequence according to the page number, and subsequently can access the drawings of the corresponding page number through the unique code; according to the requirements of each link for different drawings, the drawings required by each link are allocated to each link in the form of page numbers, and each link can only view the allocated drawings according to the unique code; and a drawing identification application module, which uses the unique code to search in a database table, obtains the page number corresponding to the unique code, extracts the corresponding drawings according to the page number, and can view and download them.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a drawing recognition technology, and in particular to a drawing automatic recognition system and method. Background Art

[0002] As customized orders from enterprises have become the main business growth point for some companies, the demand for customized product drawing design has increased dramatically. Often a contract will generate a large number of technical drawings. How to accurately locate the massive drawings to each product and component in the company's production, procurement, quality and other systems is an extremely time-consuming and challenging task.

[0003] Based on this background, it is very necessary to accurately locate specific drawings in the massive drawing library and retrieve specific drawings according to needs and corresponding permissions in production, procurement, quality, suppliers and other links. However, the current massive drawings are still manually entered, then associated with page numbers, and then transferred through page numbers. This is inefficient and prone to input errors, affecting subsequent production, quality inspection and other processes. Summary of the invention

[0004] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is to provide a system and method for automatic identification of drawings, which sets a positioning identifier on the drawing, reads the drawing page number by a unique code, and then accurately locates the drawing by the drawing page number.

[0005] To achieve the above object, the present invention provides a drawing automatic recognition system, comprising:

[0006] Drawing storage management module, used to store, read and download drawings;

[0007] The drawing recognition and automatic allocation module adds at least one unique code to each page of the drawing, then splits the drawing into individual pictures by page, extracts the text of each picture, obtains the unique code through the text, and then binds the unique code to the page number. The drawings are then sorted in order of page numbers, and the drawings of the corresponding page numbers can be accessed later through the unique code; according to the needs of each link for different drawings, the drawings required by each link are allocated to each link in the form of page numbers, and each link can only view the allocated drawings based on the unique code;

[0008] The drawing recognition application module uses the unique code to search in the database table, obtains the page number corresponding to the unique code, extracts the corresponding drawing according to the page number, and then can view and download it.

[0009] Furthermore, in the drawing storage management module, drawings are managed using database table storage plus file-exclusive storage; each row of the database table stores the file save path, file size, original file name, and file name after saving; and a link address for the drawing file is generated, through which the drawing file can be read and downloaded.

[0010] Furthermore, when there are two or more unique codes on the same page, the two unique codes are separated by spaces, carriage returns, or special characters.

[0011] The present invention also discloses a method for automatically identifying drawings, comprising:

[0012] S100, drawing storage management, drawings are uploaded and stored in the drawing database, and the storage of drawings is managed by database table storage plus file-exclusive storage;

[0013] S200, drawing recognition and automatic allocation, splitting drawings into independent pictures by page, attaching at least one unique code to each page of drawings, and associating page numbers through the unique code; allocating extractable drawing page numbers to each link according to the page numbers corresponding to the drawings required by each link;

[0014] S300, a drawing recognition application identifies a page number through a unique code and extracts the drawing corresponding to the page number.

[0015] Furthermore, S100 also includes:

[0016] S110, creating a file list. When creating a file list, first obtain a database storage table; then add the uploaded file list information to the data table, each row of the data table stores the file's save path, file size, original file name, and file name after saving; finally save it to the database;

[0017] S120, saving the uploaded list file to the corresponding directory of the file server according to the database storage information;

[0018] S130, the web page displays the file list, and the file list is directly read from the database table. The file information is displayed on the page, and the link address is the file server interface plus the file parameter information;

[0019] S140, file downloading, inputting file information through the download interface, retrieving the file, and downloading the file from the file server.

[0020] Furthermore, S200 also includes:

[0021] S210, splitting drawings into multiple single pictures by page;

[0022] S220, displaying the picture, using two modes of display: a standard definition mode and a high definition mode, wherein the definition of the high definition mode is higher than that of the standard definition mode;

[0023] S230, text recognition and extraction, extracting the text on each drawing, and obtaining a unique code based on the extracted text, associating the unique code with the corresponding drawing page number, and storing the associated information.

[0024] Furthermore, S210 also includes:

[0025] S211, identify the drawing format;

[0026] S212, first obtain the total pages according to the drawing format attributes, and then loop through each page so that the drawing is divided independently according to each page;

[0027] S213, converting each page of drawings into a bitmap;

[0028] S214, generating a picture from the bitmap, and saving the picture, wherein the name of the picture is named after the page number of the picture.

[0029] Furthermore, S220 also includes:

[0030] S221, obtaining the image file names after the splitting in S210, and sorting the images in ascending order according to the image file names;

[0031] S222, combining the image and additional content to be displayed on the page;

[0032] S223, convert the combined content into a string format and return it to the page for display.

[0033] Furthermore, S230 also includes:

[0034] S231, reading the image according to the image format using software or a method capable of reading the format;

[0035] S232, using text recognition technology to recognize text and characters on the image to obtain a page number and a unique code;

[0036] S233, loop through the page numbers, obtain the text of each picture, create a text dictionary table, and add the page number, unique code, and text to the text dictionary table.

[0037] Furthermore, S300 also includes:

[0038] S310, obtain the page of the drawing using a circular list, pass the unique code to the background, find the page number and write it into the corresponding row;

[0039] S320, looping through the text dictionary table in the background, comparing the unique code in the text, and taking out the corresponding page number;

[0040] Identification method: loop through the characters in the text, filter the header tag and end tag to find the unique code, and take out the page number.

[0041] The beneficial effects of the present invention are:

[0042] 1. The present invention sets a specific "unique code" on the drawing to read the page number corresponding to the drawing, and then accurately locates the drawing by the page number of the drawing, providing an accurate page number positioning interface for the production, procurement, and quality systems, so that each logistics link can and can only read the required drawings, so as to meet the drawing needs of various departments and meet the requirements of drawing confidentiality.

[0043] 2. Traditional drawing document management systems mainly manually allocate corresponding drawings, and manually split a drawing of dozens or even hundreds of pages into each product of each production plan sheet for production, procurement, quality and other positions, or each material of the procurement plan. The present invention only requires technical designers to mark each page of the drawing with the unique code automatically generated by the unique code generation system during the drawing design process. The system can automatically read the page number of each page of the drawing according to the unique code, and automatically allocate it to the corresponding production plan, procurement plan, quality inspection sheet and other links of the subsequent system through the page number. The error rate is extremely low and the efficiency is very high. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a principle block diagram of the present invention.

[0045] Figure 2 This is a schematic diagram of adding a unique code to a drawing.

[0046] Figure 3 It is a flowchart of text recognition extraction and recognition.

[0047] Figure 4 It is a flow chart for identifying page numbers through unique codes. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0049] In the description of the present invention, it is necessary to understand that the terms "upper", "lower", "front", "back", "left", "right", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0050] The system of this embodiment adopts a B / S combined architecture, which is divided into the main functions of drawing storage management module, drawing recognition and automatic allocation module, drawing recognition application module, etc. The premise of the drawing recognition system must be that the drawing conforms to a file of a specific format and can extract the "unique code" in the drawing, such as the text format of PDF and the WORD format. This embodiment takes the PDF format as an example.

[0051] See also Figure 1-Figure 2 , a drawing automatic recognition system, comprising:

[0052] The drawing storage management module is used to store, read and download drawings. Drawings are managed by using database table storage plus file-exclusive storage. Each row in the database table stores a series of related information such as the file save path, file size, original file name, and the name after the file is saved. A link address for the drawing file is generated, and the drawing file can be read and downloaded through the link address.

[0053] Drawing recognition and automatic allocation module, add at least one unique code to each drawing page (see Figure 2 ), then split the drawing into individual pictures by page, extract the text of each picture, obtain the unique code through the text, bind the unique code to the page number, and then sort the drawings in order of page numbers. The drawings of the corresponding page number can be accessed later through the unique code;

[0054] According to the requirements of the entire R&D, production, quality inspection, warehousing, sales and other links for different drawings, the drawings required by each link are allocated to each link in the form of page numbers, and each link can only view the allocated drawings according to the unique code. In this embodiment, there can be multiple unique codes on the same page. When there are multiple unique codes, they are separated by spaces, carriage returns, special characters, etc.

[0055] The drawing recognition application module uses the unique code to search in the database table, obtains the page number corresponding to the unique code, extracts the corresponding drawing according to the page number, and then can view and download it.

[0056] See also Figure 1-Figure 4 , a drawing automatic recognition method, comprising:

[0057] S100, drawing storage management, drawings are uploaded and stored in the drawing database, and the storage of drawings is managed by database table storage plus file-specific storage; specifically including:

[0058] S110, when creating a file list, first obtain the database storage table uSysFileUpload through the method getRequestFilesList(Type,sourceRequestID); then add the uploaded file list information to the data table, each row of the data table stores a series of related information such as the file save path, file size, original file name, and file name after saving; finally save it to the database through the SaveFiles method;

[0059] S120, saving the uploaded list file to the corresponding directory of the file server according to the database storage information;

[0060] S130, the web page displays the file list, and the file list is directly read from the database table. The file information is displayed on the page, and the link address is the file server interface plus the file parameter information;

[0061] S140, file download, input file information through the interface DataService.aspx, retrieve the file, and download the file from the file server.

[0062] S200, drawing recognition and automatic allocation, split the drawings into independent pictures by page, attach at least one unique code to each page of the drawings, and associate the page numbers through the unique codes; allocate the extractable drawing page numbers to each link according to the page numbers corresponding to the drawings required by each link. Specifically including:

[0063] S210, drawing splitting, splitting drawings into multiple single pictures by page, including:

[0064] S211. Reference PDFRender4NET.dll file;

[0065] S212, calling the interface property PageCount, first obtaining the total pages, and then looping through each page;

[0066] S213, convert each page of PDF into bitmap, using the following method:

[0067] public Bitmap GetPageImage(int pageNumber,float resolution)

[0068] Parameters required: pageNumber--input page number, resolution--pdf clarity, return: bitmap;

[0069] S214, generate a picture, using the method:

[0070] pageImage.Save(pypath&" / "&page number&".jpg",ImageFormat.Jpeg)

[0071] Save it as a jpg image, and name the image using the page number to facilitate later matching.

[0072] S220, displaying the picture, using two modes of display: standard definition mode and high definition mode, the definition of the high definition mode is higher than that of the standard definition mode, specifically including the following steps:

[0073] S221, obtaining the jpg image file names in the split directory, and sorting the page numbers from small to large;

[0074] S222, the combination needs to display pictures and additional content on the page;

[0075] S223, convert the combined content into a string format and return it to the page for display.

[0076] S230, pdf text recognition and extraction, see Figure 3 , including the following steps:

[0077] S231, reference itextsharp.dll file and create PdfReader object;

[0078] S232, using the NumberOfPages method to obtain the page number;

[0079] S233. Loop through the page numbers, use the GetTextFromPage method to get the text on each page, create a dictionary, and add the page number and text to the dictionary.

[0080] S300, drawing identification application, identify the page number through a unique code, see Figure 4 , including the following steps:

[0081] S310, the page adopts a circular list, transmits a unique code to the background, finds the page number and writes it into the corresponding row;

[0082] S320, the background loops through the text dictionary table, compares the unique code in the text, and retrieves the corresponding page number.

[0083] Identification method: loop through the characters of the text, filter according to the header mark and end mark (space or carriage return) that need to be identified to find the unique code, and take out the page number.

[0084] Calling method: GetNumberOne(currentText,dic,page,order), incoming parameters: pdf text, dictionary, page number, unique code.

[0085] The matters not described in detail in the present invention are all known technologies to those skilled in the art.

[0086] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A drawing automatic recognition system, characterized in that: include: Drawing storage management module, used to store, read and download drawings; The drawing recognition and automatic allocation module adds at least one unique code to each page of the drawing, then splits the drawing into individual pictures by page, extracts the text of each picture, obtains the unique code through the text, and then binds the unique code to the page number. The drawings are then sorted in order of page numbers, and the drawings of the corresponding page numbers can be accessed later through the unique code; according to the needs of each link for different drawings, the drawings required by each link are allocated to each link in the form of page numbers, and each link can only view the allocated drawings based on the unique code; The drawing recognition application module uses the unique code to search in the database table, obtains the page number corresponding to the unique code, extracts the corresponding drawing according to the page number, and can view and download it; The automatic drawing recognition method includes: S100, drawing storage management, drawings are uploaded and stored in the drawing database, and the storage of drawings is managed by database table storage plus file-exclusive storage; S200, drawing recognition and automatic allocation, splitting drawings into independent pictures by page, attaching at least one unique code to each page of drawings, and associating page numbers through the unique code; allocating extractable drawing page numbers to each link according to the page numbers corresponding to the drawings required by each link; S300, a drawing recognition application, identifying a page number through a unique code, and extracting the drawing corresponding to the page number; Among them, S100 also includes: S110, creating a file list. When creating a file list, first obtain a database storage table; then add the uploaded file list information to the data table, each row of the data table stores the file's save path, file size, original file name, and file name after saving; finally save it to the database; S120, saving the uploaded list file to the corresponding directory of the file server according to the database storage information; S130, the web page displays the file list, and the file list is directly read from the database table. On the file information display page, the link address is the file server interface plus the file parameter information; S140, file downloading, inputting file information through the download interface, retrieving the file, and downloading the file from the file server; Among them, S200 also includes: S210, splitting drawings into multiple single pictures by page; S220, displaying the picture, using two modes of display: a standard definition mode and a high definition mode, wherein the definition of the high definition mode is higher than that of the standard definition mode; S230, text recognition and extraction, extracting the text on each drawing, and obtaining a unique code according to the extracted text, associating the unique code with the corresponding drawing page number, and storing the associated information; Among them, S210 also includes: S211, identify the drawing format; S212, first obtain the total pages according to the drawing format attributes, and then loop through each page so that the drawing is divided independently according to each page; S213, converting each page of drawings into a bitmap; S214, generating a picture from the bitmap, and saving the picture, wherein the name of the picture is named after the page number of the picture; Among them, S220 also includes: S221, obtaining the image file names after the splitting in S210, and sorting the images in ascending order according to the image file names; S222, combining the image and additional content to be displayed on the page; S223, convert the combined content into a string format and return it to the page for display.

2. The automatic drawing recognition system according to claim 1, characterized in that: Drawings in the drawing storage management module are managed using database table storage plus file-exclusive storage; each row in the database table stores the file's save path, file size, original file name, and file name after saving; and generates a link address for the drawing file, through which the drawing file can be read and downloaded.

3. The automatic drawing recognition system according to claim 1, characterized in that: When there are two or more unique codes on the same page, the two unique codes are separated by spaces, carriage returns, or special characters.

4. The automatic drawing recognition system according to claim 1, characterized in that: The S230 also includes: S231, reading the image according to the image format using software or a method capable of reading the format; S232, using text recognition technology to recognize text and characters on the image to obtain a page number and a unique code; S233, loop through the page numbers, obtain the text of each picture, create a text dictionary table, and add the page number, unique code, and text to the text dictionary table.

5. The automatic drawing recognition system according to claim 1, characterized in that: The S300 also includes: S310, obtain the page of the drawing using a circular list, pass the unique code to the background, find the page number and write it into the corresponding row; S320, looping through the text dictionary table in the background, comparing the unique code in the text, and taking out the corresponding page number; Identification method: loop through the characters in the text, filter the header tag and end tag to find the unique code, and take out the page number.

Citation Information

Patent Citations

  • PDF (portable document format) file online storage and access method

    CN102710761A

  • Industrial drawing information processing method and device, electronic equipment and storage medium

    CN112417996A