Document image distortion correction method, device and medium based on improved U-Net
Патент · CN B
Полный текст
The application relates to the technical field of image processing, in particular to a document image distortion correction method, device and medium based on improved U-Net. The method comprises the steps of collecting a document data set, marking key points, establishing a key point detection model U-Net, adding a residual error module, bilinear interpolation and attention mechanism on the basis of the model, establishing a loss function combining coordinate regression and thermodynamic diagram, training the document key point detection model, sending a distorted document picture into the trained model to obtain key points of the document, constructing a B-spline curve by using the obtained key points, interpolating to obtain intermediate points, dividing the document picture into 64 patches, performing perspective transformation on each patch, and recombining the patches after the perspective transformation into a complete picture. The application improves the recognition rate, optimizes the intelligent auditing process and finally realizes the automation and the high efficiency of government affair document processing.