For installing OCR engine do the following
use homebrew to install tessecrat first, this installs english and two other languages that I don't remember.
brew install tesseract-lang
/opt/homebrew/Cellar/tesseract/4.1.1
The second requirement is installing pdftoppm which comes with poppler package and can be done on two steps
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
then install
brew install poppler
/opt/homebrew/Cellar/poppler/21.01.0/bin
which also depends on poppler version