https://github.com/kaungkhantkyaw1997/face_recognition
A Computer Vision tool designed to identify and recognize characters in images.
https://github.com/kaungkhantkyaw1997/face_recognition
face-recognition flask numpy opencv
Last synced: 2 months ago
JSON representation
A Computer Vision tool designed to identify and recognize characters in images.
- Host: GitHub
- URL: https://github.com/kaungkhantkyaw1997/face_recognition
- Owner: KaungKhantKyaw1997
- Created: 2024-05-24T05:36:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T11:04:11.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T16:06:08.666Z (over 1 year ago)
- Topics: face-recognition, flask, numpy, opencv
- Language: Python
- Homepage:
- Size: 1.52 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Face Recognition
Implemented for identifying characters in images, falling under Computer Vision.
## Requirements
1. Ensure you have Python version 3.11.0 installed.
2. (Optional) Consider using `pyenv` for managing Python versions.
3. Ensure you have `pip` for installing dependencies.
## Setup Instructions
1. **Clone the repository to your local machine:**
```sh
git clone https://github.com/KaungKhantKyaw1997/face_recognition.git
```
2. **Navigate to the project directory:**
```sh
cd face_recognition
```
3. **Create a virtual environment:**
```sh
python -m venv .venv
```
4. **Activate the virtual environment:**
- On macOS and Linux:
```sh
source .venv/bin/activate
```
- On Windows:
```sh
".\\.venv\\Scripts\\activate"
```
5. **Install required libraries:**
```sh
pip install -r requirements.txt
```
6. **Run the script:**
```sh
python main.py
```
## Additional Notes
- It’s recommended to use a virtual environment to avoid conflicts with system-wide packages.
- Ensure your Python version (3.11.0) is compatible with the packages used in this project.
## API Example
To process an image, follow these steps:
1. **Send a POST request to the following endpoint:**
```sh
POST http://127.0.0.1:5001/process_image
```
2. **Request Body Example:**
```json
{
"unknown_faces_dir": "/path/to/unknown_faces",
"known_faces_dir": "/path/to/known_faces"
}
```