Run the following command,
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install --pre tesseract
choco install ghostscript
choco install pngquant
python -m pip install ocrmypdf
Download
chi_tra.traineddata
chi_sim.traineddata
jpn.traineddata
deu.traineddata
spa.traineddata
from https://github.com/tesseract-ocr/tessdata/ and place it in C:\\Program Files\\Tesseract-OCR\\tessdata
(or wherever Tesseract OCR is installed).
That's it. You have successfully setup OCRmyPdf on Windows!