start adding security vulnerabilities (packet class)

This commit is contained in:
2025-03-25 17:08:58 -05:00
parent 7c780e0017
commit a134513b9c
6 changed files with 102 additions and 7 deletions

View File

@@ -1,12 +1,16 @@
#include <opencv2/highgui.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/core/mat.hpp>
using namespace std;
int main() {
// TODO: read image data from socket instead of VideoCapture
cv::VideoCapture cap = cv::VideoCapture(0);
bool running = true;
// TODO: handle multiple images
cv::Mat image = cv::Mat::zeros(480, 640, CV_8UC3);
// TODO: make this asynchronous. probably do that in tandem with setting up networking
while (running) {
cap.read(image);
imshow("image", image);