Another one minor fix

pull/4540/head
AlexeyAB 6 years ago
parent 972608c8ef
commit 63396082d7
  1. 1
      .circleci/config.yml
  2. 4
      src/http_stream.cpp
  3. 2
      src/http_stream.h

@ -8,6 +8,7 @@ jobs:
steps:
- checkout
- run: nvcc --version
- run: gcc --version
- run: make LIBSO=1 GPU=0 CUDNN=0 OPENCV=0 -j 8
- run: make clean
- run: make LIBSO=1 GPU=0 CUDNN=0 OPENCV=0 DEBUG=1 -j 8

@ -556,7 +556,7 @@ std::string get_system_frame_time_string()
#ifdef __CYGWIN__
int send_http_post_request(char *http_post_host, int server_port, char *videosource,
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)
{
std::cerr << " send_http_post_request() isn't implemented \n";
@ -578,7 +578,7 @@ int send_http_post_request(char *http_post_host, int server_port, char *videosou
// https://webhook.site/
// https://github.com/yhirose/cpp-httplib
// sent POST http request
int send_http_post_request(char *http_post_host, int server_port, char *videosource,
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)
{
const float thresh = 0.005; // function get_network_boxes() has already filtred dets by actual threshold

@ -13,7 +13,7 @@ void send_json(detection *dets, int nboxes, int classes, char **names, long long
#ifdef OPENCV
void send_mjpeg(mat_cv* mat, int port, int timeout, int quality);
int send_http_post_request(char *http_post_host, int server_port, char *videosource,
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);
#endif // OPENCV

Loading…
Cancel
Save