This application will read from a webcam, run the video through Darknet/YOLO, and display the results. More...
Functions | |
double | estimate_camera_fps (cv::VideoCapture &cap) |
int | main (int argc, char *argv[]) |
cv::VideoCapture | open_and_configure_camera (cv::VideoCapture &cap) |
Variables | |
const auto | REQUEST_WEBCAM_FPS = 30.0 |
const auto | REQUEST_WEBCAM_HEIGHT = 480 |
const auto | REQUEST_WEBCAM_WIDTH = 640 |
const auto | SAVE_OUTPUT_VIDEO = false |
This application will read from a webcam, run the video through Darknet/YOLO, and display the results.
Use the "-c" or "--camera" parameter to open a specific webcam. For example, you can use "darknet_08_display_webcam --camera 3" to open the 4th webcam. (Camera indexes are zero-based.)
double estimate_camera_fps | ( | cv::VideoCapture & | cap | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
cv::VideoCapture open_and_configure_camera | ( | cv::VideoCapture & | cap | ) |
const auto REQUEST_WEBCAM_FPS = 30.0 |
const auto REQUEST_WEBCAM_HEIGHT = 480 |
const auto REQUEST_WEBCAM_WIDTH = 640 |
const auto SAVE_OUTPUT_VIDEO = false |