Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.41 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.41 KB

Face-Recognition - Desktop Edition

This .is a branch of the Face Recognition With Raspberry Pi and OpenCV for use in the CISE Summer Program

Python OpenCV Raspberry Pi

Overview

This branch is a modification of the CISE project that permits use on a macOS (tested), Windows(untested, or Linux(also untested) desktop computer.

This fork substitutes OpenCV for piCamera (RPI specific libs) and patches face_recognition_models python library to deal with deprecated pkg_resources.

Setup

Install UV (Python Package Manager)

curl -LsSf https://astral.sh/uv/install.sh | sh

Create Virtual Environment

uv venv --python 3.11

Activate Environment

source .venv/bin/activate

Install Dependencies

uv pip install -r requirements.txt

Install face_recognition_models with importlib.resources fix

uv pip install git+https://github.com/Chowdhury-Anik/face_recognition_models.git@Chowdhury-Anik-patch-1

Project Structure

  • dataset/
  • image_capture.py
  • train_model.py
  • recognize.py
  • requirements.txt

Usage

Capture Images

Run image_capture.py to collect training data.

Train Model

Run train_model.py.

Run Recognition

Run recognize.py.