Skip to content

Instantly share code, notes, and snippets.

View wongtou's full-sized avatar
🎯
Focusing

WongTou wongtou

🎯
Focusing
  • Shenzhen, China
View GitHub Profile
@yohhoy
yohhoy / ff2cv.cpp
Last active December 14, 2024 12:44
Read video frame with FFmpeg and convert to OpenCV image
/*
* Read video frame with FFmpeg and convert to OpenCV image
*
* Copyright (c) 2016 yohhoy
*/
#include <iostream>
#include <vector>
// FFmpeg
extern "C" {
#include <libavformat/avformat.h>