Skip to content

Instantly share code, notes, and snippets.

@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active June 12, 2024 00:21
CMakeLists for OpenCV that installed using Vcpkg
cmake_minimum_required( VERSION 3.0 )
set( CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake" )
# Create Project
project( solution )
add_executable( project main.cpp )
# Set OpenCVConfig.cmake Search Directory
set( OpenCV_DIR )
if( NOT CMAKE_CL_64 )
@PyroAVR
PyroAVR / ComplexData.hpp
Last active February 24, 2021 00:32
SO Question: OpenCV frame corruption
#pragma once
struct video_handshake {
int rows, cols, cvtype, cvstep;
};
@SteveRuben
SteveRuben / client.cpp
Created October 21, 2015 08:30
Multiple streaming in c++ using opencv; OpenCV video streaming over TCP/IP
/**
* OpenCV video streaming over TCP/IP
* Client: Receives video from server and display it
* by Steve Tuenkam
*/
#include "opencv2/opencv.hpp"
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>