7#include <opencv2/core/mat.hpp>
8#include <opencv2/dnn/dnn.hpp>
10#include "helpers/Globals.hpp"
11#include "helpers/Information.hpp"
ObjectDetectionInformation m_objectDetectionInformation
The ObjectDetectionInformation struct containing all object detection-related information.
cv::dnn::Net m_net
OpenCV object which allows the use of pre-trained neural networks.
std::vector< std::string > m_unconnectedOutputLayerNames
The names of layers with unconnected outputs.
void SetProperties(const std::string &p_yoloFolderPath, const Globals::ObjectDetectorTypes &p_objectDetectorTypes, const Globals::ObjectDetectorBackEnds &p_objectDetectorBackEnds, const Globals::ObjectDetectorBlobSizes &p_objectDetectorBlobSizes)
Set the properties of the ObjectDetector object.
int32_t m_blobSize
The spatial size for the output image used by the cv::dnn::blobFromImage function.
ObjectDetector()
Construct a new ObjectDetector object.
void RunObjectDetector(const cv::Mat &p_frame)
Run the object detector against p_frame.
bool m_skipObjectDetection
Whether to skip object detection.
ObjectDetectionInformation GetInformation()
Get the ObjectDetectionInformation struct.
ObjectDetectorTypes
The type of object detector to use with an option to disable object detection. The tiny version is mo...
ObjectDetectorBackEnds
The supported backends for the object detector to run on. In theory, GPU should be significantly more...
ObjectDetectorBlobSizes
The supported blob sizes for the object detector to run with. The larger the blob size the more perfo...
Contains all Lane-and-Object-Detection objects.