A React-based web application that uses face-api.js for real-time face detection, recognition, and analysis.
- Real-time face detection using webcam
- Face recognition against known faces
- Age and gender estimation
- Emotion detection
- Redux state management
- TypeScript support
- Clone the repository:
git clone [your-repo-url]
cd my-face-app- Install dependencies:
npm install
# or
yarn install-
Add face recognition images:
- Create a directory:
public/images/ - Add person images in format:
public/images/[name]/[name].jpg - Example:
public/images/john/john.jpg
- Create a directory:
-
Start the development server:
npm start
# or
yarn start- React
- TypeScript
- Redux Toolkit
- face-api.js
- TensorFlow.js
src/
├── components/ # React components
├── features/ # Redux slices
├── store/ # Redux store configuration
├── types/ # TypeScript type definitions
└── App.tsx # Main application component
MIT