Antal.Ai - Virtual Makeup
Public Member Functions | List of all members
Engine Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ addSigno()

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.

Parameters
imageReference to the image (cv::Mat) where the watermark is added.

◆ init()

void Engine::init ( std::string  resourcePath)

Initializes the engine with the specified resource path.

Parameters
resourcePathPath to the resources needed for initialization.

◆ process()

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.

Parameters
inputReference to the input image (cv::Mat) to be processed.
outputReference to the output image (cv::Mat) where the result is stored.

The documentation for this class was generated from the following files: