train with Form Recognizer Studio with your own invoices, then use the model to recognize forms. https://formrecognizer.appliedai.azure.com/studio/custommodel/
need to set Environment Variable:
"env": {
"FORM_KEY": "xxx",
"FORM_ENDPOINT": "https://xxx.cognitiveservices.azure.com/"
}
Will read all files in path, and rename with Date, Amount and Merchant:
path = "C:/Users/zhzhen/OneDrive - Microsoft/Office Lens/"
# path = "C:/tools/"
fn = [filename for filename in os.listdir(path) if filename.endswith((".pdf", "jpeg", "jpg", "png", "gif"))]
you can scan with your office Lens, and upload to onedrive, and then use this script to rename.