UWARG Computer Vision
|
Module for extracting frames from DeckLink Video cards. More...
#include <decklink_import.h>
Public Member Functions | |
DeckLinkImport (MetadataInput *reader, Camera &camera) | |
int | startCapture () |
int | stopCapture () |
int | grabFrame (cv::Mat *frame) |
virtual Frame * | next_frame () |
virtual std::string | to_string () |
String representation of the Importer. | |
Public Member Functions inherited from ImageImport | |
ImageImport (MetadataInput *reader, Camera &camera) | |
Additional Inherited Members | |
Protected Attributes inherited from ImageImport | |
MetadataInput * | reader |
Camera & | camera |
Module for extracting frames from DeckLink Video cards.
Reads Video frames and processes them into a OpenCV friendly format. The results are later used in the ImageImport class.
This should provide nothing more or less than the ability to control video devices, including but not limited by input source selection, initialization, format settings, and frame grab selection.
DeckLinkImport::DeckLinkImport | ( | MetadataInput * | reader, |
Camera & | camera | ||
) |
Creates a DeckLinkImport object
int DeckLinkImport::grabFrame | ( | cv::Mat * | frame | ) |
Instantaneously retrieves a frame from the video stream in OpenCV format.
frame | Allocated OpenCV frame (Mat) to dump the frame data into. |
|
virtual |
Retrieves a frame from the processing queue in OpenCV format.
Implements ImageImport.
int DeckLinkImport::startCapture | ( | ) |
Begins capture. Creates a video stream which a frame may be grabbed from.
int DeckLinkImport::stopCapture | ( | ) |
Stops capture and releases the device for use by other software.