Skip to content

Jaesung-Jun/Cut-And-Save-Faces

Repository files navigation


Cut And Save Faces

picture collecting tool



Description

Please use this project for legitimate purposes. The Owner of the project shall not be held liable for any improper use of the project.

Cut And Save Faces is pictures collecting tool.
Written by Python. (uses Qt to develop its graphical interface)

Input

Output (used haarcascade_frontalface_default.xml)

Features

  • support video files
  • Face Alignment
  • Graphic InterFace
  • Labeling

Requirements

  • Ubuntu(Not tested) , macOS(Not tested), Windows
  • PyQt5
  • Python 3

Installation

dlib install guide

# You can see dlib install guide at
# https://www.learnopencv.com/install-dlib-on-windows/

Install require libraries

# opencv-python, opencv-contrib-python, dlib, imutils, PyQt5
# Please note dlib install guide
#
# Develop Environment
#
#  ●  opencv-python==4.1.0.25
#  ●  opencv-contrib-python==4.1.0.25
#  ●  dlib==19.17.0
#  ●  imutils==0.5.3
#  ●  PyQt5==5.14.1
#
# Probably, CASF can be executed with higher versions of these libraries.
#
$ pip install opencv-python
$ pip install opencv-contrib-python
$ pip install imutils
$ pip install PyQt5

Execution

$ python CASF-Main.py

Usage

  • (1) : Select your input path (dataset's path that you want to save&cut )
  • (2) : Select path where you want to save
  • (3) : Select output data type you want to save (or select your own detection file)
  • [Option] (3-2) : Select Options
  • (4) Run

References