add wust typr mpc and mutipule x

This commit is contained in:
cyy_mac
2026-03-27 03:41:42 +08:00
parent 2c64655fae
commit 7dcb53bb77
192 changed files with 29571 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
#include "wust_vl/video/uvc.hpp"
#include <iostream>
#include <opencv2/opencv.hpp>
int main() {
wust_vl::video::UVC uvc;
auto config = YAML::LoadFile("/home/hy/wust_vision/config/camera.yaml");
uvc.loadConfig(config["uvc"]);
uvc.start();
while (true) {
auto frame = uvc.readImage();
if (!frame.src_img.empty()) {
cv::imshow("frame", frame.src_img);
cv::waitKey(1);
}
}
uvc.stop();
return 0;
}