This commit is contained in:
bmy
2024-07-04 17:50:05 +08:00
parent 564fd4439f
commit 7b34be682a
3 changed files with 47 additions and 89 deletions

View File

@@ -18,7 +18,8 @@ public:
bool flip = false;
char zmq_bind_addr[40] = "tcp://*:";
std::thread *thread;
std::thread *thread_capture;
std::thread *thread_request;
cv::VideoCapture *cap;
cv::Mat frame;
zmq::context_t *context;
@@ -26,7 +27,8 @@ public:
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);
void run(void);
void get(void);
void req(void);
bool is_open(void);
};