Make sure you have the following installed on your system:
- Python 3
- Node.js & npm
- Redis (
brew install redis)
python3 -m venv venv
source venv/bin/activatepip install opencv-python ultralytics fastapi uvicorn redis httpxnpm installOpen three separate terminals and follow the steps below.
Note: If a port is already in use, free it with:
kill -9 $(lsof -ti :8001)
brew services start redisThen, inside the kone directory:
source venv/bin/activate
python3 pythoncv.pyInside the backend directory:
source venv/bin/activate
python3 -m uvicorn main:app --host 0.0.0.0 --port 8000Inside the frontend directory:
source venv/bin/activate
npm startproject-root/
├── kone/ # Computer vision module
│ └── pythoncv.py
├── backend/ # FastAPI backend
│ └── main.py
└── frontend/ # Frontend application