Backend service for PhantomClick built with FastAPI and Tesseract OCR for extracting text from SMS screenshots.
git clone
cd server/python-server
python -m venv venv
venv\Scripts\activate
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
This project uses pytesseract to extract text from SMS screenshots.
pytesseract will not work unless Tesseract is installed on your system.
Download installer:
https://github.com/UB-Mannheim/tesseract/wiki
Downloaded this:
tesseract-ocr-w64-setup-5.5.0.20241111.exe (64 bit)
Install Tesseract and add the following to your PATH:
C:\Program Files\Tesseract-OCR
Verify installation:
tesseract --version
Create a .env file in the root directory.
GEMINI_API_KEY=
Add any other required environment variables used by the project.
From the backend folder:
uvicorn main:app --host 0.0.0.0 --port 8001 --reload
After starting the server:
Application
http://localhost:8001