This was a class project of mine from 2020. My goal was to create a system that will be able to find and separate a specific person or a group of people's images from a local folder where exists thousands of images of various peoples. To do so, I used python and a library called 'face_recongnition'.
- It's a console-based program
- Consists of three options:
- 1. Separate images of a person:
- This function takes the image name of the target person (located in
./images/training/
directory) and searches all the images available in the./images/inputs/
directory. As output, it copies all of those images which consists target person and save in a folder at./images/outputs/
directory. - 2. Separate images of a group of people:
- This function takes all the images located in the
./images/training/
directory as target person image and searches all the images available in the./images/inputs/
directory. As output, it copies all of those images which consists target person, and saves them in a folder at the./images/outputs/
directory. - 3. Identify known persons in an image:
- This function takes all the images available in the
./images/training/
directory as known persons and search all the images available in the./images/inputs/
directory. As output, it shows each image with an identified person, if the person is known then it will show the person (image) name otherwise it will show unknown. It also saves an identified copy of those images in a folder at the./images/outputs/
directory.
- Python 3 and
- face_recongnition installed
- Download or Clone this repository.
- Put all the images you wanna search or filter at
./images/inputs/
directory. - Put all the target person's image (training images) at
./images/training/
directory. - Run the
main.py
file. - Follow instructions shown in the console.