Antal.Ai - Virtual Makeup
|
The Virtual Makeup engine is a software library designed to enable virtual makeup and facial feature visualization. This tool primarily utilizes OpenCV and custom neural network components to detect faces, map facial landmarks, and apply graphical effects like makeup or watermarks.
FaceDetectorYunet: Uses OpenCV's FaceDetectorYN for face detection with DNN support, allowing integration with deep learning frameworks. It detects faces and provides bounding boxes and landmark data.
CvUtils: Contains various utilities for image transformations, such as resizing rectangles, histogram equalization, and calculating angles or transformations between points.
Engine::init(resourcePath)
sets up the engine with required assets and configurations.Engine::process(input, output)
takes an input image, detects faces, and applies effects before saving to an output image.Engine::addSigno(image)
adds a copyright watermark to an image.FaceDetectorYunet::process(frame)
detects faces in a given frame and returns a list of Detection objects with information on each detected face.FaceMesh::process(frame, detections)
processes an image frame to detect face mesh structures.FaceDrawer::draw(image, facialPoints)
draws a triangular mesh over the provided facial points on an image, useful for visualizing facial structure.The project files are organized in the /AntalEngine/Core
directory. Key files include:
This structure enables modularity, allowing the use of each component independently or as part of a larger virtual makeup application. The software is well-suited for applications in AR (Augmented Reality) makeup, virtual try-ons, or facial recognition-based effects.