#include "yolo_v2_class.hpp"
|
| Detector (std::string cfg_filename, std::string weight_filename, int gpu_id=0, int batch_size=1) |
|
| ~Detector () |
|
std::vector< bbox_t > | detect (cv::Mat mat, float thresh=0.2, bool use_mean=false) |
|
std::vector< bbox_t > | detect (image_t img, float thresh=0.2, bool use_mean=false) |
|
std::vector< bbox_t > | detect (std::string image_filename, float thresh=0.2, bool use_mean=false) |
|
std::vector< bbox_t > | detect_resized (image_t img, int init_w, int init_h, float thresh=0.2, bool use_mean=false) |
|
std::vector< std::vector< bbox_t > > | detectBatch (image_t img, int batch_size, int width, int height, float thresh, bool make_nms=true) |
|
void * | get_cuda_context () |
|
int | get_net_color_depth () const |
|
int | get_net_height () const |
|
int | get_net_width () const |
|
std::shared_ptr< image_t > | mat_to_image_resize (cv::Mat mat) const |
|
bool | send_json_http (std::vector< bbox_t > cur_bbox_vec, std::vector< std::string > obj_names, int frame_id, std::string filename=std::string(), int timeout=400000, int port=8070) |
|
std::vector< bbox_t > | tracking_id (std::vector< bbox_t > cur_bbox_vec, bool const change_history=true, int const frames_story=5, int const max_dist=40) |
|
◆ Detector()
Detector::Detector |
( |
std::string |
cfg_filename, |
|
|
std::string |
weight_filename, |
|
|
int |
gpu_id = 0 , |
|
|
int |
batch_size = 1 |
|
) |
| |
◆ ~Detector()
◆ detect() [1/3]
std::vector< bbox_t > Detector::detect |
( |
cv::Mat |
mat, |
|
|
float |
thresh = 0.2 , |
|
|
bool |
use_mean = false |
|
) |
| |
|
inline |
◆ detect() [2/3]
std::vector< bbox_t > Detector::detect |
( |
image_t |
img, |
|
|
float |
thresh = 0.2 , |
|
|
bool |
use_mean = false |
|
) |
| |
◆ detect() [3/3]
std::vector< bbox_t > Detector::detect |
( |
std::string |
image_filename, |
|
|
float |
thresh = 0.2 , |
|
|
bool |
use_mean = false |
|
) |
| |
◆ detect_resized()
std::vector< bbox_t > Detector::detect_resized |
( |
image_t |
img, |
|
|
int |
init_w, |
|
|
int |
init_h, |
|
|
float |
thresh = 0.2 , |
|
|
bool |
use_mean = false |
|
) |
| |
|
inline |
◆ detectBatch()
std::vector< std::vector< bbox_t > > Detector::detectBatch |
( |
image_t |
img, |
|
|
int |
batch_size, |
|
|
int |
width, |
|
|
int |
height, |
|
|
float |
thresh, |
|
|
bool |
make_nms = true |
|
) |
| |
◆ free_image()
void Detector::free_image |
( |
image_t |
m | ) |
|
|
static |
◆ get_cuda_context()
void * Detector::get_cuda_context |
( |
| ) |
|
◆ get_net_color_depth()
int Detector::get_net_color_depth |
( |
| ) |
const |
◆ get_net_height()
int Detector::get_net_height |
( |
| ) |
const |
◆ get_net_width()
int Detector::get_net_width |
( |
| ) |
const |
◆ load_image()
image_t Detector::load_image |
( |
std::string |
image_filename | ) |
|
|
static |
◆ make_empty_image()
static image_t Detector::make_empty_image |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
c |
|
) |
| |
|
inlinestaticprivate |
◆ make_image_custom()
static image_t Detector::make_image_custom |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
c |
|
) |
| |
|
inlinestaticprivate |
◆ mat_to_image()
static std::shared_ptr< image_t > Detector::mat_to_image |
( |
cv::Mat |
img_src | ) |
|
|
inlinestatic |
◆ mat_to_image_custom()
static image_t Detector::mat_to_image_custom |
( |
cv::Mat |
mat | ) |
|
|
inlinestaticprivate |
◆ mat_to_image_resize()
std::shared_ptr< image_t > Detector::mat_to_image_resize |
( |
cv::Mat |
mat | ) |
const |
|
inline |
◆ send_json_http()
bool Detector::send_json_http |
( |
std::vector< bbox_t > |
cur_bbox_vec, |
|
|
std::vector< std::string > |
obj_names, |
|
|
int |
frame_id, |
|
|
std::string |
filename = std::string() , |
|
|
int |
timeout = 400000 , |
|
|
int |
port = 8070 |
|
) |
| |
|
inline |
◆ tracking_id()
std::vector< bbox_t > Detector::tracking_id |
( |
std::vector< bbox_t > |
cur_bbox_vec, |
|
|
bool const |
change_history = true , |
|
|
int const |
frames_story = 5 , |
|
|
int const |
max_dist = 40 |
|
) |
| |
◆ _cfg_filename
std::string Detector::_cfg_filename |
|
private |
◆ _weight_filename
std::string Detector::_weight_filename |
|
private |
◆ cur_gpu_id
const int Detector::cur_gpu_id |
◆ detector_gpu_ptr
std::shared_ptr<void> Detector::detector_gpu_ptr |
|
private |
◆ nms
◆ prev_bbox_vec_deque
std::deque<std::vector<bbox_t> > Detector::prev_bbox_vec_deque |
|
private |
◆ wait_stream
bool Detector::wait_stream |
The documentation for this class was generated from the following files: