Lexiglo makes this seamless: taking a picture of a book page, doing OCR, annotating the text using NLP, integrating DeepL translations and spaced repetition flashcards. Currently supports English, French, German, Italian.
I've been using it for several weeks and it's now ready for others to try. I'm looking for Android testers in particular, sign up instructions on the site. (iPhone coming soon.)