There are few existing OCR solutions, but not sure which one is best. This one has been around for a while and I believe works well but you need some extra setup and have to follow a specific workflow:
https://discourse.joplinapp.org/t/file-uploader-and-ocr/719
Otherwise have a look at the various options on the forum: