pref: 增加开启摄像头失败重试功能

This commit is contained in:
bmy
2024-08-08 23:28:58 +08:00
parent 7b34be682a
commit aed1e7e55a
3 changed files with 54 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ public:
cv::Mat frame;
zmq::context_t *context;
zmq::socket_t *socket;
cv::VideoWriter *writer = nullptr;
capture(int camera_index, int zmq_port, int width_set = 320, int height_set = 240, int fps_set = 20, bool flip = false);
void start(void);