Darknet/YOLO v3.0-88-gdee7eef
Object Detection Framework
 
Loading...
Searching...
No Matches
http_stream.cpp File Reference

Classes

struct  _IGNORE_PIPE_SIGNAL
 
struct  detection_t
 
class  JSON_sender
 
class  MJPG_sender
 
struct  similarity_detections_t
 

Macros

#define _XOPEN_SOURCE
 
#define ADDRPOINTER   unsigned int*
 
#define HOSTENT   struct hostent
 
#define INVALID_SOCKET   -1
 
#define NI_MAXHOST   1025
 
#define NI_NUMERICHOST   0x02
 
#define PORT   unsigned short
 
#define SOCKADDR   struct sockaddr
 
#define SOCKADDR_IN   struct sockaddr_in
 
#define SOCKET   int
 
#define SOCKET_ERROR   -1
 

Functions

int check_classes_id (detection det1, detection det2, float thresh)
 
int check_prob (detection det, float thresh)
 
static int close_socket (int s)
 
void delete_json_sender ()
 
int fill_remaining_id (detection *new_dets, int new_dets_num, int new_track_id, float thresh, int detection_count)
 
std::string get_system_frame_time_string ()
 
double get_time ()
 
double get_time_point ()
 
float * make_float_array (float *src, size_t size)
 
int send_http_post_request (char *http_post_host, int server_port, const char *videosource, detection *dets, int nboxes, int classes, char **names, long long int frame_id, int ext_output, int timeout)
 
void send_json (detection *dets, int nboxes, int classes, char **names, long long int frame_id, int port, int timeout)
 
void send_json_custom (char const *send_buf, int port, int timeout)
 
void send_mjpeg (mat_cv *mat, int port, int timeout, int quality)
 
void set_track_id (detection *new_dets, int new_dets_num, float thresh, float sim_thresh, float track_ciou_norm, int deque_size, int dets_for_track, int dets_for_show)
 
void start_timer ()
 
void stop_timer ()
 
void stop_timer_and_show ()
 
void stop_timer_and_show_name (char *name)
 
void total_time ()
 

Variables

struct _IGNORE_PIPE_SIGNAL _init_once
 
static std::unique_ptr< JSON_senderjs_ptr
 
static std::mutex mtx
 
static std::mutex mtx_mjpeg
 

Macro Definition Documentation

◆ _XOPEN_SOURCE

#define _XOPEN_SOURCE

◆ ADDRPOINTER

#define ADDRPOINTER   unsigned int*

◆ HOSTENT

#define HOSTENT   struct hostent

◆ INVALID_SOCKET

#define INVALID_SOCKET   -1

◆ NI_MAXHOST

#define NI_MAXHOST   1025

◆ NI_NUMERICHOST

#define NI_NUMERICHOST   0x02

◆ PORT

#define PORT   unsigned short

◆ SOCKADDR

#define SOCKADDR   struct sockaddr

◆ SOCKADDR_IN

#define SOCKADDR_IN   struct sockaddr_in

◆ SOCKET

#define SOCKET   int

◆ SOCKET_ERROR

#define SOCKET_ERROR   -1

Function Documentation

◆ check_classes_id()

int check_classes_id ( detection  det1,
detection  det2,
float  thresh 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_prob()

int check_prob ( detection  det,
float  thresh 
)
Here is the caller graph for this function:

◆ close_socket()

static int close_socket ( int  s)
static
Here is the caller graph for this function:

◆ delete_json_sender()

void delete_json_sender ( )

◆ fill_remaining_id()

int fill_remaining_id ( detection new_dets,
int  new_dets_num,
int  new_track_id,
float  thresh,
int  detection_count 
)
Here is the call graph for this function:

◆ get_system_frame_time_string()

std::string get_system_frame_time_string ( )
Here is the caller graph for this function:

◆ get_time()

double get_time ( )

◆ get_time_point()

double get_time_point ( )
Here is the caller graph for this function:

◆ make_float_array()

float * make_float_array ( float *  src,
size_t  size 
)
Here is the caller graph for this function:

◆ send_http_post_request()

int send_http_post_request ( char *  http_post_host,
int  server_port,
const char *  videosource,
detection dets,
int  nboxes,
int  classes,
char **  names,
long long int  frame_id,
int  ext_output,
int  timeout 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_json()

void send_json ( detection dets,
int  nboxes,
int  classes,
char **  names,
long long int  frame_id,
int  port,
int  timeout 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_json_custom()

void send_json_custom ( char const *  send_buf,
int  port,
int  timeout 
)
Here is the caller graph for this function:

◆ send_mjpeg()

void send_mjpeg ( mat_cv mat,
int  port,
int  timeout,
int  quality 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_track_id()

void set_track_id ( detection new_dets,
int  new_dets_num,
float  thresh,
float  sim_thresh,
float  track_ciou_norm,
int  deque_size,
int  dets_for_track,
int  dets_for_show 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ start_timer()

void start_timer ( )

◆ stop_timer()

void stop_timer ( )

◆ stop_timer_and_show()

void stop_timer_and_show ( )
Here is the caller graph for this function:

◆ stop_timer_and_show_name()

void stop_timer_and_show_name ( char *  name)
Here is the call graph for this function:

◆ total_time()

void total_time ( )

Variable Documentation

◆ _init_once

struct _IGNORE_PIPE_SIGNAL _init_once

◆ js_ptr

std::unique_ptr<JSON_sender> js_ptr
static

◆ mtx

std::mutex mtx
static

◆ mtx_mjpeg

std::mutex mtx_mjpeg
static