Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions detection/api/include/MPFVideoCapture.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ namespace MPF { namespace COMPONENT {
explicit MPFVideoCapture(const MPFVideoJob &videoJob, bool enableFrameTransformers=true,
bool enableFrameFiltering=true);

explicit MPFVideoCapture(const std::string &videoPath);


bool Read(cv::Mat &frame);

Expand Down
6 changes: 6 additions & 0 deletions detection/api/src/MPFVideoCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ namespace MPF { namespace COMPONENT {
}


MPFVideoCapture::MPFVideoCapture(const std::string &videoPath)
: MPFVideoCapture(MPFVideoJob("", videoPath, 0, -1, {}, {}), false, false)
{
}


IFrameTransformer::Ptr MPFVideoCapture::GetFrameTransformer(bool enableFrameTransformers,
const MPFVideoJob &job) const {
if (enableFrameTransformers) {
Expand Down