Skip to content

Drawaid is a command-line interface (CLI) program designed to process a jpeg image containing human faces and processing it to form a set of images that serve as a tool for drawing using graphite or other drawing tools.

License

EngAndreRocha/drawaid

Repository files navigation

DRAWAID

Drawaid is a command-line interface (CLI) program designed to process a jpeg image containing human faces and processing it to form a set of images that serve as a tool for drawing using graphite or other drawing tools.

Retrieves every .jpg from either the drawaid folder in this current directory or the path provided and, if it has a human face, creates one folder for each photo with several images to help you draw an acurate portrait of a person.

If no path or filename is given, the program will either use or create a folder named "drawaid_folder" for your convinience and use as the working directory of the program.

If no model is given, the program will try to use lbfmodel.yaml.txt that should be on the same directory as the drawaid executable.

If no cascade xml file is given, the program will try to use haarcascade_frontalface_alt2.xml that should be on the same directory as the drawaid executable.

Requirements

To use this program, some basic knowledge in CLI is recommended but not required. Also, your folder structure should contain:
    * The drawaid executable;
    * The ipl library;
    * A trained model which is to be loaded for example [lbfmodel.yaml.txt];
    * A face cascade xml file which you want to use as a face detector for example[haarcascade_frontalface_alt2.xml].
    * All binaries and dlls pertaining opencv and opencv-contrib.

To work with this source code, some basic knowledge is required:

    * Basic understanding of C++ language;
    * Basic understanding of the Opencv Framework;
    * Basic knowledge in CLI is required

Use

To simply use this program, download the latest release onto a directory,run the installer.
After it installs, transfer jpg images containing human faces into drawaid_folder and run drawaid.exe.

Example

Input:

Output:
Face:

Eyes:

Mouth:

Nose:

Installation

This program was developed in Visual Studio Code using CMake and CMake Tools extensions, a [Visual Studio Community 2019 Release - amd64] compiler, with C++17 capabilities and OpenCV_VERSION: 4.5.5 with opencv's extra modules of the same version.

Citation

@article{rochandre2023drawaid,
  title={{DRAWAID}: Helps you draw an acurate portrait of a person.},
  author={Andre Correia Rocha},
  website={https://andrecorreiarocha.com/},
  year={2023}
}

Acknowledgements

Expand

About

Drawaid is a command-line interface (CLI) program designed to process a jpeg image containing human faces and processing it to form a set of images that serve as a tool for drawing using graphite or other drawing tools.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published