Skip to content

Commit

Permalink
Fixed yolo_console_dll.cpp for RTMP protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAB committed Oct 10, 2017
1 parent 25750d5 commit 5a2efd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yolo_console_dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ int main(int argc, char *argv[])
std::string const file_ext = filename.substr(filename.find_last_of(".") + 1);
std::string const protocol = filename.substr(0, 7);
if (file_ext == "avi" || file_ext == "mp4" || file_ext == "mjpg" || file_ext == "mov" || // video file
protocol == "rtsp://" || protocol == "http://" || protocol == "https:/") // video network stream
protocol == "rtmp://" || protocol == "rtsp://" || protocol == "http://" || protocol == "https:/") // video network stream
{
cv::Mat cap_frame, cur_frame, det_frame, write_frame;
std::shared_ptr<image_t> det_image;
Expand Down

0 comments on commit 5a2efd5

Please sign in to comment.