GlowMatch AI - Makeup Recommendation System Using Face Analysis (Django + MediaPipe Final Year Project)
Back to ProjectThis should take about 15 to 20 minutes, even if you've never run a Django project before. Follow the steps in order and don't skip the virtual environment step.
Open the project folder in a terminal. Unzip the project, open the folder in VS Code and open its terminal. On Windows, use Command Prompt rather than PowerShell if activation gives you trouble.
Create and activate a virtual environment.
python -m venv venv
venv\Scripts\activate
On macOS or Linux, run source venv/bin/activate instead. You'll see (venv) at the start of the terminal line when it's active.
Install the dependencies.
pip install -r requirements.txt
MediaPipe is a big download, so give it a couple of minutes.
Set up the environment file.
copy .env.example .env
On macOS or Linux, use cp .env.example .env. Open .env and paste your GROQ_API_KEY if you have one. If you leave it empty, the app uses offline rule-based tips automatically.
Create the database and load the products.
python manage.py migrate
python manage.py seed_products
python manage.py createsuperuser
The seed_products command loads the roughly 180-item catalogue. For createsuperuser, pick any username and a password you'll remember. The password won't show while you type, which is normal.
Start the server.
python manage.py runserver
Open http://127.0.0.1:8000/ in your browser.
/: capture or upload a photo and run the analysis/admin/: manage products, shades, prices and buy links/accounts/signup/: create a user account to save history/history/: view past analyses and compare two of thempython --version. If it isn't 3.10, install 3.10.11, delete the venv folder and redo steps 2 and 3.127.0.0.1 or localhost, because browsers block webcams on plain-HTTP IP addresses.Upload a front-facing selfie and click analyse. You should see a skin tone (for example, Wheatish), an undertone, a face shape and a list of products. Pick a lipstick and click try-on, and your lips in the photo should change colour without the page reloading. Finally, log in to /admin/ and confirm the Products list has entries. If all three work, you're ready to demo.
Our team is here to assist you with installation and setup.