A human-machine collaborative method and system for intelligent annotation and inspection benchmark generation of engineering drawings

By using OCR automatic detection and user collaborative annotation, the problems of low efficiency and error-proneness in the production of engineering drawing inspection benchmarks have been solved. This has achieved end-to-end automation from drawings to benchmarks and intelligent project management, thereby improving the efficiency and accuracy of quality control.

CN122089251APending Publication Date: 2026-05-26CHONGQING JUESHENG INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610521180.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-20
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In existing technologies, the production efficiency of engineering drawing inspection standards is low, the accuracy of data is difficult to guarantee, the level of intelligent standard matching is low, the output standardization is insufficient, and the human-machine collaboration mechanism is lacking. This results in long production cycles, high quality risks, and difficulty in achieving real-time status synchronization and version control under multi-role collaboration.

Method used

A human-computer collaborative annotation mechanism that integrates OCR automatic detection and dynamic decision-making is adopted. The OCR automatic detection model extracts drawing information, combines it with user-supplemented annotations, performs conflict detection and merging, uses a dynamic decision-making model to automatically select annotation results, and generates a structured inspection benchmark, supporting full lifecycle management and status tracking of projects.

Benefits of technology

It significantly shortens the production cycle of benchmark reports from "days" to "minutes", improves the accuracy and efficiency of annotation, realizes digital management of the entire project lifecycle, reduces the annotation error rate, and has the ability to continuously self-evolve and optimize models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122089251A_ABST
    Figure CN122089251A_ABST
Patent Text Reader

Abstract

This application discloses a human-machine collaborative intelligent annotation and inspection benchmark generation method and system for engineering drawings. It relates to the fields of engineering drawing processing and intelligent manufacturing technology. The method includes: creating an inspection benchmark project and obtaining the engineering drawing file to be processed; intelligently annotating the drawing using an OCR automatic detection model, identifying dimensions, geometric tolerances, surface roughness, and technical requirements, and locating their coordinates; receiving annotation information manually supplemented by the user, and achieving human-machine collaborative annotation through conflict detection and merging; displaying the project list in a card-style layout, supporting status filtering and progress management; querying the inspection standard database based on the annotation information, automatically matching tolerances, inspection frequencies, and sampling plans; and finally generating a structured inspection benchmark document. This application solves the problems of low efficiency and error-proneness of traditional manual production methods, realizing automated annotation, intelligent standard matching, and visualized project management, significantly improving the efficiency and accuracy of quality control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of engineering drawing processing and intelligent manufacturing technology, and in particular to a human-machine collaborative method and system for intelligent annotation and inspection benchmark generation of engineering drawings. Background Technology

[0002] In the quality control system of modern manufacturing, engineering drawings and inspection standards are important bases for product inspection. These standards specify in detail the inspection standards, inspection frequencies, and sampling plans for various parameters such as product dimensions, geometric tolerances, and surface roughness, making them crucial documents for ensuring product quality.

[0003] In existing technologies, the creation of inspection standards for engineering drawings is mainly done manually. Specifically, quality engineers need to open the engineering drawings, identify the dimensions, geometric tolerances, surface roughness, and other information in the drawings one by one, then add bubble annotations, and consult relevant standard documents to determine the inspection tolerances, inspection frequencies, and sampling plans corresponding to each inspection item, and finally compile the inspection standards document.

[0004] However, the aforementioned prior art has the following technical defects: (1) Low work efficiency: The manual item-by-item recognition and input mode cannot meet the processing needs of massive annotation information in complex engineering drawings, resulting in the production cycle of inspection benchmarks being several days long, which seriously restricts the production rhythm; (2) Data accuracy is difficult to guarantee: manual operation is prone to omissions, duplicate entries and coordinate positioning deviations, which makes it impossible for the inspection benchmark to achieve pixel-level accurate correspondence with the original drawings, increasing the quality risk; (3) Low level of intelligence in standard matching: There is a lack of automatic matching mechanism based on semantic understanding. Manually consulting standards is time-consuming and prone to errors, making it difficult to adapt to the ever-changing industry standard system; (4) Insufficient output standardization: The reliance on personal experience leads to inconsistent document formats, which hinders the digital accumulation of enterprise quality knowledge; (5) Lack of human-machine collaboration mechanism: Existing tools lack effective conflict detection and dynamic decision-making mechanisms. Automatic identification results and manual correction opinions cannot be intelligently integrated, making it difficult to form the complementary advantages of 'machine efficiency + human precision'. (6) Discontinuity in full-process status tracking: There is a lack of project lifecycle management based on state machine. Data is fragmented in each stage of annotation, review and archiving, making it impossible to achieve real-time status synchronization and version control under multi-role collaboration.

[0005] Therefore, the existing technology is a technical solution that can automatically identify the annotation information of engineering drawings, support human-computer collaborative annotation, realize project management and status tracking, and automatically generate inspection benchmark reports. Summary of the Invention

[0006] In view of this, the purpose of this invention is to provide a human-machine collaborative intelligent annotation and inspection benchmark generation method and system for engineering drawings. This method adopts a human-machine collaborative annotation mechanism that integrates OCR automatic detection with dynamic decision-making, which solves the technical problems of low efficiency and easy error in manual annotation in the traditional engineering drawing inspection benchmark production.

[0007] To achieve the above objectives, the present invention provides the following technical solution: The present invention provides a human-computer collaborative method for intelligent annotation and inspection benchmark generation of engineering drawings, comprising the following steps: Project creation steps: Create an inspection benchmark project, which includes a project identifier, engineering drawing files, a set of annotation information, and project status; Automatic detection steps: The engineering drawings are preprocessed, and the dimension annotation information, geometric tolerance information, surface roughness information and technical requirement text information in the drawings are extracted by the OCR automatic detection model. The coordinate position of each annotation information in the drawings is determined, and a confidence score is generated for each identified annotation information. Supplementary steps: Receive supplementary annotation information input by the user through the graphical interface; The intelligent collaborative fusion steps are as follows: merging the automatically identified annotation information with the supplementary annotation information; detecting conflicts between the two; when a conflict is detected, based on the confidence score of the automatically identified annotation, the role and permission level of the user initiating the supplementary annotation, and the historical operation accuracy, automatically selecting the adoption result or marking it as a pending conflict requiring a higher-level reviewer's decision according to a preset dynamic decision-making model; recording conflict details and the final resolution result to the conflict log database, and synchronizing the conflict sample to the model training sample library for optimizing the OCR automatic detection model; Project Display and Status Control Steps: The project list is displayed in a card-style layout. Project statuses include "Under Labeling," "Under Confirmation," and "Completed." Status transitions trigger the following technical constraints: When a project is in the "Under Labeling" state, the system prohibits the execution of standard matching steps; when the project status changes from "Under Labeling" to "Under Confirmation," the system automatically locks the original annotation layer in the engineering drawing file as read-only and creates a separate review and approval annotation layer for review operations; when the project status changes to "Completed," the system calculates and associates a unique data integrity check code with the current version of the engineering drawing file and the generated inspection benchmark. Standard matching steps: Based on the type and value of the annotation information, query the preset inspection standard database and automatically match the corresponding target inspection tolerance, inspection frequency and sampling plan; Document generation steps: Based on the annotation information, coordinate positions, and matching inspection standards, generate a structured inspection benchmark document.

[0008] Furthermore, the dynamic decision-making model in the intelligent collaborative fusion step executes the following logic: If the confidence score of the automatically identified label is higher than the preset first confidence threshold, and the role permission level of the supplementary labeling user is lower than the preset permission threshold, the system automatically adopts the automatically identified label as the first adoption result, and pushes the conflict and the first adoption result to the reviewing user with a permission level higher than the permission threshold for final confirmation. Otherwise, the system will automatically adopt the supplementary annotation information as the second adoption result.

[0009] Furthermore, the step of synchronizing conflicting samples to the model training sample library for optimizing the OCR automatic detection model specifically includes: Periodically extract all conflict samples whose final resolution results have been adopted from the conflict log database; The supplementary annotation information extracted from each conflict sample is used as the correct answer to be labeled, and together with the corresponding original engineering drawing area image, they form a new training data pair. The new training data is used to incrementally train the OCR automatic detection model.

[0010] Furthermore, in the project display and status control steps, the calculation and association of a unique data integrity check code specifically includes: A hash algorithm is used to calculate the binary data stream of the engineering drawing file and the binary data stream of the inspection benchmark document, respectively, to obtain a first hash value and a second hash value; The project identifier, current timestamp, first hash value, and second hash value are concatenated, and the hash value is calculated again to generate the data integrity verification code; Write the data integrity check code into a designated area of ​​the inspection benchmark document and store it in association with the project's record in the database.

[0011] Furthermore, in the project display and status control steps, the creation of an independent review and annotation layer for review operations specifically includes: In response to the project status entering the confirmation phase, a new layer is created in the data structure of the engineering drawing file, parallel to the original annotation layer, as the review and annotation layer; The review and annotation layer allows reviewing users to add annotation graphics, annotation text, and review comments, and all operations are recorded and associated with the identity of the operating user. The content of the evaluation and annotation layer can be cleared or retained when the project status reverts to the annotation, but this does not affect the read-only status of the original annotation layer.

[0012] Furthermore, the standard matching steps specifically include: Semantic analysis is performed on the annotation information to extract feature parameters including nominal size, tolerance grade, and precision grade; The feature parameters are matched with the standard entries in the test standard database using vector similarity to obtain a matching score. When the matching score is lower than the preset matching threshold, a manual matching prompt is generated, and the matching algorithm weight for similar labeled information is adjusted based on the user's historical adoption selection records.

[0013] Furthermore, in the automatic detection step, the extraction of information through the OCR automatic detection model specifically includes: A multi-task deep learning network structure is adopted, which includes a shared feature extraction backbone network, as well as parallel dimension annotation detection heads, geometric tolerance detection heads, surface roughness detection heads, and technical requirement text detection heads; The technical requirement text detection head uses an attention-based sequence-to-sequence model to identify and transcribe multiple lines of text within the technical requirement box in the drawing.

[0014] The present invention provides a human-computer collaborative intelligent annotation and inspection benchmark generation system for engineering drawings, comprising: The project management module is configured to create inspection benchmark projects, which include project identifiers, engineering drawing files, annotation information sets, and project status. The OCR automatic detection module is configured to perform image preprocessing on the engineering drawings, extract dimension annotation information, geometric tolerance information, surface roughness information and technical requirement text information from the drawings through the OCR automatic detection model, determine the coordinate position of each annotation information in the drawings, and generate a confidence score for each identified annotation information. The annotation module is configured to receive supplementary annotation information input by the user through a graphical interface; The intelligent collaborative fusion module is configured to merge the automatically identified annotation information with the supplementary annotation information, detect conflicts, and automatically process or mark pending conflicts according to the confidence score, user role permission level and historical operation accuracy, according to the preset dynamic decision model, record conflict logs, and synchronize conflict samples to the model training sample library. The project display and status control module is configured to display the project list in a card layout and perform the following status controls: when a project is in the annotation stage, standard matching is prohibited; when the project status changes to confirmation, the original annotation layer of the engineering drawing is locked as read-only and an independent review annotation layer is created; when the project status changes to completed, the data integrity check code of the engineering drawing and the inspection benchmark is calculated and associated. The standard matching module is configured to query a preset inspection standard database based on the type and value of the annotation information, and automatically match the corresponding target inspection tolerance, inspection frequency and sampling plan. The document generation module is configured to generate a structured inspection benchmark document based on the annotation information, coordinate position, and matching inspection standards.

[0015] Furthermore, the intelligent collaborative fusion module includes: The conflict detection unit is configured to calculate the positional overlap and content difference between the automatically identified annotations and the supplementary annotations; The intelligent decision-making unit is configured to run the dynamic decision-making model and output decision results that are automatically adopted, marked as pending, or adopted based on the confidence score, user permissions, and historical accuracy. The model optimization interface unit is configured to filter resolved conflict samples, format them, and send them to the model training sample library to drive the optimization of the OCR automatic detection model.

[0016] Furthermore, the project display and status control module includes: The state machine management unit is configured to manage the transition logic and triggering conditions between three states: labeling, confirmation, and completion. The layer control unit is configured to lock and unlock the original annotation layer and create and destroy the evaluation annotation layer during state transitions. The integrity verification unit is configured to call a hash algorithm to generate the data integrity verification code when the project is completed, and embed it into the document and database records.

[0017] The beneficial effects of this invention are as follows: This invention provides a human-machine collaborative intelligent annotation and inspection benchmark generation method and system for engineering drawings. The method includes: creating an inspection benchmark item and acquiring the engineering drawing file to be processed; intelligently annotating the drawing using an OCR automatic detection model to identify dimensions, geometric tolerances, surface roughness, and technical requirements; receiving user-supplemented annotation information to achieve collaborative integration of automatic recognition and annotation; performing conflict detection and merging on the annotation information; constructing a card-style item list display, supporting status management and time filtering; and automatically generating an inspection benchmark containing tolerances, inspection frequency, and sampling plan based on the annotation information and matching inspection standards. This application solves the technical problems of low efficiency and error-prone manual annotation in the traditional engineering drawing inspection benchmark creation process by combining AI automatic recognition with human-machine collaborative annotation. It achieves automation, standardization, and intelligent project management of drawing annotation, improving the efficiency and accuracy of quality control, as detailed below: 1. End-to-end automation from drawings to benchmark documents has been achieved: By replacing manual recognition with OCR multi-task deep learning network, combined with automatic standard matching and automatic document generation, the production cycle of inspection benchmark documents has been shortened from 'days' to 'minutes', significantly improving response speed.

[0018] 2. A highly reliable human-machine collaborative verification closed loop has been constructed: an original dynamic decision-making model based on confidence level, user permissions and historical accuracy has been created, which not only gives full play to the efficiency of AI, but also retains the authority of human judgment, and systematically reduces the labeling error rate.

[0019] 3. Digital management and control of the entire project lifecycle has been achieved: The state machine-driven layer locking and review and annotation mechanism solves the version conflict problem in multi-person collaboration and ensures the integrity and traceability of data.

[0020] 4. Possesses continuous self-evolving model optimization capabilities: Automatically builds a training sample library through conflict logs, and continuously optimizes the OCR model using incremental learning, enabling the system to have self-evolving characteristics where accuracy improves with increasing usage.

[0021] These beneficial effects work together to provide a complete intelligent solution for the creation of engineering drawing inspection benchmarks from five dimensions: efficiency, quality, management, knowledge assets, and technological evolution, significantly improving the overall level of quality control in the manufacturing industry.

[0022] The above and other objects, advantages, and features of the present invention will be more fully set forth and demonstrated through the following detailed description of specific embodiments in conjunction with the accompanying drawings. Those skilled in the art, upon referring to the following detailed description and the accompanying drawings, will be able to better understand and realize the above advantages of the present invention. Other objects, features, and advantages of the present invention will become clearer after being described in detail in the detailed description section in conjunction with the accompanying drawings. Attached Figure Description

[0023] To make the objectives, technical solutions, and beneficial effects of this invention clearer, the following drawings are provided for illustration.

[0024] Figure 1 A flowchart illustrating the method for intelligent annotation and inspection benchmark generation of engineering drawings in a human-machine collaborative manner; Figure 2 A schematic diagram for project display and status management; Figure 3 This is a schematic diagram of the interface for a newly created project; Figure 4 This is a schematic diagram of the OCR automatic detection process; Figure 5 This is a schematic diagram of the reference book generated after automatic OCR detection. Detailed Implementation

[0025] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can better understand and implement the present invention. However, the embodiments described are not intended to limit the present invention. Example 1

[0026] like Figure 1 As shown in the figure, the human-computer collaborative intelligent annotation and inspection benchmark generation method for engineering drawings provided in this embodiment is characterized by the following steps: Project creation steps: Create an inspection benchmark project, which includes a project identifier, engineering drawing files, a set of annotation information, and project status; Automatic detection steps: The engineering drawings are preprocessed, and the dimension annotation information, geometric tolerance information, surface roughness information and technical requirement text information in the drawings are extracted by the OCR automatic detection model. The coordinate position of each annotation information in the drawings is determined, and a confidence score is generated for each identified annotation information. Supplementary steps: Receive supplementary annotation information input by the user through the graphical interface; The supplementary steps in this embodiment can be done manually, or by automatically calling pre-stored annotation information for supplementation, or by other methods to compensate and improve the annotation information. The intelligent collaborative fusion steps are as follows: merging the automatically identified annotation information with the supplementary annotation information; detecting conflicts between the two; when a conflict is detected, based on the confidence score of the automatically identified annotation, the role and permission level of the user initiating the supplementary annotation, and the historical operation accuracy, automatically selecting the adoption result or marking it as a pending conflict requiring a higher-level reviewer's decision according to a preset dynamic decision-making model; recording conflict details and the final resolution result to the conflict log database, and synchronizing the conflict sample to the model training sample library for optimizing the OCR automatic detection model; Project Display and Status Control Steps: The project list is displayed in a card-style layout. Project statuses include "Under Labeling," "Under Confirmation," and "Completed." Status transitions trigger the following technical constraints: When a project is in the "Under Labeling" state, the system prohibits the execution of standard matching steps; when the project status changes from "Under Labeling" to "Under Confirmation," the system automatically locks the original annotation layer in the engineering drawing file as read-only and creates a separate review and approval annotation layer for review operations; when the project status changes to "Completed," the system calculates and associates a unique data integrity check code with the current version of the engineering drawing file and the generated inspection benchmark. Standard matching steps: Based on the type and value of the annotation information, query the preset inspection standard database and automatically match the corresponding target inspection tolerance, inspection frequency and sampling plan; Document generation steps: Based on the annotation information, coordinate positions, and matching inspection standards, generate a structured inspection benchmark document.

[0027] In this embodiment, the annotation information set and confidence score generated by the automatic detection step are stored in the project annotation information set in structured data form, triggering the intelligent collaborative fusion step. The collaborative fusion step reads the automatically identified and supplementary annotations from the project annotation information set, performs conflict detection and merging, and writes the finally confirmed annotation information into the "Confirmed Annotations" partition of the project annotation information set. The standard matching step monitors data changes in this partition, reads the confirmed annotation information and its type, value, and other features, and uses this as input to invoke the standard matching process.

[0028] In the intelligent collaborative fusion step described in this embodiment, the dynamic decision-making model executes the following logic: If the confidence score of the automatically identified label is higher than the preset first confidence threshold, and the role permission level of the supplementary labeling user is lower than the preset permission threshold, the system automatically adopts the automatically identified label as the first adoption result, and pushes the conflict and the first adoption result to the reviewing user with a permission level higher than the permission threshold for final confirmation. Otherwise, the system will automatically adopt the supplementary annotation information as the second adoption result.

[0029] The method described in this embodiment for synchronizing conflict samples to the model training sample library to optimize the OCR automatic detection model specifically includes: Periodically extract all conflict samples whose final resolution results have been adopted from the conflict log database; The supplementary annotation information extracted from each conflict sample is used as the correct answer to be labeled, and together with the corresponding original engineering drawing area image, they form a new training data pair. The OCR automatic detection model adopts an end-to-end network architecture of 'backbone feature extraction + multi-task detection head', specifically including: 1. Backbone: An improved ResNet-50 is used as the feature extraction backbone, and a Deformable Convolution module is introduced to adapt to the annotation features of different scales and tilt angles in engineering drawings; 2. Neck Network: Employs a Feature Pyramid Network (FPN) structure, fusing shallow high-resolution features with deep semantic features to enhance the detection capability of small-sized annotations and complex geometric tolerance frames; 3. Multi-task detection heads: Inspection Head A (Target Inspection): For dimension lines, geometric tolerance frames, and roughness symbols, it adopts an Anchor-free FCOS inspection architecture to directly regress the center point coordinates and length and width dimensions of the marked area; Detection Head B (Text Recognition): For text and size values ​​that meet technical requirements, a CRNN (Convolutional Recurrent Neural Network) architecture is adopted. That is, CNN extracts sequence features, bidirectional LSTM (Long Short-Term Memory Network) processes temporal dependencies, and finally uses CTC (Connectionist Temporal Classification) loss function to transcribe text of indefinite length without the need for pre-segmentation of characters. 4. Training Data and Augmentation Strategies: Data source: The model training dataset includes publicly available engineering drawing datasets (such as SCUT-EngDoc) and anonymized historical drawings from within enterprises, with a total sample size of no less than 50,000. Data augmentation: During training, random rotation (±15° to simulate paper scanning tilt), perspective transformation (to simulate shooting distortion), Gaussian noise addition (to simulate noise in scanned parts), and random adjustment of brightness and contrast are performed in real time to improve the model's generalization ability under complex imaging conditions.

[0030] In the project display and status control steps described in this embodiment, the calculation and association of a unique data integrity check code specifically includes: A hash algorithm is used to calculate the binary data stream of the engineering drawing file and the binary data stream of the inspection benchmark document, respectively, to obtain a first hash value and a second hash value; The project identifier, current timestamp, first hash value, and second hash value are concatenated, and the hash value is calculated again to generate the data integrity verification code; Write the data integrity check code into a designated area of ​​the inspection benchmark document and store it in association with the project's record in the database.

[0031] In the project display and status control steps described in this embodiment, the creation of an independent review and annotation layer for review operations specifically includes: In response to the project status entering the confirmation phase, a new layer is created in the data structure of the engineering drawing file, parallel to the original annotation layer, as the review and annotation layer; The review and annotation layer allows reviewing users to add annotation graphics, annotation text, and review comments, and all operations are recorded and associated with the identity of the operating user. The content of the evaluation and annotation layer can be cleared or retained when the project status reverts to the annotation, but this does not affect the read-only status of the original annotation layer.

[0032] The standard matching steps described in this embodiment specifically include: Semantic analysis is performed on the annotation information to extract feature parameters including nominal size, tolerance grade, and precision grade; The feature parameters are matched with the standard entries in the test standard database using vector similarity to obtain a matching score. When the matching score is lower than the preset matching threshold, a manual matching prompt is generated, and the matching algorithm weight for similar labeled information is adjusted based on the user's historical adoption selection records.

[0033] In the automatic detection steps described in this embodiment, the extraction of information through the OCR automatic detection model specifically includes: A multi-task deep learning network structure is adopted, which includes a shared feature extraction backbone network, as well as parallel dimension annotation detection heads, geometric tolerance detection heads, surface roughness detection heads, and technical requirement text detection heads; The technical requirement text detection head uses an attention-based sequence-to-sequence model to identify and transcribe multiple lines of text within the technical requirement box in the drawing.

[0034] The human-computer collaborative intelligent annotation and inspection benchmark generation system for engineering drawings provided in this embodiment is characterized by including: The project management module is configured to create inspection benchmark projects, which include project identifiers, engineering drawing files, annotation information sets, and project status. The OCR automatic detection module is configured to perform image preprocessing on the engineering drawings, extract dimension annotation information, geometric tolerance information, surface roughness information and technical requirement text information from the drawings through the OCR automatic detection model, determine the coordinate position of each annotation information in the drawings, and generate a confidence score for each identified annotation information. The annotation module is configured to receive supplementary annotation information input by the user through a graphical interface; The intelligent collaborative fusion module is configured to merge the automatically identified annotation information with the supplementary annotation information, detect conflicts, and automatically process or mark pending conflicts according to the confidence score, user role permission level and historical operation accuracy, according to the preset dynamic decision model, record conflict logs, and synchronize conflict samples to the model training sample library. The project display and status control module is configured to display the project list in a card layout and perform the following status controls: when a project is in the annotation stage, standard matching is prohibited; when the project status changes to confirmation, the original annotation layer of the engineering drawing is locked as read-only and an independent review annotation layer is created; when the project status changes to completed, the data integrity check code of the engineering drawing and the inspection benchmark is calculated and associated. The standard matching module is configured to query a preset inspection standard database based on the type and value of the annotation information, and automatically match the corresponding target inspection tolerance, inspection frequency and sampling plan. The document generation module is configured to generate a structured inspection benchmark document based on the annotation information, coordinate position, and matching inspection standards.

[0035] The intelligent collaborative fusion module described in this embodiment includes: The conflict detection unit is configured to calculate the positional overlap and content difference between the automatically identified annotations and the supplementary annotations; The intelligent decision-making unit is configured to run the dynamic decision-making model and output decision results that are automatically adopted, marked as pending, or adopted based on the confidence score, user permissions, and historical accuracy. The model optimization interface unit is configured to filter resolved conflict samples, format them, and send them to the model training sample library to drive the optimization of the OCR automatic detection model.

[0036] The project display and status control module described in this embodiment includes: The state machine management unit is configured to manage the transition logic and triggering conditions between three states: labeling, confirmation, and completion. The layer control unit is configured to lock and unlock the original annotation layer and create and destroy the evaluation annotation layer during state transitions. The integrity verification unit is configured to call a hash algorithm to generate the data integrity verification code when the project is completed, and embed it into the document and database records. Example 2

[0037] This embodiment provides a modular, human-computer collaborative intelligent annotation and verification standard generation system for engineering drawings, corresponding to the above-described method. This system decomposes the functions of the method into clear and independent software modules. These modules work collaboratively to achieve full automation and intelligence throughout the entire process from drawing upload to standard form generation. The system can be deployed on a server or cloud platform and provides services to clients (such as web browsers or desktop applications) via a network.

[0038] The system includes the following core functional modules: 1. Project Management Module The project management module serves as the system's entry point and process controller, responsible for the full lifecycle management of the benchmark project. This module is configured as follows: Project Creation: Receives requests from users via the client and creates new inspection benchmark projects. During creation, a unique project identifier (such as a UUID) is generated, associated with the uploaded engineering drawing file, an empty annotation information set is initialized, and the project status is set to the initial state "Annotating".

[0039] Project storage and retrieval: Persistently store project information (including project identifier, drawing file storage path, project status, creation time, creator, etc.) in the database module.

[0040] State Coordination: As a state machine, it updates the project status ("Under Labeling", "Under Confirmation", "Completed") based on signals from other modules (such as the Collaboration and Integration Module and the State Management Module), and triggers the corresponding subsequent processes (such as notifying the auditor when the status changes to "Under Confirmation").

[0041] 2. OCR Automatic Detection Module The OCR automatic detection module is the core of the system's intelligent recognition, responsible for automatically extracting structured annotation information from drawing images. This module further includes the following sub-modules: Image preprocessing submodule: Preprocesses received engineering drawings (such as PDF, JPG, PNG formats). Specific execution steps include: 1. Grayscale conversion: The color image is converted to a grayscale image using the weighted average formula Gray=0.299R+0.587G+0.114B.

[0042] 2. The Otsu adaptive thresholding algorithm is used for binarization to distinguish the foreground (lines, text) from the background.

[0043] 3. Apply the medium-range filtering algorithm to denoise the binarized image and remove isolated noise points.

[0044] 4. Perform geometric correction by matching feature points and perspective transformation to eliminate tilt and distortion caused by scanning or shooting.

[0045] The geometric correction step in the image preprocessing specifically executes the following algorithm: 1. Edge detection and contour extraction: The Canny operator is applied to the binarized image for edge detection, and the findContours algorithm is used to extract the maximum outer contour of the image and fit it into a quadrilateral bounding box; 2. Calculation of perspective transformation matrix: Define the coordinates Pdst of the four vertices of the target standard rectangle (usually A4 or A3 standard paper scale). The coordinates of the four vertices of the extracted image contour are labeled Psrc; Find the 3×3 perspective transformation matrix M such that Pdst = M×Psrc; 3. Affine Transformation Correction: If the detected tilt angle θ of the drawing is less than 5° and there is no obvious perspective distortion, it is simplified to an affine transformation, and a rotation matrix R is constructed: OCR Recognition Submodule: Integrates a pre-trained dedicated OCR automatic detection model to recognize pre-processed drawing images. This model adopts a multi-task learning architecture and includes four parallel and dedicated detection sub-models: Dimensioning detection sub-model: Based on object detection networks such as Faster R-CNN or YOLO, it locates dimension lines and dimension boundaries in drawings, and uses CRNN (convolutional recurrent neural network) to identify associated dimension values, while also parsing the directional attributes of the dimensions.

[0046] Geometric tolerance detection sub-model: detects geometric tolerance frames and identifies tolerance item symbols (such as ⊥ for perpendicularity) and tolerance values ​​within them.

[0047] Surface roughness detection sub-model: Identifies surface roughness symbols (such as hook symbols) and the Ra or Rz values ​​next to them.

[0048] Technical Requirements Text Detection Sub-model: Detects the text area under the technical requirements title in the drawing, and uses a Transformer-based text recognition model to recognize the entire text and extract key information (such as quenching HRC45-50).

[0049] Coordinate positioning submodule: For each identified labeled area, the center point coordinates (xc, yc) are calculated using its detection box as the label anchor point. Through a calibration matrix between the drawing's reference coordinate system (e.g., the lower left corner as the origin) and the image pixel coordinate system, all label anchor points are uniformly transformed to the drawing coordinate system, achieving precise coordinate positioning.

[0050] 3. Manual annotation module The manual annotation module provides a user interface for supplementing or correcting automatic recognition results. This module is configured as follows: The client provides graphical tools such as point selection and box selection on the drawing view, allowing users to select the annotation location.

[0051] Provide form input boxes for users to enter or select annotation content, annotation type (dimensions, geometric tolerances, etc.), and the inspection standards they wish to associate.

[0052] The manually added annotation information (including location coordinates, content, and type) entered by the user is sent to the collaborative fusion module on the server for processing.

[0053] 4. Collaborative Integration Module The collaborative fusion module is key to achieving human-machine collaboration, responsible for merging automatic and manual annotations and intelligently resolving conflicts. This module specifically includes the following logical units: Position overlap calculation unit: For the same drawing area, calculate the intersection-overall ratio (IoU) of the automatic annotation rectangle Rauto and the manual annotation rectangle Rmanual as the position overlap degree. Overlap=Area(Rauto∩Rmanual) / Area(Rauto∪Rmanual); Among them, Overlap represents the positional overlap between automatically recognized annotations and manually supplemented annotations, that is, the proportion of overlap between the areas occupied by the two on the drawing, with a value range of [0,1]; Area() represents the area function for calculating a certain area, in the drawing coordinate system, with the unit being square pixels or square millimeters; Rauto represents the rectangular bounding box of the automatically recognized annotation, that is, the smallest bounding rectangle of the OCR automatically detected model for a certain annotation information; Rmanual represents the rectangular bounding box of the manually supplemented annotation, that is, the annotation area determined by the user through point selection or box selection operations on the graphical interface; Conflict determination unit: A preset overlap threshold (e.g., 0.6) is used. When the calculated overlap is greater than this threshold, it is determined that there is a potential conflict between the two labels in terms of position.

[0054] Content comparison unit: For annotation pairs determined to be in positional conflict, further compare their annotation content, annotation type and associated inspection criteria to identify the specific conflict type (such as inconsistent content or mismatched type).

[0055] Conflict resolution unit: Following a preset, simple conflict resolution strategy, the system uses manually entered information to overwrite or replace automatically identified conflict information, based on manually labeled information.

[0056] Log recording unit: Detailed information about each conflict event, including conflict timestamp, drawing coordinates, conflict type, automatically annotated original content, manually annotated new content, and resolution result (adopted manual annotation), is structured and recorded in the conflict log table of the database module.

[0057] 5. Project Showcase Module The project showcase module is responsible for the visual presentation of the system's main page, providing an intuitive view of project management. This module specifically includes: Project filtering unit: Retrieves basic information of all projects from the database and filters them in real time based on the filtering conditions (status, time range, keywords) selected by the user on the front end.

[0058] Card Layout Unit: Displays the filtered item list using a responsive card layout. Each screen displays 10 item cards by default, and supports infinite vertical scrolling.

[0059] Card content unit: Each card, dynamically rendered, contains the following elements: Status labels: prominently displayed as in progress (orange), confirming (blue), or completed (green).

[0060] Drawing thumbnails: Automatically generated small preview images of drawings.

[0061] Project information: Project name, creation time, and progress bar (e.g., 80% complete).

[0062] Interactive response unit: Listens for user click events. Clicking the drawing thumbnail will redirect to the detailed annotation editing page for that project; clicking the "New Project" button will bring up the project creation form.

[0063] 6. Status Management Module The status management module works closely with the project management module, responsible for the logical control and access management of project status transitions. This module is configured as follows: Status transition rules: Define the conditions for automatic or manual status transition. For example, when the system detects that the automatic detection of a project has been completed and there are no new manual annotations or unresolved conflicts within a certain period of time, the status can be automatically updated from "Annotating" to "Confirming" or after confirmation by the creator.

[0064] In the status management module, the trigger condition for automatically changing the project status from "Annotating" to "Confirming" is configured as follows: 1. Basic completion indicator: The OCR automatic detection module has completed the full image scan, and the number of initial annotation items generated, Nauto, is ≥ 1; 2. Silent Time Window: The system detects that within the most recent Tsilent=30 minutes (configurable), there are no records of any user manually adding, modifying, or deleting annotations for this item; 3. Conflict clearing condition: The conflict status between all automatic and manual annotations in the current project is 'resolved', and the number of pending conflicts Nconflict=0; 4. Confidence threshold constraint: If no manual intervention is performed on the project, the system requires the average confidence score Scoreavg of all automatically labeled items to be ≥0.85 (i.e., 85%) in order to trigger automatic workflow; if Scoreavg<0.85, the system will remain in the "labeling in progress" state and send a 'low confidence warning' to notify the labeler to intervene. 5. Quantity threshold exception: For large and complex drawings, if the total number of annotation items Ntotal>200, the silent time window will be automatically extended to Tsilent=2 hours to prevent accidental transfer due to short breaks by users.

[0065] Tsilent represents the silent time window, which is the length of time during which the system waits without user interaction before determining whether a project can automatically enter the next state.

[0066] Scoreavg: Represents the average confidence score of all automatically recognized annotations. It is obtained by calculating the arithmetic mean of the confidence scores (usually 0~1 or 0%~100%) generated by the OCR automatic detection model for each recognized annotation.

[0067] Ntotal: Represents the total number of annotations in the current project, including the sum of automatically recognized annotations and manually added annotations.

[0068] Access control: Configure different operation permissions based on user roles (creator, annotator, reviewer). For example, only reviewers have the right to change the status from "confirming" to "completed"; annotators cannot delete projects.

[0069] State synchronization: When the project state changes, all collaborating clients are notified in real time via WebSocket or polling mechanism to ensure consistency of multi-user views.

[0070] 7. Standard Matching Module The standard matching module is responsible for intelligently matching the verification criteria for each annotation item. This module is configured as follows: Semantic analyzer: Parses the labeled text. For example, for the dimension label Φ50±0.1, it extracts the nominal size 50mm and the tolerance ±0.1mm as feature parameters.

[0071] Knowledge Base Query Engine: Connects to the inspection standards database (as part of the database module). This database stores various inspection specifications, including national standards, industry standards, and enterprise standards. The query engine uses feature parameters for fuzzy matching. For example, for a shaft dimension of Φ50±0.1, it queries the GB / T1800 tolerance standard library for the matching accuracy level.

[0072] The construction and retrieval of the aforementioned testing standard database adopts an architecture based on RAG (Retrieval Enhanced Generation) technology, and the specific implementation is as follows: 1. Knowledge base construction: Data source: Import PDF / Word documents of national standards such as GB / T, ISO, and ASME, as well as enterprise internal control standards; Slicing: The standard document is semantically sliced ​​by chapter and clause using the LangChain framework, with each slice being 500-800 characters long while preserving contextual relationships; Vectorized storage: The text slices are converted into 768-dimensional vectors by calling a Text-Embedding model (such as BGE-M3) and stored in a Milvus or Faiss vector database to create a 'standard clause vector index'. 2. Hybrid retrieval algorithm: Step 1 (Vector Retrieval): The semantic features of the labeled information (such as 'shaft diameter 50 tolerance H7') are converted into query vectors. Approximate nearest neighbor search (ANN) is performed in the vector database to recall the top-5 similar standard terms. The similarity threshold is set to 0.75. Step 2 (Keyword Filtering): Use Elasticsearch to filter the recall results using metadata (e.g., limit to 'machinery industry', 'versions after 2020') to ensure the timeliness and applicability of the standards; 3. Reordering and Generation: A Cross-Encoder reordering model is introduced to refine the candidate terms and select the unique criterion with the highest matching degree. If the highest matching score is below 0.6, the system determines it as 'no clear standard', triggers the manual matching process, and stores the question-answer pair in the 'sample library to be labeled' for subsequent model fine-tuning.

[0073] Matching Decision Maker: When multiple possible standards are found, the most suitable one is selected based on preset priority rules (e.g., national standards take precedence over enterprise standards). If no matching result is found, a prompt is generated, allowing the user to manually select from the list or enter a new standard. The user's manual selection is recorded and used to optimize subsequent matching algorithms.

[0074] 8. Document Generation Module The document generation module is the system's output terminal, responsible for generating the final deliverables. This module is configured as follows: Template Engine: Includes built-in Word or Excel templates for inspection standard sheets in various formats. The templates predefine layout styles, table structures (including fields such as serial number, inspection item, drawing area, inspection standard, inspection frequency, sampling plan, inspection method, and remarks) and image placeholders.

[0075] Content Populator: Based on the project ID, retrieve all confirmed annotation information and their matching inspection criteria from the database. Fill the annotation content into the inspection item column of the table, and fill the matching criteria into the inspection criteria column. Simultaneously, generate a drawing preview with visual bubble annotations (bubble numbers are associated with table numbers).

[0076] Document exporter: Combines the completed template into a final document, supporting one-click export as .docx, .xlsx, or .pdf format for users to download and use.

[0077] 9. Database Module The database module is the foundation of the system's data and can be implemented using a relational database (such as MySQL) for persistent storage. Project Information Table: Stores project metadata.

[0078] Labeling Information Table: Stores all automatically identified and manually supplemented label details and their coordinates.

[0079] Inspection Standards Library Table: Stores structured inspection standards knowledge.

[0080] Conflict Log Table: Stores all conflict records generated during the collaborative integration process.

[0081] User and Permissions Table: Stores user account information and role permission configurations.

[0082] The system workflow provided in this embodiment is as follows: Users access the system through a client, and the project management module displays a project list. After a user creates a new project and uploads drawings, the OCR automatic detection module starts and completes intelligent annotation. Users can verify and supplement the annotation through the manual annotation module. The collaborative fusion module merges information and handles conflicts in the background. The project display module reflects the project progress in real time. When annotation is completed, the status management module pushes the project into the confirmation stage. After the auditor approves it, the standard matching module and the document generation module automatically collaborate to generate and export a complete inspection benchmark document. Throughout the process, the modules share data through the database module and communicate through well-defined interfaces, jointly realizing the automation, collaboration, and standardization of engineering drawing annotation and inspection benchmark generation. Example 3

[0083] This embodiment further illustrates the method with specific illustrations and implementation details. This method is implemented collaboratively by a server and a client (such as a web browser or desktop application). Its core objective is to transform the traditional, error-prone, manual process of creating inspection standards into an automated, collaborative, and standardized intelligent process. Specifically, it includes the following seven interrelated core steps, which can be executed sequentially, cyclically, or in parallel depending on the project status. Detailed explanation of each step follows: Step S101: Project creation steps.

[0084] The system receives requests from users (such as quality engineers) via the client and creates a new inspection benchmark project. This project, as an independent work unit, is uniquely identified and managed within the system. Specifically: Project Identifier: The system automatically generates a globally unique project ID (e.g., using the UUID algorithm) to track the project in the database and in all subsequent processes.

[0085] Engineering drawing files: Users upload engineering drawing files to be processed via the client. The system supports multiple formats, including but not limited to raster image formats such as PDF, JPG, and PNG, and can integrate conversion tools to be compatible with CAD vector formats such as DWG and DXF. After uploading, the files are stored in the server's secure storage space, and an access link is generated.

[0086] Annotation information collection: Initialize an empty collection (such as a table in a database or a JSON object) to store all annotation information associated with the project in subsequent steps.

[0087] Project Status: The system initially sets the project status to "Under Labeling". Status is a key variable driving the entire process, and its value will be dynamically updated to "Under Confirmation" or "Completed" in subsequent steps according to rules.

[0088] Step S102: Automatic detection step.

[0089] This step marks the beginning of automation, utilizing artificial intelligence to replace the initial manual identification work. The server-side processing engine executes the following sub-steps: 1. Image preprocessing: To improve the accuracy of OCR recognition, the uploaded engineering drawing images are first preprocessed.

[0090] Grayscale conversion: Converting color drawings into grayscale images simplifies subsequent processing.

[0091] Binarization: Adaptive thresholding algorithms (such as the Otsu algorithm) are used to convert grayscale images into black and white images, highlighting lines and text.

[0092] Noise Reduction and Correction: Filtering algorithms are applied to remove noise introduced by scanning, and geometric correction is performed to eliminate distortions such as tilting and warping of the drawing.

[0093] 2. OCR Intelligent Recognition: The pre-processed image is input into a pre-trained OCR automatic detection model for recognition. This model is a multi-task neural network based on deep learning, internally consisting of multiple dedicated detection heads: Dimensioning inspection head: Responsible for locating and identifying linear dimensions, angular dimensions, diameter dimensions, etc. in drawings, and outputting dimension values ​​and their positions.

[0094] Geometric tolerance inspection head: responsible for identifying geometric tolerance frames and interpreting tolerance symbols (such as position tolerance ⌖, parallelism ∥) and tolerance values ​​within them.

[0095] Surface roughness detection head: responsible for identifying roughness symbols and their grade values ​​(such as Ra3.2).

[0096] Technical Requirements Text Detection Head: Employs text detection and recognition technologies (such as CRNN or Transformer-based models) to extract all text information within the technical requirements area.

[0097] 3. Coordinate Positioning: For each successfully identified annotation object, the model outputs its bounding box. The system calculates the coordinates of the center point of the bounding box and maps it to the global coordinate system of the original engineering drawing through coordinate system transformation, thereby assigning a precise drawing position to each annotation.

[0098] Step S103: Manually complete the steps.

[0099] This step provides a channel for manual intervention and correction, ensuring the system's flexibility and the accuracy of the final result. On the client side, the system provides an interactive graphical interface: Users can specify the location where annotations need to be added or modified by clicking or selecting on the drawing view.

[0100] In the pop-up editing panel, users can enter or select annotation content (such as Φ25H7), annotation type (such as dimension and tolerance), and the inspection standard they wish to associate (such as GB / T1800.2-2020).

[0101] After the user submits the annotation information (including coordinates, content, type, and suggested standards), it is sent to the server. The detailed steps are as follows: Step S103A: Front-end interaction and data encapsulation In this step, the client determines the amount of data the user has entered. Figure 4 The different operation modes shown on the interface generate corresponding manually labeled data, which is then packaged according to a predefined data format and sent to the server.

[0102] When a user selects the single-point annotation mode and clicks on a location on the drawing, the front end picks up the pixel coordinates of that point and pops up the annotation editing panel. After the user enters the annotation content (such as Φ25H7) and selects the annotation type (such as dimensional tolerance) in the panel, the front end combines the coordinates, content, type, user identifier, and timestamp into an annotation record.

[0103] When a user selects the bounding box annotation mode, the front end records the coordinates of the top-left and bottom-right corners of the bounding box. The user can then input uniform annotation content for this area, and the front end generates annotation records containing the coordinate range of the area. For batch annotation mode, the front end identifies multiple independent annotation points within the bounding box area, generates multiple annotation records, and packages them into an array.

[0104] Before sending, the front end performs basic data validation to ensure that the content is not empty and the data type is valid.

[0105] Step S103B: Server Reception and Preprocessing After receiving the manually labeled data, the server first verifies the user's permissions and whether the current project status is "labeling in progress." If successful, the data is stored in a temporary labeling table. Simultaneously, using the coordinate system transformation matrix established in step S102-3, the pixel coordinates input from the front end are converted into coordinates in the unified coordinate system of the engineering drawings.

[0106] Step S103C: Trigger collaborative fusion Whenever the server successfully stores a manually labeled record, the intelligent collaborative fusion module is automatically triggered: it queries whether there are automatically detected and generated labels in the vicinity of the location (within a preset radius). If they exist, the conflict detection process in step S104 is initiated; if they do not exist, the manually labeled record is directly stored in the project label set, and the project labeling progress is updated.

[0107] Step S104: Collaborative integration step.

[0108] The server is responsible for integrating automatically recognized results with manual input. It performs intelligent merging and conflict management. 1. Data merging: Merge the automatically labeled set obtained in step S102 with the manually labeled set received in step S103 to form a unified labeled list.

[0109] 2. Conflict Detection: The system calculates the overlap (i.e., Intersection over Union) between automatically generated and manually generated annotations on the drawing. When the overlap exceeds a preset threshold (e.g., 0.5), it is identified as a potential conflict. The system further compares whether the content, type, or association standards of the two annotations are consistent.

[0110] In the collision detection step, the basis and value of the position overlap threshold are as follows: Calculation formula: The Intersection over Union (IoU) ratio is used as the overlap metric. IoU is an abbreviation for Intersection over Union, used in this embodiment to measure the degree of overlap between automatically and manually labeled areas on the drawing. Its value is equal to the ratio of the intersection area to the union area of ​​the two rectangles. Boxauto: Represents the bounding box of automatically identified labels, with the same meaning as Rauto. Boxmanual: Represents the bounding box of manually added labels, with the same meaning as Rmanual.

[0111] 3. Conflict Resolution and Logging: Based on preset rules (prioritizing manually labeled information), the system resolves detected conflicts. Simultaneously, it records detailed information about each conflict, including time, location, content from both parties, and resolution method, as a structured conflict log in the database. This log can be used for tracing, analysis, and subsequent optimization of the OCR model.

[0112] Step S105: Project presentation steps.

[0113] This step provides a global project management view, improving the efficiency of multi-project collaboration. The client's main interface features a modern UI design. Card-style layout: All inspection standard items are displayed flat in card format. Each card clearly displays: status label (distinguished by color for in progress / confirmation / completed), drawing thumbnail, project name, creation time, and progress percentage.

[0114] Intelligent filtering and search: A filter is provided at the top of the interface, allowing users to filter by project status and creation time range. A global keyword search box is also provided for quick project location.

[0115] Interactive operation: Click the drawing thumbnail on the card to enter the project for detailed editing or review; click the New Project button to start the new project creation process.

[0116] Step S106: Standard matching step.

[0117] This step aims to transform the technical requirements on the drawings into actionable verification criteria. The system performs intelligent knowledge retrieval based on the confirmed annotation information: 1. Feature Extraction: Perform semantic analysis on each annotation to extract key feature parameters. For example, for the dimension annotation 50±0.1, extract the nominal dimension 50 and the tolerance zone ±0.1.

[0118] 2. Database Query: Use the characteristic parameters as query conditions to search the preset inspection standard database. This database is a structured knowledge base that stores national standards (GB), industry standards, enterprise standards, etc., and records the standard inspection tolerances, inspection frequencies (e.g., 100% inspection / sampling inspection) and sampling plans (e.g., AQL level) corresponding to different characteristic parameters (such as size range, tolerance grade, material type).

[0119] 3. Intelligent Matching: The system uses semantic similarity calculation (e.g., through vectorized representation and cosine similarity comparison) for matching and automatically assigns the most suitable test criterion to each labeled item. If the matching confidence is low, it prompts for manual intervention to select a criterion.

[0120] Step S107: Document generation steps.

[0121] This step is the output of the process, generating the final deliverable. The system generates structured data based on all the steps above: 1. Template-based filling: Calls a preset inspection standard document template (such as Word or Excel format). The template has already defined the format of the cover, tables, appendices, etc.

[0122] 2. Automatic Fill: The project information, all annotation items and their matching inspection standards (tolerances, frequency, schemes), as well as the drawing preview with numbered bubble annotations, are automatically filled into the corresponding positions of the template to generate a draft inspection standard document with a complete structure and standardized format.

[0123] 3. Export and Delivery: Users can preview the generated document online and make final adjustments. After confirming that there are no errors, the document can be exported as an editable Word / Excel file or a non-editable PDF file for archiving, printing, or distribution to the production and inspection stages. Example 4

[0124] like Figure 3 As shown, this embodiment provides a human-machine collaborative method for intelligent annotation and inspection benchmark generation of engineering drawings, applied on the server side. The method includes the following steps: Step S101: Create the inspection benchmark book project.

[0125] In this step, the server receives a project creation request sent by the user through the client and creates the inspection benchmark project. The project includes a project identifier, engineering drawing files, a set of annotation information, and project status.

[0126] Project identifiers can be generated using UUIDs (Universally Unique Identifiers) or auto-incrementing IDs to ensure the uniqueness of projects.

[0127] Engineering drawing files can include at least one of the following formats: PDF, image formats (such as JPG, PNG, TIFF, etc.), or CAD formats (such as DWG, DXF, etc.). When a CAD format drawing is received, the server can use a CAD conversion tool to convert it to PDF or image format.

[0128] The project status includes three states: In the annotation: This indicates that the project is currently undergoing annotation work, including automatic detection and manual supplementation; In Response: This indicates that the annotation work has been completed and is currently undergoing review and confirmation. Completed: This indicates that the project has passed the review and the inspection standard has been generated.

[0129] Preferably, the server can also perform format verification and file integrity checks on the uploaded drawing files to ensure that the files are not damaged and meet the processing requirements.

[0130] Step S102: Perform intelligent annotation using OCR to automatically detect the model.

[0131] like Figure 5 As shown, in this step, the server uses OCR to automatically detect the model and intelligently annotate the engineering drawings. This specifically includes the following sub-steps: Sub-step S102-1: Image preprocessing.

[0132] Image preprocessing is performed on the engineering drawings to improve the accuracy of subsequent OCR recognition. Specifically, this includes: (1) Grayscale conversion: Converting color engineering drawings into grayscale images. The grayscale conversion formula is: Where Gray(i,j) represents the gray value at pixel (i,j), R(i,j), G(i,j), and B(i,j) represent the red, green, and blue component values ​​of the pixel, respectively, and (i,j) represents the coordinate position of the pixel in the image.

[0133] (2) Binarization: Adaptive thresholding algorithm (such as Otsu algorithm) is used to binarize the grayscale image and convert the image into a black and white binary image.

[0134] Where T is the optimal segmentation threshold, and its value ranges from 0 to 255; (t) and (t) represents the pixel ratio of the foreground and background when segmented by the threshold t; (t) and (t) represents the average gray values ​​of the foreground and background, respectively; argmax represents the threshold t that makes the expression within the square brackets reach its maximum value.

[0135] (3) Noise reduction: Denoising the binarized image to remove noise and isolated points. Median filtering algorithm can be used.

[0136] (4) Geometric correction: Perform geometric correction on the processed image to eliminate perspective distortion and rotational distortion caused by scanning or photographing the paper.

[0137] Sub-step S102-2: Automatic OCR detection.

[0138] The pre-processed image is used to extract features by a preset OCR automatic detection model to identify annotation information in the drawing. The OCR automatic detection model includes several dedicated detection sub-models: (1) Dimensioning detection sub-model: used to detect dimension lines, dimension extension lines and dimension values ​​in drawings, and to analyze the direction (horizontal, vertical, inclined) and positional relationship of dimensions. This sub-model first detects dimension lines in the drawing (usually thin solid lines with arrows), and then extracts the text information near the dimension lines as dimension values.

[0139] (2) Geometric tolerance detection sub-model: used to detect geometric tolerance framework, tolerance symbol and tolerance value, and identify geometric tolerance types such as straightness, flatness, roundness, cylindricity, line profile, surface profile, parallelism, perpendicularity, angularity, position, coaxiality, symmetry, circular runout and total runout.

[0140] (3) Surface roughness detection sub-model: used to detect surface roughness symbols and corresponding roughness level values. Surface roughness symbols are usually specific graphic marks (such as hook symbols).

[0141] (4) Technical Requirements Text Detection Sub-model: Used to detect the text content in the technical requirements area and extract information such as heat treatment, surface treatment, and material requirements.

[0142] Preferably, the above sub-model is constructed based on deep convolutional neural networks (CNNs) and recurrent neural networks (RNNs). Convolutional neural networks can be used to extract image features, then recurrent neural networks (such as LSTM or GRU) can be used for sequence labeling, and finally, the recognition result is output through a connectionist temporal classification (CTC) algorithm.

[0143] The training data for the OCR automatic detection model comes from publicly available engineering drawing datasets and internally accumulated annotated drawings. Data augmentation is performed through methods such as rotation, scaling, and adding noise to improve the model's generalization ability.

[0144] Sub-step S102-3: Determine the coordinate position.

[0145] Determine the coordinate positions of each identified annotation on the engineering drawings. Specifically, this includes: (1) Locate the minimum bounding rectangle of each labeled region using object detection algorithms (such as YOLO, Faster R-CNN, etc.); (2) Calculate the coordinates of the center point of the rectangle as the anchor point for the annotation: express; express; express; (3) Establish the transformation matrix between the annotation anchor points and the reference coordinate system of the engineering drawings; (4) Based on the transformation matrix, map each annotation information to a unified drawing coordinate system; (5) Overlay visual bubble annotations on the original engineering drawings. The center of the bubble corresponds to the annotation anchor point. The bubble color is distinguished according to the annotation type (e.g., blue for dimension annotations, red for geometric tolerances, and green for surface roughness).

[0146] Step S103: Receive manually supplemented annotation information from the user.

[0147] In this step, the server receives manually supplemented annotation information input by the user through a graphical interface. The manually supplemented annotation information includes: Annotation location: The area selected by the user by clicking or dragging on the drawing; Annotation content: User-inputted annotation text information; Annotation type: The annotation type selected by the user (dimension annotation, geometric tolerance, surface roughness, technical requirements, etc.); Associated inspection criteria: Inspection criteria information selected or entered by the user.

[0148] Manual annotation is mainly used in the following scenarios: OCR automatically detects unrecognized annotation information; The OCR recognition results are inaccurate and require manual correction. Additional testing items need to be added; Special labeling requirements.

[0149] like Figure 5 As shown, step S104: Human-machine collaborative annotation.

[0150] In this step, the server will collaboratively integrate the automatically identified annotation information with the manually supplemented annotation information. This includes the following sub-steps: Sub-step S104-1: Calculate positional overlap.

[0151] Calculate the positional overlap between automatically identified annotations and manually supplemented annotations. Let the bounding box of the automatically identified annotation be... The manually marked rectangle is Then the positional overlap can be calculated as: express; Sub-step S104-2: Conflict determination.

[0152] When the overlap between locations exceeds a preset threshold (e.g., 0.5-0.6), a conflict is identified. The preset overlap threshold is derived through statistical analysis of manually identified conflict samples in historical annotation data, with a typical value of 0.6.

[0153] Sub-step S104-3: Conflict type identification.

[0154] By comparing the content of the conflict annotations, the conflict type can be identified, including: Content inconsistency: The automatically recognized content differs from the manually entered content; Label type mismatch: The automatically recognized type is different from the manually selected type; Inspection standard conflict: The automatically matched inspection standard is different from the manually selected inspection standard.

[0155] Sub-step S104-4: Conflict resolution.

[0156] Based on the preset conflict resolution strategy, the automatically identified annotation information is replaced or deleted, taking the manually labeled information as the standard.

[0157] Sub-step S104-5: Record the conflict log.

[0158] Conflict information is recorded in a database. The conflict log includes: conflict time; conflict location (coordinates); conflict type; automatically labeled content; manually labeled content; and resolution result.

[0159] Conflict logs can be used for subsequent model optimization and system improvement.

[0160] Step S105: Project Display and Status Management.

[0161] like Figure 2 As shown, in this step, the server displays the item list in a card-style layout and implements state management functionality. Specifically, it includes the following sub-steps: Sub-step S105-1: Obtain the project list.

[0162] Obtain project information for all inspection standard items, including project identifier, project name, engineering drawing file, project status, creation time, and progress indication.

[0163] Sub-step S105-2: Filtering.

[0164] The project list is filtered based on the user-selected criteria, which include: Status filtering: Marking, Confirming, Completed; Creation time filter: Start time - End time, with dimensions of year, month, and day; Keyword search: Supports global fuzzy search for project names.

[0165] Sub-step S105-3: Card layout display.

[0166] The filtered list of projects is displayed in a card-style layout. Preferably, 10 projects are displayed per screen by default, and vertical scrolling is supported to load more project cards.

[0167] Each project card includes: Status label: showing the current status (annotating / confirming / completed); Drawing thumbnail: a visual area simulating a drawing preview; Project name; Creation time; Progress indicator (e.g., 50% complete).

[0168] Sub-step S105-4: Interactive response.

[0169] Responding to user interactions: Click on the drawing thumbnail: Enter the project editing page; Click the "+ New Project" button: trigger the interactive process of creating a new project; When there is no data: Display the default information and show the "+New Project" button.

[0170] Sub-step S105-5: State management.

[0171] The project status is updated in real time based on the progress of annotation and review: (1) Initialization: After the project is created, the status is initialized to "Annotating". At this time, the project is only visible to the creator and annotator, and supports automatic OCR detection and manual annotation. (2) Annotation complete: The status will be automatically updated to "Confirming" when any of the following conditions are met: Users manually click the "Submit for Review" or "Mark Complete" button; The OCR automatic detection has been completed, and there are no new manual annotation operations, unresolved annotation conflicts, or unprocessed inspection standard anomalies within the preset time window (e.g., 24 hours). The number of labeled information reaches a preset threshold (e.g., more than 50 labeled items) and the confidence level of the labeling accuracy is higher than a preset value (e.g., 95%).

[0172] (3) Review and confirmation: Receive the reviewer's review operation. When the review is approved, update the project status to "Completed"; when the review is not approved, revert the status to "Under annotation" and annotate the review comments. (4) Access Control: Assign corresponding operation permissions based on user roles. User roles include: Creator: Can create projects, edit projects, delete projects, and submit projects for review; Annotator: Can perform annotation operations and view annotation progress; Auditor: Can review and confirm projects and view projects in all statuses; Items in the "Completed" status are visible to all users, while items in other statuses are only visible to the relevant user roles.

[0173] (5) Real-time synchronization: After the project status is updated, it is synchronized to all collaborating users in real time to ensure data consistency across multiple terminals.

[0174] Step S106: Automatically match inspection criteria.

[0175] like Figure 4 As shown, in this step, the server automatically matches the corresponding inspection criteria based on the type and value of the annotation information. This specifically includes the following sub-steps: Sub-step S106-1: Semantic analysis.

[0176] Semantic analysis is performed on the annotation information to extract the feature parameters of the annotated object. For example, for the dimension annotation "50±0.1mm", the feature parameters that can be extracted are: nominal size: 50mm; tolerance grade: ±0.1mm; size type: shaft / hole / length, etc.

[0177] Sub-step S106-2: Fuzzy matching.

[0178] Based on the characteristic parameters, fuzzy matching is performed in a pre-set inspection standard database. The inspection standard database stores inspection standards for various parts, including: dimensional tolerance standards (such as GB / T1800, ISO286, etc.); geometric tolerance standards (such as GB / T1182, ISO1101, etc.); surface roughness standards (such as GB / T1031, ISO468, etc.); and sampling inspection standards (such as GB / T2828, ISO2859, etc.).

[0179] Fuzzy matching can employ similarity calculation methods to calculate the similarity score between the labeled parameters and the standard parameters: in, For type similarity, For numerical similarity, For context similarity, , , These are the weighting coefficients.

[0180] In this embodiment, "Score" represents the matching score between the annotation information and the inspection standard, used to measure the similarity between the two at the semantic or parameter level. The higher the score, the more accurate the match. "Stype" represents type similarity, that is, the degree of matching between the category of the annotation (such as dimensional tolerance, geometric tolerance) and the category of the standard entry in the inspection standard database. "Svalue" represents numerical similarity, that is, the degree of matching between the specific numerical value of the annotation (such as nominal size, tolerance range) and the corresponding numerical value in the standard entry. "Scontext" represents contextual similarity, that is, the degree of matching between the drawing environment in which the annotation is located (such as the part, material, process requirements) and the applicable scenario of the standard entry. , , These represent the weighting coefficients of type similarity, numerical similarity, and contextual similarity in the matching score calculation, respectively. These are preset empirical values ​​or parameters obtained through machine learning training, satisfying... + + = 1.

[0181] Sub-step S106-3: Determine the unique criterion.

[0182] When multiple matching results exist, a unique target verification standard is determined based on preset priority rules. Priority rules may include: industry standards have higher priority than enterprise standards; international standards have higher priority than industry standards; standards with higher accuracy have higher priority than standards with lower accuracy; and the latest version of a standard has higher priority than an older version.

[0183] Sub-step S106-4: Manual review.

[0184] When no matching results are found or the matching confidence level is below a preset threshold, a manual review prompt is generated, allowing the user to manually specify the verification criteria. User-specified criteria can be recorded in the system log for subsequent optimization of the verification criteria database and matching algorithm.

[0185] Step S107: Generate the inspection standard document.

[0186] In this step, the server generates a structured inspection benchmark document based on the annotation information, coordinate location, and matching inspection criteria. Specifically, this includes: (1) Template layout: Arrange the annotation information, inspection standards, drawing preview and bubble annotations according to the preset template format; (2) Generate a table: Generate a structured table containing a list of inspection items. The table includes the following fields: serial number; inspection item; inspection standard (tolerance range); inspection frequency; sampling plan; inspection method; remarks.

[0187] (3) Generate bubble annotation diagram: Generate a preview of the drawing with bubble annotations. The bubble annotations are linked to the list of inspection items by serial numbers, making it easy for inspectors to check the reference. (4) Export document: Export the generated test standard document as an editable format, such as Word (.docx), Excel (.xlsx), or PDF (.pdf).

[0188] Preferably, the inspection standard document may also include the following information: basic project information (project name, drawing number, version number, etc.); inspection basis (referenced standard documents); inspection equipment and tool requirements; inspection environment requirements; and inspection personnel qualification requirements. Example 5:

[0189] This embodiment provides a human-machine collaborative intelligent annotation and inspection benchmark generation system for engineering drawings, including: The project management module is configured to create inspection benchmark projects. Each project includes a project identifier, engineering drawing files, a set of annotation information, and project status. This module supports project creation, editing, deletion, and querying.

[0190] An OCR automatic detection module is configured to preprocess engineering drawings and extract annotation information from them using OCR automatic detection models. This module further includes: The image preprocessing submodule is used to perform grayscale conversion, binarization, noise reduction, and geometric correction operations; The OCR recognition submodule includes multiple sub-models such as dimension annotation detection, geometric tolerance detection, surface roughness detection, and technical requirement text detection; The coordinate positioning submodule is used to determine the coordinate position of each annotation information in the drawing.

[0191] The manual annotation module is configured to receive manually added annotation information input by the user through a graphical interface. This module provides interactive annotation tools, allowing users to manually add or modify annotations on drawings, including: Select the annotation tool: The user clicks on a location on the drawing and enters the annotation content; Selection tool: Users can drag to select the area to be labeled; Annotation editing tool: Users can modify the content, type, or inspection criteria of existing annotations.

[0192] The collaborative fusion module is configured to merge automatically identified annotation information with manually supplemented annotation information and perform conflict detection. This module further includes: The positional overlap calculation unit is configured to calculate the positional overlap between automatically identified annotations and manually supplemented annotations. The conflict determination unit is configured to determine that a conflict exists when the positional overlap exceeds a preset threshold. The conflict resolution unit is configured to use manually labeled information based on a preset conflict resolution strategy. The logging unit is configured to record conflict logs to the database.

[0193] The project display module is configured to show a list of projects in a card-style layout. Each card includes a status label, a thumbnail of the drawing, and project information. This module further includes: The project filtering unit can be configured to filter projects based on their status, creation time, and keywords. The card layout unit is configured to display a list of items in a card-style layout, with N items pre-displayed per screen. The scrolling loading unit is configured to support vertical scrolling to load more item cards; The interactive response unit is configured to respond to user clicks, either by entering the project editing page or triggering a new project process.

[0194] The status management module is configured to update the project status based on the annotation and review progress, and to assign corresponding operation permissions according to user roles. This module implements: State transition rules: Define the conditions and rules for transitioning between project states; Access control: Control permissions based on user roles; Status synchronization: Real-time synchronization of project status to all collaborating users.

[0195] The standard matching module is configured to automatically match the corresponding inspection standards based on the type and value of the annotation information. This module maintains an inspection standard database and implements semantic analysis, fuzzy matching, priority sorting, and manual review functions.

[0196] The document generation module is configured to generate structured inspection benchmark documents. This module is formatted according to a preset template and supports exporting to various document formats (Word, Excel, PDF).

[0197] The database module is configured to store project information, annotation information, verification criteria, conflict logs, and user permission information. This module can use a relational database (such as MySQL or PostgreSQL) or a non-relational database (such as MongoDB). Example 6

[0198] The technical solution of this application can be applied to quality control scenarios in various manufacturing industries. Several typical application scenarios are listed below: Scenario 1: Creation of Inspection Standards for Mechanical Parts A machinery manufacturing company needs to create inspection standards for machined shaft components. Engineers create projects and upload CAD drawings of the components. The system automatically identifies information such as diameter, length, cylindricity tolerances, and surface roughness in the drawings, generating initial annotations. Engineers verify the automatic identification results and manually supplement any missing annotations. The system automatically merges the automatic and manual annotations, detecting and resolving conflicts. Based on the GB / T1800 standard, it automatically matches the corresponding tolerance grade and inspection frequency to generate the inspection standards. The entire process takes only a few minutes, saving over 80% of the time compared to traditional manual methods. Through the project management system, the quality manager can view the progress status of all projects in real time.

[0199] Scenario 2: Creation of Electronic Product Inspection Standards An electronics manufacturing company needs to create inspection standards for circuit boards. The system automatically identifies the position, size, and spacing of each component on the circuit board drawing and automatically matches inspection standards according to IPC standards, generating an inspection standards document that includes inspection items and sampling plans. Through a card-style item list, engineers can easily manage the annotation progress of multiple circuit board projects.

[0200] Scenario 3: Preparation of Inspection Standards for Architectural Engineering Drawings A construction company needs to create inspection reference sheets for building structural drawings. The system automatically identifies information such as component dimensions and positional deviations in the drawings, and automatically matches inspection standards according to building codes to generate inspection reference sheets. Through the status management function, the project team can collaboratively complete the annotation and review of multiple drawing items.

[0201] like Figure 2 As shown, Figure 2 This is a schematic diagram for project display and status management, used for project demonstration and new project creation. Figure 2 The project list is displayed in a card-style layout with pagination and supports vertical scrolling to load more cards (10 projects are displayed on one screen). A single card contains the following modules: Project Name: Black text, left-aligned.

[0202] Status labels: Marking, Confirming, Completed (Completed projects are displayed to all users); Drawing thumbnails: A visual area simulating a drawing preview; click to enter the project editing page; The product type and material are freely filled in by the user. Project creator: Quality Manager: Personnel in the Quality Department; Creation time: The time display format is year / month / day hour / minute; Delete button: Located in the lower right corner of the card; clicking it triggers the confirmation process for deleting the item. Only the initiator and the person in charge have the delete button (soft delete).

[0203] Sort by creation time in descending order.

[0204] In this embodiment, the "Product Type" and "Product Material" fields in the card are derived from the corresponding fields filled in by the user in the new project interface, and are inherited into the project card display after the project is created. The "Quality Manager" field is derived from the quality department personnel selected from the system user database when creating a new project, and is displayed synchronously in the project card, supporting subsequent modification by the project creator or permission administrator. Soft deletion means that the project is only marked as "deleted" in the database, and is no longer displayed in the front-end list, but the data entity is retained. Related historical annotation records, conflict logs, and generated documents can still be traced and queried, without affecting the integrity of archived data.

[0205] like Figure 3 As shown, Figure 3 This is a schematic diagram of the interface for creating a new project, containing the necessary information for creating a new project, specifically including: Project Name: Single-line text input box; check for duplicate names upon submission. Drawing files: File upload button (select attachment), supports PDF / PNG / JPG, single file ≤50MB, maximum 5 sheets; Product line: Type is single-line text selection box; Product type: Single-line text selection box; Product Material: Single-line text selection box; VOSSP / N: A single-line text input box; Partdescription; is a single-line text input box. DrawingVersion: Type is a single-line text input box; Quality Manager: The type is a searchable drop-down selection box (Quality Department personnel); Button: Create Now. Clicking this button validates all required fields; if all fields pass, submit. In this embodiment, the selection data for the "Production Line", "Product Type", and "Product Material" selection boxes comes from the system's preset basic data dictionary, which can be maintained by the administrator in the background. When adding a new item, the data is read from the dictionary for the user to select. The "Quality Manager" drop-down box supports fuzzy matching by name or employee number for quick filtering. The default option is the currently logged-in user. If the current user does not have the Quality Manager permission, no default value is set, and the user needs to select manually.

[0206] like Figure 4 As shown, Figure 4This diagram illustrates the OCR automatic detection process. The thumbnail navigation bar on the left represents the drawing switching function of the drawing display module; the single-point annotation and batch annotation buttons in the multi-functional operation bar at the bottom are used to trigger manual supplementation steps; the confidence column in the annotation management operation panel on the right displays the confidence score generated by the OCR automatic detection model for each annotation. The annotation management operation panel on the right and the annotation bubbles on the left are bidirectionally bound based on a unified front-end data model: when a user modifies the "value" of any annotation item in the panel, the front-end triggers a data model update, the corresponding bubble display on the left automatically refreshes, and the modified content is synchronized to the back-end storage. The "Confidence" column serves as the default sorting criterion (from low to high). Users can manually switch between ascending and descending order by clicking the column header. The system rearranges the annotation item list according to the user's selection, remembers the sorting state locally, and restores the default sorting after refreshing the page.

[0207] like Figure 5 As shown, Figure 5 This diagram illustrates the generation of the benchmark report after automatic OCR detection. The benchmark report area at the bottom of the diagram is the output of the document generation process, and the data in the inspection standard column is obtained through the standard matching step. The serial numbers in the report correspond one-to-one with the serial numbers marked on the drawing, facilitating comparison and reference by inspection personnel.

[0208] Specifically, it includes the following areas: 1. Basic information display area for drawings Location: Top of the page.

[0209] Function: Displays core metadata of drawings horizontally for easy and quick access by users.

[0210] Display fields: File number, Product name, Material, Type, VOSSP / N, PIC (Responsible Person), Version, Creation date.

[0211] 2. Drawing Display and Navigation Area Main display area: The central area, used to display the currently selected drawing in high definition.

[0212] Left-side thumbnail navigation bar: Display: A list of thumbnails for multi-page / multi-view drawings.

[0213] Interaction: Clicking on any thumbnail will switch the main display area to the corresponding drawing, and the thumbnail will be highlighted with a blue border.

[0214] Clicking the "+" button will bring up a file selection window, allowing users to upload local drawing files (size limit: ≤50MB).

[0215] 3. Multifunctional operation panel (located at the bottom of the main display area) Mode switching: Provides buttons for selection mode, drag-and-drop mode, single-point annotation, and batch annotation. Clicking these buttons switches the main display area's interactive logic.

[0216] Selection box mode: Click on a specified location on the drawing to draw a red box; hover the mouse over the box to reveal a delete button; operations are saved instantly.

[0217] Drag and drop mode (annotation / drawing): Used for annotation: Draw the annotation area by dragging the mouse.

[0218] Used for navigation: Move the drawing view by dragging the mouse.

[0219] Single-point annotation: Click on any single point on the drawing to create a single annotation point.

[0220] Batch annotation: Select a region on the drawing to create multiple annotation points within that region.

[0221] Reset function: Reset Selection: Clears all selected content (red box) on the drawing.

[0222] Reset Bubble Chart: Clears all bubble annotations on the drawing and simultaneously clears the annotation data in the right-hand operation panel.

[0223] Zoom control: Provides - and + buttons, as well as a percentage display / input box.

[0224] It supports precise control of the drawing scaling ratio via buttons or manual input of values.

[0225] 4. Label management operation panel (usually located on the right side) Annotation Point Statistics: Displays the total number of annotation points in the current drawing, and synchronizes the addition and deletion results in real time.

[0226] Label Entry Management: All labels are displayed in a list format, and each entry contains the following configurable items: Serial number: Automatically generated, and can be synchronized to the corresponding bubble on the drawing in real time after editing.

[0227] Screenshot: Thumbnail of the marked area. Supports click rotation (rotates 90 degrees with each click).

[0228] Value: The specific numerical value marked, which is editable.

[0229] Tolerance type / name: Select or edit via drop-down selection box.

[0230] Feature identifier: Select from the preset feature library dropdown.

[0231] Confidence level: Automatically filled in by AI when generating annotations (range 0%~100%), and used as the default sorting basis (from low to high).

[0232] Delete: Clicking this option will bring up a secondary confirmation box. After confirming, the item will be deleted, and the corresponding bubble on the drawing will disappear simultaneously.

[0233] Core operation buttons (with global loading status): AI-generated bubble chart: After clicking, the AI ​​automatically identifies key elements of the drawing from top to bottom, generates annotation bubbles on the drawing, and simultaneously fills the annotation item list in the right operation panel, sorted from low to high confidence.

[0234] Initiate Confirmation: Clicking this will bring up a secondary confirmation pop-up. After confirmation, the system will indicate that the confirmation was successfully initiated and will automatically send a confirmation email to the quality manager.

[0235] Returning to the project management list page, the project status changes to "Confirming," the operation button changes to "View," and the phase leader information is updated accordingly.

[0236] AI-generated reports: After clicking, AI will automatically generate a structured inspection report based on existing annotation information and drawing content, and automatically scroll the page to the report area at the bottom.

[0237] 5. Inspection Standard Form Area Interaction: The size is a default field in the report and cannot be deleted or changed.

[0238] Export: Click the "Confirm and Export" button. A secondary confirmation pop-up window will appear. After confirmation, the system will indicate that the project is complete and automatically: download the inspection benchmark report in Excel format; send a project completion notification email to the project initiator; return to the project management list page, the project status will change to "Completed," and the operation button will change to "View."

[0239] In this embodiment, after the AI ​​report generation button is triggered, the system retrieves confirmed annotation items from the project annotation information set, obtains matching target inspection tolerances, inspection frequencies, and sampling plans from the inspection standard database, and generates a report by filling in the data according to a preset Word / Excel template. The Excel file generated by the "Export" button contains fields such as serial number, inspection item, inspection standard, inspection frequency, sampling plan, inspection method, and remarks, arranged in the above order. The numerical format retains the original precision, the first row is frozen, and the file name includes the project identifier and timestamp. "Inspection frequency" and "sampling plan" are directly output by the standard matching step. If the matching result is incomplete, it is supplemented according to the default rules (such as 100% inspection, AQL=0.65).

[0240] The above-described embodiments are merely preferred embodiments provided to fully illustrate the present invention, and the scope of protection of the present invention is not limited thereto. Equivalent substitutions or modifications made by those skilled in the art based on the present invention are all within the scope of protection of the present invention. The scope of protection of the present invention is defined by the claims.

Claims

1. A method for intelligent annotation and inspection benchmark generation of engineering drawings through human-machine collaboration, characterized in that, Includes the following steps: Project creation steps: Create an inspection benchmark project, which includes a project identifier, engineering drawing files, a set of annotation information, and project status; Automatic detection steps: The engineering drawings are preprocessed, and the dimension annotation information, geometric tolerance information, surface roughness information and technical requirement text information in the drawings are extracted by the OCR automatic detection model. The coordinate position of each annotation information in the drawings is determined, and a confidence score is generated for each identified annotation information. Supplementary steps: Receive supplementary annotation information input by the user through the graphical interface; Intelligent collaborative fusion steps: merge the automatically identified annotation information with the supplementary annotation information; detect the conflict between the two; when a conflict is detected, based on the confidence score of the automatically identified annotation, the role and permission level of the user who initiated the supplementary annotation, and the historical operation accuracy, automatically select the adoption result or mark it as a pending conflict that requires a higher-level reviewer's decision according to the preset dynamic decision model. Record conflict details and final resolution results to the conflict log database, and synchronize conflict samples to the model training sample library to optimize the OCR automatic detection model; Project Display and Status Control Steps: The project list is displayed in a card-style layout. Project statuses include "Under Labeling," "Under Confirmation," and "Completed." Status transitions trigger the following technical constraints: When a project is in the "Under Labeling" state, the system prohibits the execution of standard matching steps; when the project status changes from "Under Labeling" to "Under Confirmation," the system automatically locks the original annotation layer in the engineering drawing file as read-only and creates a separate review and approval annotation layer for review operations; when the project status changes to "Completed," the system calculates and associates a unique data integrity check code with the current version of the engineering drawing file and the generated inspection benchmark. Standard matching steps: Based on the type and value of the annotation information, query the preset inspection standard database and automatically match the corresponding target inspection tolerance, inspection frequency and sampling plan; Document generation steps: Based on the annotation information, coordinate positions, and matching inspection standards, generate a structured inspection benchmark document.

2. The method for intelligent annotation and inspection benchmark generation of engineering drawings in a human-machine collaborative manner according to claim 1, characterized in that, The dynamic decision-making model in the intelligent collaborative integration step executes the following logic: If the confidence score of the automatically identified label is higher than the preset first confidence threshold, and the role permission level of the supplementary labeling user is lower than the preset permission threshold, the system automatically adopts the automatically identified label as the first adoption result, and pushes the conflict and the first adoption result to the reviewing user with a permission level higher than the permission threshold for final confirmation. Otherwise, the system will automatically adopt the supplementary annotation information as the second adoption result.

3. The method for intelligent annotation and inspection benchmark generation of engineering drawings in a human-machine collaborative manner according to claim 1, characterized in that, The step of synchronizing conflict samples to the model training sample library to optimize the OCR automatic detection model specifically includes: Periodically extract all conflict samples whose final resolution results have been adopted from the conflict log database; The supplementary annotation information extracted from each conflict sample is used as the correct answer to be labeled, and together with the corresponding original engineering drawing area image, they form a new training data pair. The new training data is used to incrementally train the OCR automatic detection model.

4. The method for intelligent annotation and inspection benchmark generation of engineering drawings in a human-machine collaborative manner according to claim 1, characterized in that, In the project display and status control steps, the calculation and association of a unique data integrity check code specifically includes: A hash algorithm is used to calculate the binary data stream of the engineering drawing file and the binary data stream of the inspection benchmark document, respectively, to obtain a first hash value and a second hash value; The project identifier, current timestamp, first hash value, and second hash value are concatenated, and the hash value is calculated again to generate the data integrity verification code; Write the data integrity check code into a designated area of ​​the inspection benchmark document and store it in association with the project's record in the database.

5. The method for intelligent annotation and inspection benchmark generation of engineering drawings in a human-machine collaborative manner according to claim 1, characterized in that, In the project display and status control steps, the creation of an independent review and annotation layer for review operations specifically includes: In response to the project status entering the confirmation phase, a new layer is created in the data structure of the engineering drawing file, parallel to the original annotation layer, as the review and annotation layer; The review and annotation layer allows reviewing users to add annotation graphics, annotation text, and review comments, and all operations are recorded and associated with the identity of the operating user. The content of the evaluation and annotation layer can be cleared or retained when the project status reverts to the annotation, but this does not affect the read-only status of the original annotation layer.

6. The method for intelligent annotation and inspection benchmark generation of engineering drawings in a human-machine collaborative manner according to claim 1, characterized in that, The standard matching steps specifically include: Semantic analysis is performed on the annotation information to extract feature parameters including nominal size, tolerance grade, and precision grade; The feature parameters are matched with the standard entries in the test standard database using vector similarity to obtain a matching score. When the matching score is lower than the preset matching threshold, a manual matching prompt is generated, and the matching algorithm weight for similar labeled information is adjusted based on the user's historical adoption selection records.

7. The method for intelligent annotation and inspection benchmark generation of engineering drawings in a human-machine collaborative manner according to claim 1, characterized in that, In the automatic detection step, the extraction of information through the OCR automatic detection model specifically includes: A multi-task deep learning network structure is adopted, which includes a shared feature extraction backbone network, as well as parallel dimension annotation detection heads, geometric tolerance detection heads, surface roughness detection heads, and technical requirement text detection heads; The technical requirement text detection head uses an attention-based sequence-to-sequence model to identify and transcribe multiple lines of text within the technical requirement box in the drawing.

8. A human-machine collaborative intelligent annotation and inspection benchmark generation system for engineering drawings, characterized in that, include: The project management module is configured to create inspection benchmark projects, which include project identifiers, engineering drawing files, annotation information sets, and project status. The OCR automatic detection module is configured to perform image preprocessing on the engineering drawings, extract dimension annotation information, geometric tolerance information, surface roughness information and technical requirement text information from the drawings through the OCR automatic detection model, determine the coordinate position of each annotation information in the drawings, and generate a confidence score for each identified annotation information. The annotation module is configured to receive supplementary annotation information input by the user through a graphical interface; The intelligent collaborative fusion module is configured to merge the automatically identified annotation information with the supplementary annotation information, detect conflicts, and automatically process or mark pending conflicts according to the confidence score, user role permission level and historical operation accuracy, according to the preset dynamic decision model, record conflict logs, and synchronize conflict samples to the model training sample library. The project display and status control module is configured to display the project list in a card layout and perform the following status controls: when a project is in the annotation stage, standard matching is prohibited; when the project status changes to confirmation, the original annotation layer of the engineering drawing is locked as read-only and an independent review annotation layer is created; when the project status changes to completed, the data integrity check code of the engineering drawing and the inspection benchmark is calculated and associated. The standard matching module is configured to query a preset inspection standard database based on the type and value of the annotation information, and automatically match the corresponding target inspection tolerance, inspection frequency and sampling plan. The document generation module is configured to generate a structured inspection benchmark document based on the annotation information, coordinate position, and matching inspection standards.

9. The intelligent annotation and inspection benchmark generation system for engineering drawings with human-machine collaboration according to claim 8, characterized in that, The intelligent collaborative fusion module includes: The conflict detection unit is configured to calculate the positional overlap and content difference between the automatically identified annotations and the supplementary annotations; The intelligent decision-making unit is configured to run the dynamic decision-making model and output decision results that are automatically adopted, marked as pending, or adopted based on the confidence score, user permissions, and historical accuracy. The model optimization interface unit is configured to filter resolved conflict samples, format them, and send them to the model training sample library to drive the optimization of the OCR automatic detection model.

10. The intelligent annotation and inspection benchmark generation system for engineering drawings with human-machine collaboration according to claim 8, characterized in that, The project display and status control module includes: The state machine management unit is configured to manage the transition logic and triggering conditions between three states: labeling, confirmation, and completion. The layer control unit is configured to lock and unlock the original annotation layer and create and destroy the evaluation annotation layer during state transitions. The integrity verification unit is configured to call a hash algorithm to generate the data integrity verification code when the project is completed, and embed it into the document and database records.