Darknet/YOLO
Object Detection Framework
demo.c File Reference
Include dependency graph for demo.c:

Functions

void * fetch_in_thread (void *ptr)
 
void * fetch_in_thread_sync (void *ptr)
 
void * detect_in_thread (void *ptr)
 
void * detect_in_thread_sync (void *ptr)
 
double get_wall_time ()
 
void demo (char *cfgfile, char *weightfile, float thresh, float hier_thresh, int cam_index, const char *filename, char **names, int classes, int avgframes, int frame_skip, char *prefix, char *out_filename, int mjpeg_port, int dontdraw_bbox, int json_port, int dont_show, int ext_output, int letter_box_in, int time_limit_sec, char *http_post_host, int benchmark, int benchmark_layers)
 

Variables

static char ** demo_names
 
static image ** demo_alphabet
 
static int demo_classes
 
static int nboxes = 0
 
static detectiondets = NULL
 
static network net
 
static image in_s
 
static image det_s
 
static cap_cvcap
 
static float fps = 0
 
static float demo_thresh = 0
 
static int demo_ext_output = 0
 
static long long int frame_id = 0
 
static int demo_json_port = -1
 
static bool demo_skip_frame = false
 
static int avg_frames
 
static int demo_index = 0
 
static mat_cv ** cv_images
 
mat_cvin_img
 
mat_cvdet_img
 
mat_cvshow_img
 
static volatile int flag_exit
 
static int letter_box = 0
 
static const int thread_wait_ms = 1
 
static volatile int run_fetch_in_thread = 0
 
static volatile int run_detect_in_thread = 0
 

Function Documentation

◆ fetch_in_thread()

void* fetch_in_thread ( void *  ptr)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fetch_in_thread_sync()

void* fetch_in_thread_sync ( void *  ptr)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ detect_in_thread()

void* detect_in_thread ( void *  ptr)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ detect_in_thread_sync()

void* detect_in_thread_sync ( void *  ptr)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_wall_time()

double get_wall_time ( )

◆ demo()

void demo ( char *  cfgfile,
char *  weightfile,
float  thresh,
float  hier_thresh,
int  cam_index,
const char *  filename,
char **  names,
int  classes,
int  avgframes,
int  frame_skip,
char *  prefix,
char *  out_filename,
int  mjpeg_port,
int  dontdraw_bbox,
int  json_port,
int  dont_show,
int  ext_output,
int  letter_box_in,
int  time_limit_sec,
char *  http_post_host,
int  benchmark,
int  benchmark_layers 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ demo_names

char** demo_names
static

◆ demo_alphabet

image** demo_alphabet
static

◆ demo_classes

int demo_classes
static

◆ nboxes

int nboxes = 0
static

◆ dets

detection* dets = NULL
static

◆ net

network net
static

◆ in_s

image in_s
static

◆ det_s

image det_s
static

◆ cap

cap_cv* cap
static

◆ fps

float fps = 0
static

◆ demo_thresh

float demo_thresh = 0
static

◆ demo_ext_output

int demo_ext_output = 0
static

◆ frame_id

long long int frame_id = 0
static

◆ demo_json_port

int demo_json_port = -1
static

◆ demo_skip_frame

bool demo_skip_frame = false
static

◆ avg_frames

int avg_frames
static

◆ demo_index

int demo_index = 0
static

◆ cv_images

mat_cv** cv_images
static

◆ in_img

mat_cv* in_img

◆ det_img

mat_cv* det_img

◆ show_img

mat_cv* show_img

◆ flag_exit

volatile int flag_exit
static

◆ letter_box

int letter_box = 0
static

◆ thread_wait_ms

const int thread_wait_ms = 1
static

◆ run_fetch_in_thread

volatile int run_fetch_in_thread = 0
static

◆ run_detect_in_thread

volatile int run_detect_in_thread = 0
static