This invention provides a method and
system for extracting structured data from certificates and licenses, applied in the field of
data processing technology. This application determines the
layout by using the first 5 characters of the first line in the
machine-readable area and features of the visually readable area. It dynamically records any unconfigured new layouts, generates new
layout configurations and annotations, completes the extraction of structured data for the new
layout, and updates the training dataset in real time. A three-level positioning
algorithm fusion strategy is employed, using
machine-readable area information as a reference to calculate the consistency
score of surname and given name groups, the accuracy
score of date data, the proportion of structured
data acquisition, and the positioning point deviation value. A preset priority
ranking is used, and
Hough transform and SIFT
feature matching are applied to process image deviations, generating a comprehensive positioning
processing result. Using verified accurate data from the
machine-readable and visually readable areas as a reference, abnormal
certificate data is automatically corrected and completed to generate data to be detected. Based on a target dual-channel OCR model, the data to be detected is processed to generate target
certificate and
license structured data.