Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaungkhantkyaw1997/face_recognition


https://github.com/kaungkhantkyaw1997/face_recognition

Last synced: 4 days ago
JSON representation

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"
}
```