pull down to refresh

You are looking for an OCR system.
Something like Tesseract or EasyOCR should work with good scans/photos.
Keep in mind that scanning a book can be illegal in some countries.