To run this file you need to have the following python libraries
- pytesseract (pip install pytesseract)
- PIL (pip install pillow)
- os (pip install os-sys)
- pdf2image (pip install pdf2image)
- docs (pip install python-docx)
- Flask (pip install flask} You also have to download poppler and add the bin folder in the path of system variables and pc variables via environment variables. You can download poppler from the following link ( https://poppler.freedesktop.org/ )
You also need to have reactjs on your system.
Once you have downloaded all these libraries
- Run the server.py file in Flask folder first(this will run in local host 5000 by default). To do this simply nevegate to the flask folder and write python server.py in the terminal
- Navigate to ocr folder via the terminal or open the terminal in that folder and simply write npm install. Once it is installed you will see a folder called node-modules in the ocr folder. Then write npm run start in the terminal and the website will open in local host 3000 on the web browser.