An image file processing method and an apparatus, and an electronic device and a computer readable storage medium, relating to the field of image processing in artificial intelligence, the method comprising: on the basis of the position of a pre-set classification field in a template image, generating a first regional image, and extracting SIFT feature points to generate first feature descriptors of the first regional image (S1) and second feature descriptors of an image to be processed, and generating matching point pairs (S2), on the basis of the matching point pairs, generating a transformation matrix, and using the transformation matrix to generate a second regional image on the basis of the image to be processed (S3), processing the second regional image to generate an output image, and on the basis of the template image, recognizing and outputting text content in the field position that needs to be outputted (S4). The method, the apparatus, the electronic device and the computer readable storage medium reduce errors in global template structural localization caused by non-rigid deformation in an image, and errors in structural recognition of image files.
IMAGE FILE PROCESSING METHOD AND APPARATUS, ELECTRONIC DEVICE, AND COMPUTER READABLE STORAGE MEDIUM