Skip to content

Instantly share code, notes, and snippets.

View wongtou's full-sized avatar
🎯
Focusing

WongTou wongtou

🎯
Focusing
  • Shenzhen, China
View GitHub Profile
@wongtou
wongtou / ff2cv.cpp
Created October 17, 2023 07:38 — forked from yohhoy/ff2cv.cpp
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>