SnapCam - AI Face Detection Camera Web App with Real-Time AR Filters and Photo Gallery | Django Python Final Year Project
Back to ProjectFollow these steps to set up and run the SnapCam AI Face Detection Camera App on your local machine.
| Requirement | Details |
|---|---|
| Python | Version 3.10 or higher |
| pip | Python package manager (comes with Python) |
| Web Browser | Chrome, Firefox, Safari, or Edge with camera and WebGL support |
| Internet Connection | Required for loading face-api.js models from CDN on first run |
Download and extract the SnapCam project zip file to a folder on your computer. Open a terminal or command prompt and navigate to the project root directory (the folder that contains manage.py).
cd snapcam
Create a Python virtual environment to keep your project dependencies isolated.
python -m venv venv
Activate the virtual environment:
macOS / Linux:
source venv/bin/activate
Windows:
venv\Scripts\activate
You should see (venv) appear at the beginning of your terminal prompt after activation.
Install all required Python packages using the requirements file.
pip install -r requirements.txt
This installs Django 5.2+, Pillow 10+, and any other packages the project depends on.
Set up the SQLite3 database and create the Photo model table.
python manage.py migrate
This creates a db.sqlite3 file in your project root with the required database schema.
Launch the Django development server.
python manage.py runserver
The server will start at http://127.0.0.1:8000/.
Open your web browser and go to:
http://127.0.0.1:8000/
Your browser will ask for camera permission. Click Allow to enable the camera feed. The face-api.js detection models will load automatically from CDN on the first visit.
Once the app loads and the camera feed appears:
http://127.0.0.1:8000 works fine.DATA_UPLOAD_MAX_MEMORY_SIZE is configured to 20MB to handle base64 image uploads.If you plan to deploy SnapCam to a live server, make the following changes in snapcam/settings.py:
DEBUG = FalseSECRET_KEY from an environment variableALLOWED_HOSTSIf you face any issues during installation or setup, CodeAj offers a Project Setup + Source Code Explanation service. Our team will set up the project on your machine, walk you through the entire codebase, and make sure everything runs correctly before your submission. Visit CodeAj Project Setup or contact us through our contact page.
Our team is here to assist you with installation and setup.