5 #include <opencv2/dnn.hpp>
48 void init(std::string framework,
49 std::string modelWeightsFile,
50 std::string classesFile,
51 std::string modelConfigurationFile,
52 std::string inputLayerName,
53 std::string outputLayerName,
54 std::string networkName,
61 std::string configBackend,
62 std::string configTarget,
63 double confidenceThreshold);
71 void process(
const cv::Mat& frame, std::vector<core::Detection>& detections);
81 float processDetection(
const cv::Mat& frame,
core::Detection& detection);
83 std::vector<core::Detection> mPerviousDetections;
84 long long mTrackingIdCounter = 0;
This file contains the NeuralBase class which serves as a base class for neural networks.
Definition: NeuralBase.h:20
A class responsible for initializing, configuring, and processing face mesh detection using neural ne...
Definition: FaceMesh.h:16
~FaceMesh()=default
Default destructor for the FaceMesh class.
void init(std::string framework, std::string modelWeightsFile, std::string classesFile, std::string modelConfigurationFile, std::string inputLayerName, std::string outputLayerName, std::string networkName, int inputWidth, int inputHeight, double scale, double mean0, double mean1, double mean2, std::string configBackend, std::string configTarget, double confidenceThreshold)
Initializes the neural network for face mesh detection.
Definition: FaceMesh.cpp:11
void process(const cv::Mat &frame, std::vector< core::Detection > &detections)
Processes an input frame to detect face meshes.
Definition: FaceMesh.cpp:43
FaceMesh()=default
Default constructor for the FaceMesh class.
A structure to represent the detection details.
Definition: Detection.h:20