Seconding this. I did one book with a phone and an app called DocOCR. Did a decent job but for thousands of pages, it would be better to invest in a dedicated device. There are many inexpensive options.
Here is one option I considered: https://www.amazon.com/dp/B07RKJ2V3N/
Well thank you, I actually did a little more research and found https://www.amazon.com/dp/B07RKJ2V3N/ref=cm_sw_r_cp_api_glt_i_RJQAFR1SAFTBH6FD2160?_encoding=UTF8&psc=1
Depending on how big they are: https://smile.amazon.com/dp/B07RKJ2V3N/ref=cm_sw_r_sms_api_glt_i_9G4EZN9DCB0BHNVPK2G0?_encoding=UTF8&psc=1
For the book I’d look into something like this
https://www.amazon.com/dp/B07RKJ2V3N/ref=cm_sw_r_cp_api_fabc_yPrXFb2A7MKD2?_encoding=UTF8&psc=1
For the photos, I’d look into a macro lens with a polarizing filter