Antal.Ai - Virtual Makeup
|
Main engine class for processing images and applying visual features. More...
#include <Engine.h>
Public Member Functions | |
Engine () | |
Default constructor for the Engine class. | |
~Engine () | |
Destructor for the Engine class. | |
void | init (std::string resourcePath) |
Initializes the engine with the specified resource path. More... | |
void | process (cv::Mat &input, cv::Mat &output) |
Processes an input image and produces an output image. More... | |
void | addSigno (cv::Mat &image) |
Adds a watermark (signo) to the specified image. More... | |
Main engine class for processing images and applying visual features.
The Engine class handles initialization, image processing, and adding a watermark (signo) to images. It utilizes resources for face detection, face mesh, and visual enhancements, such as makeup templates.
void Engine::addSigno | ( | cv::Mat & | image | ) |
Adds a watermark (signo) to the specified image.
This method places a copyright text on the bottom right corner of the image.
image | Reference to the image (cv::Mat) where the watermark is added. |
void Engine::init | ( | std::string | resourcePath | ) |
Initializes the engine with the specified resource path.
resourcePath | Path to the resources needed for initialization. |
void Engine::process | ( | cv::Mat & | input, |
cv::Mat & | output | ||
) |
Processes an input image and produces an output image.
This method applies various transformations or effects to the input image using face detection and enhancement tools.
input | Reference to the input image (cv::Mat) to be processed. |
output | Reference to the output image (cv::Mat) where the result is stored. |