Unless it's a one of a kind, it's probably not worth it. There is software that can correct for the curve at the spine, but it won't be perfect. And you have to turn each page, flatten it as best as you can, and then snap, etc. Works better with a flat surface to push the book against like a flatbed scanner rather than trying to take pictures. The only good way is to break the spine and feed it into a scanner. and that ruins the books.
And you need to handle imperfections that might cause words to be unreadable like tears or smudges. Some software might help, but it might require manual editing and finding those in a whole book is going to be difficult unless you plan to read it carefully after digitizing.
Anyway, it's a major effort without the proper equipment unless it's a very short book. So unless a digital copy doesn't exist anywhere and you don't want to hire a professional, it's going to take a lot of time and effort.
Others have put links with how, but I wanted to emphasize that it's not a simple task and may take months or years if just in spare time here and there, to get it perfect.