3 #include <opencv2/core.hpp> 
    5 #include "CelanturDetection.h" 
    6 #include "CommonParameters.h" 
    7 #include "opencv2/core/mat.hpp" 
   33     void serialise_image_metrics_to_json(cv::Mat image, std::vector<CelanturDetection> detections, std::string image_name, std::string input_folder, std::ostream &os);
 
   44     std::vector<CelanturDetection> 
filter_detections_by_threshold(
const std::vector<CelanturDetection>& detections, 
const ModelThresholds& thresholds);
 
   64     std::vector<CelanturDetection> 
filter_detections_by_class(
const std::vector<CelanturDetection>& detections, 
const std::set<CelanturClassId>& classes);
 
   67     std::string serialise_detections_proto(
const std::vector <CelanturDetection>& detections);
 
   68     std::vector<CelanturDetection> deserialise_detections_proto(
const std::string& 
string);
 
std::vector< CelanturDetection > filter_detections_by_class(const std::vector< CelanturDetection > &detections, const std::set< CelanturClassId > &classes)
Filter detections by type. This function takes a vector of CelanturDetection objects and filters them...
Definition: detection-utils.cpp:86
std::vector< CelanturDetection > filter_detections_by_class_name(const std::vector< CelanturDetection > &detections, const std::set< std::string > &classes)
Filter detections based on a set of class names. This function takes a vector of CelanturDetection ob...
Definition: detection-utils.cpp:75
void serialise_image_metrics_to_json(cv::Mat image, std::vector< CelanturDetection > detections, std::string image_name, std::string input_folder, std::ostream &os)
serialise detections to JSON format. Is identical to the celantur-container functionality.
Definition: detection-utils.cpp:32
std::vector< CelanturDetection > filter_detections_by_threshold(const std::vector< CelanturDetection > &detections, const ModelThresholds &thresholds)
Filter detections based on confidence thresholds for different object classes. This function takes a ...
Definition: detection-utils.cpp:58
cv::Mat visualise_detections(const cv::Mat image, std::vector< CelanturDetection > detections)
Visualise detections on an image. This function takes an input image and a vector of CelanturDetectio...
Definition: detection-utils.cpp:140
Definition: CelanturDetection.h:6