14 lines
465 B
C++
14 lines
465 B
C++
#pragma once
|
|
|
|
#include "types.h"
|
|
#include <opencv2/opencv.hpp>
|
|
|
|
cv::Rect get_rect(cv::Mat& img, float bbox[4]);
|
|
|
|
void nms(std::vector<Detection>& res, float *output, float conf_thresh, float nms_thresh = 0.5);
|
|
|
|
void batch_nms(std::vector<std::vector<Detection>>& batch_res, float *output, int batch_size, int output_size, float conf_thresh, float nms_thresh = 0.5);
|
|
|
|
void draw_bbox(std::vector<cv::Mat>& img_batch, std::vector<std::vector<Detection>>& res_batch);
|
|
|