Get the App
SLTechnology News&Howtos  ›  Development  › 

How to get every frame of a video and save it as a .jpg picture by OpenCV

Shulou Source: shulou.com Published: 2022-06-03 09:41:15 10月03日 Update

This article is about how OpenCV takes every frame of the video and saves it as a .jpg picture. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The details are as follows

# include#include # include#include using namespace std;using namespace cv;// to obtain the face int main () {/ / Open the video file: actually create a VideoCapture structure VideoCapture capture ("1.mp4"); / / check whether it is opened normally: when it is successfully opened, isOpened returns ture if (! capture.isOpened ()) cout

Tags: Videos buttons loops content pictures variables files time more being articles controls good practical successful faces images that is loops articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info macOS Redmi Shulou Information vpn