A bit off topic but I've just started using Google Lens to extract whole pages from books with my phone. Near perfect conversion to text is great for taking notes.
In my case I need to extract data on server side, so a library/API will be most suitable.