Table of Contents

Class VideoCapturePara

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Parameters of VideoCapture for hardware acceleration Please check the link below for current HW acceleration types support matrix https://github.com/opencv/opencv/wiki/Video-IO-hardware-acceleration

[Serializable]
public record VideoCapturePara : IEquatable<VideoCapturePara>
Inheritance
VideoCapturePara
Implements
Inherited Members

Constructors

VideoCapturePara()

Constructor, parameter of VideoCapture for hardware acceleration

VideoCapturePara(VideoAccelerationType, int)

Constructor, parameter of VideoCapture for hardware acceleration

Properties

AccelerationType

Used as value in #CAP_PROP_HW_ACCELERATION and #VIDEOWRITER_PROP_HW_ACCELERATION note In case of FFmpeg backend, it translated to enum AVHWDeviceType (https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/hwcontext.h)

HwDeviceIndex

Hardware device index (select GPU if multiple available). Device enumeration is acceleration type specific.

Methods

GetParameters()

Get parameters of VideoCapture for hardware acceleration